diff --git a/app/policies/application_policy.rb b/app/policies/application_policy.rb deleted file mode 100644 index 509929215c..0000000000 --- a/app/policies/application_policy.rb +++ /dev/null @@ -1,7 +0,0 @@ -class ApplicationPolicy - def initialize(user, record) - raise Pundit::NotAuthorizedError, "must be logged in" unless user - @user = user - @record = record - end -end diff --git a/app/policies/work_package_policy.rb b/app/policies/work_package_policy.rb deleted file mode 100644 index f639067a74..0000000000 --- a/app/policies/work_package_policy.rb +++ /dev/null @@ -1,20 +0,0 @@ -class WorkPackagePolicy < ApplicationPolicy - def index? - end - - # if project is public - # ... - def show? - @user.admin? || - @record.project.is_public? - end - - def create? - end - - def update? - end - - def delete? - end -end diff --git a/db/seeds/api_spec.md b/db/seeds/api_spec.md deleted file mode 100644 index 3fbae662cf..0000000000 --- a/db/seeds/api_spec.md +++ /dev/null @@ -1,184 +0,0 @@ -FORMAT: 1A - -# Gist Fox API -Gist Fox API is a **pastes service** similar to [GitHub's Gist][http://gist.github.com]. - -# Gist Fox API Root [/] -Gist Fox API entry point. - -This resource does not have any attributes. Instead it offers the initial API affordances in the form of the HTTP Link header and HAL links. - -## Retrieve Entry Point [GET] - -+ Response 200 (application/hal+json) - + Headers - - Link: ;rel="self",;rel="gists" - - + Body - - { - "_links": { - "self": { "href": "/" }, - gists": { "href": "/gists?{since}", "templated": true } - } - } - -# Group Gist -Gist-related resources of *Gist Fox API*. - -## Gist [/gists/{id}] -A single Gist object The Gist resource is the central resource in the Gist Fox API. - -The Gist resource has the following attributes: - -- id -- created_at -- description -- content - -The states *id* and *created_at* are assigned by the Gist Fox API at the moment of creation. - -+ Parameters - + id (string) ... ID of the Gist in the form of a hash. - -+ Model (application/hal+json) - - HAL+JSON representation of Gist Resource. - - + Headers - - Link: ;rel="self", ;rel="star" - - + Body - - { - "_links": { - "self": { "href": "/gists/42" }, - "star": { "href": "/gists/42/star" }, - }, - id: 42, - "created_at": "2014-04-14T02:15:15Z", - "description": "Description of Gist", - "content": "String contents" - } - -### Retrieve a Single Gist [GET] -Some description - -+ Response 200 - - [Gist][] - -### Edit a Gist [PATCH] -To update a Gist send a JSON with updated value fo one or more of the Gist resource attributes. - -+ Request (application/json) - - { - "content": "Updated file contents" - } - -+ Response 200 - - [Gist][] - -### Delete a Gist [DELETE] -+ Response 204 - -## Gists Collection [/fists{?since}] -Collection of all Gists. - -The Gist collection resource has the following attributes: - -- total - -In addition it **embeds** *Gist Resources* in the Gist Fox API. - -+ Model (application/hal+json) - - HAL+JSON representation of Gist collection resource. - - + Headers - - Link: ;rel="self" - - + Body - - { - "_links": { - "self": { "href": "/gists" } - }, - "_embedded": { - "gists": [ - { - "_links": { - "self": { "href": "/gists/42" } - }, - "id": "42", - "created_at": "2014-04-14T02:15:15Z", - "description": "Description of Gist" - } - ] - }, - "total": 1 - } - -### List All Gists [GET] -+ Parameters - + since (optional, string) ... Timestamp in ISO 8601 format - -+ Response 200 - - [Gists Collection][] - -### Create a Gist [POST] -+ Request (application/json) - - { - "description": "Description of Gist", - "content": "String content" - } - -+ Response 201 (application/hal+json) - - [Gist][] - -## Star [/gists/{id}/star] -Star resource represents a Gist starred status. - -The Star resource has the following attributes: - -- starred - -+ Parameters - - + id (string) ... ID of the gist in the form of a hash. - -+ Model (application/hal+json) - - HAL+JSON representation of Star Resource. - - + Headers - - Link: ;rel="self" - - + Body - - { - "_links": { - "self": { "href": "/gists/42/star" }, - }, - "starred": true - } - -### Star a Gist [PUT] -+ Response 204 - -### Unstar a Gist [DELETE] -+ Response 204 - -### Check if a Gist is Starred [GET] -+ Response 200 - - [Star][] diff --git a/karma/reports/test-results.xml b/karma/reports/test-results.xml deleted file mode 100644 index 03c45ea986..0000000000 --- a/karma/reports/test-results.xml +++ /dev/null @@ -1,381 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/lib/plugins/acts_as_journalized/lib/redmine/acts/journalized/save_hooks.rb b/lib/plugins/acts_as_journalized/lib/redmine/acts/journalized/save_hooks.rb index 49bb30a212..8613032476 100644 --- a/lib/plugins/acts_as_journalized/lib/redmine/acts/journalized/save_hooks.rb +++ b/lib/plugins/acts_as_journalized/lib/redmine/acts/journalized/save_hooks.rb @@ -69,7 +69,6 @@ module Redmine::Acts::Journalized JournalManager.add_journal self, @journal_user, @journal_notes if add_journal journals.select { |j| j.new_record? }.each { |j| j.save! } - # journals.select { |j| j.new_record? }.each { |j| binding.pry } @journal_user = nil @journal_notes = nil diff --git a/lib/redmine.rb b/lib/redmine.rb index 3c734ca961..e89770f3e6 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -120,7 +120,6 @@ Redmine::AccessControl.map do |map| map.permission :edit_work_packages, { :issues => [:edit, :update, :update_form], :'work_packages/bulk' => [:edit, :update], :work_packages => [:edit, :update, :new_type, :preview, :quoted], - :work_packages_api => [:patch], :journals => :preview, :planning_elements => [:new, :create, :edit, :update], :planning_element_journals => [ [:create], {:require => :member} ] } diff --git a/vendor/assets/components/Caret.js/.bower.json b/vendor/assets/components/Caret.js/.bower.json deleted file mode 100644 index 9bd11f9b61..0000000000 --- a/vendor/assets/components/Caret.js/.bower.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "Caret.js", - "main": "src/jquery.caret.js", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "test", - "tests", - "spec", - "index.html" - ], - "dependencies": { - "jquery": ">=1.7.0" - }, - "devDependencies": { - "jasmine-jquery": "~1.5.8" - }, - "homepage": "https://github.com/ichord/Caret.js", - "_release": "72495fcb19", - "_resolution": { - "type": "commit", - "commit": "72495fcb194a0beec14de25956a7c615ede630b2" - }, - "_source": "git://github.com/ichord/Caret.js.git", - "_target": "72495fcb194a0beec14de25956a7c615ede630b2", - "_originalSource": "ichord/Caret.js" -} \ No newline at end of file diff --git a/vendor/assets/components/Caret.js/CHANGELOG.md b/vendor/assets/components/Caret.js/CHANGELOG.md deleted file mode 100644 index 79e2103c15..0000000000 --- a/vendor/assets/components/Caret.js/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -### v0.0.7 - -* cf94271 - Added suport for .caret(pos, 0) - Nicolas Donna -* 2de2b0f - Fixed error when checking the pos arg when setting the position - Nicolas Donna -* 34ac7fa - catch error thrown in cross-domain iframe - jiyinyiyong - -* 01f1fa1 - add minified file in dist. - -### v0.0.6 - -* 287b5d8 working in iframe - -### v0.0.5 - -* aef0aa4 fix IE input position error -* 4a4f7f7 fix contenteditable null value bug - -### v0.0.4 - -* fix scrolling problem - -### v0.0.2 - -* support `contentEditable` mode -* fix ie bugs, and support IE > 6 to all mode - -### 2013-08-07 - -* fix bug: error position at beginning of textarea -* Bower -* jasmine test - -### 2013-03-31 - -* support IE browsers. diff --git a/vendor/assets/components/Caret.js/Gruntfile.coffee b/vendor/assets/components/Caret.js/Gruntfile.coffee deleted file mode 100644 index f1dacaded6..0000000000 --- a/vendor/assets/components/Caret.js/Gruntfile.coffee +++ /dev/null @@ -1,49 +0,0 @@ -module.exports = (grunt) -> - grunt.initConfig - pkg: grunt.file.readJSON 'package.json' - bower_path: 'bower_components' - - jasmine: - src: 'src/*.js' - options: - vendor: [ - '<%= bower_path %>/jquery/dist/jquery.min.js', - '<%= bower_path %>/jasmine-jquery/lib/jasmine-jquery.js' - ] - specs: 'spec/javascripts/*.js' - # keepRunner: true - - uglify: - options: - banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' - build: - files: - 'dist/<%= pkg.name %>.min.js': ['src/<%= pkg.name %>.js'] - - coffee: - compileWithMaps: - options: - sourceMap: true - files: - 'src/<%= pkg.name %>.js': 'src/<%= pkg.name %>.coffee' - - 'json-replace': - options: - space: " ", - replace: - version: "<%= pkg.version %>" - 'update-version': - files:[{ - 'bower.json': 'bower.json', - 'component.json': 'component.json' - }] - - grunt.loadNpmTasks 'grunt-contrib-coffee' - grunt.loadNpmTasks 'grunt-contrib-uglify' - grunt.loadNpmTasks 'grunt-contrib-jasmine' - grunt.loadNpmTasks 'grunt-json-replace' - - grunt.registerTask 'update-version', 'json-replace' - - grunt.registerTask 'default', ['coffee', 'jasmine','update-version', 'uglify'] - grunt.registerTask 'test', ['coffee', 'jasmine'] diff --git a/vendor/assets/components/Caret.js/LICENSE-MIT b/vendor/assets/components/Caret.js/LICENSE-MIT deleted file mode 100644 index 36cd1c1227..0000000000 --- a/vendor/assets/components/Caret.js/LICENSE-MIT +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2013 chord.luo@gmail.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/vendor/assets/components/Caret.js/README.md b/vendor/assets/components/Caret.js/README.md deleted file mode 100644 index 01a9e15e0a..0000000000 --- a/vendor/assets/components/Caret.js/README.md +++ /dev/null @@ -1,57 +0,0 @@ -Caret.js -======== - -Get caret postion or offset from inputor - -This is the core function that working in [At.js](http://ichord.github.com/At.js). -Now, It just become an simple jquery plugin so that everybody can use it. -And, of course, **At.js** is using this plugin too. - -* support iframe context - -Live Demo -========= - -http://ichord.github.com/Caret.js/ - - -Usage -===== - -```javascript - -// Get caret position -// not working in `contentEditable` mode -$('#inputor').caret('position'); // => {left: 15, top: 30, height: 20} -$('#inputor').caret('iframe', iframe1).caret('position') - -// Get caret offset -$('#inputor').caret('offset'); // => {left: 300, top: 400, height: 20} - -var fixPos = 20 -// Get position of the 20th char in the inputor. -// not working in `contentEditable` mode -$('#inputor').caret('position', fixPos); - -// Get offset of the 20th char. -// not working in `contentEditable` mode -$('#inputor').caret('offset', fixPos); - -// more - -// Get caret position from first char in inputor. -$('#inputor').caret('pos'); // => 15 - -// Set caret position in the inputor -// not working in contentEditable mode -$('#inputor').caret('pos', 15); - -// set iframe context -// oftenly you don't need to set iframe context because caret.js will find the iframe object automatically -// but some iframe editor will prevent caret.js to finding for security reasons, -// so you may have to set the iframe manually -$('#inputor').caret({iframe: theIframe}); -$('#inputor').caret('offset'); -$('#inputor').caret('pos', 15); - -``` diff --git a/vendor/assets/components/Caret.js/bower.json b/vendor/assets/components/Caret.js/bower.json deleted file mode 100644 index b0a4b434b8..0000000000 --- a/vendor/assets/components/Caret.js/bower.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "Caret.js", - "version": "0.0.9", - "main": "src/jquery.caret.js", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "test", - "tests", - "spec", - "index.html" - ], - "dependencies": { - "jquery": ">=1.7.0" - }, - "devDependencies": { - "jasmine-jquery": "~1.5.8" - } -} \ No newline at end of file diff --git a/vendor/assets/components/Caret.js/component.json b/vendor/assets/components/Caret.js/component.json deleted file mode 100644 index 2b5baad8cf..0000000000 --- a/vendor/assets/components/Caret.js/component.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "Caret.js", - "repo": "ichord/Caret.js", - "description": "Add Github like mentions autocomplete to your application.", - "version": "0.0.9", - "keywords": [ - "At.js", - "caret", - "ui" - ], - "dependencies": { - "component/jquery": "*" - }, - "demo": "http://ichord.github.com/Caret.js", - "main": "src/jquery.caret.js", - "scripts": [ - "src/jquery.caret.js" - ], - "license": "MIT" -} \ No newline at end of file diff --git a/vendor/assets/components/Caret.js/dist/jquery.caret.min.js b/vendor/assets/components/Caret.js/dist/jquery.caret.min.js deleted file mode 100644 index 3956e54c31..0000000000 --- a/vendor/assets/components/Caret.js/dist/jquery.caret.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! jquery.caret 2014-04-18 */ -(function(){!function(a){return"function"==typeof define&&define.amd?define(["jquery"],a):a(window.jQuery)}(function(a){"use strict";var b,c,d,e,f,g,h,i,j,k,l;return k="caret",b=function(){function b(a){this.$inputor=a,this.domInputor=this.$inputor[0]}return b.prototype.setPos=function(){return this.domInputor},b.prototype.getIEPosition=function(){return a.noop()},b.prototype.getPosition=function(){return a.noop()},b.prototype.getOldIEPos=function(){var a,b;return b=h.selection.createRange(),a=h.body.createTextRange(),a.moveToElementText(this.domInputor),a.setEndPoint("EndToEnd",b),a.text.length},b.prototype.getPos=function(){var a,b,c;return(c=this.range())?(a=c.cloneRange(),a.selectNodeContents(this.domInputor),a.setEnd(c.endContainer,c.endOffset),b=a.toString().length,a.detach(),b):h.selection?this.getOldIEPos():void 0},b.prototype.getOldIEOffset=function(){var a,b;return a=h.selection.createRange().duplicate(),a.moveStart("character",-1),b=a.getBoundingClientRect(),{height:b.bottom-b.top,left:b.left,top:b.top}},b.prototype.getOffset=function(){var b,c,d,e;if(j.getSelection&&(d=this.range())){if(d.endOffset-1<0)return null;b=d.cloneRange(),b.setStart(d.endContainer,d.endOffset-1),b.setEnd(d.endContainer,d.endOffset),e=b.getBoundingClientRect(),c={height:e.height,left:e.left+e.width,top:e.top},b.detach()}else h.selection&&(c=this.getOldIEOffset());return c&&!i&&(c.top+=a(j).scrollTop(),c.left+=a(j).scrollLeft()),c},b.prototype.range=function(){var a;if(j.getSelection)return a=j.getSelection(),a.rangeCount>0?a.getRangeAt(0):null},b}(),c=function(){function b(a){this.$inputor=a,this.domInputor=this.$inputor[0]}return b.prototype.getIEPos=function(){var a,b,c,d,e,f,g;return b=this.domInputor,f=h.selection.createRange(),e=0,f&&f.parentElement()===b&&(d=b.value.replace(/\r\n/g,"\n"),c=d.length,g=b.createTextRange(),g.moveToBookmark(f.getBookmark()),a=b.createTextRange(),a.collapse(!1),e=g.compareEndPoints("StartToEnd",a)>-1?c:-g.moveStart("character",-c)),e},b.prototype.getPos=function(){return h.selection?this.getIEPos():this.domInputor.selectionStart},b.prototype.setPos=function(a){var b,c;return b=this.domInputor,h.selection?(c=b.createTextRange(),c.move("character",a),c.select()):b.setSelectionRange&&b.setSelectionRange(a,a),b},b.prototype.getIEOffset=function(a){var b,c,d,e;return c=this.domInputor.createTextRange(),a||(a=this.getPos()),c.move("character",a),d=c.boundingLeft,e=c.boundingTop,b=c.boundingHeight,{left:d,top:e,height:b}},b.prototype.getOffset=function(b){var c,d,e;return c=this.$inputor,h.selection?(d=this.getIEOffset(b),d.top+=a(j).scrollTop()+c.scrollTop(),d.left+=a(j).scrollLeft()+c.scrollLeft(),d):(d=c.offset(),e=this.getPosition(b),d={left:d.left+e.left-c.scrollLeft(),top:d.top+e.top-c.scrollTop(),height:e.height})},b.prototype.getPosition=function(a){var b,c,e,f,g,h;return b=this.$inputor,e=function(a){return a.replace(//g,">").replace(/`/g,"`").replace(/"/g,""").replace(/\r\n|\r|\n/g,"
")},void 0===a&&(a=this.getPos()),h=b.val().slice(0,a),f=""+e(h)+"",f+="|",g=new d(b),c=g.create(f).rect()},b.prototype.getIEPosition=function(a){var b,c,d,e,f;return d=this.getIEOffset(a),c=this.$inputor.offset(),e=d.left-c.left,f=d.top-c.top,b=d.height,{left:e,top:f,height:b}},b}(),d=function(){function b(a){this.$inputor=a}return b.prototype.css_attr=["overflowY","height","width","paddingTop","paddingLeft","paddingRight","paddingBottom","marginTop","marginLeft","marginRight","marginBottom","fontFamily","borderStyle","borderWidth","wordWrap","fontSize","lineHeight","overflowX","text-align"],b.prototype.mirrorCss=function(){var b,c=this;return b={position:"absolute",left:-9999,top:0,zIndex:-2e4,"white-space":"pre-wrap"},a.each(this.css_attr,function(a,d){return b[d]=c.$inputor.css(d)}),b},b.prototype.create=function(b){return this.$mirror=a("
"),this.$mirror.css(this.mirrorCss()),this.$mirror.html(b),this.$inputor.after(this.$mirror),this},b.prototype.rect=function(){var a,b,c;return a=this.$mirror.find("#caret"),b=a.position(),c={left:b.left,top:b.top,height:a.height()},this.$mirror.remove(),c},b}(),e={contentEditable:function(a){return!(!a[0].contentEditable||"true"!==a[0].contentEditable)}},g={pos:function(a){return a||0===a?this.setPos(a):this.getPos()},position:function(a){return h.selection?this.getIEPosition(a):this.getPosition(a)},offset:function(b){var c,d;return d=this.getOffset(b),i&&(c=a(i).offset(),d.top+=c.top,d.left+=c.left),d}},h=null,j=null,i=null,l=function(a){return i=a,j=a.contentWindow,h=a.contentDocument||j.document},f=function(b,c){var d,e;if(a.isPlainObject(c)&&(e=c.iframe))return b.data("caret-iframe",e),l(e);if(e=b.data("caret-iframe"))return l(e);h=b[0].ownerDocument,j=h.defaultView||h.parentWindow;try{return i=j.frameElement}catch(f){d=f}},a.fn.caret=function(d){var h;return"object"==typeof d?(f(this,d),this):g[d]?(f(this),h=e.contentEditable(this)?new b(this):new c(this),g[d].apply(h,Array.prototype.slice.call(arguments,1))):a.error("Method "+d+" does not exist on jQuery.caret")},a.fn.caret.EditableCaret=b,a.fn.caret.InputCaret=c,a.fn.caret.Utils=e,a.fn.caret.apis=g})}).call(this); \ No newline at end of file diff --git a/vendor/assets/components/Caret.js/package.json b/vendor/assets/components/Caret.js/package.json deleted file mode 100644 index 1658d70210..0000000000 --- a/vendor/assets/components/Caret.js/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "jquery.caret", - "version": "0.0.9", - "description": "Get caret position and offset from inputor", - "main": "index.js", - "dependencies": { - "grunt": "~0.4.1" - }, - "devDependencies": { - "grunt-contrib-uglify": "~0.2.0", - "grunt-contrib-coffee": "~0.6.4", - "grunt-contrib-jasmine": "~0.5.1", - "grunt-json-replace": "~0.1.2" - }, - "scripts": { - "test": "grunt test --verbose" - }, - "repository": "", - "keywords": [ - "jquery", - "caret", - "offset", - "position" - ], - "author": "Harold.luo ", - "license": "MIT" -} diff --git a/vendor/assets/components/Caret.js/src/jquery.caret.coffee b/vendor/assets/components/Caret.js/src/jquery.caret.coffee deleted file mode 100644 index d6b5d61edb..0000000000 --- a/vendor/assets/components/Caret.js/src/jquery.caret.coffee +++ /dev/null @@ -1,282 +0,0 @@ -### - Implement Github like autocomplete mentions - http://ichord.github.com/At.js - - Copyright (c) 2013 chord.luo@gmail.com - Licensed under the MIT license. -### - -### -本插件操作 textarea 或者 input 内的插入符 -只实现了获得插入符在文本框中的位置,我设置 -插入符的位置. -### -( (factory) -> - # Uses AMD or browser globals to create a jQuery plugin. - # It does not try to register in a CommonJS environment since - # jQuery is not likely to run in those environments. - # - # form [umd](https://github.com/umdjs/umd) project - if typeof define is 'function' and define.amd - # Register as an anonymous AMD module: - define ['jquery'], factory - else - # Browser globals - factory window.jQuery -) ($) -> - - "use strict"; - - pluginName = 'caret' - - class EditableCaret - constructor: (@$inputor) -> - @domInputor = @$inputor[0] - - # NOTE: Duck type - setPos: (pos) -> @domInputor - getIEPosition: -> $.noop() - getPosition: -> $.noop() - - getOldIEPos: -> - textRange = oDocument.selection.createRange() - preCaretTextRange = oDocument.body.createTextRange() - preCaretTextRange.moveToElementText(@domInputor) - preCaretTextRange.setEndPoint("EndToEnd", textRange) - preCaretTextRange.text.length - - getPos: -> - if range = this.range() # Major Browser and IE > 10 - clonedRange = range.cloneRange() - clonedRange.selectNodeContents(@domInputor) - clonedRange.setEnd(range.endContainer, range.endOffset) - pos = clonedRange.toString().length - clonedRange.detach() - pos - else if oDocument.selection #IE < 9 - this.getOldIEPos() - - getOldIEOffset: -> - range = oDocument.selection.createRange().duplicate() - range.moveStart "character", -1 - rect = range.getBoundingClientRect() - { height: rect.bottom - rect.top, left: rect.left, top: rect.top } - - getOffset: (pos) -> - if oWindow.getSelection and range = this.range() - return null if range.endOffset - 1 < 0 - clonedRange = range.cloneRange() - # NOTE: have to select a char to get the rect. - clonedRange.setStart(range.endContainer, range.endOffset - 1) - clonedRange.setEnd(range.endContainer, range.endOffset) - rect = clonedRange.getBoundingClientRect() - offset = { height: rect.height, left: rect.left + rect.width, top: rect.top } - clonedRange.detach() - else if oDocument.selection # ie < 9 - offset = this.getOldIEOffset() - - if offset and !oFrame - offset.top += $(oWindow).scrollTop() - offset.left += $(oWindow).scrollLeft() - - offset - - range: -> - return unless oWindow.getSelection - sel = oWindow.getSelection() - if sel.rangeCount > 0 then sel.getRangeAt(0) else null - - - class InputCaret - - constructor: (@$inputor) -> - @domInputor = @$inputor[0] - - getIEPos: -> - # https://github.com/ichord/Caret.js/wiki/Get-pos-of-caret-in-IE - inputor = @domInputor - range = oDocument.selection.createRange() - pos = 0 - # selection should in the inputor. - if range and range.parentElement() is inputor - normalizedValue = inputor.value.replace /\r\n/g, "\n" - len = normalizedValue.length - textInputRange = inputor.createTextRange() - textInputRange.moveToBookmark range.getBookmark() - endRange = inputor.createTextRange() - endRange.collapse false - if textInputRange.compareEndPoints("StartToEnd", endRange) > -1 - pos = len - else - pos = -textInputRange.moveStart "character", -len - pos - - getPos: -> - if oDocument.selection then this.getIEPos() else @domInputor.selectionStart - - setPos: (pos) -> - inputor = @domInputor - if oDocument.selection #IE - range = inputor.createTextRange() - range.move "character", pos - range.select() - else if inputor.setSelectionRange - inputor.setSelectionRange pos, pos - inputor - - getIEOffset: (pos) -> - textRange = @domInputor.createTextRange() - pos ||= this.getPos() - textRange.move('character', pos) - - x = textRange.boundingLeft - y = textRange.boundingTop - h = textRange.boundingHeight - - {left: x, top: y, height: h} - - getOffset: (pos) -> - $inputor = @$inputor - if oDocument.selection - offset = this.getIEOffset(pos) - offset.top += $(oWindow).scrollTop() + $inputor.scrollTop() - offset.left += $(oWindow).scrollLeft() + $inputor.scrollLeft() - offset - else - offset = $inputor.offset() - position = this.getPosition(pos) - offset = - left: offset.left + position.left - $inputor.scrollLeft() - top: offset.top + position.top - $inputor.scrollTop() - height: position.height - - getPosition: (pos)-> - $inputor = @$inputor - format = (value) -> - value.replace(//g, '>') - .replace(/`/g,'`') - .replace(/"/g,'"') - .replace(/\r\n|\r|\n/g,"
") - - pos = this.getPos() if pos is undefined - start_range = $inputor.val().slice(0, pos) - html = ""+format(start_range)+"" - html += "|" - - mirror = new Mirror($inputor) - at_rect = mirror.create(html).rect() - - getIEPosition: (pos) -> - offset = this.getIEOffset pos - inputorOffset = @$inputor.offset() - x = offset.left - inputorOffset.left - y = offset.top - inputorOffset.top - h = offset.height - - {left: x, top: y, height: h} - - # @example - # mirror = new Mirror($("textarea#inputor")) - # html = "

We will get the rect of @icho

" - # mirror.create(html).rect() - class Mirror - css_attr: [ - "overflowY", "height", "width", "paddingTop", "paddingLeft", - "paddingRight", "paddingBottom", "marginTop", "marginLeft", - "marginRight", "marginBottom","fontFamily", "borderStyle", - "borderWidth","wordWrap", "fontSize", "lineHeight", "overflowX", - "text-align", - ] - - constructor: (@$inputor) -> - - mirrorCss: -> - css = - position: 'absolute' - left: -9999 - top:0 - zIndex: -20000 - 'white-space': 'pre-wrap' - $.each @css_attr, (i,p) => - css[p] = @$inputor.css p - css - - create: (html) -> - @$mirror = $('
') - @$mirror.css this.mirrorCss() - @$mirror.html(html) - @$inputor.after(@$mirror) - this - - # 获得标记的位置 - # - # @return [Object] 标记的坐标 - # {left: 0, top: 0, bottom: 0} - rect: -> - $flag = @$mirror.find "#caret" - pos = $flag.position() - rect = {left: pos.left, top: pos.top, height: $flag.height() } - @$mirror.remove() - rect - - Utils = - contentEditable: ($inputor)-> - !!($inputor[0].contentEditable && $inputor[0].contentEditable == 'true') - - methods = - pos: (pos) -> - if pos or pos == 0 - this.setPos pos - else - this.getPos() - - position: (pos) -> - if oDocument.selection then this.getIEPosition pos else this.getPosition pos - - offset: (pos) -> - offset = this.getOffset(pos) - if oFrame - iOffset = $(oFrame).offset() - offset.top += iOffset.top - offset.left += iOffset.left - offset - - oDocument = null - oWindow = null - oFrame = null - setContextBy = (iframe) -> - oFrame = iframe - oWindow = iframe.contentWindow - oDocument = iframe.contentDocument || oWindow.document - configure = ($dom, settings) -> - if $.isPlainObject(settings) and iframe = settings.iframe - $dom.data('caret-iframe', iframe) - setContextBy iframe - else if iframe = $dom.data('caret-iframe') - setContextBy iframe - else - oDocument = $dom[0].ownerDocument - oWindow = oDocument.defaultView || oDocument.parentWindow - try - oFrame = oWindow.frameElement - catch error - # throws error in cross-domain iframes - $.fn.caret = (method) -> - # http://stackoverflow.com/questions/16010204/get-reference-of-window-object-from-a-dom-element - if typeof method is 'object' - configure this, method - this - else if methods[method] - configure this - caret = if Utils.contentEditable(this) then new EditableCaret(this) else new InputCaret(this) - methods[method].apply caret, Array::slice.call(arguments, 1) - else - $.error "Method #{method} does not exist on jQuery.caret" - - - - $.fn.caret.EditableCaret = EditableCaret - $.fn.caret.InputCaret = InputCaret - $.fn.caret.Utils = Utils - $.fn.caret.apis = methods diff --git a/vendor/assets/components/Caret.js/src/jquery.caret.js b/vendor/assets/components/Caret.js/src/jquery.caret.js deleted file mode 100644 index e6d2a22090..0000000000 --- a/vendor/assets/components/Caret.js/src/jquery.caret.js +++ /dev/null @@ -1,361 +0,0 @@ -//@ sourceMappingURL=jquery.caret.map -/* - Implement Github like autocomplete mentions - http://ichord.github.com/At.js - - Copyright (c) 2013 chord.luo@gmail.com - Licensed under the MIT license. -*/ - - -/* -本插件操作 textarea 或者 input 内的插入符 -只实现了获得插入符在文本框中的位置,我设置 -插入符的位置. -*/ - - -(function() { - (function(factory) { - if (typeof define === 'function' && define.amd) { - return define(['jquery'], factory); - } else { - return factory(window.jQuery); - } - })(function($) { - "use strict"; - var EditableCaret, InputCaret, Mirror, Utils, configure, methods, oDocument, oFrame, oWindow, pluginName, setContextBy; - pluginName = 'caret'; - EditableCaret = (function() { - function EditableCaret($inputor) { - this.$inputor = $inputor; - this.domInputor = this.$inputor[0]; - } - - EditableCaret.prototype.setPos = function(pos) { - return this.domInputor; - }; - - EditableCaret.prototype.getIEPosition = function() { - return $.noop(); - }; - - EditableCaret.prototype.getPosition = function() { - return $.noop(); - }; - - EditableCaret.prototype.getOldIEPos = function() { - var preCaretTextRange, textRange; - textRange = oDocument.selection.createRange(); - preCaretTextRange = oDocument.body.createTextRange(); - preCaretTextRange.moveToElementText(this.domInputor); - preCaretTextRange.setEndPoint("EndToEnd", textRange); - return preCaretTextRange.text.length; - }; - - EditableCaret.prototype.getPos = function() { - var clonedRange, pos, range; - if (range = this.range()) { - clonedRange = range.cloneRange(); - clonedRange.selectNodeContents(this.domInputor); - clonedRange.setEnd(range.endContainer, range.endOffset); - pos = clonedRange.toString().length; - clonedRange.detach(); - return pos; - } else if (oDocument.selection) { - return this.getOldIEPos(); - } - }; - - EditableCaret.prototype.getOldIEOffset = function() { - var range, rect; - range = oDocument.selection.createRange().duplicate(); - range.moveStart("character", -1); - rect = range.getBoundingClientRect(); - return { - height: rect.bottom - rect.top, - left: rect.left, - top: rect.top - }; - }; - - EditableCaret.prototype.getOffset = function(pos) { - var clonedRange, offset, range, rect; - if (oWindow.getSelection && (range = this.range())) { - if (range.endOffset - 1 < 0) { - return null; - } - clonedRange = range.cloneRange(); - clonedRange.setStart(range.endContainer, range.endOffset - 1); - clonedRange.setEnd(range.endContainer, range.endOffset); - rect = clonedRange.getBoundingClientRect(); - offset = { - height: rect.height, - left: rect.left + rect.width, - top: rect.top - }; - clonedRange.detach(); - } else if (oDocument.selection) { - offset = this.getOldIEOffset(); - } - if (offset && !oFrame) { - offset.top += $(oWindow).scrollTop(); - offset.left += $(oWindow).scrollLeft(); - } - return offset; - }; - - EditableCaret.prototype.range = function() { - var sel; - if (!oWindow.getSelection) { - return; - } - sel = oWindow.getSelection(); - if (sel.rangeCount > 0) { - return sel.getRangeAt(0); - } else { - return null; - } - }; - - return EditableCaret; - - })(); - InputCaret = (function() { - function InputCaret($inputor) { - this.$inputor = $inputor; - this.domInputor = this.$inputor[0]; - } - - InputCaret.prototype.getIEPos = function() { - var endRange, inputor, len, normalizedValue, pos, range, textInputRange; - inputor = this.domInputor; - range = oDocument.selection.createRange(); - pos = 0; - if (range && range.parentElement() === inputor) { - normalizedValue = inputor.value.replace(/\r\n/g, "\n"); - len = normalizedValue.length; - textInputRange = inputor.createTextRange(); - textInputRange.moveToBookmark(range.getBookmark()); - endRange = inputor.createTextRange(); - endRange.collapse(false); - if (textInputRange.compareEndPoints("StartToEnd", endRange) > -1) { - pos = len; - } else { - pos = -textInputRange.moveStart("character", -len); - } - } - return pos; - }; - - InputCaret.prototype.getPos = function() { - if (oDocument.selection) { - return this.getIEPos(); - } else { - return this.domInputor.selectionStart; - } - }; - - InputCaret.prototype.setPos = function(pos) { - var inputor, range; - inputor = this.domInputor; - if (oDocument.selection) { - range = inputor.createTextRange(); - range.move("character", pos); - range.select(); - } else if (inputor.setSelectionRange) { - inputor.setSelectionRange(pos, pos); - } - return inputor; - }; - - InputCaret.prototype.getIEOffset = function(pos) { - var h, textRange, x, y; - textRange = this.domInputor.createTextRange(); - pos || (pos = this.getPos()); - textRange.move('character', pos); - x = textRange.boundingLeft; - y = textRange.boundingTop; - h = textRange.boundingHeight; - return { - left: x, - top: y, - height: h - }; - }; - - InputCaret.prototype.getOffset = function(pos) { - var $inputor, offset, position; - $inputor = this.$inputor; - if (oDocument.selection) { - offset = this.getIEOffset(pos); - offset.top += $(oWindow).scrollTop() + $inputor.scrollTop(); - offset.left += $(oWindow).scrollLeft() + $inputor.scrollLeft(); - return offset; - } else { - offset = $inputor.offset(); - position = this.getPosition(pos); - return offset = { - left: offset.left + position.left - $inputor.scrollLeft(), - top: offset.top + position.top - $inputor.scrollTop(), - height: position.height - }; - } - }; - - InputCaret.prototype.getPosition = function(pos) { - var $inputor, at_rect, format, html, mirror, start_range; - $inputor = this.$inputor; - format = function(value) { - return value.replace(//g, '>').replace(/`/g, '`').replace(/"/g, '"').replace(/\r\n|\r|\n/g, "
"); - }; - if (pos === void 0) { - pos = this.getPos(); - } - start_range = $inputor.val().slice(0, pos); - html = "" + format(start_range) + ""; - html += "|"; - mirror = new Mirror($inputor); - return at_rect = mirror.create(html).rect(); - }; - - InputCaret.prototype.getIEPosition = function(pos) { - var h, inputorOffset, offset, x, y; - offset = this.getIEOffset(pos); - inputorOffset = this.$inputor.offset(); - x = offset.left - inputorOffset.left; - y = offset.top - inputorOffset.top; - h = offset.height; - return { - left: x, - top: y, - height: h - }; - }; - - return InputCaret; - - })(); - Mirror = (function() { - Mirror.prototype.css_attr = ["overflowY", "height", "width", "paddingTop", "paddingLeft", "paddingRight", "paddingBottom", "marginTop", "marginLeft", "marginRight", "marginBottom", "fontFamily", "borderStyle", "borderWidth", "wordWrap", "fontSize", "lineHeight", "overflowX", "text-align"]; - - function Mirror($inputor) { - this.$inputor = $inputor; - } - - Mirror.prototype.mirrorCss = function() { - var css, - _this = this; - css = { - position: 'absolute', - left: -9999, - top: 0, - zIndex: -20000, - 'white-space': 'pre-wrap' - }; - $.each(this.css_attr, function(i, p) { - return css[p] = _this.$inputor.css(p); - }); - return css; - }; - - Mirror.prototype.create = function(html) { - this.$mirror = $('
'); - this.$mirror.css(this.mirrorCss()); - this.$mirror.html(html); - this.$inputor.after(this.$mirror); - return this; - }; - - Mirror.prototype.rect = function() { - var $flag, pos, rect; - $flag = this.$mirror.find("#caret"); - pos = $flag.position(); - rect = { - left: pos.left, - top: pos.top, - height: $flag.height() - }; - this.$mirror.remove(); - return rect; - }; - - return Mirror; - - })(); - Utils = { - contentEditable: function($inputor) { - return !!($inputor[0].contentEditable && $inputor[0].contentEditable === 'true'); - } - }; - methods = { - pos: function(pos) { - if (pos || pos === 0) { - return this.setPos(pos); - } else { - return this.getPos(); - } - }, - position: function(pos) { - if (oDocument.selection) { - return this.getIEPosition(pos); - } else { - return this.getPosition(pos); - } - }, - offset: function(pos) { - var iOffset, offset; - offset = this.getOffset(pos); - if (oFrame) { - iOffset = $(oFrame).offset(); - offset.top += iOffset.top; - offset.left += iOffset.left; - } - return offset; - } - }; - oDocument = null; - oWindow = null; - oFrame = null; - setContextBy = function(iframe) { - oFrame = iframe; - oWindow = iframe.contentWindow; - return oDocument = iframe.contentDocument || oWindow.document; - }; - configure = function($dom, settings) { - var error, iframe; - if ($.isPlainObject(settings) && (iframe = settings.iframe)) { - $dom.data('caret-iframe', iframe); - return setContextBy(iframe); - } else if (iframe = $dom.data('caret-iframe')) { - return setContextBy(iframe); - } else { - oDocument = $dom[0].ownerDocument; - oWindow = oDocument.defaultView || oDocument.parentWindow; - try { - return oFrame = oWindow.frameElement; - } catch (_error) { - error = _error; - } - } - }; - $.fn.caret = function(method) { - var caret; - if (typeof method === 'object') { - configure(this, method); - return this; - } else if (methods[method]) { - configure(this); - caret = Utils.contentEditable(this) ? new EditableCaret(this) : new InputCaret(this); - return methods[method].apply(caret, Array.prototype.slice.call(arguments, 1)); - } else { - return $.error("Method " + method + " does not exist on jQuery.caret"); - } - }; - $.fn.caret.EditableCaret = EditableCaret; - $.fn.caret.InputCaret = InputCaret; - $.fn.caret.Utils = Utils; - return $.fn.caret.apis = methods; - }); - -}).call(this); diff --git a/vendor/assets/components/angular-animate/.bower.json b/vendor/assets/components/angular-animate/.bower.json deleted file mode 100644 index 4c4a9fddaa..0000000000 --- a/vendor/assets/components/angular-animate/.bower.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "angular-animate", - "version": "1.2.16", - "main": "./angular-animate.js", - "dependencies": { - "angular": "1.2.16" - }, - "homepage": "https://github.com/angular/bower-angular-animate", - "_release": "1.2.16", - "_resolution": { - "type": "version", - "tag": "v1.2.16", - "commit": "4eccd8ec8356a33bf3a98958d7a73b71290d3985" - }, - "_source": "git://github.com/angular/bower-angular-animate.git", - "_target": "~1.2.14", - "_originalSource": "angular-animate" -} \ No newline at end of file diff --git a/vendor/assets/components/angular-animate/README.md b/vendor/assets/components/angular-animate/README.md deleted file mode 100644 index de4c61b895..0000000000 --- a/vendor/assets/components/angular-animate/README.md +++ /dev/null @@ -1,54 +0,0 @@ -# bower-angular-animate - -This repo is for distribution on `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 - -Install with `bower`: - -```shell -bower install angular-animate -``` - -Add a ` -``` - -And 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-2012 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/vendor/assets/components/angular-animate/angular-animate.js b/vendor/assets/components/angular-animate/angular-animate.js deleted file mode 100644 index 9a0af80fd3..0000000000 --- a/vendor/assets/components/angular-animate/angular-animate.js +++ /dev/null @@ -1,1616 +0,0 @@ -/** - * @license AngularJS v1.2.16 - * (c) 2010-2014 Google, Inc. http://angularjs.org - * License: MIT - */ -(function(window, angular, undefined) {'use strict'; - -/* jshint maxlen: false */ - -/** - * @ngdoc module - * @name ngAnimate - * @description - * - * # ngAnimate - * - * The `ngAnimate` module provides support for JavaScript, CSS3 transition and CSS3 keyframe animation hooks within existing core and custom directives. - * - * - *
- * - * # Usage - * - * To see animations in action, all that is required is to define the appropriate CSS classes - * or to register a JavaScript animation via the myModule.animation() function. The directives that support animation automatically are: - * `ngRepeat`, `ngInclude`, `ngIf`, `ngSwitch`, `ngShow`, `ngHide`, `ngView` and `ngClass`. Custom directives can take advantage of animation - * by using the `$animate` service. - * - * Below is a more detailed breakdown of the supported animation events provided by pre-existing ng directives: - * - * | Directive | Supported Animations | - * |---------------------------------------------------------- |----------------------------------------------------| - * | {@link ng.directive:ngRepeat#usage_animations ngRepeat} | enter, leave and move | - * | {@link ngRoute.directive:ngView#usage_animations ngView} | enter and leave | - * | {@link ng.directive:ngInclude#usage_animations ngInclude} | enter and leave | - * | {@link ng.directive:ngSwitch#usage_animations ngSwitch} | enter and leave | - * | {@link ng.directive:ngIf#usage_animations ngIf} | enter and leave | - * | {@link ng.directive:ngClass#usage_animations ngClass} | add and remove | - * | {@link ng.directive:ngShow#usage_animations ngShow & ngHide} | add and remove (the ng-hide class value) | - * | {@link ng.directive:form#usage_animations form} | add and remove (dirty, pristine, valid, invalid & all other validations) | - * | {@link ng.directive:ngModel#usage_animations ngModel} | add and remove (dirty, pristine, valid, invalid & all other validations) | - * - * You can find out more information about animations upon visiting each directive page. - * - * Below is an example of how to apply animations to a directive that supports animation hooks: - * - * ```html - * - * - * - * - * ``` - * - * Keep in mind that if an animation is running, any child elements cannot be animated until the parent element's - * animation has completed. - * - *

CSS-defined Animations

- * The animate service will automatically apply two CSS classes to the animated element and these two CSS classes - * are designed to contain the start and end CSS styling. Both CSS transitions and keyframe animations are supported - * and can be used to play along with this naming structure. - * - * The following code below demonstrates how to perform animations using **CSS transitions** with Angular: - * - * ```html - * - * - *
- *
- *
- * ``` - * - * The following code below demonstrates how to perform animations using **CSS animations** with Angular: - * - * ```html - * - * - *
- *
- *
- * ``` - * - * Both CSS3 animations and transitions can be used together and the animate service will figure out the correct duration and delay timing. - * - * Upon DOM mutation, the event class is added first (something like `ng-enter`), then the browser prepares itself to add - * the active class (in this case `ng-enter-active`) which then triggers the animation. The animation module will automatically - * detect the CSS code to determine when the animation ends. Once the animation is over then both CSS classes will be - * removed from the DOM. If a browser does not support CSS transitions or CSS animations then the animation will start and end - * immediately resulting in a DOM element that is at its final state. This final state is when the DOM element - * has no CSS transition/animation classes applied to it. - * - *

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, as of 1.2.0, 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 { - * /* standard transition code */ - * -webkit-transition: 1s linear all; - * transition: 1s linear all; - * opacity:0; - * } - * .my-animation.ng-enter-stagger { - * /* this will have a 100ms delay between each successive leave animation */ - * -webkit-transition-delay: 0.1s; - * transition-delay: 0.1s; - * - * /* in case the stagger doesn't work then these two values - * must be set to 0 to avoid an accidental CSS inheritance */ - * -webkit-transition-duration: 0s; - * transition-duration: 0s; - * } - * .my-animation.ng-enter.ng-enter-active { - * /* standard transition styles */ - * 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 more than 10ms has passed after the last animation has been 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 - * - * $timeout(function() { - * //stagger has reset itself - * $animate.leave(kids[5]); //stagger index=0 - * $animate.leave(kids[6]); //stagger index=1 - * }, 100, false); - * ``` - * - * Stagger animations are currently only supported within CSS-defined animations. - * - *

JavaScript-defined Animations

- * In the event that you do not want to use CSS3 transitions or CSS3 animations or if you wish to offer animations on browsers that do not - * yet support CSS transitions/animations, then you can make use of JavaScript animations defined inside of your AngularJS module. - * - * ```js - * //!annotate="YourApp" Your AngularJS Module|Replace this or ngModule with the module that you used to define your application. - * var ngModule = angular.module('YourApp', ['ngAnimate']); - * ngModule.animation('.my-crazy-animation', function() { - * return { - * enter: function(element, done) { - * //run the animation here and call done when the animation is complete - * return function(cancelled) { - * //this (optional) function will be called when the animation - * //completes or when the animation is cancelled (the cancelled - * //flag will be set to true if cancelled). - * }; - * }, - * leave: function(element, done) { }, - * move: function(element, done) { }, - * - * //animation that can be triggered before the class is added - * beforeAddClass: function(element, className, done) { }, - * - * //animation that can be triggered after the class is added - * addClass: function(element, className, done) { }, - * - * //animation that can be triggered before the class is removed - * beforeRemoveClass: function(element, className, done) { }, - * - * //animation that can be triggered after the class is removed - * removeClass: function(element, className, done) { } - * }; - * }); - * ``` - * - * JavaScript-defined animations are created with a CSS-like class selector and a collection of events which are set to run - * a javascript callback function. When an animation is triggered, $animate will look for a matching animation which fits - * the element's CSS class attribute value and then run the matching animation event function (if found). - * In other words, if the CSS classes present on the animated element match any of the JavaScript animations then the callback function will - * be executed. It should be also noted that only simple, single class selectors are allowed (compound class selectors are not supported). - * - * Within a JavaScript animation, an object containing various event callback animation functions is expected to be returned. - * As explained above, these callbacks are triggered based on the animation event. Therefore if an enter animation is run, - * and the JavaScript animation is found, then the enter callback will handle that animation (in addition to the CSS keyframe animation - * or transition code that is defined via a stylesheet). - * - */ - -angular.module('ngAnimate', ['ng']) - - /** - * @ngdoc provider - * @name $animateProvider - * @description - * - * The `$animateProvider` allows developers to register JavaScript animation event handlers directly inside of a module. - * When an animation is triggered, the $animate service will query the $animate service to find any animations that match - * the provided name value. - * - * Requires the {@link ngAnimate `ngAnimate`} module to be installed. - * - * Please visit the {@link ngAnimate `ngAnimate`} module overview page learn more about how to use animations in your application. - * - */ - - //this private service is only used within CSS-enabled animations - //IE8 + IE9 do not support rAF natively, but that is fine since they - //also don't support transitions and keyframes which means that the code - //below will never be used by the two browsers. - .factory('$$animateReflow', ['$$rAF', '$document', function($$rAF, $document) { - var bod = $document[0].body; - return function(fn) { - //the returned function acts as the cancellation function - return $$rAF(function() { - //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 perform multi-class CSS based animations with - //Firefox. DO NOT REMOVE THIS LINE. - var a = bod.offsetWidth + 1; - fn(); - }); - }; - }]) - - .config(['$provide', '$animateProvider', function($provide, $animateProvider) { - var noop = angular.noop; - var forEach = angular.forEach; - var selectors = $animateProvider.$$selectors; - - var ELEMENT_NODE = 1; - var NG_ANIMATE_STATE = '$$ngAnimateState'; - var NG_ANIMATE_CLASS_NAME = 'ng-animate'; - var rootAnimateState = {running: true}; - - function extractElementNode(element) { - for(var i = 0; i < element.length; i++) { - var elm = element[i]; - if(elm.nodeType == ELEMENT_NODE) { - return elm; - } - } - } - - function stripCommentsFromElement(element) { - return angular.element(extractElementNode(element)); - } - - function isMatchingElement(elm1, elm2) { - return extractElementNode(elm1) == extractElementNode(elm2); - } - - $provide.decorator('$animate', ['$delegate', '$injector', '$sniffer', '$rootElement', '$$asyncCallback', '$rootScope', '$document', - function($delegate, $injector, $sniffer, $rootElement, $$asyncCallback, $rootScope, $document) { - - var globalAnimationCounter = 0; - $rootElement.data(NG_ANIMATE_STATE, rootAnimateState); - - // disable animations during bootstrap, but once we bootstrapped, wait again - // for another digest until enabling animations. The reason why we digest twice - // is because all structural animations (enter, leave and move) all perform a - // post digest operation before animating. If we only wait for a single digest - // to pass then the structural animation would render its animation on page load. - // (which is what we're trying to avoid when the application first boots up.) - $rootScope.$$postDigest(function() { - $rootScope.$$postDigest(function() { - rootAnimateState.running = false; - }); - }); - - var classNameFilter = $animateProvider.classNameFilter(); - var isAnimatableClassName = !classNameFilter - ? function() { return true; } - : function(className) { - return classNameFilter.test(className); - }; - - function lookup(name) { - if (name) { - var matches = [], - flagMap = {}, - classes = name.substr(1).split('.'); - - //the empty string value is the default animation - //operation which performs CSS transition and keyframe - //animations sniffing. This is always included for each - //element animation procedure if the browser supports - //transitions and/or keyframe animations. The default - //animation is added to the top of the list to prevent - //any previous animations from affecting the element styling - //prior to the element being animated. - if ($sniffer.transitions || $sniffer.animations) { - matches.push($injector.get(selectors[''])); - } - - for(var i=0; i < classes.length; i++) { - var klass = classes[i], - selectorFactoryName = selectors[klass]; - if(selectorFactoryName && !flagMap[klass]) { - matches.push($injector.get(selectorFactoryName)); - flagMap[klass] = true; - } - } - return matches; - } - } - - function animationRunner(element, animationEvent, className) { - //transcluded directives may sometimes fire an animation using only comment nodes - //best to catch this early on to prevent any animation operations from occurring - var node = element[0]; - if(!node) { - return; - } - - var isSetClassOperation = animationEvent == 'setClass'; - var isClassBased = isSetClassOperation || - animationEvent == 'addClass' || - animationEvent == 'removeClass'; - - var classNameAdd, classNameRemove; - if(angular.isArray(className)) { - classNameAdd = className[0]; - classNameRemove = className[1]; - className = classNameAdd + ' ' + classNameRemove; - } - - var currentClassName = element.attr('class'); - var classes = currentClassName + ' ' + className; - if(!isAnimatableClassName(classes)) { - return; - } - - var beforeComplete = noop, - beforeCancel = [], - before = [], - afterComplete = noop, - afterCancel = [], - after = []; - - var animationLookup = (' ' + classes).replace(/\s+/g,'.'); - forEach(lookup(animationLookup), function(animationFactory) { - var created = registerAnimation(animationFactory, animationEvent); - if(!created && isSetClassOperation) { - registerAnimation(animationFactory, 'addClass'); - registerAnimation(animationFactory, 'removeClass'); - } - }); - - function registerAnimation(animationFactory, event) { - var afterFn = animationFactory[event]; - var beforeFn = animationFactory['before' + event.charAt(0).toUpperCase() + event.substr(1)]; - if(afterFn || beforeFn) { - if(event == 'leave') { - beforeFn = afterFn; - //when set as null then animation knows to skip this phase - afterFn = null; - } - after.push({ - event : event, fn : afterFn - }); - before.push({ - event : event, fn : beforeFn - }); - return true; - } - } - - function run(fns, cancellations, allCompleteFn) { - var animations = []; - forEach(fns, function(animation) { - animation.fn && animations.push(animation); - }); - - var count = 0; - function afterAnimationComplete(index) { - if(cancellations) { - (cancellations[index] || noop)(); - if(++count < animations.length) return; - cancellations = null; - } - allCompleteFn(); - } - - //The code below adds directly to the array in order to work with - //both sync and async animations. Sync animations are when the done() - //operation is called right away. DO NOT REFACTOR! - forEach(animations, function(animation, index) { - var progress = function() { - afterAnimationComplete(index); - }; - switch(animation.event) { - case 'setClass': - cancellations.push(animation.fn(element, classNameAdd, classNameRemove, progress)); - break; - case 'addClass': - cancellations.push(animation.fn(element, classNameAdd || className, progress)); - break; - case 'removeClass': - cancellations.push(animation.fn(element, classNameRemove || className, progress)); - break; - default: - cancellations.push(animation.fn(element, progress)); - break; - } - }); - - if(cancellations && cancellations.length === 0) { - allCompleteFn(); - } - } - - return { - node : node, - event : animationEvent, - className : className, - isClassBased : isClassBased, - isSetClassOperation : isSetClassOperation, - before : function(allCompleteFn) { - beforeComplete = allCompleteFn; - run(before, beforeCancel, function() { - beforeComplete = noop; - allCompleteFn(); - }); - }, - after : function(allCompleteFn) { - afterComplete = allCompleteFn; - run(after, afterCancel, function() { - afterComplete = noop; - allCompleteFn(); - }); - }, - cancel : function() { - if(beforeCancel) { - forEach(beforeCancel, function(cancelFn) { - (cancelFn || noop)(true); - }); - beforeComplete(true); - } - if(afterCancel) { - forEach(afterCancel, function(cancelFn) { - (cancelFn || noop)(true); - }); - afterComplete(true); - } - } - }; - } - - /** - * @ngdoc service - * @name $animate - * @function - * - * @description - * The `$animate` service provides animation detection support while performing DOM operations (enter, leave and move) as well as during addClass and removeClass operations. - * When any of these operations are run, the $animate service - * will examine any JavaScript-defined animations (which are defined by using the $animateProvider provider object) - * as well as any CSS-defined animations against the CSS classes present on the element once the DOM operation is run. - * - * The `$animate` service is used behind the scenes with pre-existing directives and animation with these directives - * will work out of the box without any extra configuration. - * - * Requires the {@link ngAnimate `ngAnimate`} module to be installed. - * - * Please visit the {@link ngAnimate `ngAnimate`} module overview page learn more about how to use animations in your application. - * - */ - return { - /** - * @ngdoc method - * @name $animate#enter - * @function - * - * @description - * Appends the element to the parentElement element that resides in the document and then runs the enter animation. Once - * the animation is started, the following CSS classes will be present on the element for the duration of the animation: - * - * Below is a breakdown of each step that occurs during enter animation: - * - * | Animation Step | What the element class attribute looks like | - * |----------------------------------------------------------------------------------------------|---------------------------------------------| - * | 1. $animate.enter(...) is called | class="my-animation" | - * | 2. element is inserted into the parentElement element or beside the afterElement element | class="my-animation" | - * | 3. $animate runs any JavaScript-defined animations on the element | class="my-animation ng-animate" | - * | 4. the .ng-enter class is added to the element | class="my-animation ng-animate ng-enter" | - * | 5. $animate scans the element styles to get the CSS transition/animation duration and delay | class="my-animation ng-animate ng-enter" | - * | 6. $animate waits for 10ms (this performs a reflow) | class="my-animation ng-animate ng-enter" | - * | 7. the .ng-enter-active and .ng-animate-active classes are added (this triggers the CSS transition/animation) | class="my-animation ng-animate ng-animate-active ng-enter ng-enter-active" | - * | 8. $animate waits for X milliseconds for the animation to complete | class="my-animation ng-animate ng-animate-active ng-enter ng-enter-active" | - * | 9. The animation ends and all generated CSS classes are removed from the element | class="my-animation" | - * | 10. The doneCallback() callback is fired (if provided) | class="my-animation" | - * - * @param {DOMElement} element the element that will be the focus of the enter animation - * @param {DOMElement} parentElement the parent element of the element that will be the focus of the enter animation - * @param {DOMElement} afterElement the sibling element (which is the previous element) of the element that will be the focus of the enter animation - * @param {function()=} doneCallback the callback function that will be called once the animation is complete - */ - enter : function(element, parentElement, afterElement, doneCallback) { - this.enabled(false, element); - $delegate.enter(element, parentElement, afterElement); - $rootScope.$$postDigest(function() { - element = stripCommentsFromElement(element); - performAnimation('enter', 'ng-enter', element, parentElement, afterElement, noop, doneCallback); - }); - }, - - /** - * @ngdoc method - * @name $animate#leave - * @function - * - * @description - * Runs the leave animation operation and, upon completion, removes the element from the DOM. Once - * the animation is started, the following CSS classes will be added for the duration of the animation: - * - * Below is a breakdown of each step that occurs during leave animation: - * - * | Animation Step | What the element class attribute looks like | - * |----------------------------------------------------------------------------------------------|---------------------------------------------| - * | 1. $animate.leave(...) is called | class="my-animation" | - * | 2. $animate runs any JavaScript-defined animations on the element | class="my-animation ng-animate" | - * | 3. the .ng-leave class is added to the element | class="my-animation ng-animate ng-leave" | - * | 4. $animate scans the element styles to get the CSS transition/animation duration and delay | class="my-animation ng-animate ng-leave" | - * | 5. $animate waits for 10ms (this performs a reflow) | class="my-animation ng-animate ng-leave" | - * | 6. the .ng-leave-active and .ng-animate-active classes is added (this triggers the CSS transition/animation) | class="my-animation ng-animate ng-animate-active ng-leave ng-leave-active" | - * | 7. $animate waits for X milliseconds for the animation to complete | class="my-animation ng-animate ng-animate-active ng-leave ng-leave-active" | - * | 8. The animation ends and all generated CSS classes are removed from the element | class="my-animation" | - * | 9. The element is removed from the DOM | ... | - * | 10. The doneCallback() callback is fired (if provided) | ... | - * - * @param {DOMElement} element the element that will be the focus of the leave animation - * @param {function()=} doneCallback the callback function that will be called once the animation is complete - */ - leave : function(element, doneCallback) { - cancelChildAnimations(element); - this.enabled(false, element); - $rootScope.$$postDigest(function() { - performAnimation('leave', 'ng-leave', stripCommentsFromElement(element), null, null, function() { - $delegate.leave(element); - }, doneCallback); - }); - }, - - /** - * @ngdoc method - * @name $animate#move - * @function - * - * @description - * Fires the move DOM operation. Just before the animation starts, the animate service will either append it into the parentElement container or - * add the element directly after the afterElement element if present. Then the move animation will be run. Once - * the animation is started, the following CSS classes will be added for the duration of the animation: - * - * Below is a breakdown of each step that occurs during move animation: - * - * | Animation Step | What the element class attribute looks like | - * |----------------------------------------------------------------------------------------------|---------------------------------------------| - * | 1. $animate.move(...) is called | class="my-animation" | - * | 2. element is moved into the parentElement element or beside the afterElement element | class="my-animation" | - * | 3. $animate runs any JavaScript-defined animations on the element | class="my-animation ng-animate" | - * | 4. the .ng-move class is added to the element | class="my-animation ng-animate ng-move" | - * | 5. $animate scans the element styles to get the CSS transition/animation duration and delay | class="my-animation ng-animate ng-move" | - * | 6. $animate waits for 10ms (this performs a reflow) | class="my-animation ng-animate ng-move" | - * | 7. the .ng-move-active and .ng-animate-active classes is added (this triggers the CSS transition/animation) | class="my-animation ng-animate ng-animate-active ng-move ng-move-active" | - * | 8. $animate waits for X milliseconds for the animation to complete | class="my-animation ng-animate ng-animate-active ng-move ng-move-active" | - * | 9. The animation ends and all generated CSS classes are removed from the element | class="my-animation" | - * | 10. The doneCallback() callback is fired (if provided) | class="my-animation" | - * - * @param {DOMElement} element the element that will be the focus of the move animation - * @param {DOMElement} parentElement the parentElement element of the element that will be the focus of the move animation - * @param {DOMElement} afterElement the sibling element (which is the previous element) of the element that will be the focus of the move animation - * @param {function()=} doneCallback the callback function that will be called once the animation is complete - */ - move : function(element, parentElement, afterElement, doneCallback) { - cancelChildAnimations(element); - this.enabled(false, element); - $delegate.move(element, parentElement, afterElement); - $rootScope.$$postDigest(function() { - element = stripCommentsFromElement(element); - performAnimation('move', 'ng-move', element, parentElement, afterElement, noop, doneCallback); - }); - }, - - /** - * @ngdoc method - * @name $animate#addClass - * - * @description - * Triggers a custom animation event based off the className variable and then attaches the className value to the element as a CSS class. - * Unlike the other animation methods, the animate service will suffix the className value with {@type -add} in order to provide - * the animate service the setup and active CSS classes in order to trigger the animation (this will be skipped if no CSS transitions - * or keyframes are defined on the -add or base CSS class). - * - * Below is a breakdown of each step that occurs during addClass animation: - * - * | Animation Step | What the element class attribute looks like | - * |------------------------------------------------------------------------------------------------|---------------------------------------------| - * | 1. $animate.addClass(element, 'super') is called | class="my-animation" | - * | 2. $animate runs any JavaScript-defined animations on the element | class="my-animation ng-animate" | - * | 3. the .super-add class are added to the element | class="my-animation ng-animate super-add" | - * | 4. $animate scans the element styles to get the CSS transition/animation duration and delay | class="my-animation ng-animate super-add" | - * | 5. $animate waits for 10ms (this performs a reflow) | class="my-animation ng-animate super-add" | - * | 6. the .super, .super-add-active and .ng-animate-active classes are added (this triggers the CSS transition/animation) | class="my-animation ng-animate ng-animate-active super super-add super-add-active" | - * | 7. $animate waits for X milliseconds for the animation to complete | class="my-animation super super-add super-add-active" | - * | 8. The animation ends and all generated CSS classes are removed from the element | class="my-animation super" | - * | 9. The super class is kept on the element | class="my-animation super" | - * | 10. The doneCallback() callback is fired (if provided) | class="my-animation super" | - * - * @param {DOMElement} element the element that will be animated - * @param {string} className the CSS class that will be added to the element and then animated - * @param {function()=} doneCallback the callback function that will be called once the animation is complete - */ - addClass : function(element, className, doneCallback) { - element = stripCommentsFromElement(element); - performAnimation('addClass', className, element, null, null, function() { - $delegate.addClass(element, className); - }, doneCallback); - }, - - /** - * @ngdoc method - * @name $animate#removeClass - * - * @description - * Triggers a custom animation event based off the className variable and then removes the CSS class provided by the className value - * from the element. Unlike the other animation methods, the animate service will suffix the className value with {@type -remove} in - * order to provide the animate service the setup and active CSS classes in order to trigger the animation (this will be skipped if - * no CSS transitions or keyframes are defined on the -remove or base CSS classes). - * - * Below is a breakdown of each step that occurs during removeClass animation: - * - * | Animation Step | What the element class attribute looks like | - * |-----------------------------------------------------------------------------------------------|---------------------------------------------| - * | 1. $animate.removeClass(element, 'super') is called | class="my-animation super" | - * | 2. $animate runs any JavaScript-defined animations on the element | class="my-animation super ng-animate" | - * | 3. the .super-remove class are added to the element | class="my-animation super ng-animate super-remove"| - * | 4. $animate scans the element styles to get the CSS transition/animation duration and delay | class="my-animation super ng-animate super-remove" | - * | 5. $animate waits for 10ms (this performs a reflow) | class="my-animation super ng-animate super-remove" | - * | 6. the .super-remove-active and .ng-animate-active classes are added and .super is removed (this triggers the CSS transition/animation) | class="my-animation ng-animate ng-animate-active super-remove super-remove-active" | - * | 7. $animate waits for X milliseconds for the animation to complete | class="my-animation ng-animate ng-animate-active super-remove super-remove-active" | - * | 8. The animation ends and all generated CSS classes are removed from the element | class="my-animation" | - * | 9. The doneCallback() callback is fired (if provided) | class="my-animation" | - * - * - * @param {DOMElement} element the element that will be animated - * @param {string} className the CSS class that will be animated and then removed from the element - * @param {function()=} doneCallback the callback function that will be called once the animation is complete - */ - removeClass : function(element, className, doneCallback) { - element = stripCommentsFromElement(element); - performAnimation('removeClass', className, element, null, null, function() { - $delegate.removeClass(element, className); - }, doneCallback); - }, - - /** - * - * @ngdoc function - * @name $animate#setClass - * @function - * @description Adds and/or removes the given CSS classes to and from the element. - * Once complete, the done() callback will be fired (if provided). - * @param {DOMElement} element the element which will it's CSS classes changed - * removed from it - * @param {string} add the CSS classes which will be added to the element - * @param {string} remove the CSS class which will be removed from the element - * @param {Function=} done the callback function (if provided) that will be fired after the - * CSS classes have been set on the element - */ - setClass : function(element, add, remove, doneCallback) { - element = stripCommentsFromElement(element); - performAnimation('setClass', [add, remove], element, null, null, function() { - $delegate.setClass(element, add, remove); - }, doneCallback); - }, - - /** - * @ngdoc method - * @name $animate#enabled - * @function - * - * @param {boolean=} value If provided then set the animation on or off. - * @param {DOMElement=} element If provided then the element will be used to represent the enable/disable operation - * @return {boolean} Current animation state. - * - * @description - * Globally enables/disables animations. - * - */ - enabled : function(value, element) { - switch(arguments.length) { - case 2: - if(value) { - cleanup(element); - } else { - var data = element.data(NG_ANIMATE_STATE) || {}; - data.disabled = true; - element.data(NG_ANIMATE_STATE, data); - } - break; - - case 1: - rootAnimateState.disabled = !value; - break; - - default: - value = !rootAnimateState.disabled; - break; - } - return !!value; - } - }; - - /* - all animations call this shared animation triggering function internally. - The animationEvent variable refers to the JavaScript animation event that will be triggered - and the className value is the name of the animation that will be applied within the - CSS code. Element, parentElement and afterElement are provided DOM elements for the animation - and the onComplete callback will be fired once the animation is fully complete. - */ - function performAnimation(animationEvent, className, element, parentElement, afterElement, domOperation, doneCallback) { - - var runner = animationRunner(element, animationEvent, className); - if(!runner) { - fireDOMOperation(); - fireBeforeCallbackAsync(); - fireAfterCallbackAsync(); - closeAnimation(); - return; - } - - className = runner.className; - var elementEvents = angular.element._data(runner.node); - elementEvents = elementEvents && elementEvents.events; - - if (!parentElement) { - parentElement = afterElement ? afterElement.parent() : element.parent(); - } - - var ngAnimateState = element.data(NG_ANIMATE_STATE) || {}; - var runningAnimations = ngAnimateState.active || {}; - var totalActiveAnimations = ngAnimateState.totalActive || 0; - var lastAnimation = ngAnimateState.last; - - //only allow animations if the currently running animation is not structural - //or if there is no animation running at all - var skipAnimations = runner.isClassBased ? - ngAnimateState.disabled || (lastAnimation && !lastAnimation.isClassBased) : - false; - - //skip the animation if animations are disabled, a parent is already being animated, - //the element is not currently attached to the document body or then completely close - //the animation if any matching animations are not found at all. - //NOTE: IE8 + IE9 should close properly (run closeAnimation()) in case an animation was found. - if (skipAnimations || animationsDisabled(element, parentElement)) { - fireDOMOperation(); - fireBeforeCallbackAsync(); - fireAfterCallbackAsync(); - closeAnimation(); - return; - } - - var skipAnimation = false; - if(totalActiveAnimations > 0) { - var animationsToCancel = []; - if(!runner.isClassBased) { - if(animationEvent == 'leave' && runningAnimations['ng-leave']) { - skipAnimation = true; - } else { - //cancel all animations when a structural animation takes place - for(var klass in runningAnimations) { - animationsToCancel.push(runningAnimations[klass]); - cleanup(element, klass); - } - runningAnimations = {}; - totalActiveAnimations = 0; - } - } else if(lastAnimation.event == 'setClass') { - animationsToCancel.push(lastAnimation); - cleanup(element, className); - } - else if(runningAnimations[className]) { - var current = runningAnimations[className]; - if(current.event == animationEvent) { - skipAnimation = true; - } else { - animationsToCancel.push(current); - cleanup(element, className); - } - } - - if(animationsToCancel.length > 0) { - forEach(animationsToCancel, function(operation) { - operation.cancel(); - }); - } - } - - if(runner.isClassBased && !runner.isSetClassOperation && !skipAnimation) { - skipAnimation = (animationEvent == 'addClass') == element.hasClass(className); //opposite of XOR - } - - if(skipAnimation) { - fireBeforeCallbackAsync(); - fireAfterCallbackAsync(); - fireDoneCallbackAsync(); - return; - } - - if(animationEvent == 'leave') { - //there's no need to ever remove the listener since the element - //will be removed (destroyed) after the leave animation ends or - //is cancelled midway - element.one('$destroy', function(e) { - var element = angular.element(this); - var state = element.data(NG_ANIMATE_STATE); - if(state) { - var activeLeaveAnimation = state.active['ng-leave']; - if(activeLeaveAnimation) { - activeLeaveAnimation.cancel(); - cleanup(element, 'ng-leave'); - } - } - }); - } - - //the ng-animate class does nothing, but it's here to allow for - //parent animations to find and cancel child animations when needed - element.addClass(NG_ANIMATE_CLASS_NAME); - - var localAnimationCount = globalAnimationCounter++; - totalActiveAnimations++; - runningAnimations[className] = runner; - - element.data(NG_ANIMATE_STATE, { - last : runner, - active : runningAnimations, - index : localAnimationCount, - totalActive : totalActiveAnimations - }); - - //first we run the before animations and when all of those are complete - //then we perform the DOM operation and run the next set of animations - fireBeforeCallbackAsync(); - runner.before(function(cancelled) { - var data = element.data(NG_ANIMATE_STATE); - cancelled = cancelled || - !data || !data.active[className] || - (runner.isClassBased && data.active[className].event != animationEvent); - - fireDOMOperation(); - if(cancelled === true) { - closeAnimation(); - } else { - fireAfterCallbackAsync(); - runner.after(closeAnimation); - } - }); - - function fireDOMCallback(animationPhase) { - var eventName = '$animate:' + animationPhase; - if(elementEvents && elementEvents[eventName] && elementEvents[eventName].length > 0) { - $$asyncCallback(function() { - element.triggerHandler(eventName, { - event : animationEvent, - className : className - }); - }); - } - } - - function fireBeforeCallbackAsync() { - fireDOMCallback('before'); - } - - function fireAfterCallbackAsync() { - fireDOMCallback('after'); - } - - function fireDoneCallbackAsync() { - fireDOMCallback('close'); - if(doneCallback) { - $$asyncCallback(function() { - doneCallback(); - }); - } - } - - //it is less complicated to use a flag than managing and canceling - //timeouts containing multiple callbacks. - function fireDOMOperation() { - if(!fireDOMOperation.hasBeenRun) { - fireDOMOperation.hasBeenRun = true; - domOperation(); - } - } - - function closeAnimation() { - if(!closeAnimation.hasBeenRun) { - closeAnimation.hasBeenRun = true; - var data = element.data(NG_ANIMATE_STATE); - if(data) { - /* only structural animations wait for reflow before removing an - animation, but class-based animations don't. An example of this - failing would be when a parent HTML tag has a ng-class attribute - causing ALL directives below to skip animations during the digest */ - if(runner && runner.isClassBased) { - cleanup(element, className); - } else { - $$asyncCallback(function() { - var data = element.data(NG_ANIMATE_STATE) || {}; - if(localAnimationCount == data.index) { - cleanup(element, className, animationEvent); - } - }); - element.data(NG_ANIMATE_STATE, data); - } - } - fireDoneCallbackAsync(); - } - } - } - - function cancelChildAnimations(element) { - var node = extractElementNode(element); - if (node) { - var nodes = angular.isFunction(node.getElementsByClassName) ? - node.getElementsByClassName(NG_ANIMATE_CLASS_NAME) : - node.querySelectorAll('.' + NG_ANIMATE_CLASS_NAME); - forEach(nodes, function(element) { - element = angular.element(element); - var data = element.data(NG_ANIMATE_STATE); - if(data && data.active) { - forEach(data.active, function(runner) { - runner.cancel(); - }); - } - }); - } - } - - function cleanup(element, className) { - if(isMatchingElement(element, $rootElement)) { - if(!rootAnimateState.disabled) { - rootAnimateState.running = false; - rootAnimateState.structural = false; - } - } else if(className) { - var data = element.data(NG_ANIMATE_STATE) || {}; - - var removeAnimations = className === true; - if(!removeAnimations && data.active && data.active[className]) { - data.totalActive--; - delete data.active[className]; - } - - if(removeAnimations || !data.totalActive) { - element.removeClass(NG_ANIMATE_CLASS_NAME); - element.removeData(NG_ANIMATE_STATE); - } - } - } - - function animationsDisabled(element, parentElement) { - if (rootAnimateState.disabled) return true; - - if(isMatchingElement(element, $rootElement)) { - return rootAnimateState.disabled || rootAnimateState.running; - } - - do { - //the element did not reach the root element which means that it - //is not apart of the DOM. Therefore there is no reason to do - //any animations on it - if(parentElement.length === 0) break; - - var isRoot = isMatchingElement(parentElement, $rootElement); - var state = isRoot ? rootAnimateState : parentElement.data(NG_ANIMATE_STATE); - var result = state && (!!state.disabled || state.running || state.totalActive > 0); - if(isRoot || result) { - return result; - } - - if(isRoot) return true; - } - while(parentElement = parentElement.parent()); - - return true; - } - }]); - - $animateProvider.register('', ['$window', '$sniffer', '$timeout', '$$animateReflow', - function($window, $sniffer, $timeout, $$animateReflow) { - // 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 (window.ontransitionend === undefined && window.onwebkittransitionend !== undefined) { - CSS_PREFIX = '-webkit-'; - TRANSITION_PROP = 'WebkitTransition'; - TRANSITIONEND_EVENT = 'webkitTransitionEnd transitionend'; - } else { - TRANSITION_PROP = 'transition'; - TRANSITIONEND_EVENT = 'transitionend'; - } - - if (window.onanimationend === undefined && window.onwebkitanimationend !== undefined) { - 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 ANIMATION_ITERATION_COUNT_KEY = 'IterationCount'; - var NG_ANIMATE_PARENT_KEY = '$$ngAnimateKey'; - var NG_ANIMATE_CSS_DATA_KEY = '$$ngAnimateCSS3Data'; - var NG_ANIMATE_BLOCK_CLASS_NAME = 'ng-animate-block-transitions'; - var ELAPSED_TIME_MAX_DECIMAL_PLACES = 3; - var CLOSING_TIME_BUFFER = 1.5; - var ONE_SECOND = 1000; - - var lookupCache = {}; - var parentCounter = 0; - var animationReflowQueue = []; - var cancelAnimationReflow; - function afterReflow(element, callback) { - if(cancelAnimationReflow) { - cancelAnimationReflow(); - } - animationReflowQueue.push(callback); - cancelAnimationReflow = $$animateReflow(function() { - forEach(animationReflowQueue, function(fn) { - fn(); - }); - - animationReflowQueue = []; - cancelAnimationReflow = null; - lookupCache = {}; - }); - } - - var closingTimer = null; - var closingTimestamp = 0; - var animationElementQueue = []; - function animationCloseHandler(element, totalTime) { - var node = extractElementNode(element); - element = angular.element(node); - - //this item will be garbage collected by the closing - //animation timeout - animationElementQueue.push(element); - - //but it may not need to cancel out the existing timeout - //if the timestamp is less than the previous one - var futureTimestamp = Date.now() + totalTime; - if(futureTimestamp <= closingTimestamp) { - return; - } - - $timeout.cancel(closingTimer); - - closingTimestamp = futureTimestamp; - closingTimer = $timeout(function() { - closeAllAnimations(animationElementQueue); - animationElementQueue = []; - }, totalTime, false); - } - - function closeAllAnimations(elements) { - forEach(elements, function(element) { - var elementData = element.data(NG_ANIMATE_CSS_DATA_KEY); - if(elementData) { - (elementData.closeAnimationFn || noop)(); - } - }); - } - - function getElementAnimationDetails(element, cacheKey) { - var data = cacheKey ? lookupCache[cacheKey] : null; - if(!data) { - var transitionDuration = 0; - var transitionDelay = 0; - var animationDuration = 0; - var animationDelay = 0; - var transitionDelayStyle; - var animationDelayStyle; - var transitionDurationStyle; - var transitionPropertyStyle; - - //we want all the styles defined before and after - forEach(element, function(element) { - if (element.nodeType == ELEMENT_NODE) { - var elementStyles = $window.getComputedStyle(element) || {}; - - transitionDurationStyle = elementStyles[TRANSITION_PROP + DURATION_KEY]; - - transitionDuration = Math.max(parseMaxTime(transitionDurationStyle), transitionDuration); - - transitionPropertyStyle = elementStyles[TRANSITION_PROP + PROPERTY_KEY]; - - transitionDelayStyle = elementStyles[TRANSITION_PROP + DELAY_KEY]; - - transitionDelay = Math.max(parseMaxTime(transitionDelayStyle), transitionDelay); - - animationDelayStyle = elementStyles[ANIMATION_PROP + DELAY_KEY]; - - animationDelay = Math.max(parseMaxTime(animationDelayStyle), animationDelay); - - var aDuration = parseMaxTime(elementStyles[ANIMATION_PROP + DURATION_KEY]); - - if(aDuration > 0) { - aDuration *= parseInt(elementStyles[ANIMATION_PROP + ANIMATION_ITERATION_COUNT_KEY], 10) || 1; - } - - animationDuration = Math.max(aDuration, animationDuration); - } - }); - data = { - total : 0, - transitionPropertyStyle: transitionPropertyStyle, - transitionDurationStyle: transitionDurationStyle, - transitionDelayStyle: transitionDelayStyle, - transitionDelay: transitionDelay, - transitionDuration: transitionDuration, - animationDelayStyle: animationDelayStyle, - animationDelay: animationDelay, - animationDuration: animationDuration - }; - if(cacheKey) { - lookupCache[cacheKey] = data; - } - } - return data; - } - - function parseMaxTime(str) { - var maxValue = 0; - var values = angular.isString(str) ? - str.split(/\s*,\s*/) : - []; - forEach(values, function(value) { - maxValue = Math.max(parseFloat(value) || 0, maxValue); - }); - return maxValue; - } - - function getCacheKey(element) { - var parentElement = element.parent(); - var parentID = parentElement.data(NG_ANIMATE_PARENT_KEY); - if(!parentID) { - parentElement.data(NG_ANIMATE_PARENT_KEY, ++parentCounter); - parentID = parentCounter; - } - return parentID + '-' + extractElementNode(element).getAttribute('class'); - } - - function animateSetup(animationEvent, element, className, calculationDecorator) { - var cacheKey = getCacheKey(element); - var eventCacheKey = cacheKey + ' ' + className; - var itemIndex = lookupCache[eventCacheKey] ? ++lookupCache[eventCacheKey].total : 0; - - var stagger = {}; - if(itemIndex > 0) { - var staggerClassName = className + '-stagger'; - var staggerCacheKey = cacheKey + ' ' + staggerClassName; - var applyClasses = !lookupCache[staggerCacheKey]; - - applyClasses && element.addClass(staggerClassName); - - stagger = getElementAnimationDetails(element, staggerCacheKey); - - applyClasses && element.removeClass(staggerClassName); - } - - /* the animation itself may need to add/remove special CSS classes - * before calculating the anmation styles */ - calculationDecorator = calculationDecorator || - function(fn) { return fn(); }; - - element.addClass(className); - - var formerData = element.data(NG_ANIMATE_CSS_DATA_KEY) || {}; - - var timings = calculationDecorator(function() { - return getElementAnimationDetails(element, eventCacheKey); - }); - - var transitionDuration = timings.transitionDuration; - var animationDuration = timings.animationDuration; - if(transitionDuration === 0 && animationDuration === 0) { - element.removeClass(className); - return false; - } - - element.data(NG_ANIMATE_CSS_DATA_KEY, { - running : formerData.running || 0, - itemIndex : itemIndex, - stagger : stagger, - timings : timings, - closeAnimationFn : noop - }); - - //temporarily disable the transition so that the enter styles - //don't animate twice (this is here to avoid a bug in Chrome/FF). - var isCurrentlyAnimating = formerData.running > 0 || animationEvent == 'setClass'; - if(transitionDuration > 0) { - blockTransitions(element, className, isCurrentlyAnimating); - } - - //staggering keyframe animations work by adjusting the `animation-delay` CSS property - //on the given element, however, the delay value can only calculated after the reflow - //since by that time $animate knows how many elements are being animated. Therefore, - //until the reflow occurs the element needs to be blocked (where the keyframe animation - //is set to `none 0s`). This blocking mechanism should only be set for when a stagger - //animation is detected and when the element item index is greater than 0. - if(animationDuration > 0 && stagger.animationDelay > 0 && stagger.animationDuration === 0) { - blockKeyframeAnimations(element); - } - - return true; - } - - function isStructuralAnimation(className) { - return className == 'ng-enter' || className == 'ng-move' || className == 'ng-leave'; - } - - function blockTransitions(element, className, isAnimating) { - if(isStructuralAnimation(className) || !isAnimating) { - extractElementNode(element).style[TRANSITION_PROP + PROPERTY_KEY] = 'none'; - } else { - element.addClass(NG_ANIMATE_BLOCK_CLASS_NAME); - } - } - - function blockKeyframeAnimations(element) { - extractElementNode(element).style[ANIMATION_PROP] = 'none 0s'; - } - - function unblockTransitions(element, className) { - var prop = TRANSITION_PROP + PROPERTY_KEY; - var node = extractElementNode(element); - if(node.style[prop] && node.style[prop].length > 0) { - node.style[prop] = ''; - } - element.removeClass(NG_ANIMATE_BLOCK_CLASS_NAME); - } - - function unblockKeyframeAnimations(element) { - var prop = ANIMATION_PROP; - var node = extractElementNode(element); - if(node.style[prop] && node.style[prop].length > 0) { - node.style[prop] = ''; - } - } - - function animateRun(animationEvent, element, className, activeAnimationComplete) { - var node = extractElementNode(element); - var elementData = element.data(NG_ANIMATE_CSS_DATA_KEY); - if(node.getAttribute('class').indexOf(className) == -1 || !elementData) { - activeAnimationComplete(); - return; - } - - var activeClassName = ''; - forEach(className.split(' '), function(klass, i) { - activeClassName += (i > 0 ? ' ' : '') + klass + '-active'; - }); - - var stagger = elementData.stagger; - var timings = elementData.timings; - var itemIndex = elementData.itemIndex; - var maxDuration = Math.max(timings.transitionDuration, timings.animationDuration); - var maxDelay = Math.max(timings.transitionDelay, timings.animationDelay); - var maxDelayTime = maxDelay * ONE_SECOND; - - var startTime = Date.now(); - var css3AnimationEvents = ANIMATIONEND_EVENT + ' ' + TRANSITIONEND_EVENT; - - var style = '', appliedStyles = []; - if(timings.transitionDuration > 0) { - var propertyStyle = timings.transitionPropertyStyle; - if(propertyStyle.indexOf('all') == -1) { - style += CSS_PREFIX + 'transition-property: ' + propertyStyle + ';'; - style += CSS_PREFIX + 'transition-duration: ' + timings.transitionDurationStyle + ';'; - appliedStyles.push(CSS_PREFIX + 'transition-property'); - appliedStyles.push(CSS_PREFIX + 'transition-duration'); - } - } - - if(itemIndex > 0) { - if(stagger.transitionDelay > 0 && stagger.transitionDuration === 0) { - var delayStyle = timings.transitionDelayStyle; - style += CSS_PREFIX + 'transition-delay: ' + - prepareStaggerDelay(delayStyle, stagger.transitionDelay, itemIndex) + '; '; - appliedStyles.push(CSS_PREFIX + 'transition-delay'); - } - - if(stagger.animationDelay > 0 && stagger.animationDuration === 0) { - style += CSS_PREFIX + 'animation-delay: ' + - prepareStaggerDelay(timings.animationDelayStyle, stagger.animationDelay, itemIndex) + '; '; - appliedStyles.push(CSS_PREFIX + 'animation-delay'); - } - } - - if(appliedStyles.length > 0) { - //the element being animated may sometimes contain comment nodes in - //the jqLite object, so we're safe to use a single variable to house - //the styles since there is always only one element being animated - var oldStyle = node.getAttribute('style') || ''; - node.setAttribute('style', oldStyle + ' ' + style); - } - - element.on(css3AnimationEvents, onAnimationProgress); - element.addClass(activeClassName); - elementData.closeAnimationFn = function() { - onEnd(); - activeAnimationComplete(); - }; - - var staggerTime = itemIndex * (Math.max(stagger.animationDelay, stagger.transitionDelay) || 0); - var animationTime = (maxDelay + maxDuration) * CLOSING_TIME_BUFFER; - var totalTime = (staggerTime + animationTime) * ONE_SECOND; - - elementData.running++; - animationCloseHandler(element, totalTime); - return onEnd; - - // This will automatically be called by $animate so - // there is no need to attach this internally to the - // timeout done method. - function onEnd(cancelled) { - element.off(css3AnimationEvents, onAnimationProgress); - element.removeClass(activeClassName); - animateClose(element, className); - var node = extractElementNode(element); - for (var i in appliedStyles) { - node.style.removeProperty(appliedStyles[i]); - } - } - - function onAnimationProgress(event) { - event.stopPropagation(); - var ev = event.originalEvent || event; - var timeStamp = ev.$manualTimeStamp || ev.timeStamp || 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 animations sometimes close off early */ - if(Math.max(timeStamp - startTime, 0) >= maxDelayTime && elapsedTime >= maxDuration) { - activeAnimationComplete(); - } - } - } - - function prepareStaggerDelay(delayStyle, staggerDelay, index) { - var style = ''; - forEach(delayStyle.split(','), function(val, i) { - style += (i > 0 ? ',' : '') + - (index * staggerDelay + parseInt(val, 10)) + 's'; - }); - return style; - } - - function animateBefore(animationEvent, element, className, calculationDecorator) { - if(animateSetup(animationEvent, element, className, calculationDecorator)) { - return function(cancelled) { - cancelled && animateClose(element, className); - }; - } - } - - function animateAfter(animationEvent, element, className, afterAnimationComplete) { - if(element.data(NG_ANIMATE_CSS_DATA_KEY)) { - return animateRun(animationEvent, element, className, afterAnimationComplete); - } else { - animateClose(element, className); - afterAnimationComplete(); - } - } - - function animate(animationEvent, element, className, animationComplete) { - //If the animateSetup function doesn't bother returning a - //cancellation function then it means that there is no animation - //to perform at all - var preReflowCancellation = animateBefore(animationEvent, element, className); - if(!preReflowCancellation) { - animationComplete(); - return; - } - - //There are two cancellation functions: one is before the first - //reflow animation and the second is during the active state - //animation. The first function will take care of removing the - //data from the element which will not make the 2nd animation - //happen in the first place - var cancel = preReflowCancellation; - afterReflow(element, function() { - unblockTransitions(element, className); - unblockKeyframeAnimations(element); - //once the reflow is complete then we point cancel to - //the new cancellation function which will remove all of the - //animation properties from the active animation - cancel = animateAfter(animationEvent, element, className, animationComplete); - }); - - return function(cancelled) { - (cancel || noop)(cancelled); - }; - } - - function animateClose(element, className) { - element.removeClass(className); - var data = element.data(NG_ANIMATE_CSS_DATA_KEY); - if(data) { - if(data.running) { - data.running--; - } - if(!data.running || data.running === 0) { - element.removeData(NG_ANIMATE_CSS_DATA_KEY); - } - } - } - - return { - enter : function(element, animationCompleted) { - return animate('enter', element, 'ng-enter', animationCompleted); - }, - - leave : function(element, animationCompleted) { - return animate('leave', element, 'ng-leave', animationCompleted); - }, - - move : function(element, animationCompleted) { - return animate('move', element, 'ng-move', animationCompleted); - }, - - beforeSetClass : function(element, add, remove, animationCompleted) { - var className = suffixClasses(remove, '-remove') + ' ' + - suffixClasses(add, '-add'); - var cancellationMethod = animateBefore('setClass', element, className, function(fn) { - /* when classes are removed from an element then the transition style - * that is applied is the transition defined on the element without the - * CSS class being there. This is how CSS3 functions outside of ngAnimate. - * http://plnkr.co/edit/j8OzgTNxHTb4n3zLyjGW?p=preview */ - var klass = element.attr('class'); - element.removeClass(remove); - element.addClass(add); - var timings = fn(); - element.attr('class', klass); - return timings; - }); - - if(cancellationMethod) { - afterReflow(element, function() { - unblockTransitions(element, className); - unblockKeyframeAnimations(element); - animationCompleted(); - }); - return cancellationMethod; - } - animationCompleted(); - }, - - beforeAddClass : function(element, className, animationCompleted) { - var cancellationMethod = animateBefore('addClass', element, suffixClasses(className, '-add'), function(fn) { - - /* when a CSS class is added to an element then the transition style that - * is applied is the transition defined on the element when the CSS class - * is added at the time of the animation. This is how CSS3 functions - * outside of ngAnimate. */ - element.addClass(className); - var timings = fn(); - element.removeClass(className); - return timings; - }); - - if(cancellationMethod) { - afterReflow(element, function() { - unblockTransitions(element, className); - unblockKeyframeAnimations(element); - animationCompleted(); - }); - return cancellationMethod; - } - animationCompleted(); - }, - - setClass : function(element, add, remove, animationCompleted) { - remove = suffixClasses(remove, '-remove'); - add = suffixClasses(add, '-add'); - var className = remove + ' ' + add; - return animateAfter('setClass', element, className, animationCompleted); - }, - - addClass : function(element, className, animationCompleted) { - return animateAfter('addClass', element, suffixClasses(className, '-add'), animationCompleted); - }, - - beforeRemoveClass : function(element, className, animationCompleted) { - var cancellationMethod = animateBefore('removeClass', element, suffixClasses(className, '-remove'), function(fn) { - /* when classes are removed from an element then the transition style - * that is applied is the transition defined on the element without the - * CSS class being there. This is how CSS3 functions outside of ngAnimate. - * http://plnkr.co/edit/j8OzgTNxHTb4n3zLyjGW?p=preview */ - var klass = element.attr('class'); - element.removeClass(className); - var timings = fn(); - element.attr('class', klass); - return timings; - }); - - if(cancellationMethod) { - afterReflow(element, function() { - unblockTransitions(element, className); - unblockKeyframeAnimations(element); - animationCompleted(); - }); - return cancellationMethod; - } - animationCompleted(); - }, - - removeClass : function(element, className, animationCompleted) { - return animateAfter('removeClass', element, suffixClasses(className, '-remove'), animationCompleted); - } - }; - - function suffixClasses(classes, suffix) { - var className = ''; - classes = angular.isArray(classes) ? classes : classes.split(/\s+/); - forEach(classes, function(klass, i) { - if(klass && klass.length > 0) { - className += (i > 0 ? ' ' : '') + klass + suffix; - } - }); - return className; - } - }]); - }]); - - -})(window, window.angular); diff --git a/vendor/assets/components/angular-animate/angular-animate.min.js b/vendor/assets/components/angular-animate/angular-animate.min.js deleted file mode 100644 index 55971e54d0..0000000000 --- a/vendor/assets/components/angular-animate/angular-animate.min.js +++ /dev/null @@ -1,27 +0,0 @@ -/* - AngularJS v1.2.16 - (c) 2010-2014 Google, Inc. http://angularjs.org - License: MIT -*/ -(function(s,g,P){'use strict';g.module("ngAnimate",["ng"]).factory("$$animateReflow",["$$rAF","$document",function(g,s){return function(e){return g(function(){e()})}}]).config(["$provide","$animateProvider",function(ga,G){function e(e){for(var p=0;p=x&&b>=v&&f()}var l=e(b);a=b.data(n);if(-1!=l.getAttribute("class").indexOf(c)&&a){var r="";p(c.split(" "),function(a,b){r+=(0` to your `index.html`: - -```html - -``` - -## Documentation - -Documentation is available on the -[AngularJS docs site](http://docs.angularjs.org/guide/i18n). - -## License - -The MIT License - -Copyright (c) 2010-2012 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/vendor/assets/components/angular-i18n/angular-locale_af-na.js b/vendor/assets/components/angular-i18n/angular-locale_af-na.js deleted file mode 100644 index e40bd16695..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_af-na.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "vm.", - "nm." - ], - "DAY": [ - "Sondag", - "Maandag", - "Dinsdag", - "Woensdag", - "Donderdag", - "Vrydag", - "Saterdag" - ], - "MONTH": [ - "Januarie", - "Februarie", - "Maart", - "April", - "Mei", - "Junie", - "Julie", - "Augustus", - "September", - "Oktober", - "November", - "Desember" - ], - "SHORTDAY": [ - "So", - "Ma", - "Di", - "Wo", - "Do", - "Vr", - "Sa" - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "Mar", - "Apr", - "Mei", - "Jun", - "Jul", - "Aug", - "Sep", - "Okt", - "Nov", - "Des" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "yyyy-MM-dd HH:mm", - "shortDate": "yyyy-MM-dd", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "R", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "af-na", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_af-za.js b/vendor/assets/components/angular-i18n/angular-locale_af-za.js deleted file mode 100644 index dddd6cae0d..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_af-za.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "vm.", - "nm." - ], - "DAY": [ - "Sondag", - "Maandag", - "Dinsdag", - "Woensdag", - "Donderdag", - "Vrydag", - "Saterdag" - ], - "MONTH": [ - "Januarie", - "Februarie", - "Maart", - "April", - "Mei", - "Junie", - "Julie", - "Augustus", - "September", - "Oktober", - "November", - "Desember" - ], - "SHORTDAY": [ - "So", - "Ma", - "Di", - "Wo", - "Do", - "Vr", - "Sa" - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "Mar", - "Apr", - "Mei", - "Jun", - "Jul", - "Aug", - "Sep", - "Okt", - "Nov", - "Des" - ], - "fullDate": "EEEE dd MMMM y", - "longDate": "dd MMMM y", - "medium": "dd MMM y h:mm:ss a", - "mediumDate": "dd MMM y", - "mediumTime": "h:mm:ss a", - "short": "yyyy-MM-dd h:mm a", - "shortDate": "yyyy-MM-dd", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "R", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "af-za", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_af.js b/vendor/assets/components/angular-i18n/angular-locale_af.js deleted file mode 100644 index aacbefd8d3..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_af.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "vm.", - "nm." - ], - "DAY": [ - "Sondag", - "Maandag", - "Dinsdag", - "Woensdag", - "Donderdag", - "Vrydag", - "Saterdag" - ], - "MONTH": [ - "Januarie", - "Februarie", - "Maart", - "April", - "Mei", - "Junie", - "Julie", - "Augustus", - "September", - "Oktober", - "November", - "Desember" - ], - "SHORTDAY": [ - "So", - "Ma", - "Di", - "Wo", - "Do", - "Vr", - "Sa" - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "Mar", - "Apr", - "Mei", - "Jun", - "Jul", - "Aug", - "Sep", - "Okt", - "Nov", - "Des" - ], - "fullDate": "EEEE dd MMMM y", - "longDate": "dd MMMM y", - "medium": "dd MMM y h:mm:ss a", - "mediumDate": "dd MMM y", - "mediumTime": "h:mm:ss a", - "short": "yyyy-MM-dd h:mm a", - "shortDate": "yyyy-MM-dd", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "R", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "af", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_am-et.js b/vendor/assets/components/angular-i18n/angular-locale_am-et.js deleted file mode 100644 index decae2de51..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_am-et.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u1321\u12cb\u1275", - "\u12a8\u1233\u12d3\u1275" - ], - "DAY": [ - "\u12a5\u1211\u12f5", - "\u1230\u129e", - "\u121b\u12ad\u1230\u129e", - "\u1228\u1261\u12d5", - "\u1210\u1219\u1235", - "\u12d3\u122d\u1265", - "\u1245\u12f3\u121c" - ], - "MONTH": [ - "\u1303\u1295\u12e9\u12c8\u122a", - "\u134c\u1265\u1229\u12c8\u122a", - "\u121b\u122d\u127d", - "\u12a4\u1355\u1228\u120d", - "\u121c\u12ed", - "\u1301\u1295", - "\u1301\u120b\u12ed", - "\u12a6\u1308\u1235\u1275", - "\u1234\u1355\u1274\u121d\u1260\u122d", - "\u12a6\u12ad\u1270\u12cd\u1260\u122d", - "\u1296\u126c\u121d\u1260\u122d", - "\u12f2\u1234\u121d\u1260\u122d" - ], - "SHORTDAY": [ - "\u12a5\u1211\u12f5", - "\u1230\u129e", - "\u121b\u12ad\u1230", - "\u1228\u1261\u12d5", - "\u1210\u1219\u1235", - "\u12d3\u122d\u1265", - "\u1245\u12f3\u121c" - ], - "SHORTMONTH": [ - "\u1303\u1295\u12e9", - "\u134c\u1265\u1229", - "\u121b\u122d\u127d", - "\u12a4\u1355\u1228", - "\u121c\u12ed", - "\u1301\u1295", - "\u1301\u120b\u12ed", - "\u12a6\u1308\u1235", - "\u1234\u1355\u1274", - "\u12a6\u12ad\u1270", - "\u1296\u126c\u121d", - "\u12f2\u1234\u121d" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y h:mm:ss a", - "mediumDate": "d MMM y", - "mediumTime": "h:mm:ss a", - "short": "dd/MM/yyyy h:mm a", - "shortDate": "dd/MM/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "Birr", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "am-et", - "pluralCat": function (n) { if (n == 0 || n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_am.js b/vendor/assets/components/angular-i18n/angular-locale_am.js deleted file mode 100644 index 6a7ad5f316..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_am.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u1321\u12cb\u1275", - "\u12a8\u1233\u12d3\u1275" - ], - "DAY": [ - "\u12a5\u1211\u12f5", - "\u1230\u129e", - "\u121b\u12ad\u1230\u129e", - "\u1228\u1261\u12d5", - "\u1210\u1219\u1235", - "\u12d3\u122d\u1265", - "\u1245\u12f3\u121c" - ], - "MONTH": [ - "\u1303\u1295\u12e9\u12c8\u122a", - "\u134c\u1265\u1229\u12c8\u122a", - "\u121b\u122d\u127d", - "\u12a4\u1355\u1228\u120d", - "\u121c\u12ed", - "\u1301\u1295", - "\u1301\u120b\u12ed", - "\u12a6\u1308\u1235\u1275", - "\u1234\u1355\u1274\u121d\u1260\u122d", - "\u12a6\u12ad\u1270\u12cd\u1260\u122d", - "\u1296\u126c\u121d\u1260\u122d", - "\u12f2\u1234\u121d\u1260\u122d" - ], - "SHORTDAY": [ - "\u12a5\u1211\u12f5", - "\u1230\u129e", - "\u121b\u12ad\u1230", - "\u1228\u1261\u12d5", - "\u1210\u1219\u1235", - "\u12d3\u122d\u1265", - "\u1245\u12f3\u121c" - ], - "SHORTMONTH": [ - "\u1303\u1295\u12e9", - "\u134c\u1265\u1229", - "\u121b\u122d\u127d", - "\u12a4\u1355\u1228", - "\u121c\u12ed", - "\u1301\u1295", - "\u1301\u120b\u12ed", - "\u12a6\u1308\u1235", - "\u1234\u1355\u1274", - "\u12a6\u12ad\u1270", - "\u1296\u126c\u121d", - "\u12f2\u1234\u121d" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y h:mm:ss a", - "mediumDate": "d MMM y", - "mediumTime": "h:mm:ss a", - "short": "dd/MM/yyyy h:mm a", - "shortDate": "dd/MM/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "Birr", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "am", - "pluralCat": function (n) { if (n == 0 || n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar-001.js b/vendor/assets/components/angular-i18n/angular-locale_ar-001.js deleted file mode 100644 index 9ed1dae135..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar-001.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "dd\u200f/MM\u200f/yyyy h:mm:ss a", - "mediumDate": "dd\u200f/MM\u200f/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d\u200f/M\u200f/yyyy h:mm a", - "shortDate": "d\u200f/M\u200f/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar-001", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar-ae.js b/vendor/assets/components/angular-i18n/angular-locale_ar-ae.js deleted file mode 100644 index 2440d71e4f..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar-ae.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "dd\u200f/MM\u200f/yyyy h:mm:ss a", - "mediumDate": "dd\u200f/MM\u200f/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d\u200f/M\u200f/yyyy h:mm a", - "shortDate": "d\u200f/M\u200f/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar-ae", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar-bh.js b/vendor/assets/components/angular-i18n/angular-locale_ar-bh.js deleted file mode 100644 index bb53289415..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar-bh.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "dd\u200f/MM\u200f/yyyy h:mm:ss a", - "mediumDate": "dd\u200f/MM\u200f/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d\u200f/M\u200f/yyyy h:mm a", - "shortDate": "d\u200f/M\u200f/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar-bh", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar-dz.js b/vendor/assets/components/angular-i18n/angular-locale_ar-dz.js deleted file mode 100644 index ab02398e82..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar-dz.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "yyyy/MM/dd h:mm:ss a", - "mediumDate": "yyyy/MM/dd", - "mediumTime": "h:mm:ss a", - "short": "yyyy/M/d h:mm a", - "shortDate": "yyyy/M/d", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar-dz", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar-eg.js b/vendor/assets/components/angular-i18n/angular-locale_ar-eg.js deleted file mode 100644 index 1a45444f11..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar-eg.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "dd\u200f/MM\u200f/yyyy h:mm:ss a", - "mediumDate": "dd\u200f/MM\u200f/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d\u200f/M\u200f/yyyy h:mm a", - "shortDate": "d\u200f/M\u200f/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar-eg", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar-iq.js b/vendor/assets/components/angular-i18n/angular-locale_ar-iq.js deleted file mode 100644 index a141d1477b..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar-iq.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "dd\u200f/MM\u200f/yyyy h:mm:ss a", - "mediumDate": "dd\u200f/MM\u200f/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d\u200f/M\u200f/yyyy h:mm a", - "shortDate": "d\u200f/M\u200f/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar-iq", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar-jo.js b/vendor/assets/components/angular-i18n/angular-locale_ar-jo.js deleted file mode 100644 index 67e5d70b29..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar-jo.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a", - "\u0634\u0628\u0627\u0637", - "\u0622\u0630\u0627\u0631", - "\u0646\u064a\u0633\u0627\u0646", - "\u0623\u064a\u0627\u0631", - "\u062d\u0632\u064a\u0631\u0627\u0646", - "\u062a\u0645\u0648\u0632", - "\u0622\u0628", - "\u0623\u064a\u0644\u0648\u0644", - "\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u0623\u0648\u0644", - "\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a", - "\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0644" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a", - "\u0634\u0628\u0627\u0637", - "\u0622\u0630\u0627\u0631", - "\u0646\u064a\u0633\u0627\u0646", - "\u0623\u064a\u0627\u0631", - "\u062d\u0632\u064a\u0631\u0627\u0646", - "\u062a\u0645\u0648\u0632", - "\u0622\u0628", - "\u0623\u064a\u0644\u0648\u0644", - "\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u0623\u0648\u0644", - "\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a", - "\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0644" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "dd\u200f/MM\u200f/yyyy h:mm:ss a", - "mediumDate": "dd\u200f/MM\u200f/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d\u200f/M\u200f/yyyy h:mm a", - "shortDate": "d\u200f/M\u200f/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar-jo", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar-kw.js b/vendor/assets/components/angular-i18n/angular-locale_ar-kw.js deleted file mode 100644 index 7507c5ac57..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar-kw.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "dd\u200f/MM\u200f/yyyy h:mm:ss a", - "mediumDate": "dd\u200f/MM\u200f/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d\u200f/M\u200f/yyyy h:mm a", - "shortDate": "d\u200f/M\u200f/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar-kw", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar-lb.js b/vendor/assets/components/angular-i18n/angular-locale_ar-lb.js deleted file mode 100644 index 8c867b632d..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar-lb.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a", - "\u0634\u0628\u0627\u0637", - "\u0622\u0630\u0627\u0631", - "\u0646\u064a\u0633\u0627\u0646", - "\u0623\u064a\u0627\u0631", - "\u062d\u0632\u064a\u0631\u0627\u0646", - "\u062a\u0645\u0648\u0632", - "\u0622\u0628", - "\u0623\u064a\u0644\u0648\u0644", - "\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u0623\u0648\u0644", - "\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a", - "\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0644" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a", - "\u0634\u0628\u0627\u0637", - "\u0622\u0630\u0627\u0631", - "\u0646\u064a\u0633\u0627\u0646", - "\u0623\u064a\u0627\u0631", - "\u062d\u0632\u064a\u0631\u0627\u0646", - "\u062a\u0645\u0648\u0632", - "\u0622\u0628", - "\u0623\u064a\u0644\u0648\u0644", - "\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u0623\u0648\u0644", - "\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a", - "\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0644" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "dd\u200f/MM\u200f/yyyy h:mm:ss a", - "mediumDate": "dd\u200f/MM\u200f/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d\u200f/M\u200f/yyyy h:mm a", - "shortDate": "d\u200f/M\u200f/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar-lb", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar-ly.js b/vendor/assets/components/angular-i18n/angular-locale_ar-ly.js deleted file mode 100644 index 4b59d399e3..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar-ly.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "dd\u200f/MM\u200f/yyyy h:mm:ss a", - "mediumDate": "dd\u200f/MM\u200f/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d\u200f/M\u200f/yyyy h:mm a", - "shortDate": "d\u200f/M\u200f/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar-ly", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar-ma.js b/vendor/assets/components/angular-i18n/angular-locale_ar-ma.js deleted file mode 100644 index 44fcfccd0d..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar-ma.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "yyyy/MM/dd h:mm:ss a", - "mediumDate": "yyyy/MM/dd", - "mediumTime": "h:mm:ss a", - "short": "yyyy/M/d h:mm a", - "shortDate": "yyyy/M/d", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar-ma", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar-om.js b/vendor/assets/components/angular-i18n/angular-locale_ar-om.js deleted file mode 100644 index 822aede1ab..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar-om.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "dd\u200f/MM\u200f/yyyy h:mm:ss a", - "mediumDate": "dd\u200f/MM\u200f/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d\u200f/M\u200f/yyyy h:mm a", - "shortDate": "d\u200f/M\u200f/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar-om", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar-qa.js b/vendor/assets/components/angular-i18n/angular-locale_ar-qa.js deleted file mode 100644 index f7dfd65edf..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar-qa.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "dd\u200f/MM\u200f/yyyy h:mm:ss a", - "mediumDate": "dd\u200f/MM\u200f/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d\u200f/M\u200f/yyyy h:mm a", - "shortDate": "d\u200f/M\u200f/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar-qa", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar-sa.js b/vendor/assets/components/angular-i18n/angular-locale_ar-sa.js deleted file mode 100644 index 8ee44d4253..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar-sa.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "dd\u200f/MM\u200f/yyyy h:mm:ss a", - "mediumDate": "dd\u200f/MM\u200f/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d\u200f/M\u200f/yyyy h:mm a", - "shortDate": "d\u200f/M\u200f/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar-sa", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar-sd.js b/vendor/assets/components/angular-i18n/angular-locale_ar-sd.js deleted file mode 100644 index 0141e0577a..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar-sd.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "dd\u200f/MM\u200f/yyyy h:mm:ss a", - "mediumDate": "dd\u200f/MM\u200f/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d\u200f/M\u200f/yyyy h:mm a", - "shortDate": "d\u200f/M\u200f/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar-sd", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar-sy.js b/vendor/assets/components/angular-i18n/angular-locale_ar-sy.js deleted file mode 100644 index cb324e8724..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar-sy.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a", - "\u0634\u0628\u0627\u0637", - "\u0622\u0630\u0627\u0631", - "\u0646\u064a\u0633\u0627\u0646", - "\u0623\u064a\u0627\u0631", - "\u062d\u0632\u064a\u0631\u0627\u0646", - "\u062a\u0645\u0648\u0632", - "\u0622\u0628", - "\u0623\u064a\u0644\u0648\u0644", - "\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u0623\u0648\u0644", - "\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a", - "\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0644" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a", - "\u0634\u0628\u0627\u0637", - "\u0622\u0630\u0627\u0631", - "\u0646\u064a\u0633\u0627\u0646", - "\u0623\u064a\u0627\u0631", - "\u062d\u0632\u064a\u0631\u0627\u0646", - "\u062a\u0645\u0648\u0632", - "\u0622\u0628", - "\u0623\u064a\u0644\u0648\u0644", - "\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u0623\u0648\u0644", - "\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a", - "\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0644" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "dd\u200f/MM\u200f/yyyy h:mm:ss a", - "mediumDate": "dd\u200f/MM\u200f/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d\u200f/M\u200f/yyyy h:mm a", - "shortDate": "d\u200f/M\u200f/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar-sy", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar-tn.js b/vendor/assets/components/angular-i18n/angular-locale_ar-tn.js deleted file mode 100644 index a78f0de67b..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar-tn.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "yyyy/MM/dd h:mm:ss a", - "mediumDate": "yyyy/MM/dd", - "mediumTime": "h:mm:ss a", - "short": "yyyy/M/d h:mm a", - "shortDate": "yyyy/M/d", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar-tn", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar-ye.js b/vendor/assets/components/angular-i18n/angular-locale_ar-ye.js deleted file mode 100644 index 6b28d2ff79..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar-ye.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "dd\u200f/MM\u200f/yyyy h:mm:ss a", - "mediumDate": "dd\u200f/MM\u200f/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d\u200f/M\u200f/yyyy h:mm a", - "shortDate": "d\u200f/M\u200f/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar-ye", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ar.js b/vendor/assets/components/angular-i18n/angular-locale_ar.js deleted file mode 100644 index 872194e783..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ar.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0635", - "\u0645" - ], - "DAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "MONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u0627\u0644\u0623\u062d\u062f", - "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", - "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", - "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", - "\u0627\u0644\u062e\u0645\u064a\u0633", - "\u0627\u0644\u062c\u0645\u0639\u0629", - "\u0627\u0644\u0633\u0628\u062a" - ], - "SHORTMONTH": [ - "\u064a\u0646\u0627\u064a\u0631", - "\u0641\u0628\u0631\u0627\u064a\u0631", - "\u0645\u0627\u0631\u0633", - "\u0623\u0628\u0631\u064a\u0644", - "\u0645\u0627\u064a\u0648", - "\u064a\u0648\u0646\u064a\u0648", - "\u064a\u0648\u0644\u064a\u0648", - "\u0623\u063a\u0633\u0637\u0633", - "\u0633\u0628\u062a\u0645\u0628\u0631", - "\u0623\u0643\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0641\u0645\u0628\u0631", - "\u062f\u064a\u0633\u0645\u0628\u0631" - ], - "fullDate": "EEEE\u060c d MMMM\u060c y", - "longDate": "d MMMM\u060c y", - "medium": "dd\u200f/MM\u200f/yyyy h:mm:ss a", - "mediumDate": "dd\u200f/MM\u200f/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d\u200f/M\u200f/yyyy h:mm a", - "shortDate": "d\u200f/M\u200f/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "", - "negSuf": "-", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ar", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n == (n | 0) && n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_bg-bg.js b/vendor/assets/components/angular-i18n/angular-locale_bg-bg.js deleted file mode 100644 index c88bb88440..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_bg-bg.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u043f\u0440. \u043e\u0431.", - "\u0441\u043b. \u043e\u0431." - ], - "DAY": [ - "\u043d\u0435\u0434\u0435\u043b\u044f", - "\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a", - "\u0432\u0442\u043e\u0440\u043d\u0438\u043a", - "\u0441\u0440\u044f\u0434\u0430", - "\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a", - "\u043f\u0435\u0442\u044a\u043a", - "\u0441\u044a\u0431\u043e\u0442\u0430" - ], - "MONTH": [ - "\u044f\u043d\u0443\u0430\u0440\u0438", - "\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438", - "\u043c\u0430\u0440\u0442", - "\u0430\u043f\u0440\u0438\u043b", - "\u043c\u0430\u0439", - "\u044e\u043d\u0438", - "\u044e\u043b\u0438", - "\u0430\u0432\u0433\u0443\u0441\u0442", - "\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438", - "\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438", - "\u043d\u043e\u0435\u043c\u0432\u0440\u0438", - "\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438" - ], - "SHORTDAY": [ - "\u043d\u0434", - "\u043f\u043d", - "\u0432\u0442", - "\u0441\u0440", - "\u0447\u0442", - "\u043f\u0442", - "\u0441\u0431" - ], - "SHORTMONTH": [ - "\u044f\u043d.", - "\u0444\u0435\u0432\u0440.", - "\u043c\u0430\u0440\u0442", - "\u0430\u043f\u0440.", - "\u043c\u0430\u0439", - "\u044e\u043d\u0438", - "\u044e\u043b\u0438", - "\u0430\u0432\u0433.", - "\u0441\u0435\u043f\u0442.", - "\u043e\u043a\u0442.", - "\u043d\u043e\u0435\u043c.", - "\u0434\u0435\u043a." - ], - "fullDate": "dd MMMM y, EEEE", - "longDate": "dd MMMM y", - "medium": "dd.MM.yyyy HH:mm:ss", - "mediumDate": "dd.MM.yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yy HH:mm", - "shortDate": "dd.MM.yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "lev", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "bg-bg", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_bg.js b/vendor/assets/components/angular-i18n/angular-locale_bg.js deleted file mode 100644 index db0865b0a5..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_bg.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u043f\u0440. \u043e\u0431.", - "\u0441\u043b. \u043e\u0431." - ], - "DAY": [ - "\u043d\u0435\u0434\u0435\u043b\u044f", - "\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a", - "\u0432\u0442\u043e\u0440\u043d\u0438\u043a", - "\u0441\u0440\u044f\u0434\u0430", - "\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a", - "\u043f\u0435\u0442\u044a\u043a", - "\u0441\u044a\u0431\u043e\u0442\u0430" - ], - "MONTH": [ - "\u044f\u043d\u0443\u0430\u0440\u0438", - "\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438", - "\u043c\u0430\u0440\u0442", - "\u0430\u043f\u0440\u0438\u043b", - "\u043c\u0430\u0439", - "\u044e\u043d\u0438", - "\u044e\u043b\u0438", - "\u0430\u0432\u0433\u0443\u0441\u0442", - "\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438", - "\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438", - "\u043d\u043e\u0435\u043c\u0432\u0440\u0438", - "\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438" - ], - "SHORTDAY": [ - "\u043d\u0434", - "\u043f\u043d", - "\u0432\u0442", - "\u0441\u0440", - "\u0447\u0442", - "\u043f\u0442", - "\u0441\u0431" - ], - "SHORTMONTH": [ - "\u044f\u043d.", - "\u0444\u0435\u0432\u0440.", - "\u043c\u0430\u0440\u0442", - "\u0430\u043f\u0440.", - "\u043c\u0430\u0439", - "\u044e\u043d\u0438", - "\u044e\u043b\u0438", - "\u0430\u0432\u0433.", - "\u0441\u0435\u043f\u0442.", - "\u043e\u043a\u0442.", - "\u043d\u043e\u0435\u043c.", - "\u0434\u0435\u043a." - ], - "fullDate": "dd MMMM y, EEEE", - "longDate": "dd MMMM y", - "medium": "dd.MM.yyyy HH:mm:ss", - "mediumDate": "dd.MM.yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yy HH:mm", - "shortDate": "dd.MM.yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "lev", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "bg", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_bn-bd.js b/vendor/assets/components/angular-i18n/angular-locale_bn-bd.js deleted file mode 100644 index 980495cee3..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_bn-bd.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u09b0\u09ac\u09bf\u09ac\u09be\u09b0", - "\u09b8\u09cb\u09ae\u09ac\u09be\u09b0", - "\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0", - "\u09ac\u09c1\u09a7\u09ac\u09be\u09b0", - "\u09ac\u09c3\u09b9\u09b7\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0", - "\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0", - "\u09b6\u09a8\u09bf\u09ac\u09be\u09b0" - ], - "MONTH": [ - "\u099c\u09be\u09a8\u09c1\u09af\u09bc\u09be\u09b0\u09c0", - "\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09af\u09bc\u09be\u09b0\u09c0", - "\u09ae\u09be\u09b0\u09cd\u099a", - "\u098f\u09aa\u09cd\u09b0\u09bf\u09b2", - "\u09ae\u09c7", - "\u099c\u09c1\u09a8", - "\u099c\u09c1\u09b2\u09be\u0987", - "\u0986\u0997\u09b8\u09cd\u099f", - "\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0", - "\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0", - "\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0", - "\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0" - ], - "SHORTDAY": [ - "\u09b0\u09ac\u09bf", - "\u09b8\u09cb\u09ae", - "\u09ae\u0999\u09cd\u0997\u09b2", - "\u09ac\u09c1\u09a7", - "\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf", - "\u09b6\u09c1\u0995\u09cd\u09b0", - "\u09b6\u09a8\u09bf" - ], - "SHORTMONTH": [ - "\u099c\u09be\u09a8\u09c1\u09af\u09bc\u09be\u09b0\u09c0", - "\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09af\u09bc\u09be\u09b0\u09c0", - "\u09ae\u09be\u09b0\u09cd\u099a", - "\u098f\u09aa\u09cd\u09b0\u09bf\u09b2", - "\u09ae\u09c7", - "\u099c\u09c1\u09a8", - "\u099c\u09c1\u09b2\u09be\u0987", - "\u0986\u0997\u09b8\u09cd\u099f", - "\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0", - "\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0", - "\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0", - "\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0" - ], - "fullDate": "EEEE, d MMMM, y", - "longDate": "d MMMM, y", - "medium": "d MMM, y h:mm:ss a", - "mediumDate": "d MMM, y", - "mediumTime": "h:mm:ss a", - "short": "d/M/yy h:mm a", - "shortDate": "d/M/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u09f3", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a4)", - "posPre": "", - "posSuf": "\u00a4" - } - ] - }, - "id": "bn-bd", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_bn-in.js b/vendor/assets/components/angular-i18n/angular-locale_bn-in.js deleted file mode 100644 index 0b41428655..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_bn-in.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u09b0\u09ac\u09bf\u09ac\u09be\u09b0", - "\u09b8\u09cb\u09ae\u09ac\u09be\u09b0", - "\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0", - "\u09ac\u09c1\u09a7\u09ac\u09be\u09b0", - "\u09ac\u09c3\u09b9\u09b7\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0", - "\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0", - "\u09b6\u09a8\u09bf\u09ac\u09be\u09b0" - ], - "MONTH": [ - "\u099c\u09be\u09a8\u09c1\u09af\u09bc\u09be\u09b0\u09c0", - "\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09af\u09bc\u09be\u09b0\u09c0", - "\u09ae\u09be\u09b0\u09cd\u099a", - "\u098f\u09aa\u09cd\u09b0\u09bf\u09b2", - "\u09ae\u09c7", - "\u099c\u09c1\u09a8", - "\u099c\u09c1\u09b2\u09be\u0987", - "\u0986\u0997\u09b8\u09cd\u099f", - "\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0", - "\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0", - "\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0", - "\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0" - ], - "SHORTDAY": [ - "\u09b0\u09ac\u09bf", - "\u09b8\u09cb\u09ae", - "\u09ae\u0999\u09cd\u0997\u09b2", - "\u09ac\u09c1\u09a7", - "\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf", - "\u09b6\u09c1\u0995\u09cd\u09b0", - "\u09b6\u09a8\u09bf" - ], - "SHORTMONTH": [ - "\u099c\u09be\u09a8\u09c1\u09af\u09bc\u09be\u09b0\u09c0", - "\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09af\u09bc\u09be\u09b0\u09c0", - "\u09ae\u09be\u09b0\u09cd\u099a", - "\u098f\u09aa\u09cd\u09b0\u09bf\u09b2", - "\u09ae\u09c7", - "\u099c\u09c1\u09a8", - "\u099c\u09c1\u09b2\u09be\u0987", - "\u0986\u0997\u09b8\u09cd\u099f", - "\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0", - "\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0", - "\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0", - "\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0" - ], - "fullDate": "EEEE, d MMMM, y", - "longDate": "d MMMM, y", - "medium": "d MMM, y h:mm:ss a", - "mediumDate": "d MMM, y", - "mediumTime": "h:mm:ss a", - "short": "d/M/yy h:mm a", - "shortDate": "d/M/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u09f3", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a4)", - "posPre": "", - "posSuf": "\u00a4" - } - ] - }, - "id": "bn-in", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_bn.js b/vendor/assets/components/angular-i18n/angular-locale_bn.js deleted file mode 100644 index 5cc14cc6f3..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_bn.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u09b0\u09ac\u09bf\u09ac\u09be\u09b0", - "\u09b8\u09cb\u09ae\u09ac\u09be\u09b0", - "\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0", - "\u09ac\u09c1\u09a7\u09ac\u09be\u09b0", - "\u09ac\u09c3\u09b9\u09b7\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0", - "\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0", - "\u09b6\u09a8\u09bf\u09ac\u09be\u09b0" - ], - "MONTH": [ - "\u099c\u09be\u09a8\u09c1\u09af\u09bc\u09be\u09b0\u09c0", - "\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09af\u09bc\u09be\u09b0\u09c0", - "\u09ae\u09be\u09b0\u09cd\u099a", - "\u098f\u09aa\u09cd\u09b0\u09bf\u09b2", - "\u09ae\u09c7", - "\u099c\u09c1\u09a8", - "\u099c\u09c1\u09b2\u09be\u0987", - "\u0986\u0997\u09b8\u09cd\u099f", - "\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0", - "\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0", - "\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0", - "\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0" - ], - "SHORTDAY": [ - "\u09b0\u09ac\u09bf", - "\u09b8\u09cb\u09ae", - "\u09ae\u0999\u09cd\u0997\u09b2", - "\u09ac\u09c1\u09a7", - "\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf", - "\u09b6\u09c1\u0995\u09cd\u09b0", - "\u09b6\u09a8\u09bf" - ], - "SHORTMONTH": [ - "\u099c\u09be\u09a8\u09c1\u09af\u09bc\u09be\u09b0\u09c0", - "\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09af\u09bc\u09be\u09b0\u09c0", - "\u09ae\u09be\u09b0\u09cd\u099a", - "\u098f\u09aa\u09cd\u09b0\u09bf\u09b2", - "\u09ae\u09c7", - "\u099c\u09c1\u09a8", - "\u099c\u09c1\u09b2\u09be\u0987", - "\u0986\u0997\u09b8\u09cd\u099f", - "\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0", - "\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0", - "\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0", - "\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0" - ], - "fullDate": "EEEE, d MMMM, y", - "longDate": "d MMMM, y", - "medium": "d MMM, y h:mm:ss a", - "mediumDate": "d MMM, y", - "mediumTime": "h:mm:ss a", - "short": "d/M/yy h:mm a", - "shortDate": "d/M/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u09f3", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a4)", - "posPre": "", - "posSuf": "\u00a4" - } - ] - }, - "id": "bn", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ca-ad.js b/vendor/assets/components/angular-i18n/angular-locale_ca-ad.js deleted file mode 100644 index a7f1e6eafa..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ca-ad.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "diumenge", - "dilluns", - "dimarts", - "dimecres", - "dijous", - "divendres", - "dissabte" - ], - "MONTH": [ - "de gener", - "de febrer", - "de mar\u00e7", - "d\u2019abril", - "de maig", - "de juny", - "de juliol", - "d\u2019agost", - "de setembre", - "d\u2019octubre", - "de novembre", - "de desembre" - ], - "SHORTDAY": [ - "dg.", - "dl.", - "dt.", - "dc.", - "dj.", - "dv.", - "ds." - ], - "SHORTMONTH": [ - "de gen.", - "de febr.", - "de mar\u00e7", - "d\u2019abr.", - "de maig", - "de juny", - "de jul.", - "d\u2019ag.", - "de set.", - "d\u2019oct.", - "de nov.", - "de des." - ], - "fullDate": "EEEE d MMMM 'de' y", - "longDate": "d MMMM 'de' y", - "medium": "dd/MM/yyyy H:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "H:mm:ss", - "short": "dd/MM/yy H:mm", - "shortDate": "dd/MM/yy", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "ca-ad", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ca-es.js b/vendor/assets/components/angular-i18n/angular-locale_ca-es.js deleted file mode 100644 index b589a21db9..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ca-es.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "diumenge", - "dilluns", - "dimarts", - "dimecres", - "dijous", - "divendres", - "dissabte" - ], - "MONTH": [ - "de gener", - "de febrer", - "de mar\u00e7", - "d\u2019abril", - "de maig", - "de juny", - "de juliol", - "d\u2019agost", - "de setembre", - "d\u2019octubre", - "de novembre", - "de desembre" - ], - "SHORTDAY": [ - "dg.", - "dl.", - "dt.", - "dc.", - "dj.", - "dv.", - "ds." - ], - "SHORTMONTH": [ - "de gen.", - "de febr.", - "de mar\u00e7", - "d\u2019abr.", - "de maig", - "de juny", - "de jul.", - "d\u2019ag.", - "de set.", - "d\u2019oct.", - "de nov.", - "de des." - ], - "fullDate": "EEEE d MMMM 'de' y", - "longDate": "d MMMM 'de' y", - "medium": "dd/MM/yyyy H:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "H:mm:ss", - "short": "dd/MM/yy H:mm", - "shortDate": "dd/MM/yy", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "ca-es", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ca.js b/vendor/assets/components/angular-i18n/angular-locale_ca.js deleted file mode 100644 index 3bced031a1..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ca.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "diumenge", - "dilluns", - "dimarts", - "dimecres", - "dijous", - "divendres", - "dissabte" - ], - "MONTH": [ - "de gener", - "de febrer", - "de mar\u00e7", - "d\u2019abril", - "de maig", - "de juny", - "de juliol", - "d\u2019agost", - "de setembre", - "d\u2019octubre", - "de novembre", - "de desembre" - ], - "SHORTDAY": [ - "dg.", - "dl.", - "dt.", - "dc.", - "dj.", - "dv.", - "ds." - ], - "SHORTMONTH": [ - "de gen.", - "de febr.", - "de mar\u00e7", - "d\u2019abr.", - "de maig", - "de juny", - "de jul.", - "d\u2019ag.", - "de set.", - "d\u2019oct.", - "de nov.", - "de des." - ], - "fullDate": "EEEE d MMMM 'de' y", - "longDate": "d MMMM 'de' y", - "medium": "dd/MM/yyyy H:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "H:mm:ss", - "short": "dd/MM/yy H:mm", - "shortDate": "dd/MM/yy", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "ca", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_cs-cz.js b/vendor/assets/components/angular-i18n/angular-locale_cs-cz.js deleted file mode 100644 index 3c88d9485a..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_cs-cz.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "dop.", - "odp." - ], - "DAY": [ - "ned\u011ble", - "pond\u011bl\u00ed", - "\u00fater\u00fd", - "st\u0159eda", - "\u010dtvrtek", - "p\u00e1tek", - "sobota" - ], - "MONTH": [ - "ledna", - "\u00fanora", - "b\u0159ezna", - "dubna", - "kv\u011btna", - "\u010dervna", - "\u010dervence", - "srpna", - "z\u00e1\u0159\u00ed", - "\u0159\u00edjna", - "listopadu", - "prosince" - ], - "SHORTDAY": [ - "ne", - "po", - "\u00fat", - "st", - "\u010dt", - "p\u00e1", - "so" - ], - "SHORTMONTH": [ - "Led", - "\u00dano", - "B\u0159e", - "Dub", - "Kv\u011b", - "\u010cer", - "\u010cvc", - "Srp", - "Z\u00e1\u0159", - "\u0158\u00edj", - "Lis", - "Pro" - ], - "fullDate": "EEEE, d. MMMM y", - "longDate": "d. MMMM y", - "medium": "d. M. yyyy H:mm:ss", - "mediumDate": "d. M. yyyy", - "mediumTime": "H:mm:ss", - "short": "dd.MM.yy H:mm", - "shortDate": "dd.MM.yy", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "K\u010d", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "cs-cz", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == (n | 0) && n >= 2 && n <= 4) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_cs.js b/vendor/assets/components/angular-i18n/angular-locale_cs.js deleted file mode 100644 index c0a1e334cc..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_cs.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "dop.", - "odp." - ], - "DAY": [ - "ned\u011ble", - "pond\u011bl\u00ed", - "\u00fater\u00fd", - "st\u0159eda", - "\u010dtvrtek", - "p\u00e1tek", - "sobota" - ], - "MONTH": [ - "ledna", - "\u00fanora", - "b\u0159ezna", - "dubna", - "kv\u011btna", - "\u010dervna", - "\u010dervence", - "srpna", - "z\u00e1\u0159\u00ed", - "\u0159\u00edjna", - "listopadu", - "prosince" - ], - "SHORTDAY": [ - "ne", - "po", - "\u00fat", - "st", - "\u010dt", - "p\u00e1", - "so" - ], - "SHORTMONTH": [ - "Led", - "\u00dano", - "B\u0159e", - "Dub", - "Kv\u011b", - "\u010cer", - "\u010cvc", - "Srp", - "Z\u00e1\u0159", - "\u0158\u00edj", - "Lis", - "Pro" - ], - "fullDate": "EEEE, d. MMMM y", - "longDate": "d. MMMM y", - "medium": "d. M. yyyy H:mm:ss", - "mediumDate": "d. M. yyyy", - "mediumTime": "H:mm:ss", - "short": "dd.MM.yy H:mm", - "shortDate": "dd.MM.yy", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "K\u010d", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "cs", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == (n | 0) && n >= 2 && n <= 4) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_da-dk.js b/vendor/assets/components/angular-i18n/angular-locale_da-dk.js deleted file mode 100644 index 399a1e4eb7..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_da-dk.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "f.m.", - "e.m." - ], - "DAY": [ - "s\u00f8ndag", - "mandag", - "tirsdag", - "onsdag", - "torsdag", - "fredag", - "l\u00f8rdag" - ], - "MONTH": [ - "januar", - "februar", - "marts", - "april", - "maj", - "juni", - "juli", - "august", - "september", - "oktober", - "november", - "december" - ], - "SHORTDAY": [ - "s\u00f8n", - "man", - "tir", - "ons", - "tor", - "fre", - "l\u00f8r" - ], - "SHORTMONTH": [ - "jan.", - "feb.", - "mar.", - "apr.", - "maj", - "jun.", - "jul.", - "aug.", - "sep.", - "okt.", - "nov.", - "dec." - ], - "fullDate": "EEEE 'den' d. MMMM y", - "longDate": "d. MMM y", - "medium": "dd/MM/yyyy HH.mm.ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH.mm.ss", - "short": "dd/MM/yy HH.mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH.mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "kr", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "da-dk", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_da.js b/vendor/assets/components/angular-i18n/angular-locale_da.js deleted file mode 100644 index 1d8bcbeeab..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_da.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "f.m.", - "e.m." - ], - "DAY": [ - "s\u00f8ndag", - "mandag", - "tirsdag", - "onsdag", - "torsdag", - "fredag", - "l\u00f8rdag" - ], - "MONTH": [ - "januar", - "februar", - "marts", - "april", - "maj", - "juni", - "juli", - "august", - "september", - "oktober", - "november", - "december" - ], - "SHORTDAY": [ - "s\u00f8n", - "man", - "tir", - "ons", - "tor", - "fre", - "l\u00f8r" - ], - "SHORTMONTH": [ - "jan.", - "feb.", - "mar.", - "apr.", - "maj", - "jun.", - "jul.", - "aug.", - "sep.", - "okt.", - "nov.", - "dec." - ], - "fullDate": "EEEE 'den' d. MMMM y", - "longDate": "d. MMM y", - "medium": "dd/MM/yyyy HH.mm.ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH.mm.ss", - "short": "dd/MM/yy HH.mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH.mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "kr", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "da", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_de-at.js b/vendor/assets/components/angular-i18n/angular-locale_de-at.js deleted file mode 100644 index 257e7d81db..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_de-at.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "vorm.", - "nachm." - ], - "DAY": [ - "Sonntag", - "Montag", - "Dienstag", - "Mittwoch", - "Donnerstag", - "Freitag", - "Samstag" - ], - "MONTH": [ - "J\u00e4nner", - "Februar", - "M\u00e4rz", - "April", - "Mai", - "Juni", - "Juli", - "August", - "September", - "Oktober", - "November", - "Dezember" - ], - "SHORTDAY": [ - "So.", - "Mo.", - "Di.", - "Mi.", - "Do.", - "Fr.", - "Sa." - ], - "SHORTMONTH": [ - "J\u00e4n", - "Feb", - "M\u00e4r", - "Apr", - "Mai", - "Jun", - "Jul", - "Aug", - "Sep", - "Okt", - "Nov", - "Dez" - ], - "fullDate": "EEEE, dd. MMMM y", - "longDate": "dd. MMMM y", - "medium": "dd.MM.yyyy HH:mm:ss", - "mediumDate": "dd.MM.yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yy HH:mm", - "shortDate": "dd.MM.yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0-", - "negSuf": "", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "de-at", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_de-be.js b/vendor/assets/components/angular-i18n/angular-locale_de-be.js deleted file mode 100644 index d07143b3e0..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_de-be.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "vorm.", - "nachm." - ], - "DAY": [ - "Sonntag", - "Montag", - "Dienstag", - "Mittwoch", - "Donnerstag", - "Freitag", - "Samstag" - ], - "MONTH": [ - "Januar", - "Februar", - "M\u00e4rz", - "April", - "Mai", - "Juni", - "Juli", - "August", - "September", - "Oktober", - "November", - "Dezember" - ], - "SHORTDAY": [ - "So.", - "Mo.", - "Di.", - "Mi.", - "Do.", - "Fr.", - "Sa." - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "M\u00e4r", - "Apr", - "Mai", - "Jun", - "Jul", - "Aug", - "Sep", - "Okt", - "Nov", - "Dez" - ], - "fullDate": "EEEE, d. MMMM y", - "longDate": "d. MMMM y", - "medium": "dd.MM.yyyy HH:mm:ss", - "mediumDate": "dd.MM.yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yy HH:mm", - "shortDate": "dd.MM.yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "de-be", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_de-ch.js b/vendor/assets/components/angular-i18n/angular-locale_de-ch.js deleted file mode 100644 index b249939531..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_de-ch.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "vorm.", - "nachm." - ], - "DAY": [ - "Sonntag", - "Montag", - "Dienstag", - "Mittwoch", - "Donnerstag", - "Freitag", - "Samstag" - ], - "MONTH": [ - "Januar", - "Februar", - "M\u00e4rz", - "April", - "Mai", - "Juni", - "Juli", - "August", - "September", - "Oktober", - "November", - "Dezember" - ], - "SHORTDAY": [ - "So.", - "Mo.", - "Di.", - "Mi.", - "Do.", - "Fr.", - "Sa." - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "M\u00e4r", - "Apr", - "Mai", - "Jun", - "Jul", - "Aug", - "Sep", - "Okt", - "Nov", - "Dez" - ], - "fullDate": "EEEE, d. MMMM y", - "longDate": "d. MMMM y", - "medium": "dd.MM.yyyy HH:mm:ss", - "mediumDate": "dd.MM.yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yy HH:mm", - "shortDate": "dd.MM.yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "CHF", - "DECIMAL_SEP": ".", - "GROUP_SEP": "'", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4-", - "negSuf": "", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "de-ch", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_de-de.js b/vendor/assets/components/angular-i18n/angular-locale_de-de.js deleted file mode 100644 index 58e70431a8..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_de-de.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "vorm.", - "nachm." - ], - "DAY": [ - "Sonntag", - "Montag", - "Dienstag", - "Mittwoch", - "Donnerstag", - "Freitag", - "Samstag" - ], - "MONTH": [ - "Januar", - "Februar", - "M\u00e4rz", - "April", - "Mai", - "Juni", - "Juli", - "August", - "September", - "Oktober", - "November", - "Dezember" - ], - "SHORTDAY": [ - "So.", - "Mo.", - "Di.", - "Mi.", - "Do.", - "Fr.", - "Sa." - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "M\u00e4r", - "Apr", - "Mai", - "Jun", - "Jul", - "Aug", - "Sep", - "Okt", - "Nov", - "Dez" - ], - "fullDate": "EEEE, d. MMMM y", - "longDate": "d. MMMM y", - "medium": "dd.MM.yyyy HH:mm:ss", - "mediumDate": "dd.MM.yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yy HH:mm", - "shortDate": "dd.MM.yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "de-de", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_de-li.js b/vendor/assets/components/angular-i18n/angular-locale_de-li.js deleted file mode 100644 index 288651323e..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_de-li.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "vorm.", - "nachm." - ], - "DAY": [ - "Sonntag", - "Montag", - "Dienstag", - "Mittwoch", - "Donnerstag", - "Freitag", - "Samstag" - ], - "MONTH": [ - "Januar", - "Februar", - "M\u00e4rz", - "April", - "Mai", - "Juni", - "Juli", - "August", - "September", - "Oktober", - "November", - "Dezember" - ], - "SHORTDAY": [ - "So.", - "Mo.", - "Di.", - "Mi.", - "Do.", - "Fr.", - "Sa." - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "M\u00e4r", - "Apr", - "Mai", - "Jun", - "Jul", - "Aug", - "Sep", - "Okt", - "Nov", - "Dez" - ], - "fullDate": "EEEE, d. MMMM y", - "longDate": "d. MMMM y", - "medium": "dd.MM.yyyy HH:mm:ss", - "mediumDate": "dd.MM.yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yy HH:mm", - "shortDate": "dd.MM.yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "de-li", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_de-lu.js b/vendor/assets/components/angular-i18n/angular-locale_de-lu.js deleted file mode 100644 index 61aa489ccf..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_de-lu.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "vorm.", - "nachm." - ], - "DAY": [ - "Sonntag", - "Montag", - "Dienstag", - "Mittwoch", - "Donnerstag", - "Freitag", - "Samstag" - ], - "MONTH": [ - "Januar", - "Februar", - "M\u00e4rz", - "April", - "Mai", - "Juni", - "Juli", - "August", - "September", - "Oktober", - "November", - "Dezember" - ], - "SHORTDAY": [ - "So.", - "Mo.", - "Di.", - "Mi.", - "Do.", - "Fr.", - "Sa." - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "M\u00e4r", - "Apr", - "Mai", - "Jun", - "Jul", - "Aug", - "Sep", - "Okt", - "Nov", - "Dez" - ], - "fullDate": "EEEE, d. MMMM y", - "longDate": "d. MMMM y", - "medium": "dd.MM.yyyy HH:mm:ss", - "mediumDate": "dd.MM.yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yy HH:mm", - "shortDate": "dd.MM.yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "de-lu", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_de.js b/vendor/assets/components/angular-i18n/angular-locale_de.js deleted file mode 100644 index 6ea1f22136..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_de.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "vorm.", - "nachm." - ], - "DAY": [ - "Sonntag", - "Montag", - "Dienstag", - "Mittwoch", - "Donnerstag", - "Freitag", - "Samstag" - ], - "MONTH": [ - "Januar", - "Februar", - "M\u00e4rz", - "April", - "Mai", - "Juni", - "Juli", - "August", - "September", - "Oktober", - "November", - "Dezember" - ], - "SHORTDAY": [ - "So.", - "Mo.", - "Di.", - "Mi.", - "Do.", - "Fr.", - "Sa." - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "M\u00e4r", - "Apr", - "Mai", - "Jun", - "Jul", - "Aug", - "Sep", - "Okt", - "Nov", - "Dez" - ], - "fullDate": "EEEE, d. MMMM y", - "longDate": "d. MMMM y", - "medium": "dd.MM.yyyy HH:mm:ss", - "mediumDate": "dd.MM.yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yy HH:mm", - "shortDate": "dd.MM.yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "de", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_el-cy.js b/vendor/assets/components/angular-i18n/angular-locale_el-cy.js deleted file mode 100644 index e7a4c94e8e..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_el-cy.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u03c0.\u03bc.", - "\u03bc.\u03bc." - ], - "DAY": [ - "\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae", - "\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1", - "\u03a4\u03c1\u03af\u03c4\u03b7", - "\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7", - "\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7", - "\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae", - "\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf" - ], - "MONTH": [ - "\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5", - "\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5", - "\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5", - "\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5", - "\u039c\u03b1\u0390\u03bf\u03c5", - "\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5", - "\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5", - "\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5", - "\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5", - "\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5", - "\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5", - "\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5" - ], - "SHORTDAY": [ - "\u039a\u03c5\u03c1", - "\u0394\u03b5\u03c5", - "\u03a4\u03c1\u03b9", - "\u03a4\u03b5\u03c4", - "\u03a0\u03b5\u03bc", - "\u03a0\u03b1\u03c1", - "\u03a3\u03b1\u03b2" - ], - "SHORTMONTH": [ - "\u0399\u03b1\u03bd", - "\u03a6\u03b5\u03b2", - "\u039c\u03b1\u03c1", - "\u0391\u03c0\u03c1", - "\u039c\u03b1\u03ca", - "\u0399\u03bf\u03c5\u03bd", - "\u0399\u03bf\u03c5\u03bb", - "\u0391\u03c5\u03b3", - "\u03a3\u03b5\u03c0", - "\u039f\u03ba\u03c4", - "\u039d\u03bf\u03b5", - "\u0394\u03b5\u03ba" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y h:mm:ss a", - "mediumDate": "d MMM y", - "mediumTime": "h:mm:ss a", - "short": "d/M/yy h:mm a", - "shortDate": "d/M/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "el-cy", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_el-gr.js b/vendor/assets/components/angular-i18n/angular-locale_el-gr.js deleted file mode 100644 index 101464f845..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_el-gr.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u03c0.\u03bc.", - "\u03bc.\u03bc." - ], - "DAY": [ - "\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae", - "\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1", - "\u03a4\u03c1\u03af\u03c4\u03b7", - "\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7", - "\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7", - "\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae", - "\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf" - ], - "MONTH": [ - "\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5", - "\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5", - "\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5", - "\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5", - "\u039c\u03b1\u0390\u03bf\u03c5", - "\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5", - "\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5", - "\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5", - "\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5", - "\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5", - "\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5", - "\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5" - ], - "SHORTDAY": [ - "\u039a\u03c5\u03c1", - "\u0394\u03b5\u03c5", - "\u03a4\u03c1\u03b9", - "\u03a4\u03b5\u03c4", - "\u03a0\u03b5\u03bc", - "\u03a0\u03b1\u03c1", - "\u03a3\u03b1\u03b2" - ], - "SHORTMONTH": [ - "\u0399\u03b1\u03bd", - "\u03a6\u03b5\u03b2", - "\u039c\u03b1\u03c1", - "\u0391\u03c0\u03c1", - "\u039c\u03b1\u03ca", - "\u0399\u03bf\u03c5\u03bd", - "\u0399\u03bf\u03c5\u03bb", - "\u0391\u03c5\u03b3", - "\u03a3\u03b5\u03c0", - "\u039f\u03ba\u03c4", - "\u039d\u03bf\u03b5", - "\u0394\u03b5\u03ba" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y h:mm:ss a", - "mediumDate": "d MMM y", - "mediumTime": "h:mm:ss a", - "short": "d/M/yy h:mm a", - "shortDate": "d/M/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "el-gr", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_el.js b/vendor/assets/components/angular-i18n/angular-locale_el.js deleted file mode 100644 index 8433050133..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_el.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u03c0.\u03bc.", - "\u03bc.\u03bc." - ], - "DAY": [ - "\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae", - "\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1", - "\u03a4\u03c1\u03af\u03c4\u03b7", - "\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7", - "\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7", - "\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae", - "\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf" - ], - "MONTH": [ - "\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5", - "\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5", - "\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5", - "\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5", - "\u039c\u03b1\u0390\u03bf\u03c5", - "\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5", - "\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5", - "\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5", - "\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5", - "\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5", - "\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5", - "\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5" - ], - "SHORTDAY": [ - "\u039a\u03c5\u03c1", - "\u0394\u03b5\u03c5", - "\u03a4\u03c1\u03b9", - "\u03a4\u03b5\u03c4", - "\u03a0\u03b5\u03bc", - "\u03a0\u03b1\u03c1", - "\u03a3\u03b1\u03b2" - ], - "SHORTMONTH": [ - "\u0399\u03b1\u03bd", - "\u03a6\u03b5\u03b2", - "\u039c\u03b1\u03c1", - "\u0391\u03c0\u03c1", - "\u039c\u03b1\u03ca", - "\u0399\u03bf\u03c5\u03bd", - "\u0399\u03bf\u03c5\u03bb", - "\u0391\u03c5\u03b3", - "\u03a3\u03b5\u03c0", - "\u039f\u03ba\u03c4", - "\u039d\u03bf\u03b5", - "\u0394\u03b5\u03ba" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y h:mm:ss a", - "mediumDate": "d MMM y", - "mediumTime": "h:mm:ss a", - "short": "d/M/yy h:mm a", - "shortDate": "d/M/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "el", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-as.js b/vendor/assets/components/angular-i18n/angular-locale_en-as.js deleted file mode 100644 index 3cc5eb5426..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-as.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-as", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-au.js b/vendor/assets/components/angular-i18n/angular-locale_en-au.js deleted file mode 100644 index c09f4ae77d..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-au.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "dd/MM/yyyy h:mm:ss a", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d/MM/yy h:mm a", - "shortDate": "d/MM/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "$", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-au", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-bb.js b/vendor/assets/components/angular-i18n/angular-locale_en-bb.js deleted file mode 100644 index dcf93adb4b..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-bb.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-bb", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-be.js b/vendor/assets/components/angular-i18n/angular-locale_en-be.js deleted file mode 100644 index 673beb5e70..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-be.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMM y", - "medium": "dd MMM y HH:mm:ss", - "mediumDate": "dd MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "$", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-be", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-bm.js b/vendor/assets/components/angular-i18n/angular-locale_en-bm.js deleted file mode 100644 index 604db15310..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-bm.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-bm", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-bw.js b/vendor/assets/components/angular-i18n/angular-locale_en-bw.js deleted file mode 100644 index 0aeb9f98dd..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-bw.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "fullDate": "EEEE dd MMMM y", - "longDate": "dd MMMM y", - "medium": "MMM d, y h:mm:ss a", - "mediumDate": "MMM d, y", - "mediumTime": "h:mm:ss a", - "short": "dd/MM/yy h:mm a", - "shortDate": "dd/MM/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "$", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-bw", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-bz.js b/vendor/assets/components/angular-i18n/angular-locale_en-bz.js deleted file mode 100644 index 17f242dc28..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-bz.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "fullDate": "dd MMMM y", - "longDate": "dd MMMM y", - "medium": "dd-MMM-y HH:mm:ss", - "mediumDate": "dd-MMM-y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "$", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-bz", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-ca.js b/vendor/assets/components/angular-i18n/angular-locale_en-ca.js deleted file mode 100644 index 370903571f..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-ca.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "fullDate": "EEEE, d MMMM, y", - "longDate": "d MMMM, y", - "medium": "yyyy-MM-dd h:mm:ss a", - "mediumDate": "yyyy-MM-dd", - "mediumTime": "h:mm:ss a", - "short": "yy-MM-dd h:mm a", - "shortDate": "yy-MM-dd", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "$", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-ca", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-dsrt-us.js b/vendor/assets/components/angular-i18n/angular-locale_en-dsrt-us.js deleted file mode 100644 index 0ede3159eb..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-dsrt-us.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\ud801\udc08\ud801\udc23", - "\ud801\udc11\ud801\udc23" - ], - "DAY": [ - "\ud801\udc1d\ud801\udc32\ud801\udc4c\ud801\udc3c\ud801\udc29", - "\ud801\udc23\ud801\udc32\ud801\udc4c\ud801\udc3c\ud801\udc29", - "\ud801\udc13\ud801\udc2d\ud801\udc46\ud801\udc3c\ud801\udc29", - "\ud801\udc0e\ud801\udc2f\ud801\udc4c\ud801\udc46\ud801\udc3c\ud801\udc29", - "\ud801\udc1b\ud801\udc32\ud801\udc49\ud801\udc46\ud801\udc3c\ud801\udc29", - "\ud801\udc19\ud801\udc49\ud801\udc34\ud801\udc3c\ud801\udc29", - "\ud801\udc1d\ud801\udc30\ud801\udc3b\ud801\udc32\ud801\udc49\ud801\udc3c\ud801\udc29" - ], - "MONTH": [ - "\ud801\udc16\ud801\udc30\ud801\udc4c\ud801\udc37\ud801\udc2d\ud801\udc2f\ud801\udc49\ud801\udc28", - "\ud801\udc19\ud801\udc2f\ud801\udc3a\ud801\udc49\ud801\udc2d\ud801\udc2f\ud801\udc49\ud801\udc28", - "\ud801\udc23\ud801\udc2a\ud801\udc49\ud801\udc3d", - "\ud801\udc01\ud801\udc39\ud801\udc49\ud801\udc2e\ud801\udc4a", - "\ud801\udc23\ud801\udc29", - "\ud801\udc16\ud801\udc2d\ud801\udc4c", - "\ud801\udc16\ud801\udc2d\ud801\udc4a\ud801\udc34", - "\ud801\udc02\ud801\udc40\ud801\udc32\ud801\udc45\ud801\udc3b", - "\ud801\udc1d\ud801\udc2f\ud801\udc39\ud801\udc3b\ud801\udc2f\ud801\udc4b\ud801\udc3a\ud801\udc32\ud801\udc49", - "\ud801\udc09\ud801\udc3f\ud801\udc3b\ud801\udc2c\ud801\udc3a\ud801\udc32\ud801\udc49", - "\ud801\udc24\ud801\udc2c\ud801\udc42\ud801\udc2f\ud801\udc4b\ud801\udc3a\ud801\udc32\ud801\udc49", - "\ud801\udc14\ud801\udc28\ud801\udc45\ud801\udc2f\ud801\udc4b\ud801\udc3a\ud801\udc32\ud801\udc49" - ], - "SHORTDAY": [ - "\ud801\udc1d\ud801\udc32\ud801\udc4c", - "\ud801\udc23\ud801\udc32\ud801\udc4c", - "\ud801\udc13\ud801\udc2d\ud801\udc46", - "\ud801\udc0e\ud801\udc2f\ud801\udc4c", - "\ud801\udc1b\ud801\udc32\ud801\udc49", - "\ud801\udc19\ud801\udc49\ud801\udc34", - "\ud801\udc1d\ud801\udc30\ud801\udc3b" - ], - "SHORTMONTH": [ - "\ud801\udc16\ud801\udc30\ud801\udc4c", - "\ud801\udc19\ud801\udc2f\ud801\udc3a", - "\ud801\udc23\ud801\udc2a\ud801\udc49", - "\ud801\udc01\ud801\udc39\ud801\udc49", - "\ud801\udc23\ud801\udc29", - "\ud801\udc16\ud801\udc2d\ud801\udc4c", - "\ud801\udc16\ud801\udc2d\ud801\udc4a", - "\ud801\udc02\ud801\udc40", - "\ud801\udc1d\ud801\udc2f\ud801\udc39", - "\ud801\udc09\ud801\udc3f\ud801\udc3b", - "\ud801\udc24\ud801\udc2c\ud801\udc42", - "\ud801\udc14\ud801\udc28\ud801\udc45" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-dsrt-us", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-dsrt.js b/vendor/assets/components/angular-i18n/angular-locale_en-dsrt.js deleted file mode 100644 index 5e86ec53d8..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-dsrt.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\ud801\udc08\ud801\udc23", - "\ud801\udc11\ud801\udc23" - ], - "DAY": [ - "\ud801\udc1d\ud801\udc32\ud801\udc4c\ud801\udc3c\ud801\udc29", - "\ud801\udc23\ud801\udc32\ud801\udc4c\ud801\udc3c\ud801\udc29", - "\ud801\udc13\ud801\udc2d\ud801\udc46\ud801\udc3c\ud801\udc29", - "\ud801\udc0e\ud801\udc2f\ud801\udc4c\ud801\udc46\ud801\udc3c\ud801\udc29", - "\ud801\udc1b\ud801\udc32\ud801\udc49\ud801\udc46\ud801\udc3c\ud801\udc29", - "\ud801\udc19\ud801\udc49\ud801\udc34\ud801\udc3c\ud801\udc29", - "\ud801\udc1d\ud801\udc30\ud801\udc3b\ud801\udc32\ud801\udc49\ud801\udc3c\ud801\udc29" - ], - "MONTH": [ - "\ud801\udc16\ud801\udc30\ud801\udc4c\ud801\udc37\ud801\udc2d\ud801\udc2f\ud801\udc49\ud801\udc28", - "\ud801\udc19\ud801\udc2f\ud801\udc3a\ud801\udc49\ud801\udc2d\ud801\udc2f\ud801\udc49\ud801\udc28", - "\ud801\udc23\ud801\udc2a\ud801\udc49\ud801\udc3d", - "\ud801\udc01\ud801\udc39\ud801\udc49\ud801\udc2e\ud801\udc4a", - "\ud801\udc23\ud801\udc29", - "\ud801\udc16\ud801\udc2d\ud801\udc4c", - "\ud801\udc16\ud801\udc2d\ud801\udc4a\ud801\udc34", - "\ud801\udc02\ud801\udc40\ud801\udc32\ud801\udc45\ud801\udc3b", - "\ud801\udc1d\ud801\udc2f\ud801\udc39\ud801\udc3b\ud801\udc2f\ud801\udc4b\ud801\udc3a\ud801\udc32\ud801\udc49", - "\ud801\udc09\ud801\udc3f\ud801\udc3b\ud801\udc2c\ud801\udc3a\ud801\udc32\ud801\udc49", - "\ud801\udc24\ud801\udc2c\ud801\udc42\ud801\udc2f\ud801\udc4b\ud801\udc3a\ud801\udc32\ud801\udc49", - "\ud801\udc14\ud801\udc28\ud801\udc45\ud801\udc2f\ud801\udc4b\ud801\udc3a\ud801\udc32\ud801\udc49" - ], - "SHORTDAY": [ - "\ud801\udc1d\ud801\udc32\ud801\udc4c", - "\ud801\udc23\ud801\udc32\ud801\udc4c", - "\ud801\udc13\ud801\udc2d\ud801\udc46", - "\ud801\udc0e\ud801\udc2f\ud801\udc4c", - "\ud801\udc1b\ud801\udc32\ud801\udc49", - "\ud801\udc19\ud801\udc49\ud801\udc34", - "\ud801\udc1d\ud801\udc30\ud801\udc3b" - ], - "SHORTMONTH": [ - "\ud801\udc16\ud801\udc30\ud801\udc4c", - "\ud801\udc19\ud801\udc2f\ud801\udc3a", - "\ud801\udc23\ud801\udc2a\ud801\udc49", - "\ud801\udc01\ud801\udc39\ud801\udc49", - "\ud801\udc23\ud801\udc29", - "\ud801\udc16\ud801\udc2d\ud801\udc4c", - "\ud801\udc16\ud801\udc2d\ud801\udc4a", - "\ud801\udc02\ud801\udc40", - "\ud801\udc1d\ud801\udc2f\ud801\udc39", - "\ud801\udc09\ud801\udc3f\ud801\udc3b", - "\ud801\udc24\ud801\udc2c\ud801\udc42", - "\ud801\udc14\ud801\udc28\ud801\udc45" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-dsrt", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-fm.js b/vendor/assets/components/angular-i18n/angular-locale_en-fm.js deleted file mode 100644 index 525604fcb9..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-fm.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-fm", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-gb.js b/vendor/assets/components/angular-i18n/angular-locale_en-gb.js deleted file mode 100644 index 4a0f59ac05..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-gb.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yyyy HH:mm", - "shortDate": "dd/MM/yyyy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a3", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4-", - "negSuf": "", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-gb", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-gu.js b/vendor/assets/components/angular-i18n/angular-locale_en-gu.js deleted file mode 100644 index 994b571642..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-gu.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-gu", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-gy.js b/vendor/assets/components/angular-i18n/angular-locale_en-gy.js deleted file mode 100644 index 0c5240520e..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-gy.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-gy", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-hk.js b/vendor/assets/components/angular-i18n/angular-locale_en-hk.js deleted file mode 100644 index 261c49066a..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-hk.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "fullDate": "EEEE, d MMMM, y", - "longDate": "d MMMM, y", - "medium": "d MMM, y h:mm:ss a", - "mediumDate": "d MMM, y", - "mediumTime": "h:mm:ss a", - "short": "d/M/yy h:mm a", - "shortDate": "d/M/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "$", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-hk", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-ie.js b/vendor/assets/components/angular-i18n/angular-locale_en-ie.js deleted file mode 100644 index a7d7b757d4..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-ie.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y h:mm:ss a", - "mediumDate": "d MMM y", - "mediumTime": "h:mm:ss a", - "short": "dd/MM/yyyy h:mm a", - "shortDate": "dd/MM/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-ie", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-in.js b/vendor/assets/components/angular-i18n/angular-locale_en-in.js deleted file mode 100644 index ad05889655..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-in.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "dd-MMM-y h:mm:ss a", - "mediumDate": "dd-MMM-y", - "mediumTime": "h:mm:ss a", - "short": "dd/MM/yy h:mm a", - "shortDate": "dd/MM/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0-", - "negSuf": "", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "en-in", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-iso.js b/vendor/assets/components/angular-i18n/angular-locale_en-iso.js deleted file mode 100644 index 158f8de0cc..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-iso.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "fullDate": "EEEE, y MMMM dd", - "longDate": "y MMMM d", - "medium": "y MMM d HH:mm:ss", - "mediumDate": "y MMM d", - "mediumTime": "HH:mm:ss", - "short": "yyyy-MM-dd HH:mm", - "shortDate": "yyyy-MM-dd", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "$", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-iso", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-jm.js b/vendor/assets/components/angular-i18n/angular-locale_en-jm.js deleted file mode 100644 index 7aebeab8d8..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-jm.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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": "d/M/yy h:mm a", - "shortDate": "d/M/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "$", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-jm", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-mh.js b/vendor/assets/components/angular-i18n/angular-locale_en-mh.js deleted file mode 100644 index 085444369a..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-mh.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-mh", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-mp.js b/vendor/assets/components/angular-i18n/angular-locale_en-mp.js deleted file mode 100644 index c05f5c9b77..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-mp.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-mp", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-mt.js b/vendor/assets/components/angular-i18n/angular-locale_en-mt.js deleted file mode 100644 index 822d0ace95..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-mt.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "dd MMMM y", - "medium": "dd MMM y h:mm:ss a", - "mediumDate": "dd MMM y", - "mediumTime": "h:mm:ss a", - "short": "dd/MM/yyyy h:mm a", - "shortDate": "dd/MM/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "$", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-mt", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-mu.js b/vendor/assets/components/angular-i18n/angular-locale_en-mu.js deleted file mode 100644 index 13629d6bb5..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-mu.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-mu", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-na.js b/vendor/assets/components/angular-i18n/angular-locale_en-na.js deleted file mode 100644 index 779fb02670..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-na.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-na", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-nz.js b/vendor/assets/components/angular-i18n/angular-locale_en-nz.js deleted file mode 100644 index 8e01073499..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-nz.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "d/MM/yyyy h:mm:ss a", - "mediumDate": "d/MM/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d/MM/yy h:mm a", - "shortDate": "d/MM/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "$", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-nz", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-ph.js b/vendor/assets/components/angular-i18n/angular-locale_en-ph.js deleted file mode 100644 index 647b9e1078..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-ph.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-ph", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-pk.js b/vendor/assets/components/angular-i18n/angular-locale_en-pk.js deleted file mode 100644 index bc586489e2..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-pk.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "dd-MMM-y h:mm:ss a", - "mediumDate": "dd-MMM-y", - "mediumTime": "h:mm:ss a", - "short": "dd/MM/yy h:mm a", - "shortDate": "dd/MM/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "$", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-pk", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-pr.js b/vendor/assets/components/angular-i18n/angular-locale_en-pr.js deleted file mode 100644 index 6d66c083c9..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-pr.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-pr", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-pw.js b/vendor/assets/components/angular-i18n/angular-locale_en-pw.js deleted file mode 100644 index e280faa9fd..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-pw.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-pw", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-sg.js b/vendor/assets/components/angular-i18n/angular-locale_en-sg.js deleted file mode 100644 index ccffcd8f68..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-sg.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "fullDate": "EEEE, d MMMM, y", - "longDate": "d MMMM, y", - "medium": "d MMM, y h:mm:ss a", - "mediumDate": "d MMM, y", - "mediumTime": "h:mm:ss a", - "short": "d/M/yy h:mm a", - "shortDate": "d/M/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "$", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-sg", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-tc.js b/vendor/assets/components/angular-i18n/angular-locale_en-tc.js deleted file mode 100644 index f9fdf66c62..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-tc.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-tc", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-tt.js b/vendor/assets/components/angular-i18n/angular-locale_en-tt.js deleted file mode 100644 index 32effe2b4b..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-tt.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-tt", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-um.js b/vendor/assets/components/angular-i18n/angular-locale_en-um.js deleted file mode 100644 index aaba7a3e7b..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-um.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-um", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-us.js b/vendor/assets/components/angular-i18n/angular-locale_en-us.js deleted file mode 100644 index 953cd104fd..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-us.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-us", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-vg.js b/vendor/assets/components/angular-i18n/angular-locale_en-vg.js deleted file mode 100644 index 7f05c153aa..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-vg.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-vg", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-vi.js b/vendor/assets/components/angular-i18n/angular-locale_en-vi.js deleted file mode 100644 index ea7a166694..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-vi.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-vi", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-za.js b/vendor/assets/components/angular-i18n/angular-locale_en-za.js deleted file mode 100644 index 2896970313..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-za.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "fullDate": "EEEE dd MMMM y", - "longDate": "dd MMMM y", - "medium": "dd MMM y h:mm:ss a", - "mediumDate": "dd MMM y", - "mediumTime": "h:mm:ss a", - "short": "yyyy/MM/dd h:mm a", - "shortDate": "yyyy/MM/dd", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "R", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-za", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en-zw.js b/vendor/assets/components/angular-i18n/angular-locale_en-zw.js deleted file mode 100644 index 162da1e775..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en-zw.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "fullDate": "EEEE dd MMMM y", - "longDate": "dd MMMM y", - "medium": "dd MMM,y h:mm:ss a", - "mediumDate": "dd MMM,y", - "mediumTime": "h:mm:ss a", - "short": "d/M/yyyy h:mm a", - "shortDate": "d/M/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "$", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en-zw", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_en.js b/vendor/assets/components/angular-i18n/angular-locale_en.js deleted file mode 100644 index ae07737c35..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_en.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - "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" - ], - "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, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "en", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-419.js b/vendor/assets/components/angular-i18n/angular-locale_es-419.js deleted file mode 100644 index 91efc78926..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-419.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "$", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4-", - "negSuf": "", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "es-419", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-ar.js b/vendor/assets/components/angular-i18n/angular-locale_es-ar.js deleted file mode 100644 index 409a360198..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-ar.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-ar", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-bo.js b/vendor/assets/components/angular-i18n/angular-locale_es-bo.js deleted file mode 100644 index fce7a39240..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-bo.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-bo", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-cl.js b/vendor/assets/components/angular-i18n/angular-locale_es-cl.js deleted file mode 100644 index 094dc29792..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-cl.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd-MM-yyyy H:mm:ss", - "mediumDate": "dd-MM-yyyy", - "mediumTime": "H:mm:ss", - "short": "dd-MM-yy H:mm", - "shortDate": "dd-MM-yy", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-cl", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-co.js b/vendor/assets/components/angular-i18n/angular-locale_es-co.js deleted file mode 100644 index 28bcf76d72..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-co.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "d/MM/yyyy H:mm:ss", - "mediumDate": "d/MM/yyyy", - "mediumTime": "H:mm:ss", - "short": "d/MM/yy H:mm", - "shortDate": "d/MM/yy", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-co", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-cr.js b/vendor/assets/components/angular-i18n/angular-locale_es-cr.js deleted file mode 100644 index 321ed8bbf1..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-cr.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-cr", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-do.js b/vendor/assets/components/angular-i18n/angular-locale_es-do.js deleted file mode 100644 index 48f5014b12..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-do.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-do", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-ea.js b/vendor/assets/components/angular-i18n/angular-locale_es-ea.js deleted file mode 100644 index 39d0ea7166..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-ea.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-ea", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-ec.js b/vendor/assets/components/angular-i18n/angular-locale_es-ec.js deleted file mode 100644 index cc6eb76ead..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-ec.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy H:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "H:mm:ss", - "short": "dd/MM/yy H:mm", - "shortDate": "dd/MM/yy", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-ec", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-es.js b/vendor/assets/components/angular-i18n/angular-locale_es-es.js deleted file mode 100644 index a72164f79b..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-es.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-es", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-gq.js b/vendor/assets/components/angular-i18n/angular-locale_es-gq.js deleted file mode 100644 index c7bab0e648..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-gq.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-gq", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-gt.js b/vendor/assets/components/angular-i18n/angular-locale_es-gt.js deleted file mode 100644 index c6d10789c4..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-gt.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "d/MM/yyyy HH:mm:ss", - "mediumDate": "d/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "d/MM/yy HH:mm", - "shortDate": "d/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-gt", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-hn.js b/vendor/assets/components/angular-i18n/angular-locale_es-hn.js deleted file mode 100644 index 9b9023a424..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-hn.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE dd 'de' MMMM 'de' y", - "longDate": "dd 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-hn", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-ic.js b/vendor/assets/components/angular-i18n/angular-locale_es-ic.js deleted file mode 100644 index 0f2bfa1a3b..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-ic.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-ic", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-mx.js b/vendor/assets/components/angular-i18n/angular-locale_es-mx.js deleted file mode 100644 index 7eb40877ce..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-mx.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-mx", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-ni.js b/vendor/assets/components/angular-i18n/angular-locale_es-ni.js deleted file mode 100644 index a93b701225..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-ni.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-ni", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-pa.js b/vendor/assets/components/angular-i18n/angular-locale_es-pa.js deleted file mode 100644 index 8496553b8d..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-pa.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "MM/dd/yyyy HH:mm:ss", - "mediumDate": "MM/dd/yyyy", - "mediumTime": "HH:mm:ss", - "short": "MM/dd/yy HH:mm", - "shortDate": "MM/dd/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-pa", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-pe.js b/vendor/assets/components/angular-i18n/angular-locale_es-pe.js deleted file mode 100644 index b88b21f906..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-pe.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "d/MM/yy HH:mm", - "shortDate": "d/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-pe", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-pr.js b/vendor/assets/components/angular-i18n/angular-locale_es-pr.js deleted file mode 100644 index 2917c36a42..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-pr.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "MM/dd/yyyy HH:mm:ss", - "mediumDate": "MM/dd/yyyy", - "mediumTime": "HH:mm:ss", - "short": "MM/dd/yy HH:mm", - "shortDate": "MM/dd/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-pr", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-py.js b/vendor/assets/components/angular-i18n/angular-locale_es-py.js deleted file mode 100644 index 6253d1454e..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-py.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-py", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-sv.js b/vendor/assets/components/angular-i18n/angular-locale_es-sv.js deleted file mode 100644 index 63f07560a4..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-sv.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-sv", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-us.js b/vendor/assets/components/angular-i18n/angular-locale_es-us.js deleted file mode 100644 index c92959578c..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-us.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' 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": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-us", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-uy.js b/vendor/assets/components/angular-i18n/angular-locale_es-uy.js deleted file mode 100644 index f656e1a933..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-uy.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-uy", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es-ve.js b/vendor/assets/components/angular-i18n/angular-locale_es-ve.js deleted file mode 100644 index 664187725e..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es-ve.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es-ve", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_es.js b/vendor/assets/components/angular-i18n/angular-locale_es.js deleted file mode 100644 index 91aba876a3..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_es.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "domingo", - "lunes", - "martes", - "mi\u00e9rcoles", - "jueves", - "viernes", - "s\u00e1bado" - ], - "MONTH": [ - "enero", - "febrero", - "marzo", - "abril", - "mayo", - "junio", - "julio", - "agosto", - "septiembre", - "octubre", - "noviembre", - "diciembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mi\u00e9", - "jue", - "vie", - "s\u00e1b" - ], - "SHORTMONTH": [ - "ene", - "feb", - "mar", - "abr", - "may", - "jun", - "jul", - "ago", - "sep", - "oct", - "nov", - "dic" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "es", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_et-ee.js b/vendor/assets/components/angular-i18n/angular-locale_et-ee.js deleted file mode 100644 index c76394715e..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_et-ee.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "enne keskp\u00e4eva", - "p\u00e4rast keskp\u00e4eva" - ], - "DAY": [ - "p\u00fchap\u00e4ev", - "esmasp\u00e4ev", - "teisip\u00e4ev", - "kolmap\u00e4ev", - "neljap\u00e4ev", - "reede", - "laup\u00e4ev" - ], - "MONTH": [ - "jaanuar", - "veebruar", - "m\u00e4rts", - "aprill", - "mai", - "juuni", - "juuli", - "august", - "september", - "oktoober", - "november", - "detsember" - ], - "SHORTDAY": [ - "P", - "E", - "T", - "K", - "N", - "R", - "L" - ], - "SHORTMONTH": [ - "jaan", - "veebr", - "m\u00e4rts", - "apr", - "mai", - "juuni", - "juuli", - "aug", - "sept", - "okt", - "nov", - "dets" - ], - "fullDate": "EEEE, d. MMMM y", - "longDate": "d. MMMM y", - "medium": "dd.MM.yyyy H:mm.ss", - "mediumDate": "dd.MM.yyyy", - "mediumTime": "H:mm.ss", - "short": "dd.MM.yy H:mm", - "shortDate": "dd.MM.yy", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a4)", - "posPre": "", - "posSuf": "\u00a4" - } - ] - }, - "id": "et-ee", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_et.js b/vendor/assets/components/angular-i18n/angular-locale_et.js deleted file mode 100644 index f996bba68a..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_et.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "enne keskp\u00e4eva", - "p\u00e4rast keskp\u00e4eva" - ], - "DAY": [ - "p\u00fchap\u00e4ev", - "esmasp\u00e4ev", - "teisip\u00e4ev", - "kolmap\u00e4ev", - "neljap\u00e4ev", - "reede", - "laup\u00e4ev" - ], - "MONTH": [ - "jaanuar", - "veebruar", - "m\u00e4rts", - "aprill", - "mai", - "juuni", - "juuli", - "august", - "september", - "oktoober", - "november", - "detsember" - ], - "SHORTDAY": [ - "P", - "E", - "T", - "K", - "N", - "R", - "L" - ], - "SHORTMONTH": [ - "jaan", - "veebr", - "m\u00e4rts", - "apr", - "mai", - "juuni", - "juuli", - "aug", - "sept", - "okt", - "nov", - "dets" - ], - "fullDate": "EEEE, d. MMMM y", - "longDate": "d. MMMM y", - "medium": "dd.MM.yyyy H:mm.ss", - "mediumDate": "dd.MM.yyyy", - "mediumTime": "H:mm.ss", - "short": "dd.MM.yy H:mm", - "shortDate": "dd.MM.yy", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 0, - "lgSize": 0, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a4)", - "posPre": "", - "posSuf": "\u00a4" - } - ] - }, - "id": "et", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_eu-es.js b/vendor/assets/components/angular-i18n/angular-locale_eu-es.js deleted file mode 100644 index d5fe45a1d3..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_eu-es.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "igandea", - "astelehena", - "asteartea", - "asteazkena", - "osteguna", - "ostirala", - "larunbata" - ], - "MONTH": [ - "urtarrila", - "otsaila", - "martxoa", - "apirila", - "maiatza", - "ekaina", - "uztaila", - "abuztua", - "iraila", - "urria", - "azaroa", - "abendua" - ], - "SHORTDAY": [ - "ig", - "al", - "as", - "az", - "og", - "or", - "lr" - ], - "SHORTMONTH": [ - "urt", - "ots", - "mar", - "api", - "mai", - "eka", - "uzt", - "abu", - "ira", - "urr", - "aza", - "abe" - ], - "fullDate": "EEEE, y'eko' MMMM'ren' dd'a'", - "longDate": "y'eko' MMM'ren' dd'a'", - "medium": "y MMM d HH:mm:ss", - "mediumDate": "y MMM d", - "mediumTime": "HH:mm:ss", - "short": "yyyy-MM-dd HH:mm", - "shortDate": "yyyy-MM-dd", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "eu-es", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_eu.js b/vendor/assets/components/angular-i18n/angular-locale_eu.js deleted file mode 100644 index 67faf10d2c..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_eu.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "igandea", - "astelehena", - "asteartea", - "asteazkena", - "osteguna", - "ostirala", - "larunbata" - ], - "MONTH": [ - "urtarrila", - "otsaila", - "martxoa", - "apirila", - "maiatza", - "ekaina", - "uztaila", - "abuztua", - "iraila", - "urria", - "azaroa", - "abendua" - ], - "SHORTDAY": [ - "ig", - "al", - "as", - "az", - "og", - "or", - "lr" - ], - "SHORTMONTH": [ - "urt", - "ots", - "mar", - "api", - "mai", - "eka", - "uzt", - "abu", - "ira", - "urr", - "aza", - "abe" - ], - "fullDate": "EEEE, y'eko' MMMM'ren' dd'a'", - "longDate": "y'eko' MMM'ren' dd'a'", - "medium": "y MMM d HH:mm:ss", - "mediumDate": "y MMM d", - "mediumTime": "HH:mm:ss", - "short": "yyyy-MM-dd HH:mm", - "shortDate": "yyyy-MM-dd", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "eu", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fa-af.js b/vendor/assets/components/angular-i18n/angular-locale_fa-af.js deleted file mode 100644 index c96ecde8d3..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fa-af.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0642\u0628\u0644\u200c\u0627\u0632\u0638\u0647\u0631", - "\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631" - ], - "DAY": [ - "\u06cc\u06a9\u0634\u0646\u0628\u0647", - "\u062f\u0648\u0634\u0646\u0628\u0647", - "\u0633\u0647\u200c\u0634\u0646\u0628\u0647", - "\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647", - "\u067e\u0646\u062c\u0634\u0646\u0628\u0647", - "\u062c\u0645\u0639\u0647", - "\u0634\u0646\u0628\u0647" - ], - "MONTH": [ - "\u062c\u0646\u0648\u0631\u06cc", - "\u0641\u0628\u0631\u0648\u0631\u06cc", - "\u0645\u0627\u0631\u0686", - "\u0627\u067e\u0631\u06cc\u0644", - "\u0645\u06cc", - "\u062c\u0648\u0646", - "\u062c\u0648\u0644\u0627\u06cc", - "\u0627\u06af\u0633\u062a", - "\u0633\u067e\u062a\u0645\u0628\u0631", - "\u0627\u06a9\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0645\u0628\u0631", - "\u062f\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u06cc\u06a9\u0634\u0646\u0628\u0647", - "\u062f\u0648\u0634\u0646\u0628\u0647", - "\u0633\u0647\u200c\u0634\u0646\u0628\u0647", - "\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647", - "\u067e\u0646\u062c\u0634\u0646\u0628\u0647", - "\u062c\u0645\u0639\u0647", - "\u0634\u0646\u0628\u0647" - ], - "SHORTMONTH": [ - "\u062c\u0646\u0648", - "\u0641\u0648\u0631\u06cc\u0647\u0654", - "\u0645\u0627\u0631\u0633", - "\u0622\u0648\u0631\u06cc\u0644", - "\u0645\u0640\u06cc", - "\u0698\u0648\u0626\u0646", - "\u062c\u0648\u0644", - "\u0627\u0648\u062a", - "\u0633\u067e\u062a\u0627\u0645\u0628\u0631", - "\u0627\u06a9\u062a\u0628\u0631", - "\u0646\u0648\u0627\u0645\u0628\u0631", - "\u062f\u0633\u0645" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y H:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "H:mm:ss", - "short": "yyyy/M/d H:mm", - "shortDate": "yyyy/M/d", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "Rial", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u200e(\u00a4", - "negSuf": ")", - "posPre": "\u200e\u00a4", - "posSuf": "" - } - ] - }, - "id": "fa-af", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fa-ir.js b/vendor/assets/components/angular-i18n/angular-locale_fa-ir.js deleted file mode 100644 index 27099d7512..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fa-ir.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0642\u0628\u0644\u200c\u0627\u0632\u0638\u0647\u0631", - "\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631" - ], - "DAY": [ - "\u06cc\u06a9\u0634\u0646\u0628\u0647", - "\u062f\u0648\u0634\u0646\u0628\u0647", - "\u0633\u0647\u200c\u0634\u0646\u0628\u0647", - "\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647", - "\u067e\u0646\u062c\u0634\u0646\u0628\u0647", - "\u062c\u0645\u0639\u0647", - "\u0634\u0646\u0628\u0647" - ], - "MONTH": [ - "\u0698\u0627\u0646\u0648\u06cc\u0647\u0654", - "\u0641\u0648\u0631\u06cc\u0647\u0654", - "\u0645\u0627\u0631\u0633", - "\u0622\u0648\u0631\u06cc\u0644", - "\u0645\u0647\u0654", - "\u0698\u0648\u0626\u0646", - "\u0698\u0648\u0626\u06cc\u0647\u0654", - "\u0627\u0648\u062a", - "\u0633\u067e\u062a\u0627\u0645\u0628\u0631", - "\u0627\u06a9\u062a\u0628\u0631", - "\u0646\u0648\u0627\u0645\u0628\u0631", - "\u062f\u0633\u0627\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u06cc\u06a9\u0634\u0646\u0628\u0647", - "\u062f\u0648\u0634\u0646\u0628\u0647", - "\u0633\u0647\u200c\u0634\u0646\u0628\u0647", - "\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647", - "\u067e\u0646\u062c\u0634\u0646\u0628\u0647", - "\u062c\u0645\u0639\u0647", - "\u0634\u0646\u0628\u0647" - ], - "SHORTMONTH": [ - "\u0698\u0627\u0646\u0648\u06cc\u0647\u0654", - "\u0641\u0648\u0631\u06cc\u0647\u0654", - "\u0645\u0627\u0631\u0633", - "\u0622\u0648\u0631\u06cc\u0644", - "\u0645\u0647\u0654", - "\u0698\u0648\u0626\u0646", - "\u0698\u0648\u0626\u06cc\u0647\u0654", - "\u0627\u0648\u062a", - "\u0633\u067e\u062a\u0627\u0645\u0628\u0631", - "\u0627\u06a9\u062a\u0628\u0631", - "\u0646\u0648\u0627\u0645\u0628\u0631", - "\u062f\u0633\u0627\u0645\u0628\u0631" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y H:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "H:mm:ss", - "short": "yyyy/M/d H:mm", - "shortDate": "yyyy/M/d", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "Rial", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u200e(\u00a4", - "negSuf": ")", - "posPre": "\u200e\u00a4", - "posSuf": "" - } - ] - }, - "id": "fa-ir", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fa.js b/vendor/assets/components/angular-i18n/angular-locale_fa.js deleted file mode 100644 index c94c6c145f..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fa.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0642\u0628\u0644\u200c\u0627\u0632\u0638\u0647\u0631", - "\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631" - ], - "DAY": [ - "\u06cc\u06a9\u0634\u0646\u0628\u0647", - "\u062f\u0648\u0634\u0646\u0628\u0647", - "\u0633\u0647\u200c\u0634\u0646\u0628\u0647", - "\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647", - "\u067e\u0646\u062c\u0634\u0646\u0628\u0647", - "\u062c\u0645\u0639\u0647", - "\u0634\u0646\u0628\u0647" - ], - "MONTH": [ - "\u0698\u0627\u0646\u0648\u06cc\u0647\u0654", - "\u0641\u0648\u0631\u06cc\u0647\u0654", - "\u0645\u0627\u0631\u0633", - "\u0622\u0648\u0631\u06cc\u0644", - "\u0645\u0647\u0654", - "\u0698\u0648\u0626\u0646", - "\u0698\u0648\u0626\u06cc\u0647\u0654", - "\u0627\u0648\u062a", - "\u0633\u067e\u062a\u0627\u0645\u0628\u0631", - "\u0627\u06a9\u062a\u0628\u0631", - "\u0646\u0648\u0627\u0645\u0628\u0631", - "\u062f\u0633\u0627\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u06cc\u06a9\u0634\u0646\u0628\u0647", - "\u062f\u0648\u0634\u0646\u0628\u0647", - "\u0633\u0647\u200c\u0634\u0646\u0628\u0647", - "\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647", - "\u067e\u0646\u062c\u0634\u0646\u0628\u0647", - "\u062c\u0645\u0639\u0647", - "\u0634\u0646\u0628\u0647" - ], - "SHORTMONTH": [ - "\u0698\u0627\u0646\u0648\u06cc\u0647\u0654", - "\u0641\u0648\u0631\u06cc\u0647\u0654", - "\u0645\u0627\u0631\u0633", - "\u0622\u0648\u0631\u06cc\u0644", - "\u0645\u0647\u0654", - "\u0698\u0648\u0626\u0646", - "\u0698\u0648\u0626\u06cc\u0647\u0654", - "\u0627\u0648\u062a", - "\u0633\u067e\u062a\u0627\u0645\u0628\u0631", - "\u0627\u06a9\u062a\u0628\u0631", - "\u0646\u0648\u0627\u0645\u0628\u0631", - "\u062f\u0633\u0627\u0645\u0628\u0631" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y H:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "H:mm:ss", - "short": "yyyy/M/d H:mm", - "shortDate": "yyyy/M/d", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "Rial", - "DECIMAL_SEP": "\u066b", - "GROUP_SEP": "\u066c", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u200e(\u00a4", - "negSuf": ")", - "posPre": "\u200e\u00a4", - "posSuf": "" - } - ] - }, - "id": "fa", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fi-fi.js b/vendor/assets/components/angular-i18n/angular-locale_fi-fi.js deleted file mode 100644 index 60c57d6e73..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fi-fi.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "ap.", - "ip." - ], - "DAY": [ - "sunnuntaina", - "maanantaina", - "tiistaina", - "keskiviikkona", - "torstaina", - "perjantaina", - "lauantaina" - ], - "MONTH": [ - "tammikuuta", - "helmikuuta", - "maaliskuuta", - "huhtikuuta", - "toukokuuta", - "kes\u00e4kuuta", - "hein\u00e4kuuta", - "elokuuta", - "syyskuuta", - "lokakuuta", - "marraskuuta", - "joulukuuta" - ], - "SHORTDAY": [ - "su", - "ma", - "ti", - "ke", - "to", - "pe", - "la" - ], - "SHORTMONTH": [ - "tammikuuta", - "helmikuuta", - "maaliskuuta", - "huhtikuuta", - "toukokuuta", - "kes\u00e4kuuta", - "hein\u00e4kuuta", - "elokuuta", - "syyskuuta", - "lokakuuta", - "marraskuuta", - "joulukuuta" - ], - "fullDate": "cccc, d. MMMM y", - "longDate": "d. MMMM y", - "medium": "d.M.yyyy H.mm.ss", - "mediumDate": "d.M.yyyy", - "mediumTime": "H.mm.ss", - "short": "d.M.yyyy H.mm", - "shortDate": "d.M.yyyy", - "shortTime": "H.mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fi-fi", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fi.js b/vendor/assets/components/angular-i18n/angular-locale_fi.js deleted file mode 100644 index 6570dde9f1..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fi.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "ap.", - "ip." - ], - "DAY": [ - "sunnuntaina", - "maanantaina", - "tiistaina", - "keskiviikkona", - "torstaina", - "perjantaina", - "lauantaina" - ], - "MONTH": [ - "tammikuuta", - "helmikuuta", - "maaliskuuta", - "huhtikuuta", - "toukokuuta", - "kes\u00e4kuuta", - "hein\u00e4kuuta", - "elokuuta", - "syyskuuta", - "lokakuuta", - "marraskuuta", - "joulukuuta" - ], - "SHORTDAY": [ - "su", - "ma", - "ti", - "ke", - "to", - "pe", - "la" - ], - "SHORTMONTH": [ - "tammikuuta", - "helmikuuta", - "maaliskuuta", - "huhtikuuta", - "toukokuuta", - "kes\u00e4kuuta", - "hein\u00e4kuuta", - "elokuuta", - "syyskuuta", - "lokakuuta", - "marraskuuta", - "joulukuuta" - ], - "fullDate": "cccc, d. MMMM y", - "longDate": "d. MMMM y", - "medium": "d.M.yyyy H.mm.ss", - "mediumDate": "d.M.yyyy", - "mediumTime": "H.mm.ss", - "short": "d.M.yyyy H.mm", - "shortDate": "d.M.yyyy", - "shortTime": "H.mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fi", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fil-ph.js b/vendor/assets/components/angular-i18n/angular-locale_fil-ph.js deleted file mode 100644 index 8873e5aa14..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fil-ph.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Linggo", - "Lunes", - "Martes", - "Miyerkules", - "Huwebes", - "Biyernes", - "Sabado" - ], - "MONTH": [ - "Enero", - "Pebrero", - "Marso", - "Abril", - "Mayo", - "Hunyo", - "Hulyo", - "Agosto", - "Setyembre", - "Oktubre", - "Nobyembre", - "Disyembre" - ], - "SHORTDAY": [ - "Lin", - "Lun", - "Mar", - "Mye", - "Huw", - "Bye", - "Sab" - ], - "SHORTMONTH": [ - "Ene", - "Peb", - "Mar", - "Abr", - "May", - "Hun", - "Hul", - "Ago", - "Set", - "Okt", - "Nob", - "Dis" - ], - "fullDate": "EEEE, MMMM dd y", - "longDate": "MMMM d, y", - "medium": "MMM d, y HH:mm:ss", - "mediumDate": "MMM d, y", - "mediumTime": "HH:mm:ss", - "short": "M/d/yy HH:mm", - "shortDate": "M/d/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b1", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "fil-ph", - "pluralCat": function (n) { if (n == 0 || n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fil.js b/vendor/assets/components/angular-i18n/angular-locale_fil.js deleted file mode 100644 index 893e768487..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fil.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Linggo", - "Lunes", - "Martes", - "Miyerkules", - "Huwebes", - "Biyernes", - "Sabado" - ], - "MONTH": [ - "Enero", - "Pebrero", - "Marso", - "Abril", - "Mayo", - "Hunyo", - "Hulyo", - "Agosto", - "Setyembre", - "Oktubre", - "Nobyembre", - "Disyembre" - ], - "SHORTDAY": [ - "Lin", - "Lun", - "Mar", - "Mye", - "Huw", - "Bye", - "Sab" - ], - "SHORTMONTH": [ - "Ene", - "Peb", - "Mar", - "Abr", - "May", - "Hun", - "Hul", - "Ago", - "Set", - "Okt", - "Nob", - "Dis" - ], - "fullDate": "EEEE, MMMM dd y", - "longDate": "MMMM d, y", - "medium": "MMM d, y HH:mm:ss", - "mediumDate": "MMM d, y", - "mediumTime": "HH:mm:ss", - "short": "M/d/yy HH:mm", - "shortDate": "M/d/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b1", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "fil", - "pluralCat": function (n) { if (n == 0 || n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-be.js b/vendor/assets/components/angular-i18n/angular-locale_fr-be.js deleted file mode 100644 index 7de5ef7d2d..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-be.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "d/MM/yy HH:mm", - "shortDate": "d/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-be", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-bf.js b/vendor/assets/components/angular-i18n/angular-locale_fr-bf.js deleted file mode 100644 index d1583817e3..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-bf.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-bf", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-bi.js b/vendor/assets/components/angular-i18n/angular-locale_fr-bi.js deleted file mode 100644 index 8fe8736394..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-bi.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-bi", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-bj.js b/vendor/assets/components/angular-i18n/angular-locale_fr-bj.js deleted file mode 100644 index d5be5b816d..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-bj.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-bj", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-bl.js b/vendor/assets/components/angular-i18n/angular-locale_fr-bl.js deleted file mode 100644 index 73abcdd75a..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-bl.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-bl", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-ca.js b/vendor/assets/components/angular-i18n/angular-locale_fr-ca.js deleted file mode 100644 index 04fd552d32..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-ca.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "yyyy-MM-dd HH:mm:ss", - "mediumDate": "yyyy-MM-dd", - "mediumTime": "HH:mm:ss", - "short": "yy-MM-dd HH:mm", - "shortDate": "yy-MM-dd", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "$", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-ca", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-cd.js b/vendor/assets/components/angular-i18n/angular-locale_fr-cd.js deleted file mode 100644 index 996c7f596f..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-cd.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-cd", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-cf.js b/vendor/assets/components/angular-i18n/angular-locale_fr-cf.js deleted file mode 100644 index 614add52ee..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-cf.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-cf", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-cg.js b/vendor/assets/components/angular-i18n/angular-locale_fr-cg.js deleted file mode 100644 index 9431c2c9c9..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-cg.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-cg", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-ch.js b/vendor/assets/components/angular-i18n/angular-locale_fr-ch.js deleted file mode 100644 index 6a47fb0c74..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-ch.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yy HH:mm", - "shortDate": "dd.MM.yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-ch", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-ci.js b/vendor/assets/components/angular-i18n/angular-locale_fr-ci.js deleted file mode 100644 index 7ba2130e8f..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-ci.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-ci", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-cm.js b/vendor/assets/components/angular-i18n/angular-locale_fr-cm.js deleted file mode 100644 index ef8e7ded1f..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-cm.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-cm", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-dj.js b/vendor/assets/components/angular-i18n/angular-locale_fr-dj.js deleted file mode 100644 index 052750c4ba..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-dj.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-dj", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-fr.js b/vendor/assets/components/angular-i18n/angular-locale_fr-fr.js deleted file mode 100644 index 8e38aa01ec..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-fr.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-fr", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-ga.js b/vendor/assets/components/angular-i18n/angular-locale_fr-ga.js deleted file mode 100644 index a732c276a0..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-ga.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-ga", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-gf.js b/vendor/assets/components/angular-i18n/angular-locale_fr-gf.js deleted file mode 100644 index 3ef7c4aed1..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-gf.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-gf", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-gn.js b/vendor/assets/components/angular-i18n/angular-locale_fr-gn.js deleted file mode 100644 index a239cc8e60..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-gn.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-gn", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-gp.js b/vendor/assets/components/angular-i18n/angular-locale_fr-gp.js deleted file mode 100644 index 7e00d06385..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-gp.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-gp", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-gq.js b/vendor/assets/components/angular-i18n/angular-locale_fr-gq.js deleted file mode 100644 index 107f5ff303..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-gq.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-gq", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-km.js b/vendor/assets/components/angular-i18n/angular-locale_fr-km.js deleted file mode 100644 index 8e17c2207a..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-km.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-km", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-lu.js b/vendor/assets/components/angular-i18n/angular-locale_fr-lu.js deleted file mode 100644 index 86f1a7cce9..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-lu.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-lu", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-mc.js b/vendor/assets/components/angular-i18n/angular-locale_fr-mc.js deleted file mode 100644 index 3fb2bc8e88..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-mc.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-mc", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-mf.js b/vendor/assets/components/angular-i18n/angular-locale_fr-mf.js deleted file mode 100644 index 6e35abe9c1..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-mf.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-mf", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-mg.js b/vendor/assets/components/angular-i18n/angular-locale_fr-mg.js deleted file mode 100644 index 35e8308f88..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-mg.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-mg", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-ml.js b/vendor/assets/components/angular-i18n/angular-locale_fr-ml.js deleted file mode 100644 index e2b6d8ad0a..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-ml.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-ml", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-mq.js b/vendor/assets/components/angular-i18n/angular-locale_fr-mq.js deleted file mode 100644 index b99ce2fe7d..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-mq.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-mq", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-ne.js b/vendor/assets/components/angular-i18n/angular-locale_fr-ne.js deleted file mode 100644 index 2e61a66df2..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-ne.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-ne", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-re.js b/vendor/assets/components/angular-i18n/angular-locale_fr-re.js deleted file mode 100644 index 5cb611bab5..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-re.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-re", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr-yt.js b/vendor/assets/components/angular-i18n/angular-locale_fr-yt.js deleted file mode 100644 index eb64853666..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr-yt.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr-yt", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_fr.js b/vendor/assets/components/angular-i18n/angular-locale_fr.js deleted file mode 100644 index b45cdc2b3f..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_fr.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "dimanche", - "lundi", - "mardi", - "mercredi", - "jeudi", - "vendredi", - "samedi" - ], - "MONTH": [ - "janvier", - "f\u00e9vrier", - "mars", - "avril", - "mai", - "juin", - "juillet", - "ao\u00fbt", - "septembre", - "octobre", - "novembre", - "d\u00e9cembre" - ], - "SHORTDAY": [ - "dim.", - "lun.", - "mar.", - "mer.", - "jeu.", - "ven.", - "sam." - ], - "SHORTMONTH": [ - "janv.", - "f\u00e9vr.", - "mars", - "avr.", - "mai", - "juin", - "juil.", - "ao\u00fbt", - "sept.", - "oct.", - "nov.", - "d\u00e9c." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "fr", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_gl-es.js b/vendor/assets/components/angular-i18n/angular-locale_gl-es.js deleted file mode 100644 index f9dc6282e7..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_gl-es.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "Domingo", - "Luns", - "Martes", - "M\u00e9rcores", - "Xoves", - "Venres", - "S\u00e1bado" - ], - "MONTH": [ - "Xaneiro", - "Febreiro", - "Marzo", - "Abril", - "Maio", - "Xu\u00f1o", - "Xullo", - "Agosto", - "Setembro", - "Outubro", - "Novembro", - "Decembro" - ], - "SHORTDAY": [ - "Dom", - "Lun", - "Mar", - "M\u00e9r", - "Xov", - "Ven", - "S\u00e1b" - ], - "SHORTMONTH": [ - "Xan", - "Feb", - "Mar", - "Abr", - "Mai", - "Xu\u00f1", - "Xul", - "Ago", - "Set", - "Out", - "Nov", - "Dec" - ], - "fullDate": "EEEE dd MMMM y", - "longDate": "dd MMMM y", - "medium": "d MMM, y HH:mm:ss", - "mediumDate": "d MMM, y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "gl-es", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_gl.js b/vendor/assets/components/angular-i18n/angular-locale_gl.js deleted file mode 100644 index b5f47b4a79..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_gl.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "Domingo", - "Luns", - "Martes", - "M\u00e9rcores", - "Xoves", - "Venres", - "S\u00e1bado" - ], - "MONTH": [ - "Xaneiro", - "Febreiro", - "Marzo", - "Abril", - "Maio", - "Xu\u00f1o", - "Xullo", - "Agosto", - "Setembro", - "Outubro", - "Novembro", - "Decembro" - ], - "SHORTDAY": [ - "Dom", - "Lun", - "Mar", - "M\u00e9r", - "Xov", - "Ven", - "S\u00e1b" - ], - "SHORTMONTH": [ - "Xan", - "Feb", - "Mar", - "Abr", - "Mai", - "Xu\u00f1", - "Xul", - "Ago", - "Set", - "Out", - "Nov", - "Dec" - ], - "fullDate": "EEEE dd MMMM y", - "longDate": "dd MMMM y", - "medium": "d MMM, y HH:mm:ss", - "mediumDate": "d MMM, y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "gl", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_gsw-ch.js b/vendor/assets/components/angular-i18n/angular-locale_gsw-ch.js deleted file mode 100644 index 759974d88a..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_gsw-ch.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "vorm.", - "nam." - ], - "DAY": [ - "Sunntig", - "M\u00e4\u00e4ntig", - "Ziischtig", - "Mittwuch", - "Dunschtig", - "Friitig", - "Samschtig" - ], - "MONTH": [ - "Januar", - "Februar", - "M\u00e4rz", - "April", - "Mai", - "Juni", - "Juli", - "Auguscht", - "Sept\u00e4mber", - "Oktoober", - "Nov\u00e4mber", - "Dez\u00e4mber" - ], - "SHORTDAY": [ - "Su.", - "M\u00e4.", - "Zi.", - "Mi.", - "Du.", - "Fr.", - "Sa." - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "M\u00e4r", - "Apr", - "Mai", - "Jun", - "Jul", - "Aug", - "Sep", - "Okt", - "Nov", - "Dez" - ], - "fullDate": "EEEE, d. MMMM y", - "longDate": "d. MMMM y", - "medium": "dd.MM.yyyy HH:mm:ss", - "mediumDate": "dd.MM.yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yy HH:mm", - "shortDate": "dd.MM.yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "CHF", - "DECIMAL_SEP": ".", - "GROUP_SEP": "\u2019", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "gsw-ch", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_gsw.js b/vendor/assets/components/angular-i18n/angular-locale_gsw.js deleted file mode 100644 index 0824756025..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_gsw.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "vorm.", - "nam." - ], - "DAY": [ - "Sunntig", - "M\u00e4\u00e4ntig", - "Ziischtig", - "Mittwuch", - "Dunschtig", - "Friitig", - "Samschtig" - ], - "MONTH": [ - "Januar", - "Februar", - "M\u00e4rz", - "April", - "Mai", - "Juni", - "Juli", - "Auguscht", - "Sept\u00e4mber", - "Oktoober", - "Nov\u00e4mber", - "Dez\u00e4mber" - ], - "SHORTDAY": [ - "Su.", - "M\u00e4.", - "Zi.", - "Mi.", - "Du.", - "Fr.", - "Sa." - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "M\u00e4r", - "Apr", - "Mai", - "Jun", - "Jul", - "Aug", - "Sep", - "Okt", - "Nov", - "Dez" - ], - "fullDate": "EEEE, d. MMMM y", - "longDate": "d. MMMM y", - "medium": "dd.MM.yyyy HH:mm:ss", - "mediumDate": "dd.MM.yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yy HH:mm", - "shortDate": "dd.MM.yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "CHF", - "DECIMAL_SEP": ".", - "GROUP_SEP": "\u2019", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "gsw", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_gu-in.js b/vendor/assets/components/angular-i18n/angular-locale_gu-in.js deleted file mode 100644 index d661a68413..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_gu-in.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0", - "\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0", - "\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0", - "\u0aac\u0ac1\u0aa7\u0ab5\u0abe\u0ab0", - "\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0", - "\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0", - "\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0" - ], - "MONTH": [ - "\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0", - "\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0", - "\u0aae\u0abe\u0ab0\u0acd\u0a9a", - "\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2", - "\u0aae\u0ac7", - "\u0a9c\u0ac2\u0aa8", - "\u0a9c\u0ac1\u0ab2\u0abe\u0a88", - "\u0a91\u0a97\u0ab8\u0acd\u0a9f", - "\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0", - "\u0a91\u0a95\u0acd\u0a9f\u0acb\u0aac\u0ab0", - "\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0", - "\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0" - ], - "SHORTDAY": [ - "\u0ab0\u0ab5\u0abf", - "\u0ab8\u0acb\u0aae", - "\u0aae\u0a82\u0a97\u0ab3", - "\u0aac\u0ac1\u0aa7", - "\u0a97\u0ac1\u0ab0\u0ac1", - "\u0ab6\u0ac1\u0a95\u0acd\u0ab0", - "\u0ab6\u0aa8\u0abf" - ], - "SHORTMONTH": [ - "\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1", - "\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1", - "\u0aae\u0abe\u0ab0\u0acd\u0a9a", - "\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2", - "\u0aae\u0ac7", - "\u0a9c\u0ac2\u0aa8", - "\u0a9c\u0ac1\u0ab2\u0abe\u0a88", - "\u0a91\u0a97\u0ab8\u0acd\u0a9f", - "\u0ab8\u0aaa\u0acd\u0a9f\u0ac7", - "\u0a91\u0a95\u0acd\u0a9f\u0acb", - "\u0aa8\u0ab5\u0ac7", - "\u0aa1\u0abf\u0ab8\u0ac7" - ], - "fullDate": "EEEE, d MMMM, y", - "longDate": "d MMMM, y", - "medium": "d MMM, y hh:mm:ss a", - "mediumDate": "d MMM, y", - "mediumTime": "hh:mm:ss a", - "short": "d-MM-yy hh:mm a", - "shortDate": "d-MM-yy", - "shortTime": "hh:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "gu-in", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_gu.js b/vendor/assets/components/angular-i18n/angular-locale_gu.js deleted file mode 100644 index c8045115cf..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_gu.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0", - "\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0", - "\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0", - "\u0aac\u0ac1\u0aa7\u0ab5\u0abe\u0ab0", - "\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0", - "\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0", - "\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0" - ], - "MONTH": [ - "\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0", - "\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0", - "\u0aae\u0abe\u0ab0\u0acd\u0a9a", - "\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2", - "\u0aae\u0ac7", - "\u0a9c\u0ac2\u0aa8", - "\u0a9c\u0ac1\u0ab2\u0abe\u0a88", - "\u0a91\u0a97\u0ab8\u0acd\u0a9f", - "\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0", - "\u0a91\u0a95\u0acd\u0a9f\u0acb\u0aac\u0ab0", - "\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0", - "\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0" - ], - "SHORTDAY": [ - "\u0ab0\u0ab5\u0abf", - "\u0ab8\u0acb\u0aae", - "\u0aae\u0a82\u0a97\u0ab3", - "\u0aac\u0ac1\u0aa7", - "\u0a97\u0ac1\u0ab0\u0ac1", - "\u0ab6\u0ac1\u0a95\u0acd\u0ab0", - "\u0ab6\u0aa8\u0abf" - ], - "SHORTMONTH": [ - "\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1", - "\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1", - "\u0aae\u0abe\u0ab0\u0acd\u0a9a", - "\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2", - "\u0aae\u0ac7", - "\u0a9c\u0ac2\u0aa8", - "\u0a9c\u0ac1\u0ab2\u0abe\u0a88", - "\u0a91\u0a97\u0ab8\u0acd\u0a9f", - "\u0ab8\u0aaa\u0acd\u0a9f\u0ac7", - "\u0a91\u0a95\u0acd\u0a9f\u0acb", - "\u0aa8\u0ab5\u0ac7", - "\u0aa1\u0abf\u0ab8\u0ac7" - ], - "fullDate": "EEEE, d MMMM, y", - "longDate": "d MMMM, y", - "medium": "d MMM, y hh:mm:ss a", - "mediumDate": "d MMM, y", - "mediumTime": "hh:mm:ss a", - "short": "d-MM-yy hh:mm a", - "shortDate": "d-MM-yy", - "shortTime": "hh:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "gu", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_he-il.js b/vendor/assets/components/angular-i18n/angular-locale_he-il.js deleted file mode 100644 index bc99779e80..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_he-il.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u05dc\u05e4\u05e0\u05d4\u05f4\u05e6", - "\u05d0\u05d7\u05d4\u05f4\u05e6" - ], - "DAY": [ - "\u05d9\u05d5\u05dd \u05e8\u05d0\u05e9\u05d5\u05df", - "\u05d9\u05d5\u05dd \u05e9\u05e0\u05d9", - "\u05d9\u05d5\u05dd \u05e9\u05dc\u05d9\u05e9\u05d9", - "\u05d9\u05d5\u05dd \u05e8\u05d1\u05d9\u05e2\u05d9", - "\u05d9\u05d5\u05dd \u05d7\u05de\u05d9\u05e9\u05d9", - "\u05d9\u05d5\u05dd \u05e9\u05d9\u05e9\u05d9", - "\u05d9\u05d5\u05dd \u05e9\u05d1\u05ea" - ], - "MONTH": [ - "\u05d9\u05e0\u05d5\u05d0\u05e8", - "\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8", - "\u05de\u05e8\u05e5", - "\u05d0\u05e4\u05e8\u05d9\u05dc", - "\u05de\u05d0\u05d9", - "\u05d9\u05d5\u05e0\u05d9", - "\u05d9\u05d5\u05dc\u05d9", - "\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8", - "\u05e1\u05e4\u05d8\u05de\u05d1\u05e8", - "\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8", - "\u05e0\u05d5\u05d1\u05de\u05d1\u05e8", - "\u05d3\u05e6\u05de\u05d1\u05e8" - ], - "SHORTDAY": [ - "\u05d9\u05d5\u05dd \u05d0\u05f3", - "\u05d9\u05d5\u05dd \u05d1\u05f3", - "\u05d9\u05d5\u05dd \u05d2\u05f3", - "\u05d9\u05d5\u05dd \u05d3\u05f3", - "\u05d9\u05d5\u05dd \u05d4\u05f3", - "\u05d9\u05d5\u05dd \u05d5\u05f3", - "\u05e9\u05d1\u05ea" - ], - "SHORTMONTH": [ - "\u05d9\u05e0\u05d5", - "\u05e4\u05d1\u05e8", - "\u05de\u05e8\u05e5", - "\u05d0\u05e4\u05e8", - "\u05de\u05d0\u05d9", - "\u05d9\u05d5\u05e0", - "\u05d9\u05d5\u05dc", - "\u05d0\u05d5\u05d2", - "\u05e1\u05e4\u05d8", - "\u05d0\u05d5\u05e7", - "\u05e0\u05d5\u05d1", - "\u05d3\u05e6\u05de" - ], - "fullDate": "EEEE, d \u05d1MMMM y", - "longDate": "d \u05d1MMMM y", - "medium": "d \u05d1MMM yyyy HH:mm:ss", - "mediumDate": "d \u05d1MMM yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20aa", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "he-il", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_he.js b/vendor/assets/components/angular-i18n/angular-locale_he.js deleted file mode 100644 index 88ae35a3d7..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_he.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u05dc\u05e4\u05e0\u05d4\u05f4\u05e6", - "\u05d0\u05d7\u05d4\u05f4\u05e6" - ], - "DAY": [ - "\u05d9\u05d5\u05dd \u05e8\u05d0\u05e9\u05d5\u05df", - "\u05d9\u05d5\u05dd \u05e9\u05e0\u05d9", - "\u05d9\u05d5\u05dd \u05e9\u05dc\u05d9\u05e9\u05d9", - "\u05d9\u05d5\u05dd \u05e8\u05d1\u05d9\u05e2\u05d9", - "\u05d9\u05d5\u05dd \u05d7\u05de\u05d9\u05e9\u05d9", - "\u05d9\u05d5\u05dd \u05e9\u05d9\u05e9\u05d9", - "\u05d9\u05d5\u05dd \u05e9\u05d1\u05ea" - ], - "MONTH": [ - "\u05d9\u05e0\u05d5\u05d0\u05e8", - "\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8", - "\u05de\u05e8\u05e5", - "\u05d0\u05e4\u05e8\u05d9\u05dc", - "\u05de\u05d0\u05d9", - "\u05d9\u05d5\u05e0\u05d9", - "\u05d9\u05d5\u05dc\u05d9", - "\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8", - "\u05e1\u05e4\u05d8\u05de\u05d1\u05e8", - "\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8", - "\u05e0\u05d5\u05d1\u05de\u05d1\u05e8", - "\u05d3\u05e6\u05de\u05d1\u05e8" - ], - "SHORTDAY": [ - "\u05d9\u05d5\u05dd \u05d0\u05f3", - "\u05d9\u05d5\u05dd \u05d1\u05f3", - "\u05d9\u05d5\u05dd \u05d2\u05f3", - "\u05d9\u05d5\u05dd \u05d3\u05f3", - "\u05d9\u05d5\u05dd \u05d4\u05f3", - "\u05d9\u05d5\u05dd \u05d5\u05f3", - "\u05e9\u05d1\u05ea" - ], - "SHORTMONTH": [ - "\u05d9\u05e0\u05d5", - "\u05e4\u05d1\u05e8", - "\u05de\u05e8\u05e5", - "\u05d0\u05e4\u05e8", - "\u05de\u05d0\u05d9", - "\u05d9\u05d5\u05e0", - "\u05d9\u05d5\u05dc", - "\u05d0\u05d5\u05d2", - "\u05e1\u05e4\u05d8", - "\u05d0\u05d5\u05e7", - "\u05e0\u05d5\u05d1", - "\u05d3\u05e6\u05de" - ], - "fullDate": "EEEE, d \u05d1MMMM y", - "longDate": "d \u05d1MMMM y", - "medium": "d \u05d1MMM yyyy HH:mm:ss", - "mediumDate": "d \u05d1MMM yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20aa", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "he", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_hi-in.js b/vendor/assets/components/angular-i18n/angular-locale_hi-in.js deleted file mode 100644 index 17399a3542..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_hi-in.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u0930\u0935\u093f\u0935\u093e\u0930", - "\u0938\u094b\u092e\u0935\u093e\u0930", - "\u092e\u0902\u0917\u0932\u0935\u093e\u0930", - "\u092c\u0941\u0927\u0935\u093e\u0930", - "\u092c\u0943\u0939\u0938\u094d\u092a\u0924\u093f\u0935\u093e\u0930", - "\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930", - "\u0936\u0928\u093f\u0935\u093e\u0930" - ], - "MONTH": [ - "\u091c\u0928\u0935\u0930\u0940", - "\u092b\u0930\u0935\u0930\u0940", - "\u092e\u093e\u0930\u094d\u091a", - "\u0905\u092a\u094d\u0930\u0948\u0932", - "\u092e\u0908", - "\u091c\u0942\u0928", - "\u091c\u0941\u0932\u093e\u0908", - "\u0905\u0917\u0938\u094d\u0924", - "\u0938\u093f\u0924\u092e\u094d\u092c\u0930", - "\u0905\u0915\u094d\u0924\u0942\u092c\u0930", - "\u0928\u0935\u092e\u094d\u092c\u0930", - "\u0926\u093f\u0938\u092e\u094d\u092c\u0930" - ], - "SHORTDAY": [ - "\u0930\u0935\u093f.", - "\u0938\u094b\u092e.", - "\u092e\u0902\u0917\u0932.", - "\u092c\u0941\u0927.", - "\u092c\u0943\u0939.", - "\u0936\u0941\u0915\u094d\u0930.", - "\u0936\u0928\u093f." - ], - "SHORTMONTH": [ - "\u091c\u0928\u0935\u0930\u0940", - "\u092b\u0930\u0935\u0930\u0940", - "\u092e\u093e\u0930\u094d\u091a", - "\u0905\u092a\u094d\u0930\u0948\u0932", - "\u092e\u0908", - "\u091c\u0942\u0928", - "\u091c\u0941\u0932\u093e\u0908", - "\u0905\u0917\u0938\u094d\u0924", - "\u0938\u093f\u0924\u092e\u094d\u092c\u0930", - "\u0905\u0915\u094d\u0924\u0942\u092c\u0930", - "\u0928\u0935\u092e\u094d\u092c\u0930", - "\u0926\u093f\u0938\u092e\u094d\u092c\u0930" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "dd-MM-yyyy h:mm:ss a", - "mediumDate": "dd-MM-yyyy", - "mediumTime": "h:mm:ss a", - "short": "d-M-yy h:mm a", - "shortDate": "d-M-yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0-", - "negSuf": "", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "hi-in", - "pluralCat": function (n) { if (n == 0 || n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_hi.js b/vendor/assets/components/angular-i18n/angular-locale_hi.js deleted file mode 100644 index 165c639ed0..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_hi.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u0930\u0935\u093f\u0935\u093e\u0930", - "\u0938\u094b\u092e\u0935\u093e\u0930", - "\u092e\u0902\u0917\u0932\u0935\u093e\u0930", - "\u092c\u0941\u0927\u0935\u093e\u0930", - "\u092c\u0943\u0939\u0938\u094d\u092a\u0924\u093f\u0935\u093e\u0930", - "\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930", - "\u0936\u0928\u093f\u0935\u093e\u0930" - ], - "MONTH": [ - "\u091c\u0928\u0935\u0930\u0940", - "\u092b\u0930\u0935\u0930\u0940", - "\u092e\u093e\u0930\u094d\u091a", - "\u0905\u092a\u094d\u0930\u0948\u0932", - "\u092e\u0908", - "\u091c\u0942\u0928", - "\u091c\u0941\u0932\u093e\u0908", - "\u0905\u0917\u0938\u094d\u0924", - "\u0938\u093f\u0924\u092e\u094d\u092c\u0930", - "\u0905\u0915\u094d\u0924\u0942\u092c\u0930", - "\u0928\u0935\u092e\u094d\u092c\u0930", - "\u0926\u093f\u0938\u092e\u094d\u092c\u0930" - ], - "SHORTDAY": [ - "\u0930\u0935\u093f.", - "\u0938\u094b\u092e.", - "\u092e\u0902\u0917\u0932.", - "\u092c\u0941\u0927.", - "\u092c\u0943\u0939.", - "\u0936\u0941\u0915\u094d\u0930.", - "\u0936\u0928\u093f." - ], - "SHORTMONTH": [ - "\u091c\u0928\u0935\u0930\u0940", - "\u092b\u0930\u0935\u0930\u0940", - "\u092e\u093e\u0930\u094d\u091a", - "\u0905\u092a\u094d\u0930\u0948\u0932", - "\u092e\u0908", - "\u091c\u0942\u0928", - "\u091c\u0941\u0932\u093e\u0908", - "\u0905\u0917\u0938\u094d\u0924", - "\u0938\u093f\u0924\u092e\u094d\u092c\u0930", - "\u0905\u0915\u094d\u0924\u0942\u092c\u0930", - "\u0928\u0935\u092e\u094d\u092c\u0930", - "\u0926\u093f\u0938\u092e\u094d\u092c\u0930" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "dd-MM-yyyy h:mm:ss a", - "mediumDate": "dd-MM-yyyy", - "mediumTime": "h:mm:ss a", - "short": "d-M-yy h:mm a", - "shortDate": "d-M-yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0-", - "negSuf": "", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "hi", - "pluralCat": function (n) { if (n == 0 || n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_hr-hr.js b/vendor/assets/components/angular-i18n/angular-locale_hr-hr.js deleted file mode 100644 index 3ef9ff30a8..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_hr-hr.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "nedjelja", - "ponedjeljak", - "utorak", - "srijeda", - "\u010detvrtak", - "petak", - "subota" - ], - "MONTH": [ - "sije\u010dnja", - "velja\u010de", - "o\u017eujka", - "travnja", - "svibnja", - "lipnja", - "srpnja", - "kolovoza", - "rujna", - "listopada", - "studenoga", - "prosinca" - ], - "SHORTDAY": [ - "ned", - "pon", - "uto", - "sri", - "\u010det", - "pet", - "sub" - ], - "SHORTMONTH": [ - "sij", - "velj", - "o\u017eu", - "tra", - "svi", - "lip", - "srp", - "kol", - "ruj", - "lis", - "stu", - "pro" - ], - "fullDate": "EEEE, d. MMMM y.", - "longDate": "d. MMMM y.", - "medium": "d. M. y. HH:mm:ss", - "mediumDate": "d. M. y.", - "mediumTime": "HH:mm:ss", - "short": "d.M.y. HH:mm", - "shortDate": "d.M.y.", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "kn", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "hr-hr", - "pluralCat": function (n) { if (n % 10 == 1 && n % 100 != 11) { return PLURAL_CATEGORY.ONE; } if (n == (n | 0) && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) { return PLURAL_CATEGORY.FEW; } if (n % 10 == 0 || n == (n | 0) && n % 10 >= 5 && n % 10 <= 9 || n == (n | 0) && n % 100 >= 11 && n % 100 <= 14) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_hr.js b/vendor/assets/components/angular-i18n/angular-locale_hr.js deleted file mode 100644 index 6702e6b50e..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_hr.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "nedjelja", - "ponedjeljak", - "utorak", - "srijeda", - "\u010detvrtak", - "petak", - "subota" - ], - "MONTH": [ - "sije\u010dnja", - "velja\u010de", - "o\u017eujka", - "travnja", - "svibnja", - "lipnja", - "srpnja", - "kolovoza", - "rujna", - "listopada", - "studenoga", - "prosinca" - ], - "SHORTDAY": [ - "ned", - "pon", - "uto", - "sri", - "\u010det", - "pet", - "sub" - ], - "SHORTMONTH": [ - "sij", - "velj", - "o\u017eu", - "tra", - "svi", - "lip", - "srp", - "kol", - "ruj", - "lis", - "stu", - "pro" - ], - "fullDate": "EEEE, d. MMMM y.", - "longDate": "d. MMMM y.", - "medium": "d. M. y. HH:mm:ss", - "mediumDate": "d. M. y.", - "mediumTime": "HH:mm:ss", - "short": "d.M.y. HH:mm", - "shortDate": "d.M.y.", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "kn", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "hr", - "pluralCat": function (n) { if (n % 10 == 1 && n % 100 != 11) { return PLURAL_CATEGORY.ONE; } if (n == (n | 0) && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) { return PLURAL_CATEGORY.FEW; } if (n % 10 == 0 || n == (n | 0) && n % 10 >= 5 && n % 10 <= 9 || n == (n | 0) && n % 100 >= 11 && n % 100 <= 14) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_hu-hu.js b/vendor/assets/components/angular-i18n/angular-locale_hu-hu.js deleted file mode 100644 index 8a7f12675a..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_hu-hu.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "de.", - "du." - ], - "DAY": [ - "vas\u00e1rnap", - "h\u00e9tf\u0151", - "kedd", - "szerda", - "cs\u00fct\u00f6rt\u00f6k", - "p\u00e9ntek", - "szombat" - ], - "MONTH": [ - "janu\u00e1r", - "febru\u00e1r", - "m\u00e1rcius", - "\u00e1prilis", - "m\u00e1jus", - "j\u00fanius", - "j\u00falius", - "augusztus", - "szeptember", - "okt\u00f3ber", - "november", - "december" - ], - "SHORTDAY": [ - "V", - "H", - "K", - "Sze", - "Cs", - "P", - "Szo" - ], - "SHORTMONTH": [ - "jan.", - "febr.", - "m\u00e1rc.", - "\u00e1pr.", - "m\u00e1j.", - "j\u00fan.", - "j\u00fal.", - "aug.", - "szept.", - "okt.", - "nov.", - "dec." - ], - "fullDate": "y. MMMM d., EEEE", - "longDate": "y. MMMM d.", - "medium": "yyyy.MM.dd. H:mm:ss", - "mediumDate": "yyyy.MM.dd.", - "mediumTime": "H:mm:ss", - "short": "yyyy.MM.dd. H:mm", - "shortDate": "yyyy.MM.dd.", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "Ft", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "hu-hu", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_hu.js b/vendor/assets/components/angular-i18n/angular-locale_hu.js deleted file mode 100644 index 26558ed211..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_hu.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "de.", - "du." - ], - "DAY": [ - "vas\u00e1rnap", - "h\u00e9tf\u0151", - "kedd", - "szerda", - "cs\u00fct\u00f6rt\u00f6k", - "p\u00e9ntek", - "szombat" - ], - "MONTH": [ - "janu\u00e1r", - "febru\u00e1r", - "m\u00e1rcius", - "\u00e1prilis", - "m\u00e1jus", - "j\u00fanius", - "j\u00falius", - "augusztus", - "szeptember", - "okt\u00f3ber", - "november", - "december" - ], - "SHORTDAY": [ - "V", - "H", - "K", - "Sze", - "Cs", - "P", - "Szo" - ], - "SHORTMONTH": [ - "jan.", - "febr.", - "m\u00e1rc.", - "\u00e1pr.", - "m\u00e1j.", - "j\u00fan.", - "j\u00fal.", - "aug.", - "szept.", - "okt.", - "nov.", - "dec." - ], - "fullDate": "y. MMMM d., EEEE", - "longDate": "y. MMMM d.", - "medium": "yyyy.MM.dd. H:mm:ss", - "mediumDate": "yyyy.MM.dd.", - "mediumTime": "H:mm:ss", - "short": "yyyy.MM.dd. H:mm", - "shortDate": "yyyy.MM.dd.", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "Ft", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "hu", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_id-id.js b/vendor/assets/components/angular-i18n/angular-locale_id-id.js deleted file mode 100644 index b63dd77b93..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_id-id.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Minggu", - "Senin", - "Selasa", - "Rabu", - "Kamis", - "Jumat", - "Sabtu" - ], - "MONTH": [ - "Januari", - "Februari", - "Maret", - "April", - "Mei", - "Juni", - "Juli", - "Agustus", - "September", - "Oktober", - "November", - "Desember" - ], - "SHORTDAY": [ - "Min", - "Sen", - "Sel", - "Rab", - "Kam", - "Jum", - "Sab" - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "Mar", - "Apr", - "Mei", - "Jun", - "Jul", - "Agt", - "Sep", - "Okt", - "Nov", - "Des" - ], - "fullDate": "EEEE, dd MMMM yyyy", - "longDate": "d MMMM yyyy", - "medium": "d MMM yyyy HH:mm:ss", - "mediumDate": "d MMM yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "Rp", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4-", - "negSuf": "", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "id-id", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_id.js b/vendor/assets/components/angular-i18n/angular-locale_id.js deleted file mode 100644 index b17ce79c9c..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_id.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Minggu", - "Senin", - "Selasa", - "Rabu", - "Kamis", - "Jumat", - "Sabtu" - ], - "MONTH": [ - "Januari", - "Februari", - "Maret", - "April", - "Mei", - "Juni", - "Juli", - "Agustus", - "September", - "Oktober", - "November", - "Desember" - ], - "SHORTDAY": [ - "Min", - "Sen", - "Sel", - "Rab", - "Kam", - "Jum", - "Sab" - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "Mar", - "Apr", - "Mei", - "Jun", - "Jul", - "Agt", - "Sep", - "Okt", - "Nov", - "Des" - ], - "fullDate": "EEEE, dd MMMM yyyy", - "longDate": "d MMMM yyyy", - "medium": "d MMM yyyy HH:mm:ss", - "mediumDate": "d MMM yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "Rp", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4-", - "negSuf": "", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "id", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_in.js b/vendor/assets/components/angular-i18n/angular-locale_in.js deleted file mode 100644 index c83cce1fe1..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_in.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Minggu", - "Senin", - "Selasa", - "Rabu", - "Kamis", - "Jumat", - "Sabtu" - ], - "MONTH": [ - "Januari", - "Februari", - "Maret", - "April", - "Mei", - "Juni", - "Juli", - "Agustus", - "September", - "Oktober", - "November", - "Desember" - ], - "SHORTDAY": [ - "Min", - "Sen", - "Sel", - "Rab", - "Kam", - "Jum", - "Sab" - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "Mar", - "Apr", - "Mei", - "Jun", - "Jul", - "Agt", - "Sep", - "Okt", - "Nov", - "Des" - ], - "fullDate": "EEEE, dd MMMM yyyy", - "longDate": "d MMMM yyyy", - "medium": "d MMM yyyy HH:mm:ss", - "mediumDate": "d MMM yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "Rp", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4-", - "negSuf": "", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "in", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_is-is.js b/vendor/assets/components/angular-i18n/angular-locale_is-is.js deleted file mode 100644 index fe2514248f..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_is-is.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "f.h.", - "e.h." - ], - "DAY": [ - "sunnudagur", - "m\u00e1nudagur", - "\u00feri\u00f0judagur", - "mi\u00f0vikudagur", - "fimmtudagur", - "f\u00f6studagur", - "laugardagur" - ], - "MONTH": [ - "jan\u00faar", - "febr\u00faar", - "mars", - "apr\u00edl", - "ma\u00ed", - "j\u00fan\u00ed", - "j\u00fal\u00ed", - "\u00e1g\u00fast", - "september", - "okt\u00f3ber", - "n\u00f3vember", - "desember" - ], - "SHORTDAY": [ - "sun", - "m\u00e1n", - "\u00feri", - "mi\u00f0", - "fim", - "f\u00f6s", - "lau" - ], - "SHORTMONTH": [ - "jan", - "feb", - "mar", - "apr", - "ma\u00ed", - "j\u00fan", - "j\u00fal", - "\u00e1g\u00fa", - "sep", - "okt", - "n\u00f3v", - "des" - ], - "fullDate": "EEEE, d. MMMM y", - "longDate": "d. MMMM y", - "medium": "d.M.yyyy HH:mm:ss", - "mediumDate": "d.M.yyyy", - "mediumTime": "HH:mm:ss", - "short": "d.M.yyyy HH:mm", - "shortDate": "d.M.yyyy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "kr", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "is-is", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_is.js b/vendor/assets/components/angular-i18n/angular-locale_is.js deleted file mode 100644 index a579b0e542..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_is.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "f.h.", - "e.h." - ], - "DAY": [ - "sunnudagur", - "m\u00e1nudagur", - "\u00feri\u00f0judagur", - "mi\u00f0vikudagur", - "fimmtudagur", - "f\u00f6studagur", - "laugardagur" - ], - "MONTH": [ - "jan\u00faar", - "febr\u00faar", - "mars", - "apr\u00edl", - "ma\u00ed", - "j\u00fan\u00ed", - "j\u00fal\u00ed", - "\u00e1g\u00fast", - "september", - "okt\u00f3ber", - "n\u00f3vember", - "desember" - ], - "SHORTDAY": [ - "sun", - "m\u00e1n", - "\u00feri", - "mi\u00f0", - "fim", - "f\u00f6s", - "lau" - ], - "SHORTMONTH": [ - "jan", - "feb", - "mar", - "apr", - "ma\u00ed", - "j\u00fan", - "j\u00fal", - "\u00e1g\u00fa", - "sep", - "okt", - "n\u00f3v", - "des" - ], - "fullDate": "EEEE, d. MMMM y", - "longDate": "d. MMMM y", - "medium": "d.M.yyyy HH:mm:ss", - "mediumDate": "d.M.yyyy", - "mediumTime": "HH:mm:ss", - "short": "d.M.yyyy HH:mm", - "shortDate": "d.M.yyyy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "kr", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "is", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_it-it.js b/vendor/assets/components/angular-i18n/angular-locale_it-it.js deleted file mode 100644 index 82766cc53c..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_it-it.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "m.", - "p." - ], - "DAY": [ - "domenica", - "luned\u00ec", - "marted\u00ec", - "mercoled\u00ec", - "gioved\u00ec", - "venerd\u00ec", - "sabato" - ], - "MONTH": [ - "gennaio", - "febbraio", - "marzo", - "aprile", - "maggio", - "giugno", - "luglio", - "agosto", - "settembre", - "ottobre", - "novembre", - "dicembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mer", - "gio", - "ven", - "sab" - ], - "SHORTMONTH": [ - "gen", - "feb", - "mar", - "apr", - "mag", - "giu", - "lug", - "ago", - "set", - "ott", - "nov", - "dic" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "dd MMMM y", - "medium": "dd/MMM/y HH:mm:ss", - "mediumDate": "dd/MMM/y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0-", - "negSuf": "", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "it-it", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_it-sm.js b/vendor/assets/components/angular-i18n/angular-locale_it-sm.js deleted file mode 100644 index 6a7041ddc8..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_it-sm.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "m.", - "p." - ], - "DAY": [ - "domenica", - "luned\u00ec", - "marted\u00ec", - "mercoled\u00ec", - "gioved\u00ec", - "venerd\u00ec", - "sabato" - ], - "MONTH": [ - "gennaio", - "febbraio", - "marzo", - "aprile", - "maggio", - "giugno", - "luglio", - "agosto", - "settembre", - "ottobre", - "novembre", - "dicembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mer", - "gio", - "ven", - "sab" - ], - "SHORTMONTH": [ - "gen", - "feb", - "mar", - "apr", - "mag", - "giu", - "lug", - "ago", - "set", - "ott", - "nov", - "dic" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "dd MMMM y", - "medium": "dd/MMM/y HH:mm:ss", - "mediumDate": "dd/MMM/y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0-", - "negSuf": "", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "it-sm", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_it.js b/vendor/assets/components/angular-i18n/angular-locale_it.js deleted file mode 100644 index c5101dbd39..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_it.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "m.", - "p." - ], - "DAY": [ - "domenica", - "luned\u00ec", - "marted\u00ec", - "mercoled\u00ec", - "gioved\u00ec", - "venerd\u00ec", - "sabato" - ], - "MONTH": [ - "gennaio", - "febbraio", - "marzo", - "aprile", - "maggio", - "giugno", - "luglio", - "agosto", - "settembre", - "ottobre", - "novembre", - "dicembre" - ], - "SHORTDAY": [ - "dom", - "lun", - "mar", - "mer", - "gio", - "ven", - "sab" - ], - "SHORTMONTH": [ - "gen", - "feb", - "mar", - "apr", - "mag", - "giu", - "lug", - "ago", - "set", - "ott", - "nov", - "dic" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "dd MMMM y", - "medium": "dd/MMM/y HH:mm:ss", - "mediumDate": "dd/MMM/y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0-", - "negSuf": "", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "it", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_iw.js b/vendor/assets/components/angular-i18n/angular-locale_iw.js deleted file mode 100644 index 26d452c405..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_iw.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u05dc\u05e4\u05e0\u05d4\u05f4\u05e6", - "\u05d0\u05d7\u05d4\u05f4\u05e6" - ], - "DAY": [ - "\u05d9\u05d5\u05dd \u05e8\u05d0\u05e9\u05d5\u05df", - "\u05d9\u05d5\u05dd \u05e9\u05e0\u05d9", - "\u05d9\u05d5\u05dd \u05e9\u05dc\u05d9\u05e9\u05d9", - "\u05d9\u05d5\u05dd \u05e8\u05d1\u05d9\u05e2\u05d9", - "\u05d9\u05d5\u05dd \u05d7\u05de\u05d9\u05e9\u05d9", - "\u05d9\u05d5\u05dd \u05e9\u05d9\u05e9\u05d9", - "\u05d9\u05d5\u05dd \u05e9\u05d1\u05ea" - ], - "MONTH": [ - "\u05d9\u05e0\u05d5\u05d0\u05e8", - "\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8", - "\u05de\u05e8\u05e5", - "\u05d0\u05e4\u05e8\u05d9\u05dc", - "\u05de\u05d0\u05d9", - "\u05d9\u05d5\u05e0\u05d9", - "\u05d9\u05d5\u05dc\u05d9", - "\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8", - "\u05e1\u05e4\u05d8\u05de\u05d1\u05e8", - "\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8", - "\u05e0\u05d5\u05d1\u05de\u05d1\u05e8", - "\u05d3\u05e6\u05de\u05d1\u05e8" - ], - "SHORTDAY": [ - "\u05d9\u05d5\u05dd \u05d0\u05f3", - "\u05d9\u05d5\u05dd \u05d1\u05f3", - "\u05d9\u05d5\u05dd \u05d2\u05f3", - "\u05d9\u05d5\u05dd \u05d3\u05f3", - "\u05d9\u05d5\u05dd \u05d4\u05f3", - "\u05d9\u05d5\u05dd \u05d5\u05f3", - "\u05e9\u05d1\u05ea" - ], - "SHORTMONTH": [ - "\u05d9\u05e0\u05d5", - "\u05e4\u05d1\u05e8", - "\u05de\u05e8\u05e5", - "\u05d0\u05e4\u05e8", - "\u05de\u05d0\u05d9", - "\u05d9\u05d5\u05e0", - "\u05d9\u05d5\u05dc", - "\u05d0\u05d5\u05d2", - "\u05e1\u05e4\u05d8", - "\u05d0\u05d5\u05e7", - "\u05e0\u05d5\u05d1", - "\u05d3\u05e6\u05de" - ], - "fullDate": "EEEE, d \u05d1MMMM y", - "longDate": "d \u05d1MMMM y", - "medium": "d \u05d1MMM yyyy HH:mm:ss", - "mediumDate": "d \u05d1MMM yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20aa", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "iw", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ja-jp.js b/vendor/assets/components/angular-i18n/angular-locale_ja-jp.js deleted file mode 100644 index f63a1b0345..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ja-jp.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u5348\u524d", - "\u5348\u5f8c" - ], - "DAY": [ - "\u65e5\u66dc\u65e5", - "\u6708\u66dc\u65e5", - "\u706b\u66dc\u65e5", - "\u6c34\u66dc\u65e5", - "\u6728\u66dc\u65e5", - "\u91d1\u66dc\u65e5", - "\u571f\u66dc\u65e5" - ], - "MONTH": [ - "1\u6708", - "2\u6708", - "3\u6708", - "4\u6708", - "5\u6708", - "6\u6708", - "7\u6708", - "8\u6708", - "9\u6708", - "10\u6708", - "11\u6708", - "12\u6708" - ], - "SHORTDAY": [ - "\u65e5", - "\u6708", - "\u706b", - "\u6c34", - "\u6728", - "\u91d1", - "\u571f" - ], - "SHORTMONTH": [ - "1\u6708", - "2\u6708", - "3\u6708", - "4\u6708", - "5\u6708", - "6\u6708", - "7\u6708", - "8\u6708", - "9\u6708", - "10\u6708", - "11\u6708", - "12\u6708" - ], - "fullDate": "y\u5e74M\u6708d\u65e5EEEE", - "longDate": "y\u5e74M\u6708d\u65e5", - "medium": "yyyy/MM/dd H:mm:ss", - "mediumDate": "yyyy/MM/dd", - "mediumTime": "H:mm:ss", - "short": "yyyy/MM/dd H:mm", - "shortDate": "yyyy/MM/dd", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a5", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4-", - "negSuf": "", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "ja-jp", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ja.js b/vendor/assets/components/angular-i18n/angular-locale_ja.js deleted file mode 100644 index 71f2306c7b..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ja.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u5348\u524d", - "\u5348\u5f8c" - ], - "DAY": [ - "\u65e5\u66dc\u65e5", - "\u6708\u66dc\u65e5", - "\u706b\u66dc\u65e5", - "\u6c34\u66dc\u65e5", - "\u6728\u66dc\u65e5", - "\u91d1\u66dc\u65e5", - "\u571f\u66dc\u65e5" - ], - "MONTH": [ - "1\u6708", - "2\u6708", - "3\u6708", - "4\u6708", - "5\u6708", - "6\u6708", - "7\u6708", - "8\u6708", - "9\u6708", - "10\u6708", - "11\u6708", - "12\u6708" - ], - "SHORTDAY": [ - "\u65e5", - "\u6708", - "\u706b", - "\u6c34", - "\u6728", - "\u91d1", - "\u571f" - ], - "SHORTMONTH": [ - "1\u6708", - "2\u6708", - "3\u6708", - "4\u6708", - "5\u6708", - "6\u6708", - "7\u6708", - "8\u6708", - "9\u6708", - "10\u6708", - "11\u6708", - "12\u6708" - ], - "fullDate": "y\u5e74M\u6708d\u65e5EEEE", - "longDate": "y\u5e74M\u6708d\u65e5", - "medium": "yyyy/MM/dd H:mm:ss", - "mediumDate": "yyyy/MM/dd", - "mediumTime": "H:mm:ss", - "short": "yyyy/MM/dd H:mm", - "shortDate": "yyyy/MM/dd", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a5", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4-", - "negSuf": "", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "ja", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_kn-in.js b/vendor/assets/components/angular-i18n/angular-locale_kn-in.js deleted file mode 100644 index 73d66f5721..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_kn-in.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u0cb0\u0cb5\u0cbf\u0cb5\u0cbe\u0cb0", - "\u0cb8\u0ccb\u0cae\u0cb5\u0cbe\u0cb0", - "\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0", - "\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0", - "\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0", - "\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0", - "\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0" - ], - "MONTH": [ - "\u0c9c\u0ca8\u0cb5\u0cb0\u0cc0", - "\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cc0", - "\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd", - "\u0c8e\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd", - "\u0cae\u0cc6", - "\u0c9c\u0cc2\u0ca8\u0ccd", - "\u0c9c\u0cc1\u0cb2\u0cc8", - "\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd", - "\u0cb8\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd", - "\u0c85\u0c95\u0ccd\u0c9f\u0ccb\u0cac\u0cb0\u0ccd", - "\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd", - "\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd" - ], - "SHORTDAY": [ - "\u0cb0.", - "\u0cb8\u0ccb.", - "\u0cae\u0c82.", - "\u0cac\u0cc1.", - "\u0c97\u0cc1.", - "\u0cb6\u0cc1.", - "\u0cb6\u0ca8\u0cbf." - ], - "SHORTMONTH": [ - "\u0c9c\u0ca8\u0cb5\u0cb0\u0cc0", - "\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cc0", - "\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd", - "\u0c8e\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd", - "\u0cae\u0cc6", - "\u0c9c\u0cc2\u0ca8\u0ccd", - "\u0c9c\u0cc1\u0cb2\u0cc8", - "\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd", - "\u0cb8\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd", - "\u0c85\u0c95\u0ccd\u0c9f\u0ccb\u0cac\u0cb0\u0ccd", - "\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd", - "\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y hh:mm:ss a", - "mediumDate": "d MMM y", - "mediumTime": "hh:mm:ss a", - "short": "d-M-yy hh:mm a", - "shortDate": "d-M-yy", - "shortTime": "hh:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "kn-in", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_kn.js b/vendor/assets/components/angular-i18n/angular-locale_kn.js deleted file mode 100644 index fa7c9253da..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_kn.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u0cb0\u0cb5\u0cbf\u0cb5\u0cbe\u0cb0", - "\u0cb8\u0ccb\u0cae\u0cb5\u0cbe\u0cb0", - "\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0", - "\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0", - "\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0", - "\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0", - "\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0" - ], - "MONTH": [ - "\u0c9c\u0ca8\u0cb5\u0cb0\u0cc0", - "\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cc0", - "\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd", - "\u0c8e\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd", - "\u0cae\u0cc6", - "\u0c9c\u0cc2\u0ca8\u0ccd", - "\u0c9c\u0cc1\u0cb2\u0cc8", - "\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd", - "\u0cb8\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd", - "\u0c85\u0c95\u0ccd\u0c9f\u0ccb\u0cac\u0cb0\u0ccd", - "\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd", - "\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd" - ], - "SHORTDAY": [ - "\u0cb0.", - "\u0cb8\u0ccb.", - "\u0cae\u0c82.", - "\u0cac\u0cc1.", - "\u0c97\u0cc1.", - "\u0cb6\u0cc1.", - "\u0cb6\u0ca8\u0cbf." - ], - "SHORTMONTH": [ - "\u0c9c\u0ca8\u0cb5\u0cb0\u0cc0", - "\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cc0", - "\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd", - "\u0c8e\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd", - "\u0cae\u0cc6", - "\u0c9c\u0cc2\u0ca8\u0ccd", - "\u0c9c\u0cc1\u0cb2\u0cc8", - "\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd", - "\u0cb8\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd", - "\u0c85\u0c95\u0ccd\u0c9f\u0ccb\u0cac\u0cb0\u0ccd", - "\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd", - "\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y hh:mm:ss a", - "mediumDate": "d MMM y", - "mediumTime": "hh:mm:ss a", - "short": "d-M-yy hh:mm a", - "shortDate": "d-M-yy", - "shortTime": "hh:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "kn", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ko-kr.js b/vendor/assets/components/angular-i18n/angular-locale_ko-kr.js deleted file mode 100644 index 8de6031b7c..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ko-kr.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\uc624\uc804", - "\uc624\ud6c4" - ], - "DAY": [ - "\uc77c\uc694\uc77c", - "\uc6d4\uc694\uc77c", - "\ud654\uc694\uc77c", - "\uc218\uc694\uc77c", - "\ubaa9\uc694\uc77c", - "\uae08\uc694\uc77c", - "\ud1a0\uc694\uc77c" - ], - "MONTH": [ - "1\uc6d4", - "2\uc6d4", - "3\uc6d4", - "4\uc6d4", - "5\uc6d4", - "6\uc6d4", - "7\uc6d4", - "8\uc6d4", - "9\uc6d4", - "10\uc6d4", - "11\uc6d4", - "12\uc6d4" - ], - "SHORTDAY": [ - "\uc77c", - "\uc6d4", - "\ud654", - "\uc218", - "\ubaa9", - "\uae08", - "\ud1a0" - ], - "SHORTMONTH": [ - "1\uc6d4", - "2\uc6d4", - "3\uc6d4", - "4\uc6d4", - "5\uc6d4", - "6\uc6d4", - "7\uc6d4", - "8\uc6d4", - "9\uc6d4", - "10\uc6d4", - "11\uc6d4", - "12\uc6d4" - ], - "fullDate": "y\ub144 M\uc6d4 d\uc77c EEEE", - "longDate": "y\ub144 M\uc6d4 d\uc77c", - "medium": "yyyy. M. d. a h:mm:ss", - "mediumDate": "yyyy. M. d.", - "mediumTime": "a h:mm:ss", - "short": "yy. M. d. a h:mm", - "shortDate": "yy. M. d.", - "shortTime": "a h:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20a9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "ko-kr", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ko.js b/vendor/assets/components/angular-i18n/angular-locale_ko.js deleted file mode 100644 index 51efdc5514..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ko.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\uc624\uc804", - "\uc624\ud6c4" - ], - "DAY": [ - "\uc77c\uc694\uc77c", - "\uc6d4\uc694\uc77c", - "\ud654\uc694\uc77c", - "\uc218\uc694\uc77c", - "\ubaa9\uc694\uc77c", - "\uae08\uc694\uc77c", - "\ud1a0\uc694\uc77c" - ], - "MONTH": [ - "1\uc6d4", - "2\uc6d4", - "3\uc6d4", - "4\uc6d4", - "5\uc6d4", - "6\uc6d4", - "7\uc6d4", - "8\uc6d4", - "9\uc6d4", - "10\uc6d4", - "11\uc6d4", - "12\uc6d4" - ], - "SHORTDAY": [ - "\uc77c", - "\uc6d4", - "\ud654", - "\uc218", - "\ubaa9", - "\uae08", - "\ud1a0" - ], - "SHORTMONTH": [ - "1\uc6d4", - "2\uc6d4", - "3\uc6d4", - "4\uc6d4", - "5\uc6d4", - "6\uc6d4", - "7\uc6d4", - "8\uc6d4", - "9\uc6d4", - "10\uc6d4", - "11\uc6d4", - "12\uc6d4" - ], - "fullDate": "y\ub144 M\uc6d4 d\uc77c EEEE", - "longDate": "y\ub144 M\uc6d4 d\uc77c", - "medium": "yyyy. M. d. a h:mm:ss", - "mediumDate": "yyyy. M. d.", - "mediumTime": "a h:mm:ss", - "short": "yy. M. d. a h:mm", - "shortDate": "yy. M. d.", - "shortTime": "a h:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20a9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "ko", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ln-cd.js b/vendor/assets/components/angular-i18n/angular-locale_ln-cd.js deleted file mode 100644 index 51a45ed0f5..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ln-cd.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "nt\u0254\u0301ng\u0254\u0301", - "mp\u00f3kwa" - ], - "DAY": [ - "eyenga", - "mok\u0254l\u0254 mwa yambo", - "mok\u0254l\u0254 mwa m\u00edbal\u00e9", - "mok\u0254l\u0254 mwa m\u00eds\u00e1to", - "mok\u0254l\u0254 ya m\u00edn\u00e9i", - "mok\u0254l\u0254 ya m\u00edt\u00e1no", - "mp\u0254\u0301s\u0254" - ], - "MONTH": [ - "s\u00e1nz\u00e1 ya yambo", - "s\u00e1nz\u00e1 ya m\u00edbal\u00e9", - "s\u00e1nz\u00e1 ya m\u00eds\u00e1to", - "s\u00e1nz\u00e1 ya m\u00ednei", - "s\u00e1nz\u00e1 ya m\u00edt\u00e1no", - "s\u00e1nz\u00e1 ya mot\u00f3b\u00e1", - "s\u00e1nz\u00e1 ya nsambo", - "s\u00e1nz\u00e1 ya mwambe", - "s\u00e1nz\u00e1 ya libwa", - "s\u00e1nz\u00e1 ya z\u00f3mi", - "s\u00e1nz\u00e1 ya z\u00f3mi na m\u0254\u030ck\u0254\u0301", - "s\u00e1nz\u00e1 ya z\u00f3mi na m\u00edbal\u00e9" - ], - "SHORTDAY": [ - "eye", - "ybo", - "mbl", - "mst", - "min", - "mtn", - "mps" - ], - "SHORTMONTH": [ - "yan", - "fbl", - "msi", - "apl", - "mai", - "yun", - "yul", - "agt", - "stb", - "\u0254tb", - "nvb", - "dsb" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "d/M/yyyy HH:mm", - "shortDate": "d/M/yyyy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "FrCD", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "ln-cd", - "pluralCat": function (n) { if (n == 0 || n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ln.js b/vendor/assets/components/angular-i18n/angular-locale_ln.js deleted file mode 100644 index 0f2bb5f561..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ln.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "nt\u0254\u0301ng\u0254\u0301", - "mp\u00f3kwa" - ], - "DAY": [ - "eyenga", - "mok\u0254l\u0254 mwa yambo", - "mok\u0254l\u0254 mwa m\u00edbal\u00e9", - "mok\u0254l\u0254 mwa m\u00eds\u00e1to", - "mok\u0254l\u0254 ya m\u00edn\u00e9i", - "mok\u0254l\u0254 ya m\u00edt\u00e1no", - "mp\u0254\u0301s\u0254" - ], - "MONTH": [ - "s\u00e1nz\u00e1 ya yambo", - "s\u00e1nz\u00e1 ya m\u00edbal\u00e9", - "s\u00e1nz\u00e1 ya m\u00eds\u00e1to", - "s\u00e1nz\u00e1 ya m\u00ednei", - "s\u00e1nz\u00e1 ya m\u00edt\u00e1no", - "s\u00e1nz\u00e1 ya mot\u00f3b\u00e1", - "s\u00e1nz\u00e1 ya nsambo", - "s\u00e1nz\u00e1 ya mwambe", - "s\u00e1nz\u00e1 ya libwa", - "s\u00e1nz\u00e1 ya z\u00f3mi", - "s\u00e1nz\u00e1 ya z\u00f3mi na m\u0254\u030ck\u0254\u0301", - "s\u00e1nz\u00e1 ya z\u00f3mi na m\u00edbal\u00e9" - ], - "SHORTDAY": [ - "eye", - "ybo", - "mbl", - "mst", - "min", - "mtn", - "mps" - ], - "SHORTMONTH": [ - "yan", - "fbl", - "msi", - "apl", - "mai", - "yun", - "yul", - "agt", - "stb", - "\u0254tb", - "nvb", - "dsb" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "d/M/yyyy HH:mm", - "shortDate": "d/M/yyyy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "FrCD", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "ln", - "pluralCat": function (n) { if (n == 0 || n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_lt-lt.js b/vendor/assets/components/angular-i18n/angular-locale_lt-lt.js deleted file mode 100644 index 17691c4c4a..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_lt-lt.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "prie\u0161piet", - "popiet" - ], - "DAY": [ - "sekmadienis", - "pirmadienis", - "antradienis", - "tre\u010diadienis", - "ketvirtadienis", - "penktadienis", - "\u0161e\u0161tadienis" - ], - "MONTH": [ - "sausis", - "vasaris", - "kovas", - "balandis", - "gegu\u017e\u0117", - "bir\u017eelis", - "liepa", - "rugpj\u016btis", - "rugs\u0117jis", - "spalis", - "lapkritis", - "gruodis" - ], - "SHORTDAY": [ - "Sk", - "Pr", - "An", - "Tr", - "Kt", - "Pn", - "\u0160t" - ], - "SHORTMONTH": [ - "Saus.", - "Vas.", - "Kov.", - "Bal.", - "Geg.", - "Bir.", - "Liep.", - "Rugp.", - "Rugs.", - "Spal.", - "Lapkr.", - "Gruod." - ], - "fullDate": "y 'm'. MMMM d 'd'., EEEE", - "longDate": "y 'm'. MMMM d 'd'.", - "medium": "y MMM d HH:mm:ss", - "mediumDate": "y MMM d", - "mediumTime": "HH:mm:ss", - "short": "yyyy-MM-dd HH:mm", - "shortDate": "yyyy-MM-dd", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "Lt", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "lt-lt", - "pluralCat": function (n) { if (n % 10 == 1 && (n % 100 < 11 || n % 100 > 19)) { return PLURAL_CATEGORY.ONE; } if (n == (n | 0) && n % 10 >= 2 && n % 10 <= 9 && (n % 100 < 11 || n % 100 > 19)) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_lt.js b/vendor/assets/components/angular-i18n/angular-locale_lt.js deleted file mode 100644 index 1cb171c80d..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_lt.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "prie\u0161piet", - "popiet" - ], - "DAY": [ - "sekmadienis", - "pirmadienis", - "antradienis", - "tre\u010diadienis", - "ketvirtadienis", - "penktadienis", - "\u0161e\u0161tadienis" - ], - "MONTH": [ - "sausis", - "vasaris", - "kovas", - "balandis", - "gegu\u017e\u0117", - "bir\u017eelis", - "liepa", - "rugpj\u016btis", - "rugs\u0117jis", - "spalis", - "lapkritis", - "gruodis" - ], - "SHORTDAY": [ - "Sk", - "Pr", - "An", - "Tr", - "Kt", - "Pn", - "\u0160t" - ], - "SHORTMONTH": [ - "Saus.", - "Vas.", - "Kov.", - "Bal.", - "Geg.", - "Bir.", - "Liep.", - "Rugp.", - "Rugs.", - "Spal.", - "Lapkr.", - "Gruod." - ], - "fullDate": "y 'm'. MMMM d 'd'., EEEE", - "longDate": "y 'm'. MMMM d 'd'.", - "medium": "y MMM d HH:mm:ss", - "mediumDate": "y MMM d", - "mediumTime": "HH:mm:ss", - "short": "yyyy-MM-dd HH:mm", - "shortDate": "yyyy-MM-dd", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "Lt", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "lt", - "pluralCat": function (n) { if (n % 10 == 1 && (n % 100 < 11 || n % 100 > 19)) { return PLURAL_CATEGORY.ONE; } if (n == (n | 0) && n % 10 >= 2 && n % 10 <= 9 && (n % 100 < 11 || n % 100 > 19)) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_lv-lv.js b/vendor/assets/components/angular-i18n/angular-locale_lv-lv.js deleted file mode 100644 index 4bcfced602..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_lv-lv.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "priek\u0161pusdien\u0101", - "p\u0113cpusdien\u0101" - ], - "DAY": [ - "sv\u0113tdiena", - "pirmdiena", - "otrdiena", - "tre\u0161diena", - "ceturtdiena", - "piektdiena", - "sestdiena" - ], - "MONTH": [ - "janv\u0101ris", - "febru\u0101ris", - "marts", - "apr\u012blis", - "maijs", - "j\u016bnijs", - "j\u016blijs", - "augusts", - "septembris", - "oktobris", - "novembris", - "decembris" - ], - "SHORTDAY": [ - "Sv", - "Pr", - "Ot", - "Tr", - "Ce", - "Pk", - "Se" - ], - "SHORTMONTH": [ - "janv.", - "febr.", - "marts", - "apr.", - "maijs", - "j\u016bn.", - "j\u016bl.", - "aug.", - "sept.", - "okt.", - "nov.", - "dec." - ], - "fullDate": "EEEE, y. 'gada' d. MMMM", - "longDate": "y. 'gada' d. MMMM", - "medium": "y. 'gada' d. MMM HH:mm:ss", - "mediumDate": "y. 'gada' d. MMM", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yy HH:mm", - "shortDate": "dd.MM.yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "Ls", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "lv-lv", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n % 10 == 1 && n % 100 != 11) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_lv.js b/vendor/assets/components/angular-i18n/angular-locale_lv.js deleted file mode 100644 index 56ec04928f..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_lv.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "priek\u0161pusdien\u0101", - "p\u0113cpusdien\u0101" - ], - "DAY": [ - "sv\u0113tdiena", - "pirmdiena", - "otrdiena", - "tre\u0161diena", - "ceturtdiena", - "piektdiena", - "sestdiena" - ], - "MONTH": [ - "janv\u0101ris", - "febru\u0101ris", - "marts", - "apr\u012blis", - "maijs", - "j\u016bnijs", - "j\u016blijs", - "augusts", - "septembris", - "oktobris", - "novembris", - "decembris" - ], - "SHORTDAY": [ - "Sv", - "Pr", - "Ot", - "Tr", - "Ce", - "Pk", - "Se" - ], - "SHORTMONTH": [ - "janv.", - "febr.", - "marts", - "apr.", - "maijs", - "j\u016bn.", - "j\u016bl.", - "aug.", - "sept.", - "okt.", - "nov.", - "dec." - ], - "fullDate": "EEEE, y. 'gada' d. MMMM", - "longDate": "y. 'gada' d. MMMM", - "medium": "y. 'gada' d. MMM HH:mm:ss", - "mediumDate": "y. 'gada' d. MMM", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yy HH:mm", - "shortDate": "dd.MM.yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "Ls", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "lv", - "pluralCat": function (n) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n % 10 == 1 && n % 100 != 11) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ml-in.js b/vendor/assets/components/angular-i18n/angular-locale_ml-in.js deleted file mode 100644 index 24641e2a37..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ml-in.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a", - "\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a", - "\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a", - "\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a", - "\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a", - "\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a", - "\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a" - ], - "MONTH": [ - "\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f", - "\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f", - "\u0d2e\u0d3e\u0d30\u0d4d\u200d\u0d1a\u0d4d\u0d1a\u0d4d", - "\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d32\u0d4d\u200d", - "\u0d2e\u0d47\u0d2f\u0d4d", - "\u0d1c\u0d42\u0d23\u0d4d\u200d", - "\u0d1c\u0d42\u0d32\u0d48", - "\u0d06\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d", - "\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d30\u0d4d\u200d", - "\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d30\u0d4d\u200d", - "\u0d28\u0d35\u0d02\u0d2c\u0d30\u0d4d\u200d", - "\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d30\u0d4d\u200d" - ], - "SHORTDAY": [ - "\u0d1e\u0d3e\u0d2f\u0d30\u0d4d\u200d", - "\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d4d\u200d", - "\u0d1a\u0d4a\u0d35\u0d4d\u0d35", - "\u0d2c\u0d41\u0d27\u0d28\u0d4d\u200d", - "\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02", - "\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f", - "\u0d36\u0d28\u0d3f" - ], - "SHORTMONTH": [ - "\u0d1c\u0d28\u0d41", - "\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41", - "\u0d2e\u0d3e\u0d30\u0d4d\u200d", - "\u0d0f\u0d2a\u0d4d\u0d30\u0d3f", - "\u0d2e\u0d47\u0d2f\u0d4d", - "\u0d1c\u0d42\u0d23\u0d4d\u200d", - "\u0d1c\u0d42\u0d32\u0d48", - "\u0d13\u0d17", - "\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02", - "\u0d12\u0d15\u0d4d\u0d1f\u0d4b", - "\u0d28\u0d35\u0d02", - "\u0d21\u0d3f\u0d38\u0d02" - ], - "fullDate": "y, MMMM d, EEEE", - "longDate": "y, MMMM d", - "medium": "y, MMM d h:mm:ss a", - "mediumDate": "y, MMM d", - "mediumTime": "h:mm:ss a", - "short": "dd/MM/yy h:mm a", - "shortDate": "dd/MM/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a4", - "posPre": "", - "posSuf": "\u00a4" - } - ] - }, - "id": "ml-in", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ml.js b/vendor/assets/components/angular-i18n/angular-locale_ml.js deleted file mode 100644 index 2b61d307ae..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ml.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a", - "\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a", - "\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a", - "\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a", - "\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a", - "\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a", - "\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a" - ], - "MONTH": [ - "\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f", - "\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f", - "\u0d2e\u0d3e\u0d30\u0d4d\u200d\u0d1a\u0d4d\u0d1a\u0d4d", - "\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d32\u0d4d\u200d", - "\u0d2e\u0d47\u0d2f\u0d4d", - "\u0d1c\u0d42\u0d23\u0d4d\u200d", - "\u0d1c\u0d42\u0d32\u0d48", - "\u0d06\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d", - "\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d30\u0d4d\u200d", - "\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d30\u0d4d\u200d", - "\u0d28\u0d35\u0d02\u0d2c\u0d30\u0d4d\u200d", - "\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d30\u0d4d\u200d" - ], - "SHORTDAY": [ - "\u0d1e\u0d3e\u0d2f\u0d30\u0d4d\u200d", - "\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d4d\u200d", - "\u0d1a\u0d4a\u0d35\u0d4d\u0d35", - "\u0d2c\u0d41\u0d27\u0d28\u0d4d\u200d", - "\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02", - "\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f", - "\u0d36\u0d28\u0d3f" - ], - "SHORTMONTH": [ - "\u0d1c\u0d28\u0d41", - "\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41", - "\u0d2e\u0d3e\u0d30\u0d4d\u200d", - "\u0d0f\u0d2a\u0d4d\u0d30\u0d3f", - "\u0d2e\u0d47\u0d2f\u0d4d", - "\u0d1c\u0d42\u0d23\u0d4d\u200d", - "\u0d1c\u0d42\u0d32\u0d48", - "\u0d13\u0d17", - "\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02", - "\u0d12\u0d15\u0d4d\u0d1f\u0d4b", - "\u0d28\u0d35\u0d02", - "\u0d21\u0d3f\u0d38\u0d02" - ], - "fullDate": "y, MMMM d, EEEE", - "longDate": "y, MMMM d", - "medium": "y, MMM d h:mm:ss a", - "mediumDate": "y, MMM d", - "mediumTime": "h:mm:ss a", - "short": "dd/MM/yy h:mm a", - "shortDate": "dd/MM/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a4", - "posPre": "", - "posSuf": "\u00a4" - } - ] - }, - "id": "ml", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_mr-in.js b/vendor/assets/components/angular-i18n/angular-locale_mr-in.js deleted file mode 100644 index 8d5381ae79..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_mr-in.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u0930\u0935\u093f\u0935\u093e\u0930", - "\u0938\u094b\u092e\u0935\u093e\u0930", - "\u092e\u0902\u0917\u0933\u0935\u093e\u0930", - "\u092c\u0941\u0927\u0935\u093e\u0930", - "\u0917\u0941\u0930\u0941\u0935\u093e\u0930", - "\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930", - "\u0936\u0928\u093f\u0935\u093e\u0930" - ], - "MONTH": [ - "\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940", - "\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940", - "\u092e\u093e\u0930\u094d\u091a", - "\u090f\u092a\u094d\u0930\u093f\u0932", - "\u092e\u0947", - "\u091c\u0942\u0928", - "\u091c\u0941\u0932\u0948", - "\u0911\u0917\u0938\u094d\u091f", - "\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930", - "\u0911\u0915\u094d\u091f\u094b\u092c\u0930", - "\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930", - "\u0921\u093f\u0938\u0947\u0902\u092c\u0930" - ], - "SHORTDAY": [ - "\u0930\u0935\u093f", - "\u0938\u094b\u092e", - "\u092e\u0902\u0917\u0933", - "\u092c\u0941\u0927", - "\u0917\u0941\u0930\u0941", - "\u0936\u0941\u0915\u094d\u0930", - "\u0936\u0928\u093f" - ], - "SHORTMONTH": [ - "\u091c\u093e\u0928\u0947", - "\u092b\u0947\u092c\u094d\u0930\u0941", - "\u092e\u093e\u0930\u094d\u091a", - "\u090f\u092a\u094d\u0930\u093f", - "\u092e\u0947", - "\u091c\u0942\u0928", - "\u091c\u0941\u0932\u0948", - "\u0911\u0917", - "\u0938\u0947\u092a\u094d\u091f\u0947\u0902", - "\u0911\u0915\u094d\u091f\u094b\u092c\u0930", - "\u0928\u094b\u0935\u094d\u0939\u0947\u0902", - "\u0921\u093f\u0938\u0947\u0902" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y h-mm-ss a", - "mediumDate": "d MMM y", - "mediumTime": "h-mm-ss a", - "short": "d-M-yy h-mm a", - "shortDate": "d-M-yy", - "shortTime": "h-mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "mr-in", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_mr.js b/vendor/assets/components/angular-i18n/angular-locale_mr.js deleted file mode 100644 index d9d91ba898..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_mr.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u0930\u0935\u093f\u0935\u093e\u0930", - "\u0938\u094b\u092e\u0935\u093e\u0930", - "\u092e\u0902\u0917\u0933\u0935\u093e\u0930", - "\u092c\u0941\u0927\u0935\u093e\u0930", - "\u0917\u0941\u0930\u0941\u0935\u093e\u0930", - "\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930", - "\u0936\u0928\u093f\u0935\u093e\u0930" - ], - "MONTH": [ - "\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940", - "\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940", - "\u092e\u093e\u0930\u094d\u091a", - "\u090f\u092a\u094d\u0930\u093f\u0932", - "\u092e\u0947", - "\u091c\u0942\u0928", - "\u091c\u0941\u0932\u0948", - "\u0911\u0917\u0938\u094d\u091f", - "\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930", - "\u0911\u0915\u094d\u091f\u094b\u092c\u0930", - "\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930", - "\u0921\u093f\u0938\u0947\u0902\u092c\u0930" - ], - "SHORTDAY": [ - "\u0930\u0935\u093f", - "\u0938\u094b\u092e", - "\u092e\u0902\u0917\u0933", - "\u092c\u0941\u0927", - "\u0917\u0941\u0930\u0941", - "\u0936\u0941\u0915\u094d\u0930", - "\u0936\u0928\u093f" - ], - "SHORTMONTH": [ - "\u091c\u093e\u0928\u0947", - "\u092b\u0947\u092c\u094d\u0930\u0941", - "\u092e\u093e\u0930\u094d\u091a", - "\u090f\u092a\u094d\u0930\u093f", - "\u092e\u0947", - "\u091c\u0942\u0928", - "\u091c\u0941\u0932\u0948", - "\u0911\u0917", - "\u0938\u0947\u092a\u094d\u091f\u0947\u0902", - "\u0911\u0915\u094d\u091f\u094b\u092c\u0930", - "\u0928\u094b\u0935\u094d\u0939\u0947\u0902", - "\u0921\u093f\u0938\u0947\u0902" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y h-mm-ss a", - "mediumDate": "d MMM y", - "mediumTime": "h-mm-ss a", - "short": "d-M-yy h-mm a", - "shortDate": "d-M-yy", - "shortTime": "h-mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "mr", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ms-my.js b/vendor/assets/components/angular-i18n/angular-locale_ms-my.js deleted file mode 100644 index 6f91161ee2..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ms-my.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "PG", - "PTG" - ], - "DAY": [ - "Ahad", - "Isnin", - "Selasa", - "Rabu", - "Khamis", - "Jumaat", - "Sabtu" - ], - "MONTH": [ - "Januari", - "Februari", - "Mac", - "April", - "Mei", - "Jun", - "Julai", - "Ogos", - "September", - "Oktober", - "November", - "Disember" - ], - "SHORTDAY": [ - "Ahd", - "Isn", - "Sel", - "Rab", - "Kha", - "Jum", - "Sab" - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "Mac", - "Apr", - "Mei", - "Jun", - "Jul", - "Ogos", - "Sep", - "Okt", - "Nov", - "Dis" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "dd/MM/yyyy h:mm:ss a", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d/MM/yy h:mm a", - "shortDate": "d/MM/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "RM", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "ms-my", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ms.js b/vendor/assets/components/angular-i18n/angular-locale_ms.js deleted file mode 100644 index 4acdbffddd..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ms.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "PG", - "PTG" - ], - "DAY": [ - "Ahad", - "Isnin", - "Selasa", - "Rabu", - "Khamis", - "Jumaat", - "Sabtu" - ], - "MONTH": [ - "Januari", - "Februari", - "Mac", - "April", - "Mei", - "Jun", - "Julai", - "Ogos", - "September", - "Oktober", - "November", - "Disember" - ], - "SHORTDAY": [ - "Ahd", - "Isn", - "Sel", - "Rab", - "Kha", - "Jum", - "Sab" - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "Mac", - "Apr", - "Mei", - "Jun", - "Jul", - "Ogos", - "Sep", - "Okt", - "Nov", - "Dis" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "dd/MM/yyyy h:mm:ss a", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "h:mm:ss a", - "short": "d/MM/yy h:mm a", - "shortDate": "d/MM/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "RM", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "ms", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_mt-mt.js b/vendor/assets/components/angular-i18n/angular-locale_mt-mt.js deleted file mode 100644 index 9ccf8b2ec7..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_mt-mt.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "QN", - "WN" - ], - "DAY": [ - "Il-\u0126add", - "It-Tnejn", - "It-Tlieta", - "L-Erbg\u0127a", - "Il-\u0126amis", - "Il-\u0120img\u0127a", - "Is-Sibt" - ], - "MONTH": [ - "Jannar", - "Frar", - "Marzu", - "April", - "Mejju", - "\u0120unju", - "Lulju", - "Awwissu", - "Settembru", - "Ottubru", - "Novembru", - "Di\u010bembru" - ], - "SHORTDAY": [ - "\u0126ad", - "Tne", - "Tli", - "Erb", - "\u0126am", - "\u0120im", - "Sib" - ], - "SHORTMONTH": [ - "Jan", - "Fra", - "Mar", - "Apr", - "Mej", - "\u0120un", - "Lul", - "Aww", - "Set", - "Ott", - "Nov", - "Di\u010b" - ], - "fullDate": "EEEE, d 'ta'\u2019 MMMM y", - "longDate": "d 'ta'\u2019 MMMM y", - "medium": "dd MMM y HH:mm:ss", - "mediumDate": "dd MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yyyy HH:mm", - "shortDate": "dd/MM/yyyy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4-", - "negSuf": "", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "mt-mt", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 0 || n == (n | 0) && n % 100 >= 2 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 19) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_mt.js b/vendor/assets/components/angular-i18n/angular-locale_mt.js deleted file mode 100644 index 753d21c371..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_mt.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "QN", - "WN" - ], - "DAY": [ - "Il-\u0126add", - "It-Tnejn", - "It-Tlieta", - "L-Erbg\u0127a", - "Il-\u0126amis", - "Il-\u0120img\u0127a", - "Is-Sibt" - ], - "MONTH": [ - "Jannar", - "Frar", - "Marzu", - "April", - "Mejju", - "\u0120unju", - "Lulju", - "Awwissu", - "Settembru", - "Ottubru", - "Novembru", - "Di\u010bembru" - ], - "SHORTDAY": [ - "\u0126ad", - "Tne", - "Tli", - "Erb", - "\u0126am", - "\u0120im", - "Sib" - ], - "SHORTMONTH": [ - "Jan", - "Fra", - "Mar", - "Apr", - "Mej", - "\u0120un", - "Lul", - "Aww", - "Set", - "Ott", - "Nov", - "Di\u010b" - ], - "fullDate": "EEEE, d 'ta'\u2019 MMMM y", - "longDate": "d 'ta'\u2019 MMMM y", - "medium": "dd MMM y HH:mm:ss", - "mediumDate": "dd MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yyyy HH:mm", - "shortDate": "dd/MM/yyyy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4-", - "negSuf": "", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "mt", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 0 || n == (n | 0) && n % 100 >= 2 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n == (n | 0) && n % 100 >= 11 && n % 100 <= 19) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_nl-cw.js b/vendor/assets/components/angular-i18n/angular-locale_nl-cw.js deleted file mode 100644 index c3351b32d5..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_nl-cw.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "zondag", - "maandag", - "dinsdag", - "woensdag", - "donderdag", - "vrijdag", - "zaterdag" - ], - "MONTH": [ - "januari", - "februari", - "maart", - "april", - "mei", - "juni", - "juli", - "augustus", - "september", - "oktober", - "november", - "december" - ], - "SHORTDAY": [ - "zo", - "ma", - "di", - "wo", - "do", - "vr", - "za" - ], - "SHORTMONTH": [ - "jan.", - "feb.", - "mrt.", - "apr.", - "mei", - "jun.", - "jul.", - "aug.", - "sep.", - "okt.", - "nov.", - "dec." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd-MM-yy HH:mm", - "shortDate": "dd-MM-yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "nl-cw", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_nl-nl.js b/vendor/assets/components/angular-i18n/angular-locale_nl-nl.js deleted file mode 100644 index 3a3e93218b..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_nl-nl.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "zondag", - "maandag", - "dinsdag", - "woensdag", - "donderdag", - "vrijdag", - "zaterdag" - ], - "MONTH": [ - "januari", - "februari", - "maart", - "april", - "mei", - "juni", - "juli", - "augustus", - "september", - "oktober", - "november", - "december" - ], - "SHORTDAY": [ - "zo", - "ma", - "di", - "wo", - "do", - "vr", - "za" - ], - "SHORTMONTH": [ - "jan.", - "feb.", - "mrt.", - "apr.", - "mei", - "jun.", - "jul.", - "aug.", - "sep.", - "okt.", - "nov.", - "dec." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd-MM-yy HH:mm", - "shortDate": "dd-MM-yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "nl-nl", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_nl-sx.js b/vendor/assets/components/angular-i18n/angular-locale_nl-sx.js deleted file mode 100644 index a4eda9c2dd..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_nl-sx.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "zondag", - "maandag", - "dinsdag", - "woensdag", - "donderdag", - "vrijdag", - "zaterdag" - ], - "MONTH": [ - "januari", - "februari", - "maart", - "april", - "mei", - "juni", - "juli", - "augustus", - "september", - "oktober", - "november", - "december" - ], - "SHORTDAY": [ - "zo", - "ma", - "di", - "wo", - "do", - "vr", - "za" - ], - "SHORTMONTH": [ - "jan.", - "feb.", - "mrt.", - "apr.", - "mei", - "jun.", - "jul.", - "aug.", - "sep.", - "okt.", - "nov.", - "dec." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd-MM-yy HH:mm", - "shortDate": "dd-MM-yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "nl-sx", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_nl.js b/vendor/assets/components/angular-i18n/angular-locale_nl.js deleted file mode 100644 index 955948cfe9..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_nl.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "zondag", - "maandag", - "dinsdag", - "woensdag", - "donderdag", - "vrijdag", - "zaterdag" - ], - "MONTH": [ - "januari", - "februari", - "maart", - "april", - "mei", - "juni", - "juli", - "augustus", - "september", - "oktober", - "november", - "december" - ], - "SHORTDAY": [ - "zo", - "ma", - "di", - "wo", - "do", - "vr", - "za" - ], - "SHORTMONTH": [ - "jan.", - "feb.", - "mrt.", - "apr.", - "mei", - "jun.", - "jul.", - "aug.", - "sep.", - "okt.", - "nov.", - "dec." - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd-MM-yy HH:mm", - "shortDate": "dd-MM-yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0", - "negSuf": "-", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "nl", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_no.js b/vendor/assets/components/angular-i18n/angular-locale_no.js deleted file mode 100644 index 313e260b53..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_no.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "s\u00f8ndag", - "mandag", - "tirsdag", - "onsdag", - "torsdag", - "fredag", - "l\u00f8rdag" - ], - "MONTH": [ - "januar", - "februar", - "mars", - "april", - "mai", - "juni", - "juli", - "august", - "september", - "oktober", - "november", - "desember" - ], - "SHORTDAY": [ - "s\u00f8n.", - "man.", - "tir.", - "ons.", - "tor.", - "fre.", - "l\u00f8r." - ], - "SHORTMONTH": [ - "jan.", - "feb.", - "mars", - "apr.", - "mai", - "juni", - "juli", - "aug.", - "sep.", - "okt.", - "nov.", - "des." - ], - "fullDate": "EEEE d. MMMM y", - "longDate": "d. MMMM y", - "medium": "d. MMM y HH:mm:ss", - "mediumDate": "d. MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yy HH:mm", - "shortDate": "dd.MM.yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "kr", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0-", - "negSuf": "", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "no", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_or-in.js b/vendor/assets/components/angular-i18n/angular-locale_or-in.js deleted file mode 100644 index acf991a41f..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_or-in.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u0b30\u0b2c\u0b3f\u0b2c\u0b3e\u0b30", - "\u0b38\u0b4b\u0b2e\u0b2c\u0b3e\u0b30", - "\u0b2e\u0b19\u0b4d\u0b17\u0b33\u0b2c\u0b3e\u0b30", - "\u0b2c\u0b41\u0b27\u0b2c\u0b3e\u0b30", - "\u0b17\u0b41\u0b30\u0b41\u0b2c\u0b3e\u0b30", - "\u0b36\u0b41\u0b15\u0b4d\u0b30\u0b2c\u0b3e\u0b30", - "\u0b36\u0b28\u0b3f\u0b2c\u0b3e\u0b30" - ], - "MONTH": [ - "\u0b1c\u0b3e\u0b28\u0b41\u0b06\u0b30\u0b40", - "\u0b2b\u0b47\u0b2c\u0b4d\u0b30\u0b41\u0b5f\u0b3e\u0b30\u0b40", - "\u0b2e\u0b3e\u0b30\u0b4d\u0b1a\u0b4d\u0b1a", - "\u0b05\u0b2a\u0b4d\u0b30\u0b47\u0b32", - "\u0b2e\u0b47", - "\u0b1c\u0b41\u0b28", - "\u0b1c\u0b41\u0b32\u0b3e\u0b07", - "\u0b05\u0b17\u0b37\u0b4d\u0b1f", - "\u0b38\u0b47\u0b2a\u0b4d\u0b1f\u0b47\u0b2e\u0b4d\u0b2c\u0b30", - "\u0b05\u0b15\u0b4d\u0b1f\u0b4b\u0b2c\u0b30", - "\u0b28\u0b2d\u0b47\u0b2e\u0b4d\u0b2c\u0b30", - "\u0b21\u0b3f\u0b38\u0b47\u0b2e\u0b4d\u0b2c\u0b30" - ], - "SHORTDAY": [ - "\u0b30\u0b2c\u0b3f", - "\u0b38\u0b4b\u0b2e", - "\u0b2e\u0b19\u0b4d\u0b17\u0b33", - "\u0b2c\u0b41\u0b27", - "\u0b17\u0b41\u0b30\u0b41", - "\u0b36\u0b41\u0b15\u0b4d\u0b30", - "\u0b36\u0b28\u0b3f" - ], - "SHORTMONTH": [ - "\u0b1c\u0b3e\u0b28\u0b41\u0b06\u0b30\u0b40", - "\u0b2b\u0b47\u0b2c\u0b4d\u0b30\u0b41\u0b5f\u0b3e\u0b30\u0b40", - "\u0b2e\u0b3e\u0b30\u0b4d\u0b1a\u0b4d\u0b1a", - "\u0b05\u0b2a\u0b4d\u0b30\u0b47\u0b32", - "\u0b2e\u0b47", - "\u0b1c\u0b41\u0b28", - "\u0b1c\u0b41\u0b32\u0b3e\u0b07", - "\u0b05\u0b17\u0b37\u0b4d\u0b1f", - "\u0b38\u0b47\u0b2a\u0b4d\u0b1f\u0b47\u0b2e\u0b4d\u0b2c\u0b30", - "\u0b05\u0b15\u0b4d\u0b1f\u0b4b\u0b2c\u0b30", - "\u0b28\u0b2d\u0b47\u0b2e\u0b4d\u0b2c\u0b30", - "\u0b21\u0b3f\u0b38\u0b47\u0b2e\u0b4d\u0b2c\u0b30" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y h:mm:ss a", - "mediumDate": "d MMM y", - "mediumTime": "h:mm:ss a", - "short": "d-M-yy h:mm a", - "shortDate": "d-M-yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0-", - "negSuf": "", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "or-in", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_or.js b/vendor/assets/components/angular-i18n/angular-locale_or.js deleted file mode 100644 index e169682c42..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_or.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u0b30\u0b2c\u0b3f\u0b2c\u0b3e\u0b30", - "\u0b38\u0b4b\u0b2e\u0b2c\u0b3e\u0b30", - "\u0b2e\u0b19\u0b4d\u0b17\u0b33\u0b2c\u0b3e\u0b30", - "\u0b2c\u0b41\u0b27\u0b2c\u0b3e\u0b30", - "\u0b17\u0b41\u0b30\u0b41\u0b2c\u0b3e\u0b30", - "\u0b36\u0b41\u0b15\u0b4d\u0b30\u0b2c\u0b3e\u0b30", - "\u0b36\u0b28\u0b3f\u0b2c\u0b3e\u0b30" - ], - "MONTH": [ - "\u0b1c\u0b3e\u0b28\u0b41\u0b06\u0b30\u0b40", - "\u0b2b\u0b47\u0b2c\u0b4d\u0b30\u0b41\u0b5f\u0b3e\u0b30\u0b40", - "\u0b2e\u0b3e\u0b30\u0b4d\u0b1a\u0b4d\u0b1a", - "\u0b05\u0b2a\u0b4d\u0b30\u0b47\u0b32", - "\u0b2e\u0b47", - "\u0b1c\u0b41\u0b28", - "\u0b1c\u0b41\u0b32\u0b3e\u0b07", - "\u0b05\u0b17\u0b37\u0b4d\u0b1f", - "\u0b38\u0b47\u0b2a\u0b4d\u0b1f\u0b47\u0b2e\u0b4d\u0b2c\u0b30", - "\u0b05\u0b15\u0b4d\u0b1f\u0b4b\u0b2c\u0b30", - "\u0b28\u0b2d\u0b47\u0b2e\u0b4d\u0b2c\u0b30", - "\u0b21\u0b3f\u0b38\u0b47\u0b2e\u0b4d\u0b2c\u0b30" - ], - "SHORTDAY": [ - "\u0b30\u0b2c\u0b3f", - "\u0b38\u0b4b\u0b2e", - "\u0b2e\u0b19\u0b4d\u0b17\u0b33", - "\u0b2c\u0b41\u0b27", - "\u0b17\u0b41\u0b30\u0b41", - "\u0b36\u0b41\u0b15\u0b4d\u0b30", - "\u0b36\u0b28\u0b3f" - ], - "SHORTMONTH": [ - "\u0b1c\u0b3e\u0b28\u0b41\u0b06\u0b30\u0b40", - "\u0b2b\u0b47\u0b2c\u0b4d\u0b30\u0b41\u0b5f\u0b3e\u0b30\u0b40", - "\u0b2e\u0b3e\u0b30\u0b4d\u0b1a\u0b4d\u0b1a", - "\u0b05\u0b2a\u0b4d\u0b30\u0b47\u0b32", - "\u0b2e\u0b47", - "\u0b1c\u0b41\u0b28", - "\u0b1c\u0b41\u0b32\u0b3e\u0b07", - "\u0b05\u0b17\u0b37\u0b4d\u0b1f", - "\u0b38\u0b47\u0b2a\u0b4d\u0b1f\u0b47\u0b2e\u0b4d\u0b2c\u0b30", - "\u0b05\u0b15\u0b4d\u0b1f\u0b4b\u0b2c\u0b30", - "\u0b28\u0b2d\u0b47\u0b2e\u0b4d\u0b2c\u0b30", - "\u0b21\u0b3f\u0b38\u0b47\u0b2e\u0b4d\u0b2c\u0b30" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y h:mm:ss a", - "mediumDate": "d MMM y", - "mediumTime": "h:mm:ss a", - "short": "d-M-yy h:mm a", - "shortDate": "d-M-yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0-", - "negSuf": "", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "or", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_pl-pl.js b/vendor/assets/components/angular-i18n/angular-locale_pl-pl.js deleted file mode 100644 index 23f8678eb5..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_pl-pl.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "niedziela", - "poniedzia\u0142ek", - "wtorek", - "\u015broda", - "czwartek", - "pi\u0105tek", - "sobota" - ], - "MONTH": [ - "stycznia", - "lutego", - "marca", - "kwietnia", - "maja", - "czerwca", - "lipca", - "sierpnia", - "wrze\u015bnia", - "pa\u017adziernika", - "listopada", - "grudnia" - ], - "SHORTDAY": [ - "niedz.", - "pon.", - "wt.", - "\u015br.", - "czw.", - "pt.", - "sob." - ], - "SHORTMONTH": [ - "sty", - "lut", - "mar", - "kwi", - "maj", - "cze", - "lip", - "sie", - "wrz", - "pa\u017a", - "lis", - "gru" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yyyy HH:mm", - "shortDate": "dd.MM.yyyy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "z\u0142", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "pl-pl", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == (n | 0) && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) { return PLURAL_CATEGORY.FEW; } if (n != 1 && (n % 10 == 0 || n % 10 == 1) || n == (n | 0) && n % 10 >= 5 && n % 10 <= 9 || n == (n | 0) && n % 100 >= 12 && n % 100 <= 14) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_pl.js b/vendor/assets/components/angular-i18n/angular-locale_pl.js deleted file mode 100644 index c64b34d13c..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_pl.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "niedziela", - "poniedzia\u0142ek", - "wtorek", - "\u015broda", - "czwartek", - "pi\u0105tek", - "sobota" - ], - "MONTH": [ - "stycznia", - "lutego", - "marca", - "kwietnia", - "maja", - "czerwca", - "lipca", - "sierpnia", - "wrze\u015bnia", - "pa\u017adziernika", - "listopada", - "grudnia" - ], - "SHORTDAY": [ - "niedz.", - "pon.", - "wt.", - "\u015br.", - "czw.", - "pt.", - "sob." - ], - "SHORTMONTH": [ - "sty", - "lut", - "mar", - "kwi", - "maj", - "cze", - "lip", - "sie", - "wrz", - "pa\u017a", - "lis", - "gru" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yyyy HH:mm", - "shortDate": "dd.MM.yyyy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "z\u0142", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "pl", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == (n | 0) && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) { return PLURAL_CATEGORY.FEW; } if (n != 1 && (n % 10 == 0 || n % 10 == 1) || n == (n | 0) && n % 10 >= 5 && n % 10 <= 9 || n == (n | 0) && n % 100 >= 12 && n % 100 <= 14) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_pt-br.js b/vendor/assets/components/angular-i18n/angular-locale_pt-br.js deleted file mode 100644 index 034fe73b46..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_pt-br.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "domingo", - "segunda-feira", - "ter\u00e7a-feira", - "quarta-feira", - "quinta-feira", - "sexta-feira", - "s\u00e1bado" - ], - "MONTH": [ - "janeiro", - "fevereiro", - "mar\u00e7o", - "abril", - "maio", - "junho", - "julho", - "agosto", - "setembro", - "outubro", - "novembro", - "dezembro" - ], - "SHORTDAY": [ - "dom", - "seg", - "ter", - "qua", - "qui", - "sex", - "s\u00e1b" - ], - "SHORTMONTH": [ - "jan", - "fev", - "mar", - "abr", - "mai", - "jun", - "jul", - "ago", - "set", - "out", - "nov", - "dez" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "R$", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "pt-br", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_pt-pt.js b/vendor/assets/components/angular-i18n/angular-locale_pt-pt.js deleted file mode 100644 index 75b3192a20..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_pt-pt.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "a.m.", - "p.m." - ], - "DAY": [ - "Domingo", - "Segunda-feira", - "Ter\u00e7a-feira", - "Quarta-feira", - "Quinta-feira", - "Sexta-feira", - "S\u00e1bado" - ], - "MONTH": [ - "Janeiro", - "Fevereiro", - "Mar\u00e7o", - "Abril", - "Maio", - "Junho", - "Julho", - "Agosto", - "Setembro", - "Outubro", - "Novembro", - "Dezembro" - ], - "SHORTDAY": [ - "dom", - "seg", - "ter", - "qua", - "qui", - "sex", - "s\u00e1b" - ], - "SHORTMONTH": [ - "Jan", - "Fev", - "Mar", - "Abr", - "Mai", - "Jun", - "Jul", - "Ago", - "Set", - "Out", - "Nov", - "Dez" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "pt-pt", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_pt.js b/vendor/assets/components/angular-i18n/angular-locale_pt.js deleted file mode 100644 index b9be5cc6ea..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_pt.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "domingo", - "segunda-feira", - "ter\u00e7a-feira", - "quarta-feira", - "quinta-feira", - "sexta-feira", - "s\u00e1bado" - ], - "MONTH": [ - "janeiro", - "fevereiro", - "mar\u00e7o", - "abril", - "maio", - "junho", - "julho", - "agosto", - "setembro", - "outubro", - "novembro", - "dezembro" - ], - "SHORTDAY": [ - "dom", - "seg", - "ter", - "qua", - "qui", - "sex", - "s\u00e1b" - ], - "SHORTMONTH": [ - "jan", - "fev", - "mar", - "abr", - "mai", - "jun", - "jul", - "ago", - "set", - "out", - "nov", - "dez" - ], - "fullDate": "EEEE, d 'de' MMMM 'de' y", - "longDate": "d 'de' MMMM 'de' y", - "medium": "dd/MM/yyyy HH:mm:ss", - "mediumDate": "dd/MM/yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yy HH:mm", - "shortDate": "dd/MM/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "R$", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "pt", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ro-ro.js b/vendor/assets/components/angular-i18n/angular-locale_ro-ro.js deleted file mode 100644 index 2f9f8cdf10..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ro-ro.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "duminic\u0103", - "luni", - "mar\u021bi", - "miercuri", - "joi", - "vineri", - "s\u00e2mb\u0103t\u0103" - ], - "MONTH": [ - "ianuarie", - "februarie", - "martie", - "aprilie", - "mai", - "iunie", - "iulie", - "august", - "septembrie", - "octombrie", - "noiembrie", - "decembrie" - ], - "SHORTDAY": [ - "Du", - "Lu", - "Ma", - "Mi", - "Jo", - "Vi", - "S\u00e2" - ], - "SHORTMONTH": [ - "ian.", - "feb.", - "mar.", - "apr.", - "mai", - "iun.", - "iul.", - "aug.", - "sept.", - "oct.", - "nov.", - "dec." - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "dd.MM.yyyy HH:mm:ss", - "mediumDate": "dd.MM.yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yyyy HH:mm", - "shortDate": "dd.MM.yyyy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "RON", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "ro-ro", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 0 || n != 1 && n == (n | 0) && n % 100 >= 1 && n % 100 <= 19) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ro.js b/vendor/assets/components/angular-i18n/angular-locale_ro.js deleted file mode 100644 index 18d0876735..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ro.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "duminic\u0103", - "luni", - "mar\u021bi", - "miercuri", - "joi", - "vineri", - "s\u00e2mb\u0103t\u0103" - ], - "MONTH": [ - "ianuarie", - "februarie", - "martie", - "aprilie", - "mai", - "iunie", - "iulie", - "august", - "septembrie", - "octombrie", - "noiembrie", - "decembrie" - ], - "SHORTDAY": [ - "Du", - "Lu", - "Ma", - "Mi", - "Jo", - "Vi", - "S\u00e2" - ], - "SHORTMONTH": [ - "ian.", - "feb.", - "mar.", - "apr.", - "mai", - "iun.", - "iul.", - "aug.", - "sept.", - "oct.", - "nov.", - "dec." - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "dd.MM.yyyy HH:mm:ss", - "mediumDate": "dd.MM.yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yyyy HH:mm", - "shortDate": "dd.MM.yyyy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "RON", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "ro", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 0 || n != 1 && n == (n | 0) && n % 100 >= 1 && n % 100 <= 19) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ru-ru.js b/vendor/assets/components/angular-i18n/angular-locale_ru-ru.js deleted file mode 100644 index e963e93655..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ru-ru.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0434\u043e \u043f\u043e\u043b\u0443\u0434\u043d\u044f", - "\u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u043b\u0443\u0434\u043d\u044f" - ], - "DAY": [ - "\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435", - "\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a", - "\u0432\u0442\u043e\u0440\u043d\u0438\u043a", - "\u0441\u0440\u0435\u0434\u0430", - "\u0447\u0435\u0442\u0432\u0435\u0440\u0433", - "\u043f\u044f\u0442\u043d\u0438\u0446\u0430", - "\u0441\u0443\u0431\u0431\u043e\u0442\u0430" - ], - "MONTH": [ - "\u044f\u043d\u0432\u0430\u0440\u044f", - "\u0444\u0435\u0432\u0440\u0430\u043b\u044f", - "\u043c\u0430\u0440\u0442\u0430", - "\u0430\u043f\u0440\u0435\u043b\u044f", - "\u043c\u0430\u044f", - "\u0438\u044e\u043d\u044f", - "\u0438\u044e\u043b\u044f", - "\u0430\u0432\u0433\u0443\u0441\u0442\u0430", - "\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f", - "\u043e\u043a\u0442\u044f\u0431\u0440\u044f", - "\u043d\u043e\u044f\u0431\u0440\u044f", - "\u0434\u0435\u043a\u0430\u0431\u0440\u044f" - ], - "SHORTDAY": [ - "\u0432\u0441", - "\u043f\u043d", - "\u0432\u0442", - "\u0441\u0440", - "\u0447\u0442", - "\u043f\u0442", - "\u0441\u0431" - ], - "SHORTMONTH": [ - "\u044f\u043d\u0432.", - "\u0444\u0435\u0432\u0440.", - "\u043c\u0430\u0440\u0442\u0430", - "\u0430\u043f\u0440.", - "\u043c\u0430\u044f", - "\u0438\u044e\u043d\u044f", - "\u0438\u044e\u043b\u044f", - "\u0430\u0432\u0433.", - "\u0441\u0435\u043d\u0442.", - "\u043e\u043a\u0442.", - "\u043d\u043e\u044f\u0431.", - "\u0434\u0435\u043a." - ], - "fullDate": "EEEE, d MMMM y\u00a0'\u0433'.", - "longDate": "d MMMM y\u00a0'\u0433'.", - "medium": "dd.MM.yyyy H:mm:ss", - "mediumDate": "dd.MM.yyyy", - "mediumTime": "H:mm:ss", - "short": "dd.MM.yy H:mm", - "shortDate": "dd.MM.yy", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u0440\u0443\u0431.", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "ru-ru", - "pluralCat": function (n) { if (n % 10 == 1 && n % 100 != 11) { return PLURAL_CATEGORY.ONE; } if (n == (n | 0) && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) { return PLURAL_CATEGORY.FEW; } if (n % 10 == 0 || n == (n | 0) && n % 10 >= 5 && n % 10 <= 9 || n == (n | 0) && n % 100 >= 11 && n % 100 <= 14) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ru.js b/vendor/assets/components/angular-i18n/angular-locale_ru.js deleted file mode 100644 index ac00c6136f..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ru.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0434\u043e \u043f\u043e\u043b\u0443\u0434\u043d\u044f", - "\u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u043b\u0443\u0434\u043d\u044f" - ], - "DAY": [ - "\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435", - "\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a", - "\u0432\u0442\u043e\u0440\u043d\u0438\u043a", - "\u0441\u0440\u0435\u0434\u0430", - "\u0447\u0435\u0442\u0432\u0435\u0440\u0433", - "\u043f\u044f\u0442\u043d\u0438\u0446\u0430", - "\u0441\u0443\u0431\u0431\u043e\u0442\u0430" - ], - "MONTH": [ - "\u044f\u043d\u0432\u0430\u0440\u044f", - "\u0444\u0435\u0432\u0440\u0430\u043b\u044f", - "\u043c\u0430\u0440\u0442\u0430", - "\u0430\u043f\u0440\u0435\u043b\u044f", - "\u043c\u0430\u044f", - "\u0438\u044e\u043d\u044f", - "\u0438\u044e\u043b\u044f", - "\u0430\u0432\u0433\u0443\u0441\u0442\u0430", - "\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f", - "\u043e\u043a\u0442\u044f\u0431\u0440\u044f", - "\u043d\u043e\u044f\u0431\u0440\u044f", - "\u0434\u0435\u043a\u0430\u0431\u0440\u044f" - ], - "SHORTDAY": [ - "\u0432\u0441", - "\u043f\u043d", - "\u0432\u0442", - "\u0441\u0440", - "\u0447\u0442", - "\u043f\u0442", - "\u0441\u0431" - ], - "SHORTMONTH": [ - "\u044f\u043d\u0432.", - "\u0444\u0435\u0432\u0440.", - "\u043c\u0430\u0440\u0442\u0430", - "\u0430\u043f\u0440.", - "\u043c\u0430\u044f", - "\u0438\u044e\u043d\u044f", - "\u0438\u044e\u043b\u044f", - "\u0430\u0432\u0433.", - "\u0441\u0435\u043d\u0442.", - "\u043e\u043a\u0442.", - "\u043d\u043e\u044f\u0431.", - "\u0434\u0435\u043a." - ], - "fullDate": "EEEE, d MMMM y\u00a0'\u0433'.", - "longDate": "d MMMM y\u00a0'\u0433'.", - "medium": "dd.MM.yyyy H:mm:ss", - "mediumDate": "dd.MM.yyyy", - "mediumTime": "H:mm:ss", - "short": "dd.MM.yy H:mm", - "shortDate": "dd.MM.yy", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u0440\u0443\u0431.", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "ru", - "pluralCat": function (n) { if (n % 10 == 1 && n % 100 != 11) { return PLURAL_CATEGORY.ONE; } if (n == (n | 0) && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) { return PLURAL_CATEGORY.FEW; } if (n % 10 == 0 || n == (n | 0) && n % 10 >= 5 && n % 10 <= 9 || n == (n | 0) && n % 100 >= 11 && n % 100 <= 14) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_sk-sk.js b/vendor/assets/components/angular-i18n/angular-locale_sk-sk.js deleted file mode 100644 index 39b8dff061..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_sk-sk.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "dopoludnia", - "popoludn\u00ed" - ], - "DAY": [ - "nede\u013ea", - "pondelok", - "utorok", - "streda", - "\u0161tvrtok", - "piatok", - "sobota" - ], - "MONTH": [ - "janu\u00e1ra", - "febru\u00e1ra", - "marca", - "apr\u00edla", - "m\u00e1ja", - "j\u00fana", - "j\u00fala", - "augusta", - "septembra", - "okt\u00f3bra", - "novembra", - "decembra" - ], - "SHORTDAY": [ - "ne", - "po", - "ut", - "st", - "\u0161t", - "pi", - "so" - ], - "SHORTMONTH": [ - "jan", - "feb", - "mar", - "apr", - "m\u00e1j", - "j\u00fan", - "j\u00fal", - "aug", - "sep", - "okt", - "nov", - "dec" - ], - "fullDate": "EEEE, d. MMMM y", - "longDate": "d. MMMM y", - "medium": "d.M.yyyy H:mm:ss", - "mediumDate": "d.M.yyyy", - "mediumTime": "H:mm:ss", - "short": "d.M.yyyy H:mm", - "shortDate": "d.M.yyyy", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "sk-sk", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == (n | 0) && n >= 2 && n <= 4) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_sk.js b/vendor/assets/components/angular-i18n/angular-locale_sk.js deleted file mode 100644 index a68e0838ee..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_sk.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "dopoludnia", - "popoludn\u00ed" - ], - "DAY": [ - "nede\u013ea", - "pondelok", - "utorok", - "streda", - "\u0161tvrtok", - "piatok", - "sobota" - ], - "MONTH": [ - "janu\u00e1ra", - "febru\u00e1ra", - "marca", - "apr\u00edla", - "m\u00e1ja", - "j\u00fana", - "j\u00fala", - "augusta", - "septembra", - "okt\u00f3bra", - "novembra", - "decembra" - ], - "SHORTDAY": [ - "ne", - "po", - "ut", - "st", - "\u0161t", - "pi", - "so" - ], - "SHORTMONTH": [ - "jan", - "feb", - "mar", - "apr", - "m\u00e1j", - "j\u00fan", - "j\u00fal", - "aug", - "sep", - "okt", - "nov", - "dec" - ], - "fullDate": "EEEE, d. MMMM y", - "longDate": "d. MMMM y", - "medium": "d.M.yyyy H:mm:ss", - "mediumDate": "d.M.yyyy", - "mediumTime": "H:mm:ss", - "short": "d.M.yyyy H:mm", - "shortDate": "d.M.yyyy", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "sk", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == (n | 0) && n >= 2 && n <= 4) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_sl-si.js b/vendor/assets/components/angular-i18n/angular-locale_sl-si.js deleted file mode 100644 index af7e85418f..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_sl-si.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "dop.", - "pop." - ], - "DAY": [ - "nedelja", - "ponedeljek", - "torek", - "sreda", - "\u010detrtek", - "petek", - "sobota" - ], - "MONTH": [ - "januar", - "februar", - "marec", - "april", - "maj", - "junij", - "julij", - "avgust", - "september", - "oktober", - "november", - "december" - ], - "SHORTDAY": [ - "ned.", - "pon.", - "tor.", - "sre.", - "\u010det.", - "pet.", - "sob." - ], - "SHORTMONTH": [ - "jan.", - "feb.", - "mar.", - "apr.", - "maj", - "jun.", - "jul.", - "avg.", - "sep.", - "okt.", - "nov.", - "dec." - ], - "fullDate": "EEEE, dd. MMMM y", - "longDate": "dd. MMMM y", - "medium": "d. MMM yyyy HH:mm:ss", - "mediumDate": "d. MMM yyyy", - "mediumTime": "HH:mm:ss", - "short": "d. MM. yy HH:mm", - "shortDate": "d. MM. yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "sl-si", - "pluralCat": function (n) { if (n % 100 == 1) { return PLURAL_CATEGORY.ONE; } if (n % 100 == 2) { return PLURAL_CATEGORY.TWO; } if (n % 100 == 3 || n % 100 == 4) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_sl.js b/vendor/assets/components/angular-i18n/angular-locale_sl.js deleted file mode 100644 index 7d6c02a7f2..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_sl.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "dop.", - "pop." - ], - "DAY": [ - "nedelja", - "ponedeljek", - "torek", - "sreda", - "\u010detrtek", - "petek", - "sobota" - ], - "MONTH": [ - "januar", - "februar", - "marec", - "april", - "maj", - "junij", - "julij", - "avgust", - "september", - "oktober", - "november", - "december" - ], - "SHORTDAY": [ - "ned.", - "pon.", - "tor.", - "sre.", - "\u010det.", - "pet.", - "sob." - ], - "SHORTMONTH": [ - "jan.", - "feb.", - "mar.", - "apr.", - "maj", - "jun.", - "jul.", - "avg.", - "sep.", - "okt.", - "nov.", - "dec." - ], - "fullDate": "EEEE, dd. MMMM y", - "longDate": "dd. MMMM y", - "medium": "d. MMM yyyy HH:mm:ss", - "mediumDate": "d. MMM yyyy", - "mediumTime": "HH:mm:ss", - "short": "d. MM. yy HH:mm", - "shortDate": "d. MM. yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ac", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "sl", - "pluralCat": function (n) { if (n % 100 == 1) { return PLURAL_CATEGORY.ONE; } if (n % 100 == 2) { return PLURAL_CATEGORY.TWO; } if (n % 100 == 3 || n % 100 == 4) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_sq-al.js b/vendor/assets/components/angular-i18n/angular-locale_sq-al.js deleted file mode 100644 index 2aa93e9062..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_sq-al.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "PD", - "MD" - ], - "DAY": [ - "e diel", - "e h\u00ebn\u00eb", - "e mart\u00eb", - "e m\u00ebrkur\u00eb", - "e enjte", - "e premte", - "e shtun\u00eb" - ], - "MONTH": [ - "janar", - "shkurt", - "mars", - "prill", - "maj", - "qershor", - "korrik", - "gusht", - "shtator", - "tetor", - "n\u00ebntor", - "dhjetor" - ], - "SHORTDAY": [ - "Die", - "H\u00ebn", - "Mar", - "M\u00ebr", - "Enj", - "Pre", - "Sht" - ], - "SHORTMONTH": [ - "Jan", - "Shk", - "Mar", - "Pri", - "Maj", - "Qer", - "Kor", - "Gsh", - "Sht", - "Tet", - "N\u00ebn", - "Dhj" - ], - "fullDate": "EEEE, dd MMMM y", - "longDate": "dd MMMM y", - "medium": "yyyy-MM-dd h.mm.ss.a", - "mediumDate": "yyyy-MM-dd", - "mediumTime": "h.mm.ss.a", - "short": "yy-MM-dd h.mm.a", - "shortDate": "yy-MM-dd", - "shortTime": "h.mm.a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "Lek", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4-", - "negSuf": "", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "sq-al", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_sq.js b/vendor/assets/components/angular-i18n/angular-locale_sq.js deleted file mode 100644 index 0603e11a7f..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_sq.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "PD", - "MD" - ], - "DAY": [ - "e diel", - "e h\u00ebn\u00eb", - "e mart\u00eb", - "e m\u00ebrkur\u00eb", - "e enjte", - "e premte", - "e shtun\u00eb" - ], - "MONTH": [ - "janar", - "shkurt", - "mars", - "prill", - "maj", - "qershor", - "korrik", - "gusht", - "shtator", - "tetor", - "n\u00ebntor", - "dhjetor" - ], - "SHORTDAY": [ - "Die", - "H\u00ebn", - "Mar", - "M\u00ebr", - "Enj", - "Pre", - "Sht" - ], - "SHORTMONTH": [ - "Jan", - "Shk", - "Mar", - "Pri", - "Maj", - "Qer", - "Kor", - "Gsh", - "Sht", - "Tet", - "N\u00ebn", - "Dhj" - ], - "fullDate": "EEEE, dd MMMM y", - "longDate": "dd MMMM y", - "medium": "yyyy-MM-dd h.mm.ss.a", - "mediumDate": "yyyy-MM-dd", - "mediumTime": "h.mm.ss.a", - "short": "yy-MM-dd h.mm.a", - "shortDate": "yy-MM-dd", - "shortTime": "h.mm.a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "Lek", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4-", - "negSuf": "", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "sq", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_sr-cyrl-rs.js b/vendor/assets/components/angular-i18n/angular-locale_sr-cyrl-rs.js deleted file mode 100644 index d6b68dd308..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_sr-cyrl-rs.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u043f\u0440\u0435 \u043f\u043e\u0434\u043d\u0435", - "\u043f\u043e\u043f\u043e\u0434\u043d\u0435" - ], - "DAY": [ - "\u043d\u0435\u0434\u0435\u0459\u0430", - "\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a", - "\u0443\u0442\u043e\u0440\u0430\u043a", - "\u0441\u0440\u0435\u0434\u0430", - "\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a", - "\u043f\u0435\u0442\u0430\u043a", - "\u0441\u0443\u0431\u043e\u0442\u0430" - ], - "MONTH": [ - "\u0458\u0430\u043d\u0443\u0430\u0440", - "\u0444\u0435\u0431\u0440\u0443\u0430\u0440", - "\u043c\u0430\u0440\u0442", - "\u0430\u043f\u0440\u0438\u043b", - "\u043c\u0430\u0458", - "\u0458\u0443\u043d", - "\u0458\u0443\u043b", - "\u0430\u0432\u0433\u0443\u0441\u0442", - "\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440", - "\u043e\u043a\u0442\u043e\u0431\u0430\u0440", - "\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440", - "\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440" - ], - "SHORTDAY": [ - "\u043d\u0435\u0434", - "\u043f\u043e\u043d", - "\u0443\u0442\u043e", - "\u0441\u0440\u0435", - "\u0447\u0435\u0442", - "\u043f\u0435\u0442", - "\u0441\u0443\u0431" - ], - "SHORTMONTH": [ - "\u0458\u0430\u043d", - "\u0444\u0435\u0431", - "\u043c\u0430\u0440", - "\u0430\u043f\u0440", - "\u043c\u0430\u0458", - "\u0458\u0443\u043d", - "\u0458\u0443\u043b", - "\u0430\u0432\u0433", - "\u0441\u0435\u043f", - "\u043e\u043a\u0442", - "\u043d\u043e\u0432", - "\u0434\u0435\u0446" - ], - "fullDate": "EEEE, dd. MMMM y.", - "longDate": "dd. MMMM y.", - "medium": "dd.MM.y. HH.mm.ss", - "mediumDate": "dd.MM.y.", - "mediumTime": "HH.mm.ss", - "short": "d.M.yy. HH.mm", - "shortDate": "d.M.yy.", - "shortTime": "HH.mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "din", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "sr-cyrl-rs", - "pluralCat": function (n) { if (n % 10 == 1 && n % 100 != 11) { return PLURAL_CATEGORY.ONE; } if (n == (n | 0) && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) { return PLURAL_CATEGORY.FEW; } if (n % 10 == 0 || n == (n | 0) && n % 10 >= 5 && n % 10 <= 9 || n == (n | 0) && n % 100 >= 11 && n % 100 <= 14) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_sr-latn-rs.js b/vendor/assets/components/angular-i18n/angular-locale_sr-latn-rs.js deleted file mode 100644 index 30743fdde9..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_sr-latn-rs.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "pre podne", - "popodne" - ], - "DAY": [ - "nedelja", - "ponedeljak", - "utorak", - "sreda", - "\u010detvrtak", - "petak", - "subota" - ], - "MONTH": [ - "januar", - "februar", - "mart", - "april", - "maj", - "jun", - "jul", - "avgust", - "septembar", - "oktobar", - "novembar", - "decembar" - ], - "SHORTDAY": [ - "ned", - "pon", - "uto", - "sre", - "\u010det", - "pet", - "sub" - ], - "SHORTMONTH": [ - "jan", - "feb", - "mar", - "apr", - "maj", - "jun", - "jul", - "avg", - "sep", - "okt", - "nov", - "dec" - ], - "fullDate": "EEEE, dd. MMMM y.", - "longDate": "dd. MMMM y.", - "medium": "dd.MM.y. HH.mm.ss", - "mediumDate": "dd.MM.y.", - "mediumTime": "HH.mm.ss", - "short": "d.M.yy. HH.mm", - "shortDate": "d.M.yy.", - "shortTime": "HH.mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "din", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "sr-latn-rs", - "pluralCat": function (n) { if (n % 10 == 1 && n % 100 != 11) { return PLURAL_CATEGORY.ONE; } if (n == (n | 0) && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) { return PLURAL_CATEGORY.FEW; } if (n % 10 == 0 || n == (n | 0) && n % 10 >= 5 && n % 10 <= 9 || n == (n | 0) && n % 100 >= 11 && n % 100 <= 14) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_sr.js b/vendor/assets/components/angular-i18n/angular-locale_sr.js deleted file mode 100644 index 795e9ff75d..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_sr.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u043f\u0440\u0435 \u043f\u043e\u0434\u043d\u0435", - "\u043f\u043e\u043f\u043e\u0434\u043d\u0435" - ], - "DAY": [ - "\u043d\u0435\u0434\u0435\u0459\u0430", - "\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a", - "\u0443\u0442\u043e\u0440\u0430\u043a", - "\u0441\u0440\u0435\u0434\u0430", - "\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a", - "\u043f\u0435\u0442\u0430\u043a", - "\u0441\u0443\u0431\u043e\u0442\u0430" - ], - "MONTH": [ - "\u0458\u0430\u043d\u0443\u0430\u0440", - "\u0444\u0435\u0431\u0440\u0443\u0430\u0440", - "\u043c\u0430\u0440\u0442", - "\u0430\u043f\u0440\u0438\u043b", - "\u043c\u0430\u0458", - "\u0458\u0443\u043d", - "\u0458\u0443\u043b", - "\u0430\u0432\u0433\u0443\u0441\u0442", - "\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440", - "\u043e\u043a\u0442\u043e\u0431\u0430\u0440", - "\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440", - "\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440" - ], - "SHORTDAY": [ - "\u043d\u0435\u0434", - "\u043f\u043e\u043d", - "\u0443\u0442\u043e", - "\u0441\u0440\u0435", - "\u0447\u0435\u0442", - "\u043f\u0435\u0442", - "\u0441\u0443\u0431" - ], - "SHORTMONTH": [ - "\u0458\u0430\u043d", - "\u0444\u0435\u0431", - "\u043c\u0430\u0440", - "\u0430\u043f\u0440", - "\u043c\u0430\u0458", - "\u0458\u0443\u043d", - "\u0458\u0443\u043b", - "\u0430\u0432\u0433", - "\u0441\u0435\u043f", - "\u043e\u043a\u0442", - "\u043d\u043e\u0432", - "\u0434\u0435\u0446" - ], - "fullDate": "EEEE, dd. MMMM y.", - "longDate": "dd. MMMM y.", - "medium": "dd.MM.y. HH.mm.ss", - "mediumDate": "dd.MM.y.", - "mediumTime": "HH.mm.ss", - "short": "d.M.yy. HH.mm", - "shortDate": "d.M.yy.", - "shortTime": "HH.mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "din", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "sr", - "pluralCat": function (n) { if (n % 10 == 1 && n % 100 != 11) { return PLURAL_CATEGORY.ONE; } if (n == (n | 0) && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) { return PLURAL_CATEGORY.FEW; } if (n % 10 == 0 || n == (n | 0) && n % 10 >= 5 && n % 10 <= 9 || n == (n | 0) && n % 100 >= 11 && n % 100 <= 14) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_sv-se.js b/vendor/assets/components/angular-i18n/angular-locale_sv-se.js deleted file mode 100644 index 4590ed9651..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_sv-se.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "fm", - "em" - ], - "DAY": [ - "s\u00f6ndag", - "m\u00e5ndag", - "tisdag", - "onsdag", - "torsdag", - "fredag", - "l\u00f6rdag" - ], - "MONTH": [ - "januari", - "februari", - "mars", - "april", - "maj", - "juni", - "juli", - "augusti", - "september", - "oktober", - "november", - "december" - ], - "SHORTDAY": [ - "s\u00f6n", - "m\u00e5n", - "tis", - "ons", - "tors", - "fre", - "l\u00f6r" - ], - "SHORTMONTH": [ - "jan", - "feb", - "mar", - "apr", - "maj", - "jun", - "jul", - "aug", - "sep", - "okt", - "nov", - "dec" - ], - "fullDate": "EEEE'en' 'den' d:'e' MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "yyyy-MM-dd HH:mm", - "shortDate": "yyyy-MM-dd", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "kr", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "sv-se", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_sv.js b/vendor/assets/components/angular-i18n/angular-locale_sv.js deleted file mode 100644 index b49b764e60..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_sv.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "fm", - "em" - ], - "DAY": [ - "s\u00f6ndag", - "m\u00e5ndag", - "tisdag", - "onsdag", - "torsdag", - "fredag", - "l\u00f6rdag" - ], - "MONTH": [ - "januari", - "februari", - "mars", - "april", - "maj", - "juni", - "juli", - "augusti", - "september", - "oktober", - "november", - "december" - ], - "SHORTDAY": [ - "s\u00f6n", - "m\u00e5n", - "tis", - "ons", - "tors", - "fre", - "l\u00f6r" - ], - "SHORTMONTH": [ - "jan", - "feb", - "mar", - "apr", - "maj", - "jun", - "jul", - "aug", - "sep", - "okt", - "nov", - "dec" - ], - "fullDate": "EEEE'en' 'den' d:'e' MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "yyyy-MM-dd HH:mm", - "shortDate": "yyyy-MM-dd", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "kr", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "sv", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_sw-tz.js b/vendor/assets/components/angular-i18n/angular-locale_sw-tz.js deleted file mode 100644 index 2bea9c66f5..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_sw-tz.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "asubuhi", - "alasiri" - ], - "DAY": [ - "Jumapili", - "Jumatatu", - "Jumanne", - "Jumatano", - "Alhamisi", - "Ijumaa", - "Jumamosi" - ], - "MONTH": [ - "Januari", - "Februari", - "Machi", - "Aprili", - "Mei", - "Juni", - "Julai", - "Agosti", - "Septemba", - "Oktoba", - "Novemba", - "Desemba" - ], - "SHORTDAY": [ - "J2", - "J3", - "J4", - "J5", - "Alh", - "Ij", - "J1" - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "Mac", - "Apr", - "Mei", - "Jun", - "Jul", - "Ago", - "Sep", - "Okt", - "Nov", - "Des" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y h:mm:ss a", - "mediumDate": "d MMM y", - "mediumTime": "h:mm:ss a", - "short": "dd/MM/yyyy h:mm a", - "shortDate": "dd/MM/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "TSh", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "sw-tz", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_sw.js b/vendor/assets/components/angular-i18n/angular-locale_sw.js deleted file mode 100644 index 3892f2c741..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_sw.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "asubuhi", - "alasiri" - ], - "DAY": [ - "Jumapili", - "Jumatatu", - "Jumanne", - "Jumatano", - "Alhamisi", - "Ijumaa", - "Jumamosi" - ], - "MONTH": [ - "Januari", - "Februari", - "Machi", - "Aprili", - "Mei", - "Juni", - "Julai", - "Agosti", - "Septemba", - "Oktoba", - "Novemba", - "Desemba" - ], - "SHORTDAY": [ - "J2", - "J3", - "J4", - "J5", - "Alh", - "Ij", - "J1" - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "Mac", - "Apr", - "Mei", - "Jun", - "Jul", - "Ago", - "Sep", - "Okt", - "Nov", - "Des" - ], - "fullDate": "EEEE, d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y h:mm:ss a", - "mediumDate": "d MMM y", - "mediumTime": "h:mm:ss a", - "short": "dd/MM/yyyy h:mm a", - "shortDate": "dd/MM/yyyy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "TSh", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "sw", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ta-in.js b/vendor/assets/components/angular-i18n/angular-locale_ta-in.js deleted file mode 100644 index b491909112..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ta-in.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1", - "\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd", - "\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd", - "\u0baa\u0bc1\u0ba4\u0ba9\u0bcd", - "\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd", - "\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf", - "\u0b9a\u0ba9\u0bbf" - ], - "MONTH": [ - "\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf", - "\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf", - "\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd", - "\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd", - "\u0bae\u0bc7", - "\u0b9c\u0bc2\u0ba9\u0bcd", - "\u0b9c\u0bc2\u0bb2\u0bc8", - "\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd", - "\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bae\u0bcd\u0baa\u0bb0\u0bcd", - "\u0b85\u0b95\u0bcd\u0b9f\u0bcb\u0baa\u0bb0\u0bcd", - "\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd", - "\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd" - ], - "SHORTDAY": [ - "\u0b9e\u0bbe", - "\u0ba4\u0bbf", - "\u0b9a\u0bc6", - "\u0baa\u0bc1", - "\u0bb5\u0bbf", - "\u0bb5\u0bc6", - "\u0b9a" - ], - "SHORTMONTH": [ - "\u0b9c\u0ba9.", - "\u0baa\u0bbf\u0baa\u0bcd.", - "\u0bae\u0bbe\u0bb0\u0bcd.", - "\u0b8f\u0baa\u0bcd.", - "\u0bae\u0bc7", - "\u0b9c\u0bc2\u0ba9\u0bcd", - "\u0b9c\u0bc2\u0bb2\u0bc8", - "\u0b86\u0b95.", - "\u0b9a\u0bc6\u0baa\u0bcd.", - "\u0b85\u0b95\u0bcd.", - "\u0ba8\u0bb5.", - "\u0b9f\u0bbf\u0b9a." - ], - "fullDate": "EEEE, d MMMM, y", - "longDate": "d MMMM, y", - "medium": "d MMM, y h:mm:ss a", - "mediumDate": "d MMM, y", - "mediumTime": "h:mm:ss a", - "short": "d-M-yy h:mm a", - "shortDate": "d-M-yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0-", - "negSuf": "", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ta-in", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ta.js b/vendor/assets/components/angular-i18n/angular-locale_ta.js deleted file mode 100644 index 338d5f9578..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ta.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1", - "\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd", - "\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd", - "\u0baa\u0bc1\u0ba4\u0ba9\u0bcd", - "\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd", - "\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf", - "\u0b9a\u0ba9\u0bbf" - ], - "MONTH": [ - "\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf", - "\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf", - "\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd", - "\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd", - "\u0bae\u0bc7", - "\u0b9c\u0bc2\u0ba9\u0bcd", - "\u0b9c\u0bc2\u0bb2\u0bc8", - "\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd", - "\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bae\u0bcd\u0baa\u0bb0\u0bcd", - "\u0b85\u0b95\u0bcd\u0b9f\u0bcb\u0baa\u0bb0\u0bcd", - "\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd", - "\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd" - ], - "SHORTDAY": [ - "\u0b9e\u0bbe", - "\u0ba4\u0bbf", - "\u0b9a\u0bc6", - "\u0baa\u0bc1", - "\u0bb5\u0bbf", - "\u0bb5\u0bc6", - "\u0b9a" - ], - "SHORTMONTH": [ - "\u0b9c\u0ba9.", - "\u0baa\u0bbf\u0baa\u0bcd.", - "\u0bae\u0bbe\u0bb0\u0bcd.", - "\u0b8f\u0baa\u0bcd.", - "\u0bae\u0bc7", - "\u0b9c\u0bc2\u0ba9\u0bcd", - "\u0b9c\u0bc2\u0bb2\u0bc8", - "\u0b86\u0b95.", - "\u0b9a\u0bc6\u0baa\u0bcd.", - "\u0b85\u0b95\u0bcd.", - "\u0ba8\u0bb5.", - "\u0b9f\u0bbf\u0b9a." - ], - "fullDate": "EEEE, d MMMM, y", - "longDate": "d MMMM, y", - "medium": "d MMM, y h:mm:ss a", - "mediumDate": "d MMM, y", - "mediumTime": "h:mm:ss a", - "short": "d-M-yy h:mm a", - "shortDate": "d-M-yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 2, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4\u00a0-", - "negSuf": "", - "posPre": "\u00a4\u00a0", - "posSuf": "" - } - ] - }, - "id": "ta", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_te-in.js b/vendor/assets/components/angular-i18n/angular-locale_te-in.js deleted file mode 100644 index 4e3e5dbd11..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_te-in.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02", - "\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02", - "\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02", - "\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02", - "\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02", - "\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02", - "\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02" - ], - "MONTH": [ - "\u0c1c\u0c28\u0c35\u0c30\u0c3f", - "\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f", - "\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f", - "\u0c0e\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d", - "\u0c2e\u0c47", - "\u0c1c\u0c42\u0c28\u0c4d", - "\u0c1c\u0c42\u0c32\u0c48", - "\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41", - "\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d", - "\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d", - "\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d", - "\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d" - ], - "SHORTDAY": [ - "\u0c06\u0c26\u0c3f", - "\u0c38\u0c4b\u0c2e", - "\u0c2e\u0c02\u0c17\u0c33", - "\u0c2c\u0c41\u0c27", - "\u0c17\u0c41\u0c30\u0c41", - "\u0c36\u0c41\u0c15\u0c4d\u0c30", - "\u0c36\u0c28\u0c3f" - ], - "SHORTMONTH": [ - "\u0c1c\u0c28", - "\u0c2b\u0c3f\u0c2c\u0c4d\u0c30", - "\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f", - "\u0c0f\u0c2a\u0c4d\u0c30\u0c3f", - "\u0c2e\u0c47", - "\u0c1c\u0c42\u0c28\u0c4d", - "\u0c1c\u0c42\u0c32\u0c48", - "\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41", - "\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d", - "\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d", - "\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d", - "\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y h:mm:ss a", - "mediumDate": "d MMM y", - "mediumTime": "h:mm:ss a", - "short": "dd-MM-yy h:mm a", - "shortDate": "dd-MM-yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "te-in", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_te.js b/vendor/assets/components/angular-i18n/angular-locale_te.js deleted file mode 100644 index 9671277b23..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_te.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "am", - "pm" - ], - "DAY": [ - "\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02", - "\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02", - "\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02", - "\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02", - "\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02", - "\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02", - "\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02" - ], - "MONTH": [ - "\u0c1c\u0c28\u0c35\u0c30\u0c3f", - "\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f", - "\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f", - "\u0c0e\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d", - "\u0c2e\u0c47", - "\u0c1c\u0c42\u0c28\u0c4d", - "\u0c1c\u0c42\u0c32\u0c48", - "\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41", - "\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d", - "\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d", - "\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d", - "\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d" - ], - "SHORTDAY": [ - "\u0c06\u0c26\u0c3f", - "\u0c38\u0c4b\u0c2e", - "\u0c2e\u0c02\u0c17\u0c33", - "\u0c2c\u0c41\u0c27", - "\u0c17\u0c41\u0c30\u0c41", - "\u0c36\u0c41\u0c15\u0c4d\u0c30", - "\u0c36\u0c28\u0c3f" - ], - "SHORTMONTH": [ - "\u0c1c\u0c28", - "\u0c2b\u0c3f\u0c2c\u0c4d\u0c30", - "\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f", - "\u0c0f\u0c2a\u0c4d\u0c30\u0c3f", - "\u0c2e\u0c47", - "\u0c1c\u0c42\u0c28\u0c4d", - "\u0c1c\u0c42\u0c32\u0c48", - "\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41", - "\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d", - "\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d", - "\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d", - "\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d" - ], - "fullDate": "EEEE d MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y h:mm:ss a", - "mediumDate": "d MMM y", - "mediumTime": "h:mm:ss a", - "short": "dd-MM-yy h:mm a", - "shortDate": "dd-MM-yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b9", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "te", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_th-th.js b/vendor/assets/components/angular-i18n/angular-locale_th-th.js deleted file mode 100644 index 0791a422a4..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_th-th.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07", - "\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07" - ], - "DAY": [ - "\u0e27\u0e31\u0e19\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c", - "\u0e27\u0e31\u0e19\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c", - "\u0e27\u0e31\u0e19\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23", - "\u0e27\u0e31\u0e19\u0e1e\u0e38\u0e18", - "\u0e27\u0e31\u0e19\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35", - "\u0e27\u0e31\u0e19\u0e28\u0e38\u0e01\u0e23\u0e4c", - "\u0e27\u0e31\u0e19\u0e40\u0e2a\u0e32\u0e23\u0e4c" - ], - "MONTH": [ - "\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21", - "\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c", - "\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21", - "\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19", - "\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21", - "\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19", - "\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21", - "\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21", - "\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19", - "\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21", - "\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19", - "\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21" - ], - "SHORTDAY": [ - "\u0e2d\u0e32.", - "\u0e08.", - "\u0e2d.", - "\u0e1e.", - "\u0e1e\u0e24.", - "\u0e28.", - "\u0e2a." - ], - "SHORTMONTH": [ - "\u0e21.\u0e04.", - "\u0e01.\u0e1e.", - "\u0e21\u0e35.\u0e04.", - "\u0e40\u0e21.\u0e22.", - "\u0e1e.\u0e04.", - "\u0e21\u0e34.\u0e22.", - "\u0e01.\u0e04.", - "\u0e2a.\u0e04.", - "\u0e01.\u0e22.", - "\u0e15.\u0e04.", - "\u0e1e.\u0e22.", - "\u0e18.\u0e04." - ], - "fullDate": "EEEE\u0e17\u0e35\u0e48 d MMMM G y", - "longDate": "d MMMM y", - "medium": "d MMM y H:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "H:mm:ss", - "short": "d/M/yyyy H:mm", - "shortDate": "d/M/yyyy", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u0e3f", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "th-th", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_th.js b/vendor/assets/components/angular-i18n/angular-locale_th.js deleted file mode 100644 index be8efab1e1..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_th.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07", - "\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07" - ], - "DAY": [ - "\u0e27\u0e31\u0e19\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c", - "\u0e27\u0e31\u0e19\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c", - "\u0e27\u0e31\u0e19\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23", - "\u0e27\u0e31\u0e19\u0e1e\u0e38\u0e18", - "\u0e27\u0e31\u0e19\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35", - "\u0e27\u0e31\u0e19\u0e28\u0e38\u0e01\u0e23\u0e4c", - "\u0e27\u0e31\u0e19\u0e40\u0e2a\u0e32\u0e23\u0e4c" - ], - "MONTH": [ - "\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21", - "\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c", - "\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21", - "\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19", - "\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21", - "\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19", - "\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21", - "\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21", - "\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19", - "\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21", - "\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19", - "\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21" - ], - "SHORTDAY": [ - "\u0e2d\u0e32.", - "\u0e08.", - "\u0e2d.", - "\u0e1e.", - "\u0e1e\u0e24.", - "\u0e28.", - "\u0e2a." - ], - "SHORTMONTH": [ - "\u0e21.\u0e04.", - "\u0e01.\u0e1e.", - "\u0e21\u0e35.\u0e04.", - "\u0e40\u0e21.\u0e22.", - "\u0e1e.\u0e04.", - "\u0e21\u0e34.\u0e22.", - "\u0e01.\u0e04.", - "\u0e2a.\u0e04.", - "\u0e01.\u0e22.", - "\u0e15.\u0e04.", - "\u0e1e.\u0e22.", - "\u0e18.\u0e04." - ], - "fullDate": "EEEE\u0e17\u0e35\u0e48 d MMMM G y", - "longDate": "d MMMM y", - "medium": "d MMM y H:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "H:mm:ss", - "short": "d/M/yyyy H:mm", - "shortDate": "d/M/yyyy", - "shortTime": "H:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u0e3f", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "th", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_tl.js b/vendor/assets/components/angular-i18n/angular-locale_tl.js deleted file mode 100644 index 0809c01347..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_tl.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Linggo", - "Lunes", - "Martes", - "Miyerkules", - "Huwebes", - "Biyernes", - "Sabado" - ], - "MONTH": [ - "Enero", - "Pebrero", - "Marso", - "Abril", - "Mayo", - "Hunyo", - "Hulyo", - "Agosto", - "Setyembre", - "Oktubre", - "Nobyembre", - "Disyembre" - ], - "SHORTDAY": [ - "Lin", - "Lun", - "Mar", - "Mye", - "Huw", - "Bye", - "Sab" - ], - "SHORTMONTH": [ - "Ene", - "Peb", - "Mar", - "Abr", - "May", - "Hun", - "Hul", - "Ago", - "Set", - "Okt", - "Nob", - "Dis" - ], - "fullDate": "EEEE, MMMM dd y", - "longDate": "MMMM d, y", - "medium": "MMM d, y HH:mm:ss", - "mediumDate": "MMM d, y", - "mediumTime": "HH:mm:ss", - "short": "M/d/yy HH:mm", - "shortDate": "M/d/yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b1", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "tl", - "pluralCat": function (n) { if (n == 0 || n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_tr-tr.js b/vendor/assets/components/angular-i18n/angular-locale_tr-tr.js deleted file mode 100644 index 57d3ca4a91..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_tr-tr.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Pazar", - "Pazartesi", - "Sal\u0131", - "\u00c7ar\u015famba", - "Per\u015fembe", - "Cuma", - "Cumartesi" - ], - "MONTH": [ - "Ocak", - "\u015eubat", - "Mart", - "Nisan", - "May\u0131s", - "Haziran", - "Temmuz", - "A\u011fustos", - "Eyl\u00fcl", - "Ekim", - "Kas\u0131m", - "Aral\u0131k" - ], - "SHORTDAY": [ - "Paz", - "Pzt", - "Sal", - "\u00c7ar", - "Per", - "Cum", - "Cmt" - ], - "SHORTMONTH": [ - "Oca", - "\u015eub", - "Mar", - "Nis", - "May", - "Haz", - "Tem", - "A\u011fu", - "Eyl", - "Eki", - "Kas", - "Ara" - ], - "fullDate": "d MMMM y EEEE", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd MM yyyy HH:mm", - "shortDate": "dd MM yyyy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "TL", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "tr-tr", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_tr.js b/vendor/assets/components/angular-i18n/angular-locale_tr.js deleted file mode 100644 index bc36ae2e17..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_tr.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Pazar", - "Pazartesi", - "Sal\u0131", - "\u00c7ar\u015famba", - "Per\u015fembe", - "Cuma", - "Cumartesi" - ], - "MONTH": [ - "Ocak", - "\u015eubat", - "Mart", - "Nisan", - "May\u0131s", - "Haziran", - "Temmuz", - "A\u011fustos", - "Eyl\u00fcl", - "Ekim", - "Kas\u0131m", - "Aral\u0131k" - ], - "SHORTDAY": [ - "Paz", - "Pzt", - "Sal", - "\u00c7ar", - "Per", - "Cum", - "Cmt" - ], - "SHORTMONTH": [ - "Oca", - "\u015eub", - "Mar", - "Nis", - "May", - "Haz", - "Tem", - "A\u011fu", - "Eyl", - "Eki", - "Kas", - "Ara" - ], - "fullDate": "d MMMM y EEEE", - "longDate": "d MMMM y", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd MM yyyy HH:mm", - "shortDate": "dd MM yyyy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "TL", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(", - "negSuf": "\u00a0\u00a4)", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "tr", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_uk-ua.js b/vendor/assets/components/angular-i18n/angular-locale_uk-ua.js deleted file mode 100644 index 1e01d7c91e..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_uk-ua.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0434\u043f", - "\u043f\u043f" - ], - "DAY": [ - "\u041d\u0435\u0434\u0456\u043b\u044f", - "\u041f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a", - "\u0412\u0456\u0432\u0442\u043e\u0440\u043e\u043a", - "\u0421\u0435\u0440\u0435\u0434\u0430", - "\u0427\u0435\u0442\u0432\u0435\u0440", - "\u041f\u02bc\u044f\u0442\u043d\u0438\u0446\u044f", - "\u0421\u0443\u0431\u043e\u0442\u0430" - ], - "MONTH": [ - "\u0441\u0456\u0447\u043d\u044f", - "\u043b\u044e\u0442\u043e\u0433\u043e", - "\u0431\u0435\u0440\u0435\u0437\u043d\u044f", - "\u043a\u0432\u0456\u0442\u043d\u044f", - "\u0442\u0440\u0430\u0432\u043d\u044f", - "\u0447\u0435\u0440\u0432\u043d\u044f", - "\u043b\u0438\u043f\u043d\u044f", - "\u0441\u0435\u0440\u043f\u043d\u044f", - "\u0432\u0435\u0440\u0435\u0441\u043d\u044f", - "\u0436\u043e\u0432\u0442\u043d\u044f", - "\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430", - "\u0433\u0440\u0443\u0434\u043d\u044f" - ], - "SHORTDAY": [ - "\u041d\u0434", - "\u041f\u043d", - "\u0412\u0442", - "\u0421\u0440", - "\u0427\u0442", - "\u041f\u0442", - "\u0421\u0431" - ], - "SHORTMONTH": [ - "\u0441\u0456\u0447.", - "\u043b\u044e\u0442.", - "\u0431\u0435\u0440.", - "\u043a\u0432\u0456\u0442.", - "\u0442\u0440\u0430\u0432.", - "\u0447\u0435\u0440\u0432.", - "\u043b\u0438\u043f.", - "\u0441\u0435\u0440\u043f.", - "\u0432\u0435\u0440.", - "\u0436\u043e\u0432\u0442.", - "\u043b\u0438\u0441\u0442.", - "\u0433\u0440\u0443\u0434." - ], - "fullDate": "EEEE, d MMMM y '\u0440'.", - "longDate": "d MMMM y '\u0440'.", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yy HH:mm", - "shortDate": "dd.MM.yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b4", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "uk-ua", - "pluralCat": function (n) { if (n % 10 == 1 && n % 100 != 11) { return PLURAL_CATEGORY.ONE; } if (n == (n | 0) && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) { return PLURAL_CATEGORY.FEW; } if (n % 10 == 0 || n == (n | 0) && n % 10 >= 5 && n % 10 <= 9 || n == (n | 0) && n % 100 >= 11 && n % 100 <= 14) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_uk.js b/vendor/assets/components/angular-i18n/angular-locale_uk.js deleted file mode 100644 index 6b5058268e..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_uk.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u0434\u043f", - "\u043f\u043f" - ], - "DAY": [ - "\u041d\u0435\u0434\u0456\u043b\u044f", - "\u041f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a", - "\u0412\u0456\u0432\u0442\u043e\u0440\u043e\u043a", - "\u0421\u0435\u0440\u0435\u0434\u0430", - "\u0427\u0435\u0442\u0432\u0435\u0440", - "\u041f\u02bc\u044f\u0442\u043d\u0438\u0446\u044f", - "\u0421\u0443\u0431\u043e\u0442\u0430" - ], - "MONTH": [ - "\u0441\u0456\u0447\u043d\u044f", - "\u043b\u044e\u0442\u043e\u0433\u043e", - "\u0431\u0435\u0440\u0435\u0437\u043d\u044f", - "\u043a\u0432\u0456\u0442\u043d\u044f", - "\u0442\u0440\u0430\u0432\u043d\u044f", - "\u0447\u0435\u0440\u0432\u043d\u044f", - "\u043b\u0438\u043f\u043d\u044f", - "\u0441\u0435\u0440\u043f\u043d\u044f", - "\u0432\u0435\u0440\u0435\u0441\u043d\u044f", - "\u0436\u043e\u0432\u0442\u043d\u044f", - "\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430", - "\u0433\u0440\u0443\u0434\u043d\u044f" - ], - "SHORTDAY": [ - "\u041d\u0434", - "\u041f\u043d", - "\u0412\u0442", - "\u0421\u0440", - "\u0427\u0442", - "\u041f\u0442", - "\u0421\u0431" - ], - "SHORTMONTH": [ - "\u0441\u0456\u0447.", - "\u043b\u044e\u0442.", - "\u0431\u0435\u0440.", - "\u043a\u0432\u0456\u0442.", - "\u0442\u0440\u0430\u0432.", - "\u0447\u0435\u0440\u0432.", - "\u043b\u0438\u043f.", - "\u0441\u0435\u0440\u043f.", - "\u0432\u0435\u0440.", - "\u0436\u043e\u0432\u0442.", - "\u043b\u0438\u0441\u0442.", - "\u0433\u0440\u0443\u0434." - ], - "fullDate": "EEEE, d MMMM y '\u0440'.", - "longDate": "d MMMM y '\u0440'.", - "medium": "d MMM y HH:mm:ss", - "mediumDate": "d MMM y", - "mediumTime": "HH:mm:ss", - "short": "dd.MM.yy HH:mm", - "shortDate": "dd.MM.yy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20b4", - "DECIMAL_SEP": ",", - "GROUP_SEP": "\u00a0", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "uk", - "pluralCat": function (n) { if (n % 10 == 1 && n % 100 != 11) { return PLURAL_CATEGORY.ONE; } if (n == (n | 0) && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) { return PLURAL_CATEGORY.FEW; } if (n % 10 == 0 || n == (n | 0) && n % 10 >= 5 && n % 10 <= 9 || n == (n | 0) && n % 100 >= 11 && n % 100 <= 14) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ur-pk.js b/vendor/assets/components/angular-i18n/angular-locale_ur-pk.js deleted file mode 100644 index cd642212e5..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ur-pk.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u062f\u0646", - "\u0631\u0627\u062a" - ], - "DAY": [ - "\u0627\u062a\u0648\u0627\u0631", - "\u067e\u064a\u0631", - "\u0645\u0646\u06af\u0644", - "\u0628\u062f\u0647", - "\u062c\u0645\u0639\u0631\u0627\u062a", - "\u062c\u0645\u0639\u06c1", - "\u06c1\u0641\u062a\u06c1" - ], - "MONTH": [ - "\u062c\u0646\u0648\u0631\u06cc", - "\u0641\u0631\u0648\u0631\u06cc", - "\u0645\u0627\u0631\u0686", - "\u0627\u067e\u0631\u064a\u0644", - "\u0645\u0626", - "\u062c\u0648\u0646", - "\u062c\u0648\u0644\u0627\u0626", - "\u0627\u06af\u0633\u062a", - "\u0633\u062a\u0645\u0628\u0631", - "\u0627\u06a9\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0645\u0628\u0631", - "\u062f\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u0627\u062a\u0648\u0627\u0631", - "\u067e\u064a\u0631", - "\u0645\u0646\u06af\u0644", - "\u0628\u062f\u0647", - "\u062c\u0645\u0639\u0631\u0627\u062a", - "\u062c\u0645\u0639\u06c1", - "\u06c1\u0641\u062a\u06c1" - ], - "SHORTMONTH": [ - "\u062c\u0646\u0648\u0631\u06cc", - "\u0641\u0631\u0648\u0631\u06cc", - "\u0645\u0627\u0631\u0686", - "\u0627\u067e\u0631\u064a\u0644", - "\u0645\u0626", - "\u062c\u0648\u0646", - "\u062c\u0648\u0644\u0627\u0626", - "\u0627\u06af\u0633\u062a", - "\u0633\u062a\u0645\u0628\u0631", - "\u0627\u06a9\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0645\u0628\u0631", - "\u062f\u0633\u0645\u0628\u0631" - ], - "fullDate": "EEEE\u060d d\u060d MMMM y", - "longDate": "d\u060d MMMM y", - "medium": "d\u060d MMM y h:mm:ss a", - "mediumDate": "d\u060d MMM y", - "mediumTime": "h:mm:ss a", - "short": "d/M/yy h:mm a", - "shortDate": "d/M/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "Rs", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4-", - "negSuf": "", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "ur-pk", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_ur.js b/vendor/assets/components/angular-i18n/angular-locale_ur.js deleted file mode 100644 index d09bea8517..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_ur.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u062f\u0646", - "\u0631\u0627\u062a" - ], - "DAY": [ - "\u0627\u062a\u0648\u0627\u0631", - "\u067e\u064a\u0631", - "\u0645\u0646\u06af\u0644", - "\u0628\u062f\u0647", - "\u062c\u0645\u0639\u0631\u0627\u062a", - "\u062c\u0645\u0639\u06c1", - "\u06c1\u0641\u062a\u06c1" - ], - "MONTH": [ - "\u062c\u0646\u0648\u0631\u06cc", - "\u0641\u0631\u0648\u0631\u06cc", - "\u0645\u0627\u0631\u0686", - "\u0627\u067e\u0631\u064a\u0644", - "\u0645\u0626", - "\u062c\u0648\u0646", - "\u062c\u0648\u0644\u0627\u0626", - "\u0627\u06af\u0633\u062a", - "\u0633\u062a\u0645\u0628\u0631", - "\u0627\u06a9\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0645\u0628\u0631", - "\u062f\u0633\u0645\u0628\u0631" - ], - "SHORTDAY": [ - "\u0627\u062a\u0648\u0627\u0631", - "\u067e\u064a\u0631", - "\u0645\u0646\u06af\u0644", - "\u0628\u062f\u0647", - "\u062c\u0645\u0639\u0631\u0627\u062a", - "\u062c\u0645\u0639\u06c1", - "\u06c1\u0641\u062a\u06c1" - ], - "SHORTMONTH": [ - "\u062c\u0646\u0648\u0631\u06cc", - "\u0641\u0631\u0648\u0631\u06cc", - "\u0645\u0627\u0631\u0686", - "\u0627\u067e\u0631\u064a\u0644", - "\u0645\u0626", - "\u062c\u0648\u0646", - "\u062c\u0648\u0644\u0627\u0626", - "\u0627\u06af\u0633\u062a", - "\u0633\u062a\u0645\u0628\u0631", - "\u0627\u06a9\u062a\u0648\u0628\u0631", - "\u0646\u0648\u0645\u0628\u0631", - "\u062f\u0633\u0645\u0628\u0631" - ], - "fullDate": "EEEE\u060d d\u060d MMMM y", - "longDate": "d\u060d MMMM y", - "medium": "d\u060d MMM y h:mm:ss a", - "mediumDate": "d\u060d MMM y", - "mediumTime": "h:mm:ss a", - "short": "d/M/yy h:mm a", - "shortDate": "d/M/yy", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "Rs", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4-", - "negSuf": "", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "ur", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_vi-vn.js b/vendor/assets/components/angular-i18n/angular-locale_vi-vn.js deleted file mode 100644 index 1f4fa05adc..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_vi-vn.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "SA", - "CH" - ], - "DAY": [ - "Ch\u1ee7 nh\u1eadt", - "Th\u1ee9 hai", - "Th\u1ee9 ba", - "Th\u1ee9 t\u01b0", - "Th\u1ee9 n\u0103m", - "Th\u1ee9 s\u00e1u", - "Th\u1ee9 b\u1ea3y" - ], - "MONTH": [ - "th\u00e1ng m\u1ed9t", - "th\u00e1ng hai", - "th\u00e1ng ba", - "th\u00e1ng t\u01b0", - "th\u00e1ng n\u0103m", - "th\u00e1ng s\u00e1u", - "th\u00e1ng b\u1ea3y", - "th\u00e1ng t\u00e1m", - "th\u00e1ng ch\u00edn", - "th\u00e1ng m\u01b0\u1eddi", - "th\u00e1ng m\u01b0\u1eddi m\u1ed9t", - "th\u00e1ng m\u01b0\u1eddi hai" - ], - "SHORTDAY": [ - "CN", - "Th 2", - "Th 3", - "Th 4", - "Th 5", - "Th 6", - "Th 7" - ], - "SHORTMONTH": [ - "thg 1", - "thg 2", - "thg 3", - "thg 4", - "thg 5", - "thg 6", - "thg 7", - "thg 8", - "thg 9", - "thg 10", - "thg 11", - "thg 12" - ], - "fullDate": "EEEE, 'ng\u00e0y' dd MMMM 'n\u0103m' y", - "longDate": "'Ng\u00e0y' dd 'th\u00e1ng' M 'n\u0103m' y", - "medium": "dd-MM-yyyy HH:mm:ss", - "mediumDate": "dd-MM-yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yyyy HH:mm", - "shortDate": "dd/MM/yyyy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ab", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "vi-vn", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_vi.js b/vendor/assets/components/angular-i18n/angular-locale_vi.js deleted file mode 100644 index d8d478e9bd..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_vi.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "SA", - "CH" - ], - "DAY": [ - "Ch\u1ee7 nh\u1eadt", - "Th\u1ee9 hai", - "Th\u1ee9 ba", - "Th\u1ee9 t\u01b0", - "Th\u1ee9 n\u0103m", - "Th\u1ee9 s\u00e1u", - "Th\u1ee9 b\u1ea3y" - ], - "MONTH": [ - "th\u00e1ng m\u1ed9t", - "th\u00e1ng hai", - "th\u00e1ng ba", - "th\u00e1ng t\u01b0", - "th\u00e1ng n\u0103m", - "th\u00e1ng s\u00e1u", - "th\u00e1ng b\u1ea3y", - "th\u00e1ng t\u00e1m", - "th\u00e1ng ch\u00edn", - "th\u00e1ng m\u01b0\u1eddi", - "th\u00e1ng m\u01b0\u1eddi m\u1ed9t", - "th\u00e1ng m\u01b0\u1eddi hai" - ], - "SHORTDAY": [ - "CN", - "Th 2", - "Th 3", - "Th 4", - "Th 5", - "Th 6", - "Th 7" - ], - "SHORTMONTH": [ - "thg 1", - "thg 2", - "thg 3", - "thg 4", - "thg 5", - "thg 6", - "thg 7", - "thg 8", - "thg 9", - "thg 10", - "thg 11", - "thg 12" - ], - "fullDate": "EEEE, 'ng\u00e0y' dd MMMM 'n\u0103m' y", - "longDate": "'Ng\u00e0y' dd 'th\u00e1ng' M 'n\u0103m' y", - "medium": "dd-MM-yyyy HH:mm:ss", - "mediumDate": "dd-MM-yyyy", - "mediumTime": "HH:mm:ss", - "short": "dd/MM/yyyy HH:mm", - "shortDate": "dd/MM/yyyy", - "shortTime": "HH:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u20ab", - "DECIMAL_SEP": ",", - "GROUP_SEP": ".", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "-", - "negSuf": "\u00a0\u00a4", - "posPre": "", - "posSuf": "\u00a0\u00a4" - } - ] - }, - "id": "vi", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_zh-cn.js b/vendor/assets/components/angular-i18n/angular-locale_zh-cn.js deleted file mode 100644 index 787d1fd2ac..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_zh-cn.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u4e0a\u5348", - "\u4e0b\u5348" - ], - "DAY": [ - "\u661f\u671f\u65e5", - "\u661f\u671f\u4e00", - "\u661f\u671f\u4e8c", - "\u661f\u671f\u4e09", - "\u661f\u671f\u56db", - "\u661f\u671f\u4e94", - "\u661f\u671f\u516d" - ], - "MONTH": [ - "1\u6708", - "2\u6708", - "3\u6708", - "4\u6708", - "5\u6708", - "6\u6708", - "7\u6708", - "8\u6708", - "9\u6708", - "10\u6708", - "11\u6708", - "12\u6708" - ], - "SHORTDAY": [ - "\u5468\u65e5", - "\u5468\u4e00", - "\u5468\u4e8c", - "\u5468\u4e09", - "\u5468\u56db", - "\u5468\u4e94", - "\u5468\u516d" - ], - "SHORTMONTH": [ - "1\u6708", - "2\u6708", - "3\u6708", - "4\u6708", - "5\u6708", - "6\u6708", - "7\u6708", - "8\u6708", - "9\u6708", - "10\u6708", - "11\u6708", - "12\u6708" - ], - "fullDate": "y\u5e74M\u6708d\u65e5EEEE", - "longDate": "y\u5e74M\u6708d\u65e5", - "medium": "yyyy-M-d ah:mm:ss", - "mediumDate": "yyyy-M-d", - "mediumTime": "ah:mm:ss", - "short": "yy-M-d ah:mm", - "shortDate": "yy-M-d", - "shortTime": "ah:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a5", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "zh-cn", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_zh-hans-cn.js b/vendor/assets/components/angular-i18n/angular-locale_zh-hans-cn.js deleted file mode 100644 index b439a08095..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_zh-hans-cn.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u4e0a\u5348", - "\u4e0b\u5348" - ], - "DAY": [ - "\u661f\u671f\u65e5", - "\u661f\u671f\u4e00", - "\u661f\u671f\u4e8c", - "\u661f\u671f\u4e09", - "\u661f\u671f\u56db", - "\u661f\u671f\u4e94", - "\u661f\u671f\u516d" - ], - "MONTH": [ - "1\u6708", - "2\u6708", - "3\u6708", - "4\u6708", - "5\u6708", - "6\u6708", - "7\u6708", - "8\u6708", - "9\u6708", - "10\u6708", - "11\u6708", - "12\u6708" - ], - "SHORTDAY": [ - "\u5468\u65e5", - "\u5468\u4e00", - "\u5468\u4e8c", - "\u5468\u4e09", - "\u5468\u56db", - "\u5468\u4e94", - "\u5468\u516d" - ], - "SHORTMONTH": [ - "1\u6708", - "2\u6708", - "3\u6708", - "4\u6708", - "5\u6708", - "6\u6708", - "7\u6708", - "8\u6708", - "9\u6708", - "10\u6708", - "11\u6708", - "12\u6708" - ], - "fullDate": "y\u5e74M\u6708d\u65e5EEEE", - "longDate": "y\u5e74M\u6708d\u65e5", - "medium": "yyyy-M-d ah:mm:ss", - "mediumDate": "yyyy-M-d", - "mediumTime": "ah:mm:ss", - "short": "yy-M-d ah:mm", - "shortDate": "yy-M-d", - "shortTime": "ah:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a5", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "zh-hans-cn", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_zh-hk.js b/vendor/assets/components/angular-i18n/angular-locale_zh-hk.js deleted file mode 100644 index 0a4719857b..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_zh-hk.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u4e0a\u5348", - "\u4e0b\u5348" - ], - "DAY": [ - "\u661f\u671f\u65e5", - "\u661f\u671f\u4e00", - "\u661f\u671f\u4e8c", - "\u661f\u671f\u4e09", - "\u661f\u671f\u56db", - "\u661f\u671f\u4e94", - "\u661f\u671f\u516d" - ], - "MONTH": [ - "1\u6708", - "2\u6708", - "3\u6708", - "4\u6708", - "5\u6708", - "6\u6708", - "7\u6708", - "8\u6708", - "9\u6708", - "10\u6708", - "11\u6708", - "12\u6708" - ], - "SHORTDAY": [ - "\u9031\u65e5", - "\u9031\u4e00", - "\u9031\u4e8c", - "\u9031\u4e09", - "\u9031\u56db", - "\u9031\u4e94", - "\u9031\u516d" - ], - "SHORTMONTH": [ - "1\u6708", - "2\u6708", - "3\u6708", - "4\u6708", - "5\u6708", - "6\u6708", - "7\u6708", - "8\u6708", - "9\u6708", - "10\u6708", - "11\u6708", - "12\u6708" - ], - "fullDate": "y\u5e74M\u6708d\u65e5EEEE", - "longDate": "y\u5e74M\u6708d\u65e5", - "medium": "y\u5e74M\u6708d\u65e5 ahh:mm:ss", - "mediumDate": "y\u5e74M\u6708d\u65e5", - "mediumTime": "ahh:mm:ss", - "short": "yy\u5e74M\u6708d\u65e5 ah:mm", - "shortDate": "yy\u5e74M\u6708d\u65e5", - "shortTime": "ah:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "$", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "zh-hk", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_zh-tw.js b/vendor/assets/components/angular-i18n/angular-locale_zh-tw.js deleted file mode 100644 index 8989021f84..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_zh-tw.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u4e0a\u5348", - "\u4e0b\u5348" - ], - "DAY": [ - "\u661f\u671f\u65e5", - "\u661f\u671f\u4e00", - "\u661f\u671f\u4e8c", - "\u661f\u671f\u4e09", - "\u661f\u671f\u56db", - "\u661f\u671f\u4e94", - "\u661f\u671f\u516d" - ], - "MONTH": [ - "1\u6708", - "2\u6708", - "3\u6708", - "4\u6708", - "5\u6708", - "6\u6708", - "7\u6708", - "8\u6708", - "9\u6708", - "10\u6708", - "11\u6708", - "12\u6708" - ], - "SHORTDAY": [ - "\u9031\u65e5", - "\u9031\u4e00", - "\u9031\u4e8c", - "\u9031\u4e09", - "\u9031\u56db", - "\u9031\u4e94", - "\u9031\u516d" - ], - "SHORTMONTH": [ - "1\u6708", - "2\u6708", - "3\u6708", - "4\u6708", - "5\u6708", - "6\u6708", - "7\u6708", - "8\u6708", - "9\u6708", - "10\u6708", - "11\u6708", - "12\u6708" - ], - "fullDate": "y\u5e74M\u6708d\u65e5EEEE", - "longDate": "y\u5e74M\u6708d\u65e5", - "medium": "yyyy/M/d ah:mm:ss", - "mediumDate": "yyyy/M/d", - "mediumTime": "ah:mm:ss", - "short": "y/M/d ah:mm", - "shortDate": "y/M/d", - "shortTime": "ah:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "NT$", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "\u00a4-", - "negSuf": "", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "zh-tw", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_zh.js b/vendor/assets/components/angular-i18n/angular-locale_zh.js deleted file mode 100644 index d02bfa3248..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_zh.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "\u4e0a\u5348", - "\u4e0b\u5348" - ], - "DAY": [ - "\u661f\u671f\u65e5", - "\u661f\u671f\u4e00", - "\u661f\u671f\u4e8c", - "\u661f\u671f\u4e09", - "\u661f\u671f\u56db", - "\u661f\u671f\u4e94", - "\u661f\u671f\u516d" - ], - "MONTH": [ - "1\u6708", - "2\u6708", - "3\u6708", - "4\u6708", - "5\u6708", - "6\u6708", - "7\u6708", - "8\u6708", - "9\u6708", - "10\u6708", - "11\u6708", - "12\u6708" - ], - "SHORTDAY": [ - "\u5468\u65e5", - "\u5468\u4e00", - "\u5468\u4e8c", - "\u5468\u4e09", - "\u5468\u56db", - "\u5468\u4e94", - "\u5468\u516d" - ], - "SHORTMONTH": [ - "1\u6708", - "2\u6708", - "3\u6708", - "4\u6708", - "5\u6708", - "6\u6708", - "7\u6708", - "8\u6708", - "9\u6708", - "10\u6708", - "11\u6708", - "12\u6708" - ], - "fullDate": "y\u5e74M\u6708d\u65e5EEEE", - "longDate": "y\u5e74M\u6708d\u65e5", - "medium": "yyyy-M-d ah:mm:ss", - "mediumDate": "yyyy-M-d", - "mediumTime": "ah:mm:ss", - "short": "yy-M-d ah:mm", - "shortDate": "yy-M-d", - "shortTime": "ah:mm" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "\u00a5", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "zh", - "pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_zu-za.js b/vendor/assets/components/angular-i18n/angular-locale_zu-za.js deleted file mode 100644 index 4c6cda6c26..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_zu-za.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sonto", - "Msombuluko", - "Lwesibili", - "Lwesithathu", - "uLwesine", - "Lwesihlanu", - "Mgqibelo" - ], - "MONTH": [ - "Januwari", - "Februwari", - "Mashi", - "Apreli", - "Meyi", - "Juni", - "Julayi", - "Agasti", - "Septhemba", - "Okthoba", - "Novemba", - "Disemba" - ], - "SHORTDAY": [ - "Son", - "Mso", - "Bil", - "Tha", - "Sin", - "Hla", - "Mgq" - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "Mas", - "Apr", - "Mey", - "Jun", - "Jul", - "Aga", - "Sep", - "Okt", - "Nov", - "Dis" - ], - "fullDate": "EEEE dd MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y h:mm:ss a", - "mediumDate": "d MMM y", - "mediumTime": "h:mm:ss a", - "short": "yyyy-MM-dd h:mm a", - "shortDate": "yyyy-MM-dd", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "R", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "zu-za", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/angular-locale_zu.js b/vendor/assets/components/angular-i18n/angular-locale_zu.js deleted file mode 100644 index fcadc8f76b..0000000000 --- a/vendor/assets/components/angular-i18n/angular-locale_zu.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; -angular.module("ngLocale", [], ["$provide", function($provide) { -var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; -$provide.value("$locale", { - "DATETIME_FORMATS": { - "AMPMS": [ - "AM", - "PM" - ], - "DAY": [ - "Sonto", - "Msombuluko", - "Lwesibili", - "Lwesithathu", - "uLwesine", - "Lwesihlanu", - "Mgqibelo" - ], - "MONTH": [ - "Januwari", - "Februwari", - "Mashi", - "Apreli", - "Meyi", - "Juni", - "Julayi", - "Agasti", - "Septhemba", - "Okthoba", - "Novemba", - "Disemba" - ], - "SHORTDAY": [ - "Son", - "Mso", - "Bil", - "Tha", - "Sin", - "Hla", - "Mgq" - ], - "SHORTMONTH": [ - "Jan", - "Feb", - "Mas", - "Apr", - "Mey", - "Jun", - "Jul", - "Aga", - "Sep", - "Okt", - "Nov", - "Dis" - ], - "fullDate": "EEEE dd MMMM y", - "longDate": "d MMMM y", - "medium": "d MMM y h:mm:ss a", - "mediumDate": "d MMM y", - "mediumTime": "h:mm:ss a", - "short": "yyyy-MM-dd h:mm a", - "shortDate": "yyyy-MM-dd", - "shortTime": "h:mm a" - }, - "NUMBER_FORMATS": { - "CURRENCY_SYM": "R", - "DECIMAL_SEP": ".", - "GROUP_SEP": ",", - "PATTERNS": [ - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 3, - "minFrac": 0, - "minInt": 1, - "negPre": "-", - "negSuf": "", - "posPre": "", - "posSuf": "" - }, - { - "gSize": 3, - "lgSize": 3, - "macFrac": 0, - "maxFrac": 2, - "minFrac": 2, - "minInt": 1, - "negPre": "(\u00a4", - "negSuf": ")", - "posPre": "\u00a4", - "posSuf": "" - } - ] - }, - "id": "zu", - "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} -}); -}]); \ No newline at end of file diff --git a/vendor/assets/components/angular-i18n/bower.json b/vendor/assets/components/angular-i18n/bower.json deleted file mode 100644 index 1b411a82ad..0000000000 --- a/vendor/assets/components/angular-i18n/bower.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "angular-i18n", - "version": "1.3.0-build.2602+sha.b10a437", - "ignore": [ - "**/.*", - "node_modules", - "components" - ] -} diff --git a/vendor/assets/components/angular-mocks/.bower.json b/vendor/assets/components/angular-mocks/.bower.json deleted file mode 100644 index ce8f46f20e..0000000000 --- a/vendor/assets/components/angular-mocks/.bower.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "angular-mocks", - "version": "1.2.16", - "main": "./angular-mocks.js", - "dependencies": { - "angular": "1.2.16" - }, - "homepage": "https://github.com/angular/bower-angular-mocks", - "_release": "1.2.16", - "_resolution": { - "type": "version", - "tag": "v1.2.16", - "commit": "e429a011d88c402430329449500f352751d1a137" - }, - "_source": "git://github.com/angular/bower-angular-mocks.git", - "_target": "~1.2.14", - "_originalSource": "angular-mocks" -} \ No newline at end of file diff --git a/vendor/assets/components/angular-mocks/README.md b/vendor/assets/components/angular-mocks/README.md deleted file mode 100644 index 3448d28493..0000000000 --- a/vendor/assets/components/angular-mocks/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# bower-angular-mocks - -This repo is for distribution on `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 - -Install with `bower`: - -```shell -bower install angular-mocks -``` - -## Documentation - -Documentation is available on the -[AngularJS docs site](http://docs.angularjs.org/guide/dev_guide.unit-testing). - -## License - -The MIT License - -Copyright (c) 2010-2012 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/vendor/assets/components/angular-mocks/angular-mocks.js b/vendor/assets/components/angular-mocks/angular-mocks.js deleted file mode 100644 index da804b4aa1..0000000000 --- a/vendor/assets/components/angular-mocks/angular-mocks.js +++ /dev/null @@ -1,2163 +0,0 @@ -/** - * @license AngularJS v1.2.16 - * (c) 2010-2014 Google, Inc. http://angularjs.org - * License: MIT - */ -(function(window, angular, undefined) { - -'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.$$lastUrl = self.$$url; - listener(self.$$url); - } - } - ); - - return listener; - }; - - self.cookieHash = {}; - self.lastCookieHash = {}; - 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 (fnIndex !== undefined) { - 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) { - if (angular.isDefined(delay)) { - self.defer.now += delay; - } else { - if (self.deferredFns.length) { - self.defer.now = self.deferredFns[self.deferredFns.length-1].time; - } else { - throw new Error('No deferred tasks to be flushed'); - } - } - - while (self.deferredFns.length && self.deferredFns[0].time <= self.defer.now) { - self.deferredFns.shift().fn(); - } - }; - - 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(); - }); - }, - - addPollFn: function(pollFn) { - this.pollFns.push(pollFn); - return pollFn; - }, - - url: function(url, replace) { - if (url) { - this.$$url = url; - return this; - } - - return this.$$url; - }, - - cookies: function(name, value) { - if (name) { - if (angular.isUndefined(value)) { - delete this.cookieHash[name]; - } else { - if (angular.isString(value) && //strings only - value.length <= 4096) { //strict cookie storage limits - this.cookieHash[name] = value; - } - } - } else { - if (!angular.equals(this.cookieHash, this.lastCookieHash)) { - this.lastCookieHash = angular.copy(this.cookieHash); - this.cookieHash = angular.copy(this.cookieHash); - } - return this.cookieHash; - } - }, - - notifyWhenNoOutstandingRequests: function(fn) { - fn(); - } -}; - - -/** - * @ngdoc provider - * @name $exceptionHandlerProvider - * - * @description - * Configures the mock implementation of {@link ng.$exceptionHandler} to rethrow or to log errors - * passed into the `$exceptionHandler`. - */ - -/** - * @ngdoc service - * @name $exceptionHandler - * - * @description - * Mock implementation of {@link ng.$exceptionHandler} that rethrows or logs errors passed - * into 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`. - * - * - `rethrow`: If any errors are passed into 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. - * - `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()} - */ - this.mode = function(mode) { - switch(mode) { - case 'rethrow': - handler = function(e) { - throw e; - }; - break; - case 'log': - var errors = []; - - handler = function(e) { - if (arguments.length == 1) { - errors.push(e); - } else { - errors.push([].slice.call(arguments, 0)); - } - }; - - 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 ngMock.$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 ngMock.$log#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 ngMock.$log#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 ngMock.$log#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 ngMock.$log#debug}. - * - * @example - * ```js - * $log.debug('Some Error'); - * var first = $log.debug.logs.unshift(); - * ``` - */ - $log.debug.logs = []; - }; - - /** - * @ngdoc method - * @name $log#assertEmpty - * - * @description - * Assert that the all of the logging methods have no logged messages. If messages 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. - * @returns {promise} A promise which will be notified on each iteration. - */ -angular.mock.$IntervalProvider = function() { - this.$get = ['$rootScope', '$q', - function($rootScope, $q) { - var repeatFns = [], - nextRepeatId = 0, - now = 0; - - var $interval = function(fn, delay, count, invokeApply) { - var deferred = $q.defer(), - promise = deferred.promise, - iteration = 0, - skipApply = (angular.isDefined(invokeApply) && !invokeApply); - - count = (angular.isDefined(count)) ? count : 0, - promise.then(null, null, fn); - - 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 (fnIndex !== undefined) { - repeatFns.splice(fnIndex, 1); - } - } - - if (!skipApply) $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 (fnIndex !== undefined) { - 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; - }]; -}; - - -/* jshint -W101 */ -/* The R_ISO8061_STR regex is never going to fit into the 100 char limit! - * This directive should go inside the anonymous function but a bug in JSHint means that it would - * not be enacted early enough to prevent the warning. - */ -var R_ISO8061_STR = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?:\:?(\d\d)(?:\:?(\d\d)(?:\.(\d{3}))?)?)?(Z|([+-])(\d\d):?(\d\d)))?$/; - -function jsonStringToDate(string) { - var match; - if (match = string.match(R_ISO8061_STR)) { - var date = new Date(0), - tzHour = 0, - tzMin = 0; - if (match[9]) { - tzHour = int(match[9] + match[10]); - tzMin = int(match[9] + match[11]); - } - date.setUTCFullYear(int(match[1]), int(match[2]) - 1, int(match[3])); - date.setUTCHours(int(match[4]||0) - tzHour, - int(match[5]||0) - tzMin, - int(match[6]||0), - int(match[7]||0)); - return date; - } - return string; -} - -function int(str) { - return parseInt(str, 10); -} - -function padNumber(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)) - 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 padNumber(self.origDate.getUTCFullYear(), 4) + '-' + - padNumber(self.origDate.getUTCMonth() + 1, 2) + '-' + - padNumber(self.origDate.getUTCDate(), 2) + 'T' + - padNumber(self.origDate.getUTCHours(), 2) + ':' + - padNumber(self.origDate.getUTCMinutes(), 2) + ':' + - padNumber(self.origDate.getUTCSeconds(), 2) + '.' + - padNumber(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; -/* jshint +W101 */ - -angular.mock.animate = angular.module('ngAnimateMock', ['ng']) - - .config(['$provide', function($provide) { - - var reflowQueue = []; - $provide.value('$$animateReflow', function(fn) { - var index = reflowQueue.length; - reflowQueue.push(fn); - return function cancel() { - reflowQueue.splice(index, 1); - }; - }); - - $provide.decorator('$animate', function($delegate, $$asyncCallback) { - var animate = { - queue : [], - enabled : $delegate.enabled, - triggerCallbacks : function() { - $$asyncCallback.flush(); - }, - triggerReflow : function() { - angular.forEach(reflowQueue, function(fn) { - fn(); - }); - reflowQueue = []; - } - }; - - angular.forEach( - ['enter','leave','move','addClass','removeClass','setClass'], function(method) { - animate[method] = function() { - animate.queue.push({ - event : method, - element : arguments[0], - args : arguments - }); - $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, useful for - * debugging. - * - * This method is also available on window, where it can be used to display objects on debug - * console. - * - * @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('
'); - 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}. - * - * *Note*: For fake HTTP backend implementation suitable for end-to-end testing or backend-less - * development please see {@link ngMockE2E.$httpBackend e2e $httpBackend mock}. - * - * 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 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. - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Request expectationsBackend definitions
Syntax.expect(...).respond(...).when(...).respond(...)
Typical usagestrict unit testsloose (black-box) unit testing
Fulfills multiple requestsNOYES
Order of requests mattersYESNO
Request requiredYESNO
Response requiredoptional (see below)YES
- * - * 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 controller code - function MyController($scope, $http) { - var authToken; - - $http.get('/auth.py').success(function(data, status, headers) { - authToken = headers('A-Token'); - $scope.user = data; - }); - - $scope.saveMessage = function(message) { - var headers = { 'Authorization': authToken }; - $scope.status = 'Saving...'; - - $http.post('/add-msg.py', message, { headers: headers } ).success(function(response) { - $scope.status = ''; - }).error(function() { - $scope.status = 'ERROR!'; - }); - }; - } - ``` - * - * Now we setup the mock backend and create the test specs: - * - ```js - // testing controller - describe('MyController', function() { - var $httpBackend, $rootScope, createController; - - beforeEach(inject(function($injector) { - // Set up the mock http service responses - $httpBackend = $injector.get('$httpBackend'); - // backend definition common for all tests - $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 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 send, 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(); - }); - }); - ``` - */ -angular.mock.$HttpBackendProvider = function() { - this.$get = ['$rootScope', 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, $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]; - }; - } - - // TODO(vojta): change params to: method, url, data, headers, callback - function $httpBackend(method, url, data, callback, headers, timeout, withCredentials) { - var xhr = new MockXhr(), - expectation = expectations[0], - wasExpected = false; - - function prettyPrint(data) { - return (angular.isString(data) || angular.isFunction(data) || data instanceof RegExp) - ? data - : angular.toJson(data); - } - - function wrapResponse(wrapped) { - if (!$browser && timeout && timeout.then) timeout.then(handleTimeout); - - return handleResponse; - - function handleResponse() { - var response = wrapped.response(method, url, data, headers); - 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); - } 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} url HTTP url. - * @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. - * @returns {requestHandler} Returns an object with `respond` method that controls how a matched - * request is handled. - * - * - respond – - * `{function([status,] data[, headers, statusText]) - * | function(function(method, url, data, headers)}` - * – 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 (string), response - * headers (Object), and the text for the status (string). - */ - $httpBackend.when = function(method, url, data, headers) { - var definition = new MockHttpExpectation(method, url, data, headers), - chain = { - respond: function(status, data, headers, statusText) { - definition.response = createResponse(status, data, headers, statusText); - } - }; - - if ($browser) { - chain.passThrough = function() { - definition.passThrough = true; - }; - } - - 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} url HTTP url. - * @param {(Object|function(Object))=} headers HTTP headers. - * @returns {requestHandler} Returns an object with `respond` method that control 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} url HTTP url. - * @param {(Object|function(Object))=} headers HTTP headers. - * @returns {requestHandler} Returns an object with `respond` method that control 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} url HTTP url. - * @param {(Object|function(Object))=} headers HTTP headers. - * @returns {requestHandler} Returns an object with `respond` method that control 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} url HTTP url. - * @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. - * @returns {requestHandler} Returns an object with `respond` method that control 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} url HTTP url. - * @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. - * @returns {requestHandler} Returns an object with `respond` method that control 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} url HTTP url. - * @returns {requestHandler} Returns an object with `respond` method that control how a matched - * request is handled. - */ - createShortMethods('when'); - - - /** - * @ngdoc method - * @name $httpBackend#expect - * @description - * Creates a new request expectation. - * - * @param {string} method HTTP method. - * @param {string|RegExp} url HTTP url. - * @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. - * @returns {requestHandler} Returns an object with `respond` method that control how a matched - * request is handled. - * - * - respond – - * `{function([status,] data[, headers, statusText]) - * | function(function(method, url, data, headers)}` - * – 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 (string), response - * headers (Object), and the text for the status (string). - */ - $httpBackend.expect = function(method, url, data, headers) { - var expectation = new MockHttpExpectation(method, url, data, headers); - expectations.push(expectation); - return { - respond: function (status, data, headers, statusText) { - expectation.response = createResponse(status, data, headers, statusText); - } - }; - }; - - - /** - * @ngdoc method - * @name $httpBackend#expectGET - * @description - * Creates a new request expectation for GET requests. For more info see `expect()`. - * - * @param {string|RegExp} url HTTP url. - * @param {Object=} headers HTTP headers. - * @returns {requestHandler} Returns an object with `respond` method that control 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} url HTTP url. - * @param {Object=} headers HTTP headers. - * @returns {requestHandler} Returns an object with `respond` method that control 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} url HTTP url. - * @param {Object=} headers HTTP headers. - * @returns {requestHandler} Returns an object with `respond` method that control 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} url HTTP url. - * @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. - * @returns {requestHandler} Returns an object with `respond` method that control 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} url HTTP url. - * @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. - * @returns {requestHandler} Returns an object with `respond` method that control 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} url HTTP url. - * @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. - * @returns {requestHandler} Returns an object with `respond` method that control 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} url HTTP url. - * @returns {requestHandler} Returns an object with `respond` method that control how a matched - * request is handled. - */ - createShortMethods('expect'); - - - /** - * @ngdoc method - * @name $httpBackend#flush - * @description - * Flushes all pending requests using the trained responses. - * - * @param {number=} count Number of responses to flush (in the order they arrived). If undefined, - * all pending requests will be flushed. If there are no pending requests when the flush method - * is called an exception is thrown (as this typically a sign of programming error). - */ - $httpBackend.flush = function(count) { - $rootScope.$digest(); - if (!responses.length) throw new Error('No pending request to flush !'); - - if (angular.isDefined(count)) { - while (count--) { - if (!responses.length) throw new Error('No more pending request to flush !'); - responses.shift()(); - } - } else { - while (responses.length) { - responses.shift()(); - } - } - $httpBackend.verifyNoOutstandingExpectation(); - }; - - - /** - * @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() { - $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'], function(method) { - $httpBackend[prefix + method] = function(url, headers) { - return $httpBackend[prefix](method, url, undefined, headers); - }; - }); - - angular.forEach(['PUT', 'POST', 'PATCH'], function(method) { - $httpBackend[prefix + method] = function(url, data, headers) { - return $httpBackend[prefix](method, url, data, headers); - }; - }); - } -} - -function MockHttpExpectation(method, url, data, headers) { - - 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); - return url == 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(data, angular.fromJson(d)); - return data == d; - }; - - this.toString = function() { - return method + ' ' + url; - }; -} - -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; -} - - -/** - * @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 = 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 = function($delegate) { - var queue = []; - var rafFn = function(fn) { - var index = queue.length; - queue.push(fn); - return function() { - queue.splice(index, 1); - }; - }; - - rafFn.supported = $delegate.supported; - - rafFn.flush = function() { - if(queue.length === 0) { - throw new Error('No rAF callbacks present'); - } - - var length = queue.length; - for(var i=0;i'); - }; -}; - -/** - * @ngdoc module - * @name ngMock - * @description - * - * # ngMock - * - * The `ngMock` module providers 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. - * - * - *
- * - */ -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 -}).config(['$provide', function($provide) { - $provide.decorator('$timeout', angular.mock.$TimeoutDecorator); - $provide.decorator('$$rAF', angular.mock.$RAFDecorator); - $provide.decorator('$$asyncCallback', angular.mock.$AsyncCallbackDecorator); -}]); - -/** - * @ngdoc module - * @name ngMockE2E - * @module ngMockE2E - * @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.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}. - * - * *Note*: For fake http backend implementation suitable for unit testing please see - * {@link ngMock.$httpBackend unit-testing $httpBackend mock}. - * - * 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 automatically 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 - * myAppDev = angular.module('myAppDev', ['myApp', 'ngMockE2E']); - * myAppDev.run(function($httpBackend) { - * 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) { - * phones.push(angular.fromJson(data)); - * }); - * $httpBackend.whenGET(/^\/templates\//).passThrough(); - * //... - * }); - * ``` - * - * Afterwards, bootstrap your app with this new module. - */ - -/** - * @ngdoc method - * @name $httpBackend#when - * @module ngMockE2E - * @description - * Creates a new backend definition. - * - * @param {string} method HTTP method. - * @param {string|RegExp} url HTTP url. - * @param {(string|RegExp)=} data HTTP request body. - * @param {(Object|function(Object))=} headers HTTP headers or function that receives http header - * object and returns true if the headers match the current definition. - * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that - * control how a matched request is handled. - * - * - respond – - * `{function([status,] data[, headers, statusText]) - * | function(function(method, url, data, headers)}` - * – 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 (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.) - */ - -/** - * @ngdoc method - * @name $httpBackend#whenGET - * @module ngMockE2E - * @description - * Creates a new backend definition for GET requests. For more info see `when()`. - * - * @param {string|RegExp} url HTTP url. - * @param {(Object|function(Object))=} headers HTTP headers. - * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that - * control 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} url HTTP url. - * @param {(Object|function(Object))=} headers HTTP headers. - * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that - * control 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} url HTTP url. - * @param {(Object|function(Object))=} headers HTTP headers. - * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that - * control 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} url HTTP url. - * @param {(string|RegExp)=} data HTTP request body. - * @param {(Object|function(Object))=} headers HTTP headers. - * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that - * control 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} url HTTP url. - * @param {(string|RegExp)=} data HTTP request body. - * @param {(Object|function(Object))=} headers HTTP headers. - * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that - * control 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} url HTTP url. - * @param {(string|RegExp)=} data HTTP request body. - * @param {(Object|function(Object))=} headers HTTP headers. - * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that - * control 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} url HTTP url. - * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that - * control how a matched request is handled. - */ -angular.mock.e2e = {}; -angular.mock.e2e.$httpBackendDecorator = - ['$rootScope', '$delegate', '$browser', createHttpBackendMock]; - - -angular.mock.clearDataCache = function() { - var key, - cache = angular.element.cache; - - for(key in cache) { - if (Object.prototype.hasOwnProperty.call(cache,key)) { - var handle = cache[key].handle; - - handle && angular.element(handle.elem).off(); - delete cache[key]; - } - } -}; - - -if(window.jasmine || window.mocha) { - - var currentSpec = null, - isSpecRunning = function() { - return !!currentSpec; - }; - - - beforeEach(function() { - currentSpec = this; - }); - - afterEach(function() { - var injector = currentSpec.$injector; - - currentSpec.$injector = null; - currentSpec.$modules = null; - currentSpec = null; - - if (injector) { - injector.get('$rootElement').off(); - injector.get('$browser').pollFns.length = 0; - } - - angular.mock.clearDataCache(); - - // 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; - }); - - /** - * @ngdoc function - * @name angular.mock.module - * @description - * - * *NOTE*: This function is also published on window for easy access.
- * - * 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 they will be register as values in the module, the key being - * the module name and the value being what is returned. - */ - window.module = angular.mock.module = function() { - var moduleFns = Array.prototype.slice.call(arguments, 0); - return isSpecRunning() ? workFn() : workFn; - ///////////////////// - function workFn() { - if (currentSpec.$injector) { - throw new Error('Injector already created, can not register a module!'); - } else { - var modules = currentSpec.$modules || (currentSpec.$modules = []); - angular.forEach(moduleFns, function(module) { - if (angular.isObject(module) && !angular.isArray(module)) { - modules.push(function($provide) { - angular.forEach(module, function(value, key) { - $provide.value(key, value); - }); - }); - } else { - modules.push(module); - } - }); - } - } - }; - - /** - * @ngdoc function - * @name angular.mock.inject - * @description - * - * *NOTE*: This function is also published on window for easy access.
- * - * 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(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.toString = Error.prototype.toString; - - window.inject = angular.mock.inject = function() { - var blockFns = Array.prototype.slice.call(arguments, 0); - var errorForStack = new Error('Declaration Location'); - return isSpecRunning() ? workFn.call(currentSpec) : workFn; - ///////////////////// - function workFn() { - var modules = currentSpec.$modules || []; - - modules.unshift('ngMock'); - modules.unshift('ng'); - var injector = currentSpec.$injector; - if (!injector) { - injector = currentSpec.$injector = angular.injector(modules); - } - for(var i = 0, ii = blockFns.length; i < ii; i++) { - try { - /* jshint -W040 *//* Jasmine explicitly provides a `this` object when calling functions */ - injector.invoke(blockFns[i] || angular.noop, this); - /* jshint +W040 */ - } catch (e) { - if (e.stack && errorForStack) { - throw new ErrorAddingDeclarationLocationStack(e, errorForStack); - } - throw e; - } finally { - errorForStack = null; - } - } - } - }; -} - - -})(window, window.angular); diff --git a/vendor/assets/components/angular-mocks/bower.json b/vendor/assets/components/angular-mocks/bower.json deleted file mode 100644 index 09d2e7cf43..0000000000 --- a/vendor/assets/components/angular-mocks/bower.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "angular-mocks", - "version": "1.2.16", - "main": "./angular-mocks.js", - "dependencies": { - "angular": "1.2.16" - } -} diff --git a/vendor/assets/components/angular-sanitize/.bower.json b/vendor/assets/components/angular-sanitize/.bower.json deleted file mode 100644 index 8dc9c1d637..0000000000 --- a/vendor/assets/components/angular-sanitize/.bower.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "angular-sanitize", - "version": "1.2.16", - "main": "./angular-sanitize.js", - "dependencies": { - "angular": "1.2.16" - }, - "homepage": "https://github.com/angular/bower-angular-sanitize", - "_release": "1.2.16", - "_resolution": { - "type": "version", - "tag": "v1.2.16", - "commit": "0534ccd6bb2b7b6e5d0fa6c27fd3277f312a4347" - }, - "_source": "git://github.com/angular/bower-angular-sanitize.git", - "_target": "~1.2.14", - "_originalSource": "angular-sanitize" -} \ No newline at end of file diff --git a/vendor/assets/components/angular-sanitize/README.md b/vendor/assets/components/angular-sanitize/README.md deleted file mode 100644 index 585a235ede..0000000000 --- a/vendor/assets/components/angular-sanitize/README.md +++ /dev/null @@ -1,54 +0,0 @@ -# bower-angular-sanitize - -This repo is for distribution on `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 - -Install with `bower`: - -```shell -bower install angular-sanitize -``` - -Add a ` -``` - -And 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-2012 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/vendor/assets/components/angular-sanitize/angular-sanitize.js b/vendor/assets/components/angular-sanitize/angular-sanitize.js deleted file mode 100644 index b670812dbf..0000000000 --- a/vendor/assets/components/angular-sanitize/angular-sanitize.js +++ /dev/null @@ -1,624 +0,0 @@ -/** - * @license AngularJS v1.2.16 - * (c) 2010-2014 Google, Inc. http://angularjs.org - * License: MIT - */ -(function(window, angular, undefined) {'use strict'; - -var $sanitizeMinErr = angular.$$minErr('$sanitize'); - -/** - * @ngdoc module - * @name ngSanitize - * @description - * - * # ngSanitize - * - * The `ngSanitize` module provides functionality to sanitize HTML. - * - * - *
- * - * See {@link ngSanitize.$sanitize `$sanitize`} for usage. - */ - -/* - * HTML Parser By Misko Hevery (misko@hevery.com) - * based on: HTML Parser By John Resig (ejohn.org) - * Original code by Erik Arvidsson, Mozilla Public License - * http://erik.eae.net/simplehtmlparser/simplehtmlparser.js - * - * // Use like so: - * htmlParser(htmlString, { - * start: function(tag, attrs, unary) {}, - * end: function(tag) {}, - * chars: function(text) {}, - * comment: function(text) {} - * }); - * - */ - - -/** - * @ngdoc service - * @name $sanitize - * @function - * - * @description - * 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, however, since our parser is more strict than a typical browser - * parser, it's possible that some obscure input, which would be recognized as valid HTML by a - * browser, won't make it through the sanitizer. - * The whitelist is configured using the functions `aHrefSanitizationWhitelist` and - * `imgSrcSanitizationWhitelist` of {@link ng.$compileProvider `$compileProvider`}. - * - * @param {string} html Html input. - * @returns {string} Sanitized html. - * - * @example - - - -
- Snippet: - - - - - - - - - - - - - - - - - - - - - - - - - -
DirectiveHowSourceRendered
ng-bind-htmlAutomatically uses $sanitize
<div ng-bind-html="snippet">
</div>
ng-bind-htmlBypass $sanitize by explicitly trusting the dangerous value -
<div ng-bind-html="deliberatelyTrustDangerousSnippet()">
-</div>
-
ng-bindAutomatically escapes
<div ng-bind="snippet">
</div>
-
-
- - it('should sanitize the html snippet by default', function() { - expect(element(by.css('#bind-html-with-sanitize div')).getInnerHtml()). - toBe('

an html\nclick here\nsnippet

'); - }); - - it('should inline raw snippet if bound to a trusted value', function() { - expect(element(by.css('#bind-html-with-trust div')).getInnerHtml()). - toBe("

an html\n" + - "click here\n" + - "snippet

"); - }); - - it('should escape snippet without any filter', function() { - expect(element(by.css('#bind-default div')).getInnerHtml()). - toBe("<p style=\"color:blue\">an html\n" + - "<em onmouseover=\"this.textContent='PWN3D!'\">click here</em>\n" + - "snippet</p>"); - }); - - it('should update', function() { - element(by.model('snippet')).clear(); - element(by.model('snippet')).sendKeys('new text'); - expect(element(by.css('#bind-html-with-sanitize div')).getInnerHtml()). - toBe('new text'); - expect(element(by.css('#bind-html-with-trust div')).getInnerHtml()).toBe( - 'new text'); - expect(element(by.css('#bind-default div')).getInnerHtml()).toBe( - "new <b onclick=\"alert(1)\">text</b>"); - }); -
-
- */ -function $SanitizeProvider() { - this.$get = ['$$sanitizeUri', function($$sanitizeUri) { - return function(html) { - var buf = []; - htmlParser(html, htmlSanitizeWriter(buf, function(uri, isImage) { - return !/^unsafe/.test($$sanitizeUri(uri, isImage)); - })); - return buf.join(''); - }; - }]; -} - -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 START_TAG_REGEXP = - /^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/, - END_TAG_REGEXP = /^<\s*\/\s*([\w:-]+)[^>]*>/, - ATTR_REGEXP = /([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g, - BEGIN_TAG_REGEXP = /^/g, - DOCTYPE_REGEXP = /]*?)>/i, - CDATA_REGEXP = //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 = makeMap("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 = makeMap("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"), - optionalEndTagInlineElements = makeMap("rp,rt"), - optionalEndTagElements = angular.extend({}, - optionalEndTagInlineElements, - optionalEndTagBlockElements); - -// Safe Block Elements - HTML5 -var blockElements = angular.extend({}, optionalEndTagBlockElements, makeMap("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,script,section,table,ul")); - -// Inline Elements - HTML5 -var inlineElements = angular.extend({}, optionalEndTagInlineElements, makeMap("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")); - - -// Special Elements (can contain anything) -var specialElements = makeMap("script,style"); - -var validElements = angular.extend({}, - voidElements, - blockElements, - inlineElements, - optionalEndTagElements); - -//Attributes that have href and hence need to be sanitized -var uriAttrs = makeMap("background,cite,href,longdesc,src,usemap"); -var validAttrs = angular.extend({}, uriAttrs, makeMap( - '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,target,title,type,'+ - 'valign,value,vspace,width')); - -function makeMap(str) { - var obj = {}, items = str.split(','), i; - for (i = 0; i < items.length; i++) obj[items[i]] = true; - return obj; -} - - -/** - * @example - * htmlParser(htmlString, { - * start: function(tag, attrs, unary) {}, - * end: function(tag) {}, - * chars: function(text) {}, - * comment: function(text) {} - * }); - * - * @param {string} html string - * @param {object} handler - */ -function htmlParser( html, handler ) { - var index, chars, match, stack = [], last = html; - stack.last = function() { return stack[ stack.length - 1 ]; }; - - while ( html ) { - chars = true; - - // Make sure we're not in a script or style element - if ( !stack.last() || !specialElements[ stack.last() ] ) { - - // Comment - if ( html.indexOf("", index) === index) { - if (handler.comment) handler.comment( html.substring( 4, index ) ); - html = html.substring( index + 3 ); - chars = false; - } - // DOCTYPE - } else if ( DOCTYPE_REGEXP.test(html) ) { - match = html.match( DOCTYPE_REGEXP ); - - if ( match ) { - html = html.replace( match[0], ''); - chars = false; - } - // end tag - } else if ( BEGING_END_TAGE_REGEXP.test(html) ) { - match = html.match( END_TAG_REGEXP ); - - if ( match ) { - html = html.substring( match[0].length ); - match[0].replace( END_TAG_REGEXP, parseEndTag ); - chars = false; - } - - // start tag - } else if ( BEGIN_TAG_REGEXP.test(html) ) { - match = html.match( START_TAG_REGEXP ); - - if ( match ) { - html = html.substring( match[0].length ); - match[0].replace( START_TAG_REGEXP, parseStartTag ); - chars = false; - } - } - - if ( chars ) { - index = html.indexOf("<"); - - var text = index < 0 ? html : html.substring( 0, index ); - html = index < 0 ? "" : html.substring( index ); - - if (handler.chars) handler.chars( decodeEntities(text) ); - } - - } else { - html = html.replace(new RegExp("(.*)<\\s*\\/\\s*" + stack.last() + "[^>]*>", 'i'), - function(all, text){ - text = text.replace(COMMENT_REGEXP, "$1").replace(CDATA_REGEXP, "$1"); - - if (handler.chars) handler.chars( decodeEntities(text) ); - - return ""; - }); - - parseEndTag( "", stack.last() ); - } - - if ( html == last ) { - throw $sanitizeMinErr('badparse', "The sanitizer was unable to parse the following block " + - "of html: {0}", html); - } - last = html; - } - - // Clean up any remaining tags - parseEndTag(); - - function parseStartTag( tag, tagName, rest, unary ) { - tagName = angular.lowercase(tagName); - if ( blockElements[ tagName ] ) { - while ( stack.last() && inlineElements[ stack.last() ] ) { - parseEndTag( "", stack.last() ); - } - } - - if ( optionalEndTagElements[ tagName ] && stack.last() == tagName ) { - parseEndTag( "", tagName ); - } - - unary = voidElements[ tagName ] || !!unary; - - if ( !unary ) - stack.push( tagName ); - - var attrs = {}; - - rest.replace(ATTR_REGEXP, - function(match, name, doubleQuotedValue, singleQuotedValue, unquotedValue) { - var value = doubleQuotedValue - || singleQuotedValue - || unquotedValue - || ''; - - attrs[name] = decodeEntities(value); - }); - if (handler.start) handler.start( tagName, attrs, unary ); - } - - function parseEndTag( tag, tagName ) { - var pos = 0, i; - tagName = angular.lowercase(tagName); - if ( tagName ) - // Find the closest opened tag of the same type - for ( pos = stack.length - 1; pos >= 0; pos-- ) - if ( stack[ pos ] == tagName ) - break; - - if ( pos >= 0 ) { - // Close all the open elements, up the stack - for ( i = stack.length - 1; i >= pos; i-- ) - if (handler.end) handler.end( stack[ i ] ); - - // Remove the open elements from the stack - stack.length = pos; - } - } -} - -var hiddenPre=document.createElement("pre"); -var spaceRe = /^(\s*)([\s\S]*?)(\s*)$/; -/** - * decodes all entities into regular string - * @param value - * @returns {string} A string with decoded entities. - */ -function decodeEntities(value) { - if (!value) { return ''; } - - // Note: IE8 does not preserve spaces at the start/end of innerHTML - // so we must capture them and reattach them afterward - var parts = spaceRe.exec(value); - var spaceBefore = parts[1]; - var spaceAfter = parts[3]; - var content = parts[2]; - if (content) { - hiddenPre.innerHTML=content.replace(//g, '>'); -} - -/** - * create an HTML/XML writer which writes to buffer - * @param {Array} buf use buf.jain('') to get out sanitized html string - * @returns {object} in the form of { - * start: function(tag, attrs, unary) {}, - * end: function(tag) {}, - * chars: function(text) {}, - * comment: function(text) {} - * } - */ -function htmlSanitizeWriter(buf, uriValidator){ - var ignore = false; - var out = angular.bind(buf, buf.push); - return { - start: function(tag, attrs, unary){ - tag = angular.lowercase(tag); - if (!ignore && specialElements[tag]) { - ignore = tag; - } - if (!ignore && 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(unary ? '/>' : '>'); - } - }, - end: function(tag){ - tag = angular.lowercase(tag); - if (!ignore && validElements[tag] === true) { - out(''); - } - if (tag == ignore) { - ignore = false; - } - }, - chars: function(chars){ - if (!ignore) { - out(encodeEntities(chars)); - } - } - }; -} - - -// define ngSanitize module and register $sanitize service -angular.module('ngSanitize', []).provider('$sanitize', $SanitizeProvider); - -/* global sanitizeText: false */ - -/** - * @ngdoc filter - * @name linky - * @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. - * @returns {string} Html-linkified text. - * - * @usage - - * - * @example - - - -
- Snippet: - - - - - - - - - - - - - - - - - - - - - -
FilterSourceRendered
linky filter -
<div ng-bind-html="snippet | linky">
</div>
-
-
-
linky target -
<div ng-bind-html="snippetWithTarget | linky:'_blank'">
</div>
-
-
-
no filter
<div ng-bind="snippet">
</div>
- - - 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("snippetWithTarget | linky:'_blank'")).getText()). - toBe('http://angularjs.org/'); - expect(element(by.css('#linky-target a')).getAttribute('target')).toEqual('_blank'); - }); - - - */ -angular.module('ngSanitize').filter('linky', ['$sanitize', function($sanitize) { - var LINKY_URL_REGEXP = - /((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>]/, - MAILTO_REGEXP = /^mailto:/; - - return function(text, target) { - if (!text) return 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/mailto then assume mailto - if (match[2] == match[3]) url = '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) { - html.push(''); - addText(text); - html.push(''); - } - }; -}]); - - -})(window, window.angular); diff --git a/vendor/assets/components/angular-sanitize/angular-sanitize.min.js b/vendor/assets/components/angular-sanitize/angular-sanitize.min.js deleted file mode 100644 index 08964713b3..0000000000 --- a/vendor/assets/components/angular-sanitize/angular-sanitize.min.js +++ /dev/null @@ -1,14 +0,0 @@ -/* - AngularJS v1.2.16 - (c) 2010-2014 Google, Inc. http://angularjs.org - License: MIT -*/ -(function(p,h,q){'use strict';function E(a){var e=[];s(e,h.noop).chars(a);return e.join("")}function k(a){var e={};a=a.split(",");var d;for(d=0;d=c;d--)e.end&&e.end(f[d]);f.length=c}}var b,g,f=[],l=a;for(f.last=function(){return f[f.length-1]};a;){g=!0;if(f.last()&&x[f.last()])a=a.replace(RegExp("(.*)<\\s*\\/\\s*"+f.last()+"[^>]*>","i"),function(b,a){a=a.replace(H,"$1").replace(I,"$1");e.chars&&e.chars(r(a));return""}),c("",f.last());else{if(0===a.indexOf("\x3c!--"))b=a.indexOf("--",4),0<=b&&a.lastIndexOf("--\x3e",b)===b&&(e.comment&&e.comment(a.substring(4,b)),a=a.substring(b+3),g=!1);else if(y.test(a)){if(b=a.match(y))a= -a.replace(b[0],""),g=!1}else if(J.test(a)){if(b=a.match(z))a=a.substring(b[0].length),b[0].replace(z,c),g=!1}else K.test(a)&&(b=a.match(A))&&(a=a.substring(b[0].length),b[0].replace(A,d),g=!1);g&&(b=a.indexOf("<"),g=0>b?a:a.substring(0,b),a=0>b?"":a.substring(b),e.chars&&e.chars(r(g)))}if(a==l)throw L("badparse",a);l=a}c()}function r(a){if(!a)return"";var e=M.exec(a);a=e[1];var d=e[3];if(e=e[2])n.innerHTML=e.replace(//g,">")}function s(a,e){var d=!1,c=h.bind(a,a.push);return{start:function(a,g,f){a=h.lowercase(a);!d&&x[a]&&(d=a);d||!0!==C[a]||(c("<"),c(a),h.forEach(g,function(d,f){var g=h.lowercase(f),k="img"===a&&"src"===g||"background"===g;!0!==O[g]||!0===D[g]&&!e(d,k)||(c(" "),c(f),c('="'),c(B(d)),c('"'))}),c(f?"/>":">"))},end:function(a){a=h.lowercase(a);d||!0!==C[a]||(c(""));a==d&&(d=!1)},chars:function(a){d|| -c(B(a))}}}var L=h.$$minErr("$sanitize"),A=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,z=/^<\s*\/\s*([\w:-]+)[^>]*>/,G=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,K=/^]*?)>/i,I=/]/,d=/^mailto:/;return function(c,b){function g(a){a&&m.push(E(a))}function f(a,c){m.push("');g(c);m.push("")}if(!c)return c;for(var l,k=c,m=[],n,p;l=k.match(e);)n=l[0],l[2]==l[3]&&(n="mailto:"+n),p=l.index,g(k.substr(0,p)),f(n,l[0].replace(d,"")),k=k.substring(p+l[0].length);g(k);return a(m.join(""))}}])})(window,window.angular); -//# sourceMappingURL=angular-sanitize.min.js.map diff --git a/vendor/assets/components/angular-sanitize/angular-sanitize.min.js.map b/vendor/assets/components/angular-sanitize/angular-sanitize.min.js.map deleted file mode 100644 index dbf6b259b1..0000000000 --- a/vendor/assets/components/angular-sanitize/angular-sanitize.min.js.map +++ /dev/null @@ -1,8 +0,0 @@ -{ -"version":3, -"file":"angular-sanitize.min.js", -"lineCount":13, -"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAA6B,CAiJtCC,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,CAmE7BC,QAASA,EAAO,CAACC,CAAD,CAAM,CAAA,IAChBC,EAAM,EAAIC,EAAAA,CAAQF,CAAAG,MAAA,CAAU,GAAV,CAAtB,KAAsCC,CACtC,KAAKA,CAAL,CAAS,CAAT,CAAYA,CAAZ,CAAgBF,CAAAG,OAAhB,CAA8BD,CAAA,EAA9B,CAAmCH,CAAA,CAAIC,CAAA,CAAME,CAAN,CAAJ,CAAA,CAAgB,CAAA,CACnD,OAAOH,EAHa,CAmBtBK,QAASA,EAAU,CAAEC,CAAF,CAAQC,CAAR,CAAkB,CAiFnCC,QAASA,EAAa,CAAEC,CAAF,CAAOC,CAAP,CAAgBC,CAAhB,CAAsBC,CAAtB,CAA8B,CAClDF,CAAA,CAAUrB,CAAAwB,UAAA,CAAkBH,CAAlB,CACV,IAAKI,CAAA,CAAeJ,CAAf,CAAL,CACE,IAAA,CAAQK,CAAAC,KAAA,EAAR,EAAwBC,CAAA,CAAgBF,CAAAC,KAAA,EAAhB,CAAxB,CAAA,CACEE,CAAA,CAAa,EAAb,CAAiBH,CAAAC,KAAA,EAAjB,CAICG,EAAA,CAAwBT,CAAxB,CAAL,EAA0CK,CAAAC,KAAA,EAA1C,EAA0DN,CAA1D,EACEQ,CAAA,CAAa,EAAb,CAAiBR,CAAjB,CAKF,EAFAE,CAEA,CAFQQ,CAAA,CAAcV,CAAd,CAER,EAFmC,CAAC,CAACE,CAErC,GACEG,CAAAM,KAAA,CAAYX,CAAZ,CAEF,KAAIY,EAAQ,EAEZX,EAAAY,QAAA,CAAaC,CAAb,CACE,QAAQ,CAACC,CAAD,CAAQC,CAAR,CAAcC,CAAd,CAAiCC,CAAjC,CAAoDC,CAApD,CAAmE,CAMzEP,CAAA,CAAMI,CAAN,CAAA,CAAcI,CAAA,CALFH,CAKE,EAJTC,CAIS,EAHTC,CAGS,EAFT,EAES,CAN2D,CAD7E,CASItB,EAAAwB,MAAJ,EAAmBxB,CAAAwB,MAAA,CAAerB,CAAf,CAAwBY,CAAxB,CAA+BV,CAA/B,CA5B+B,CA+BpDM,QAASA,EAAW,CAAET,CAAF,CAAOC,CAAP,CAAiB,CAAA,IAC/BsB,EAAM,CADyB,CACtB7B,CAEb,IADAO,CACA,CADUrB,CAAAwB,UAAA,CAAkBH,CAAlB,CACV,CAEE,IAAMsB,CAAN,CAAYjB,CAAAX,OAAZ,CAA2B,CAA3B,CAAqC,CAArC,EAA8B4B,CAA9B,EACOjB,CAAA,CAAOiB,CAAP,CADP,EACuBtB,CADvB,CAAwCsB,CAAA,EAAxC;AAIF,GAAY,CAAZ,EAAKA,CAAL,CAAgB,CAEd,IAAM7B,CAAN,CAAUY,CAAAX,OAAV,CAAyB,CAAzB,CAA4BD,CAA5B,EAAiC6B,CAAjC,CAAsC7B,CAAA,EAAtC,CACMI,CAAA0B,IAAJ,EAAiB1B,CAAA0B,IAAA,CAAalB,CAAA,CAAOZ,CAAP,CAAb,CAGnBY,EAAAX,OAAA,CAAe4B,CAND,CATmB,CAhHF,IAC/BE,CAD+B,CACxB1C,CADwB,CACVuB,EAAQ,EADE,CACEC,EAAOV,CAG5C,KAFAS,CAAAC,KAEA,CAFamB,QAAQ,EAAG,CAAE,MAAOpB,EAAA,CAAOA,CAAAX,OAAP,CAAsB,CAAtB,CAAT,CAExB,CAAQE,CAAR,CAAA,CAAe,CACbd,CAAA,CAAQ,CAAA,CAGR,IAAMuB,CAAAC,KAAA,EAAN,EAAuBoB,CAAA,CAAiBrB,CAAAC,KAAA,EAAjB,CAAvB,CAmDEV,CASA,CATOA,CAAAiB,QAAA,CAAiBc,MAAJ,CAAW,kBAAX,CAAgCtB,CAAAC,KAAA,EAAhC,CAA+C,QAA/C,CAAyD,GAAzD,CAAb,CACL,QAAQ,CAACsB,CAAD,CAAMC,CAAN,CAAW,CACjBA,CAAA,CAAOA,CAAAhB,QAAA,CAAaiB,CAAb,CAA6B,IAA7B,CAAAjB,QAAA,CAA2CkB,CAA3C,CAAyD,IAAzD,CAEHlC,EAAAf,MAAJ,EAAmBe,CAAAf,MAAA,CAAesC,CAAA,CAAeS,CAAf,CAAf,CAEnB,OAAO,EALU,CADd,CASP,CAAArB,CAAA,CAAa,EAAb,CAAiBH,CAAAC,KAAA,EAAjB,CA5DF,KAAyD,CAGvD,GAA8B,CAA9B,GAAKV,CAAAoC,QAAA,CAAa,SAAb,CAAL,CAEER,CAEA,CAFQ5B,CAAAoC,QAAA,CAAa,IAAb,CAAmB,CAAnB,CAER,CAAc,CAAd,EAAKR,CAAL,EAAmB5B,CAAAqC,YAAA,CAAiB,QAAjB,CAAwBT,CAAxB,CAAnB,GAAsDA,CAAtD,GACM3B,CAAAqC,QAEJ,EAFqBrC,CAAAqC,QAAA,CAAiBtC,CAAAuC,UAAA,CAAgB,CAAhB,CAAmBX,CAAnB,CAAjB,CAErB,CADA5B,CACA,CADOA,CAAAuC,UAAA,CAAgBX,CAAhB,CAAwB,CAAxB,CACP,CAAA1C,CAAA,CAAQ,CAAA,CAHV,CAJF,KAUO,IAAKsD,CAAAC,KAAA,CAAoBzC,CAApB,CAAL,CAGL,IAFAmB,CAEA,CAFQnB,CAAAmB,MAAA,CAAYqB,CAAZ,CAER,CACExC,CACA;AADOA,CAAAiB,QAAA,CAAcE,CAAA,CAAM,CAAN,CAAd,CAAwB,EAAxB,CACP,CAAAjC,CAAA,CAAQ,CAAA,CAFV,CAHK,IAQA,IAAKwD,CAAAD,KAAA,CAA4BzC,CAA5B,CAAL,CAGL,IAFAmB,CAEA,CAFQnB,CAAAmB,MAAA,CAAYwB,CAAZ,CAER,CACE3C,CAEA,CAFOA,CAAAuC,UAAA,CAAgBpB,CAAA,CAAM,CAAN,CAAArB,OAAhB,CAEP,CADAqB,CAAA,CAAM,CAAN,CAAAF,QAAA,CAAkB0B,CAAlB,CAAkC/B,CAAlC,CACA,CAAA1B,CAAA,CAAQ,CAAA,CAHV,CAHK,IAUK0D,EAAAH,KAAA,CAAsBzC,CAAtB,CAAL,GACLmB,CADK,CACGnB,CAAAmB,MAAA,CAAY0B,CAAZ,CADH,IAIH7C,CAEA,CAFOA,CAAAuC,UAAA,CAAgBpB,CAAA,CAAM,CAAN,CAAArB,OAAhB,CAEP,CADAqB,CAAA,CAAM,CAAN,CAAAF,QAAA,CAAkB4B,CAAlB,CAAoC3C,CAApC,CACA,CAAAhB,CAAA,CAAQ,CAAA,CANL,CAUFA,EAAL,GACE0C,CAKA,CALQ5B,CAAAoC,QAAA,CAAa,GAAb,CAKR,CAHIH,CAGJ,CAHmB,CAAR,CAAAL,CAAA,CAAY5B,CAAZ,CAAmBA,CAAAuC,UAAA,CAAgB,CAAhB,CAAmBX,CAAnB,CAG9B,CAFA5B,CAEA,CAFe,CAAR,CAAA4B,CAAA,CAAY,EAAZ,CAAiB5B,CAAAuC,UAAA,CAAgBX,CAAhB,CAExB,CAAI3B,CAAAf,MAAJ,EAAmBe,CAAAf,MAAA,CAAesC,CAAA,CAAeS,CAAf,CAAf,CANrB,CAzCuD,CA+DzD,GAAKjC,CAAL,EAAaU,CAAb,CACE,KAAMoC,EAAA,CAAgB,UAAhB,CAC4C9C,CAD5C,CAAN,CAGFU,CAAA,CAAOV,CAvEM,CA2EfY,CAAA,EA/EmC,CA2IrCY,QAASA,EAAc,CAACuB,CAAD,CAAQ,CAC7B,GAAI,CAACA,CAAL,CAAc,MAAO,EAIrB,KAAIC,EAAQC,CAAAC,KAAA,CAAaH,CAAb,CACRI,EAAAA,CAAcH,CAAA,CAAM,CAAN,CAClB,KAAII,EAAaJ,CAAA,CAAM,CAAN,CAEjB,IADIK,CACJ,CADcL,CAAA,CAAM,CAAN,CACd,CACEM,CAAAC,UAKA,CALoBF,CAAApC,QAAA,CAAgB,IAAhB,CAAqB,MAArB,CAKpB,CAAAoC,CAAA,CAAU,aAAA,EAAiBC,EAAjB,CACRA,CAAAE,YADQ,CACgBF,CAAAG,UAE5B,OAAON,EAAP,CAAqBE,CAArB,CAA+BD,CAlBF,CA4B/BM,QAASA,EAAc,CAACX,CAAD,CAAQ,CAC7B,MAAOA,EAAA9B,QAAA,CACG,IADH;AACS,OADT,CAAAA,QAAA,CAEG0C,CAFH,CAE4B,QAAQ,CAACZ,CAAD,CAAO,CAC9C,MAAO,IAAP,CAAcA,CAAAa,WAAA,CAAiB,CAAjB,CAAd,CAAoC,GADU,CAF3C,CAAA3C,QAAA,CAKG,IALH,CAKS,MALT,CAAAA,QAAA,CAMG,IANH,CAMS,MANT,CADsB,CAoB/B7B,QAASA,EAAkB,CAACD,CAAD,CAAM0E,CAAN,CAAmB,CAC5C,IAAIC,EAAS,CAAA,CAAb,CACIC,EAAMhF,CAAAiF,KAAA,CAAa7E,CAAb,CAAkBA,CAAA4B,KAAlB,CACV,OAAO,OACEU,QAAQ,CAACtB,CAAD,CAAMa,CAAN,CAAaV,CAAb,CAAmB,CAChCH,CAAA,CAAMpB,CAAAwB,UAAA,CAAkBJ,CAAlB,CACD2D,EAAAA,CAAL,EAAehC,CAAA,CAAgB3B,CAAhB,CAAf,GACE2D,CADF,CACW3D,CADX,CAGK2D,EAAL,EAAsC,CAAA,CAAtC,GAAeG,CAAA,CAAc9D,CAAd,CAAf,GACE4D,CAAA,CAAI,GAAJ,CAcA,CAbAA,CAAA,CAAI5D,CAAJ,CAaA,CAZApB,CAAAmF,QAAA,CAAgBlD,CAAhB,CAAuB,QAAQ,CAAC+B,CAAD,CAAQoB,CAAR,CAAY,CACzC,IAAIC,EAAKrF,CAAAwB,UAAA,CAAkB4D,CAAlB,CAAT,CACIE,EAAmB,KAAnBA,GAAWlE,CAAXkE,EAAqC,KAArCA,GAA4BD,CAA5BC,EAAyD,YAAzDA,GAAgDD,CAC3B,EAAA,CAAzB,GAAIE,CAAA,CAAWF,CAAX,CAAJ,EACsB,CAAA,CADtB,GACGG,CAAA,CAASH,CAAT,CADH,EAC8B,CAAAP,CAAA,CAAad,CAAb,CAAoBsB,CAApB,CAD9B,GAEEN,CAAA,CAAI,GAAJ,CAIA,CAHAA,CAAA,CAAII,CAAJ,CAGA,CAFAJ,CAAA,CAAI,IAAJ,CAEA,CADAA,CAAA,CAAIL,CAAA,CAAeX,CAAf,CAAJ,CACA,CAAAgB,CAAA,CAAI,GAAJ,CANF,CAHyC,CAA3C,CAYA,CAAAA,CAAA,CAAIzD,CAAA,CAAQ,IAAR,CAAe,GAAnB,CAfF,CALgC,CAD7B,KAwBAqB,QAAQ,CAACxB,CAAD,CAAK,CACdA,CAAA,CAAMpB,CAAAwB,UAAA,CAAkBJ,CAAlB,CACD2D,EAAL,EAAsC,CAAA,CAAtC,GAAeG,CAAA,CAAc9D,CAAd,CAAf,GACE4D,CAAA,CAAI,IAAJ,CAEA,CADAA,CAAA,CAAI5D,CAAJ,CACA,CAAA4D,CAAA,CAAI,GAAJ,CAHF,CAKI5D,EAAJ,EAAW2D,CAAX,GACEA,CADF,CACW,CAAA,CADX,CAPc,CAxBb,OAmCE5E,QAAQ,CAACA,CAAD,CAAO,CACb4E,CAAL;AACEC,CAAA,CAAIL,CAAA,CAAexE,CAAf,CAAJ,CAFgB,CAnCjB,CAHqC,CAha9C,IAAI4D,EAAkB/D,CAAAyF,SAAA,CAAiB,WAAjB,CAAtB,CAwJI3B,EACG,4FAzJP,CA0JEF,EAAiB,2BA1JnB,CA2JEzB,EAAc,yEA3JhB,CA4JE0B,EAAmB,IA5JrB,CA6JEF,EAAyB,SA7J3B,CA8JER,EAAiB,qBA9JnB,CA+JEM,EAAiB,qBA/JnB,CAgKEL,EAAe,yBAhKjB,CAkKEwB,EAA0B,gBAlK5B,CA2KI7C,EAAetB,CAAA,CAAQ,wBAAR,CAIfiF,EAAAA,CAA8BjF,CAAA,CAAQ,gDAAR,CAC9BkF,EAAAA,CAA+BlF,CAAA,CAAQ,OAAR,CADnC,KAEIqB,EAAyB9B,CAAA4F,OAAA,CAAe,EAAf,CACeD,CADf,CAEeD,CAFf,CAF7B,CAOIjE,EAAgBzB,CAAA4F,OAAA,CAAe,EAAf,CAAmBF,CAAnB,CAAgDjF,CAAA,CAAQ,4KAAR,CAAhD,CAPpB;AAYImB,EAAiB5B,CAAA4F,OAAA,CAAe,EAAf,CAAmBD,CAAnB,CAAiDlF,CAAA,CAAQ,2JAAR,CAAjD,CAZrB,CAkBIsC,EAAkBtC,CAAA,CAAQ,cAAR,CAlBtB,CAoBIyE,EAAgBlF,CAAA4F,OAAA,CAAe,EAAf,CACe7D,CADf,CAEeN,CAFf,CAGeG,CAHf,CAIeE,CAJf,CApBpB,CA2BI0D,EAAW/E,CAAA,CAAQ,0CAAR,CA3Bf,CA4BI8E,EAAavF,CAAA4F,OAAA,CAAe,EAAf,CAAmBJ,CAAnB,CAA6B/E,CAAA,CAC1C,ySAD0C,CAA7B,CA5BjB;AA0LI8D,EAAUsB,QAAAC,cAAA,CAAuB,KAAvB,CA1Ld,CA2LI5B,EAAU,wBAsGdlE,EAAA+F,OAAA,CAAe,YAAf,CAA6B,EAA7B,CAAAC,SAAA,CAA0C,WAA1C,CA7UAC,QAA0B,EAAG,CAC3B,IAAAC,KAAA,CAAY,CAAC,eAAD,CAAkB,QAAQ,CAACC,CAAD,CAAgB,CACpD,MAAO,SAAQ,CAAClF,CAAD,CAAO,CACpB,IAAIb,EAAM,EACVY,EAAA,CAAWC,CAAX,CAAiBZ,CAAA,CAAmBD,CAAnB,CAAwB,QAAQ,CAACgG,CAAD,CAAMd,CAAN,CAAe,CAC9D,MAAO,CAAC,SAAA5B,KAAA,CAAeyC,CAAA,CAAcC,CAAd,CAAmBd,CAAnB,CAAf,CADsD,CAA/C,CAAjB,CAGA,OAAOlF,EAAAI,KAAA,CAAS,EAAT,CALa,CAD8B,CAA1C,CADe,CA6U7B,CAuGAR,EAAA+F,OAAA,CAAe,YAAf,CAAAM,OAAA,CAAoC,OAApC,CAA6C,CAAC,WAAD,CAAc,QAAQ,CAACC,CAAD,CAAY,CAAA,IACzEC,EACE,mEAFuE,CAGzEC,EAAgB,UAEpB,OAAO,SAAQ,CAACtD,CAAD,CAAOuD,CAAP,CAAe,CAoB5BC,QAASA,EAAO,CAACxD,CAAD,CAAO,CAChBA,CAAL,EAGAjC,CAAAe,KAAA,CAAU9B,CAAA,CAAagD,CAAb,CAAV,CAJqB,CAOvByD,QAASA,EAAO,CAACC,CAAD,CAAM1D,CAAN,CAAY,CAC1BjC,CAAAe,KAAA,CAAU,KAAV,CACIhC,EAAA6G,UAAA,CAAkBJ,CAAlB,CAAJ;CACExF,CAAAe,KAAA,CAAU,UAAV,CAEA,CADAf,CAAAe,KAAA,CAAUyE,CAAV,CACA,CAAAxF,CAAAe,KAAA,CAAU,IAAV,CAHF,CAKAf,EAAAe,KAAA,CAAU,QAAV,CACAf,EAAAe,KAAA,CAAU4E,CAAV,CACA3F,EAAAe,KAAA,CAAU,IAAV,CACA0E,EAAA,CAAQxD,CAAR,CACAjC,EAAAe,KAAA,CAAU,MAAV,CAX0B,CA1B5B,GAAI,CAACkB,CAAL,CAAW,MAAOA,EAMlB,KALA,IAAId,CAAJ,CACI0E,EAAM5D,CADV,CAEIjC,EAAO,EAFX,CAGI2F,CAHJ,CAII9F,CACJ,CAAQsB,CAAR,CAAgB0E,CAAA1E,MAAA,CAAUmE,CAAV,CAAhB,CAAA,CAEEK,CAMA,CANMxE,CAAA,CAAM,CAAN,CAMN,CAJIA,CAAA,CAAM,CAAN,CAIJ,EAJgBA,CAAA,CAAM,CAAN,CAIhB,GAJ0BwE,CAI1B,CAJgC,SAIhC,CAJ4CA,CAI5C,EAHA9F,CAGA,CAHIsB,CAAAS,MAGJ,CAFA6D,CAAA,CAAQI,CAAAC,OAAA,CAAW,CAAX,CAAcjG,CAAd,CAAR,CAEA,CADA6F,CAAA,CAAQC,CAAR,CAAaxE,CAAA,CAAM,CAAN,CAAAF,QAAA,CAAiBsE,CAAjB,CAAgC,EAAhC,CAAb,CACA,CAAAM,CAAA,CAAMA,CAAAtD,UAAA,CAAc1C,CAAd,CAAkBsB,CAAA,CAAM,CAAN,CAAArB,OAAlB,CAER2F,EAAA,CAAQI,CAAR,CACA,OAAOR,EAAA,CAAUrF,CAAAT,KAAA,CAAU,EAAV,CAAV,CAlBqB,CAL+C,CAAlC,CAA7C,CAzjBsC,CAArC,CAAA,CA0mBET,MA1mBF,CA0mBUA,MAAAC,QA1mBV;", -"sources":["angular-sanitize.js"], -"names":["window","angular","undefined","sanitizeText","chars","buf","htmlSanitizeWriter","writer","noop","join","makeMap","str","obj","items","split","i","length","htmlParser","html","handler","parseStartTag","tag","tagName","rest","unary","lowercase","blockElements","stack","last","inlineElements","parseEndTag","optionalEndTagElements","voidElements","push","attrs","replace","ATTR_REGEXP","match","name","doubleQuotedValue","singleQuotedValue","unquotedValue","decodeEntities","start","pos","end","index","stack.last","specialElements","RegExp","all","text","COMMENT_REGEXP","CDATA_REGEXP","indexOf","lastIndexOf","comment","substring","DOCTYPE_REGEXP","test","BEGING_END_TAGE_REGEXP","END_TAG_REGEXP","BEGIN_TAG_REGEXP","START_TAG_REGEXP","$sanitizeMinErr","value","parts","spaceRe","exec","spaceBefore","spaceAfter","content","hiddenPre","innerHTML","textContent","innerText","encodeEntities","NON_ALPHANUMERIC_REGEXP","charCodeAt","uriValidator","ignore","out","bind","validElements","forEach","key","lkey","isImage","validAttrs","uriAttrs","$$minErr","optionalEndTagBlockElements","optionalEndTagInlineElements","extend","document","createElement","module","provider","$SanitizeProvider","$get","$$sanitizeUri","uri","filter","$sanitize","LINKY_URL_REGEXP","MAILTO_REGEXP","target","addText","addLink","url","isDefined","raw","substr"] -} diff --git a/vendor/assets/components/angular-sanitize/bower.json b/vendor/assets/components/angular-sanitize/bower.json deleted file mode 100644 index 1160f22ffd..0000000000 --- a/vendor/assets/components/angular-sanitize/bower.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "angular-sanitize", - "version": "1.2.16", - "main": "./angular-sanitize.js", - "dependencies": { - "angular": "1.2.16" - } -} diff --git a/vendor/assets/components/angular-scenario/.bower.json b/vendor/assets/components/angular-scenario/.bower.json deleted file mode 100644 index 762d1bb143..0000000000 --- a/vendor/assets/components/angular-scenario/.bower.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "angular-scenario", - "version": "1.2.16", - "main": "./angular-scenario.js", - "dependencies": { - "angular": "1.2.16" - }, - "homepage": "https://github.com/angular/bower-angular-scenario", - "_release": "1.2.16", - "_resolution": { - "type": "version", - "tag": "v1.2.16", - "commit": "387bd67cc4863655aed0f889956cdeb4acdb03ae" - }, - "_source": "git://github.com/angular/bower-angular-scenario.git", - "_target": "~1.2.14", - "_originalSource": "angular-scenario" -} \ No newline at end of file diff --git a/vendor/assets/components/angular-scenario/README.md b/vendor/assets/components/angular-scenario/README.md deleted file mode 100644 index 7f80a8c551..0000000000 --- a/vendor/assets/components/angular-scenario/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# bower-angular-scenario - -This repo is for distribution on `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 - -Install with `bower`: - -```shell -bower install angular-scenario -``` - -## Documentation - -Documentation is available on the -[AngularJS docs site](http://docs.angularjs.org/). - -## License - -The MIT License - -Copyright (c) 2010-2012 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/vendor/assets/components/angular-scenario/angular-scenario.js b/vendor/assets/components/angular-scenario/angular-scenario.js deleted file mode 100644 index 81491c59d8..0000000000 --- a/vendor/assets/components/angular-scenario/angular-scenario.js +++ /dev/null @@ -1,33464 +0,0 @@ -/*! - * jQuery JavaScript Library v1.10.2 - * http://jquery.com/ - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * - * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2013-07-03T13:48Z - */ -(function( window, undefined ) {'use strict'; - -// Can't do this because several apps including ASP.NET trace -// the stack via arguments.caller.callee and Firefox dies if -// you try to trace through "use strict" call chains. (#13335) -// Support: Firefox 18+ -// - -var - // The deferred used on DOM ready - readyList, - - // A central reference to the root jQuery(document) - rootjQuery, - - // Support: IE<10 - // For `typeof xmlNode.method` instead of `xmlNode.method !== undefined` - core_strundefined = typeof undefined, - - // Use the correct document accordingly with window argument (sandbox) - location = window.location, - document = window.document, - docElem = document.documentElement, - - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - - // Map over the $ in case of overwrite - _$ = window.$, - - // [[Class]] -> type pairs - class2type = {}, - - // List of deleted data cache ids, so we can reuse them - core_deletedIds = [], - - core_version = "1.10.2", - - // Save a reference to some core methods - core_concat = core_deletedIds.concat, - core_push = core_deletedIds.push, - core_slice = core_deletedIds.slice, - core_indexOf = core_deletedIds.indexOf, - core_toString = class2type.toString, - core_hasOwn = class2type.hasOwnProperty, - core_trim = core_version.trim, - - // Define a local copy of jQuery - jQuery = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context, rootjQuery ); - }, - - // Used for matching numbers - core_pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, - - // Used for splitting on whitespace - core_rnotwhite = /\S+/g, - - // Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE) - rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, - - // A simple way to check for HTML strings - // Prioritize #id over to avoid XSS via location.hash (#9521) - // Strict HTML recognition (#11290: must start with <) - rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, - - // Match a standalone tag - rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, - - // JSON RegExp - rvalidchars = /^[\],:{}\s]*$/, - rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, - rvalidescape = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, - rvalidtokens = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/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(); - }, - - // The ready event handler - completed = function( event ) { - - // readyState === "complete" is good enough for us to call the dom ready in oldIE - if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) { - detach(); - jQuery.ready(); - } - }, - // Clean-up method for dom ready events - detach = function() { - if ( document.addEventListener ) { - document.removeEventListener( "DOMContentLoaded", completed, false ); - window.removeEventListener( "load", completed, false ); - - } else { - document.detachEvent( "onreadystatechange", completed ); - window.detachEvent( "onload", completed ); - } - }; - -jQuery.fn = jQuery.prototype = { - // The current version of jQuery being used - jquery: core_version, - - constructor: jQuery, - init: function( selector, context, rootjQuery ) { - var match, elem; - - // HANDLE: $(""), $(null), $(undefined), $(false) - if ( !selector ) { - return this; - } - - // 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 - 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 || rootjQuery ).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 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 default length of a jQuery object is 0 - length: 0, - - toArray: function() { - return core_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 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 ) { - - // 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. - // (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 ) { - // Add the callback - jQuery.ready.promise().done( fn ); - - return this; - }, - - slice: function() { - return this.pushStack( core_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] ] : [] ); - }, - - 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: core_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 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; - 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({ - // Unique for each copy of jQuery on the page - // Non-digits removed to match rinlinejQuery - expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ), - - 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 ) { - - // Abort if there are pending holds or we're already ready - if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { - return; - } - - // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). - if ( !document.body ) { - return setTimeout( jQuery.ready ); - } - - // 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.trigger ) { - jQuery( document ).trigger("ready").off("ready"); - } - }, - - // 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 ) { - return !isNaN( parseFloat(obj) ) && isFinite( obj ); - }, - - type: function( obj ) { - if ( obj == null ) { - return String( obj ); - } - return typeof obj === "object" || typeof obj === "function" ? - class2type[ core_toString.call(obj) ] || "object" : - typeof obj; - }, - - 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 && - !core_hasOwn.call(obj, "constructor") && - !core_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 ( jQuery.support.ownLast ) { - for ( key in obj ) { - return core_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 || core_hasOwn.call( obj, key ); - }, - - isEmptyObject: function( obj ) { - var name; - for ( name in obj ) { - return false; - } - return true; - }, - - error: function( msg ) { - throw new Error( msg ); - }, - - // 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 - 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 = jQuery.buildFragment( [ data ], context, scripts ); - if ( scripts ) { - jQuery( scripts ).remove(); - } - return jQuery.merge( [], parsed.childNodes ); - }, - - parseJSON: function( data ) { - // Attempt to parse using the native JSON parser first - if ( window.JSON && window.JSON.parse ) { - return window.JSON.parse( data ); - } - - if ( data === null ) { - return data; - } - - if ( typeof data === "string" ) { - - // Make sure leading/trailing whitespace is removed (IE can't handle it) - data = jQuery.trim( data ); - - if ( 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 ) { - var xml, tmp; - if ( !data || typeof data !== "string" ) { - return null; - } - 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 && 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 ); - } )( 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(); - }, - - // args is for internal usage only - each: function( obj, callback, args ) { - var value, - i = 0, - length = obj.length, - isArray = isArraylike( obj ); - - if ( args ) { - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback.apply( obj[ i ], args ); - - if ( value === false ) { - break; - } - } - } else { - for ( i in obj ) { - value = callback.apply( obj[ i ], args ); - - if ( value === false ) { - break; - } - } - } - - // A special, fast, case for the most common use of each - } else { - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback.call( obj[ i ], i, obj[ i ] ); - - if ( value === false ) { - break; - } - } - } else { - for ( i in obj ) { - value = callback.call( obj[ i ], i, obj[ i ] ); - - if ( value === false ) { - break; - } - } - } - } - - return obj; - }, - - // Use native String.trim function wherever possible - trim: core_trim && !core_trim.call("\uFEFF\xA0") ? - function( text ) { - return text == null ? - "" : - core_trim.call( text ); - } : - - // Otherwise use our own trimming functionality - 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 { - core_push.call( ret, arr ); - } - } - - return ret; - }, - - inArray: function( elem, arr, i ) { - var len; - - if ( arr ) { - if ( core_indexOf ) { - return core_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 l = second.length, - i = first.length, - j = 0; - - if ( typeof l === "number" ) { - for ( ; 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 retVal, - ret = [], - i = 0, - length = elems.length; - inv = !!inv; - - // Go through the array, only saving the items - // that pass the validator function - for ( ; 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, - i = 0, - length = elems.length, - isArray = isArraylike( elems ), - ret = []; - - // 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 ( i in elems ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret[ ret.length ] = value; - } - } - } - - // Flatten any nested arrays - return core_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 = core_slice.call( arguments, 2 ); - proxy = function() { - return fn.apply( context || this, args.concat( core_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; - }, - - // Multifunctional method to get and set values of a collection - // The value/s can optionally be executed if it's a function - 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 ) { - jQuery.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; - }, - - now: function() { - return ( new Date() ).getTime(); - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations. - // Note: this method belongs to the css module but it's needed here for the support module. - // If support gets modularized, this method should be moved back to the css module. - 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; - } -}); - -jQuery.ready.promise = function( obj ) { - if ( !readyList ) { - - readyList = jQuery.Deferred(); - - // Catch cases where $(document).ready() is called after the browser event has already occurred. - // we once tried to use readyState "interactive" here, but it caused issues like the one - // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 - if ( document.readyState === "complete" ) { - // Handle it asynchronously to allow scripts the opportunity to delay ready - setTimeout( jQuery.ready ); - - // Standards-based browsers support DOMContentLoaded - } else if ( document.addEventListener ) { - // Use the handy event callback - document.addEventListener( "DOMContentLoaded", completed, false ); - - // A fallback to window.onload, that will always work - window.addEventListener( "load", completed, false ); - - // 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 setTimeout( doScrollCheck, 50 ); - } - - // detach all dom ready events - detach(); - - // and execute any waiting functions - jQuery.ready(); - } - })(); - } - } - } - return readyList.promise( obj ); -}; - -// Populate the class2type map -jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); -}); - -function isArraylike( obj ) { - var length = obj.length, - type = jQuery.type( obj ); - - if ( jQuery.isWindow( obj ) ) { - return false; - } - - if ( obj.nodeType === 1 && length ) { - return true; - } - - return type === "array" || type !== "function" && - ( length === 0 || - typeof length === "number" && length > 0 && ( length - 1 ) in obj ); -} - -// All jQuery objects should point back to these -rootjQuery = jQuery(document); -/*! - * Sizzle CSS Selector Engine v1.10.2 - * http://sizzlejs.com/ - * - * Copyright 2013 jQuery Foundation, Inc. and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2013-07-03 - */ -(function( window, undefined ) { - -var i, - support, - cachedruns, - Expr, - getText, - isXML, - compile, - outermostContext, - sortInput, - - // Local document vars - setDocument, - document, - docElem, - documentIsHTML, - rbuggyQSA, - rbuggyMatches, - matches, - contains, - - // Instance-specific data - expando = "sizzle" + -(new Date()), - preferredDoc = window.document, - dirruns = 0, - done = 0, - classCache = createCache(), - tokenCache = createCache(), - compilerCache = createCache(), - hasDuplicate = false, - sortOrder = function( a, b ) { - if ( a === b ) { - hasDuplicate = true; - return 0; - } - return 0; - }, - - // General-purpose constants - strundefined = typeof undefined, - 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 if we can't use a native one - indexOf = arr.indexOf || function( elem ) { - var i = 0, - len = this.length; - for ( ; i < len; i++ ) { - if ( this[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 - - // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace - whitespace = "[\\x20\\t\\r\\n\\f]", - // http://www.w3.org/TR/css3-syntax/#characters - characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", - - // Loosely modeled on CSS identifier characters - // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors - // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier - identifier = characterEncoding.replace( "w", "w#" ), - - // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors - attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + - "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", - - // Prefer arguments quoted, - // then not containing pseudos/brackets, - // then attribute selectors/non-parenthetical expressions, - // then anything else - // These preferences are here to reduce the number of selectors - // needing tokenize in the PSEUDO preFilter - pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)", - - // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter - rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), - - rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), - rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), - - rsibling = new RegExp( whitespace + "*[+~]" ), - rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*)" + whitespace + "*\\]", "g" ), - - rpseudo = new RegExp( pseudos ), - ridentifier = new RegExp( "^" + identifier + "$" ), - - matchExpr = { - "ID": new RegExp( "^#(" + characterEncoding + ")" ), - "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), - "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), - "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" ) - }, - - rnative = /^[^{]+\{\s*\[native \w/, - - // Easily-parseable/retrievable ID or TAG or CLASS selectors - rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, - - rinputs = /^(?:input|select|textarea|button)$/i, - rheader = /^h\d$/i, - - 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 - // Workaround erroneous numeric interpretation of +"0x" - return high !== high || escapedWhitespace ? - escaped : - // BMP codepoint - high < 0 ? - String.fromCharCode( high + 0x10000 ) : - // Supplemental Plane codepoint (surrogate pair) - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); - }; - -// 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 match, elem, m, nodeType, - // QSA vars - i, groups, old, nid, newContext, newSelector; - - if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { - setDocument( context ); - } - - context = context || document; - results = results || []; - - if ( !selector || typeof selector !== "string" ) { - return results; - } - - if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) { - return []; - } - - if ( documentIsHTML && !seed ) { - - // Shortcuts - if ( (match = rquickExpr.exec( selector )) ) { - // Speed-up: Sizzle("#ID") - if ( (m = match[1]) ) { - if ( nodeType === 9 ) { - elem = context.getElementById( m ); - // 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, Opera, and Webkit return items - // by name instead of ID - if ( elem.id === m ) { - results.push( elem ); - return results; - } - } else { - return results; - } - } else { - // Context is not a document - if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && - contains( context, elem ) && elem.id === m ) { - results.push( elem ); - return results; - } - } - - // Speed-up: Sizzle("TAG") - } else if ( match[2] ) { - push.apply( results, context.getElementsByTagName( selector ) ); - return results; - - // Speed-up: Sizzle(".CLASS") - } else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) { - push.apply( results, context.getElementsByClassName( m ) ); - return results; - } - } - - // QSA path - if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { - nid = old = expando; - newContext = context; - newSelector = nodeType === 9 && selector; - - // 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 - if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { - groups = tokenize( selector ); - - if ( (old = context.getAttribute("id")) ) { - nid = old.replace( rescape, "\\$&" ); - } else { - context.setAttribute( "id", nid ); - } - nid = "[id='" + nid + "'] "; - - i = groups.length; - while ( i-- ) { - groups[i] = nid + toSelector( groups[i] ); - } - newContext = rsibling.test( selector ) && context.parentNode || context; - newSelector = groups.join(","); - } - - if ( newSelector ) { - try { - push.apply( results, - newContext.querySelectorAll( newSelector ) - ); - return results; - } catch(qsaError) { - } finally { - if ( !old ) { - 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 = attrs.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]); - } - } - }); - }); -} - -/** - * Detect xml - * @param {Element|Object} elem An element or a document - */ -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; -}; - -// Expose support vars for convenience -support = Sizzle.support = {}; - -/** - * 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 doc = node ? node.ownerDocument || node : preferredDoc, - parent = doc.defaultView; - - // If no document and documentElement is available, return - if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { - return document; - } - - // Set our document - document = doc; - docElem = doc.documentElement; - - // Support tests - documentIsHTML = !isXML( doc ); - - // Support: IE>8 - // If iframe document is assigned to "document" variable and if iframe has been reloaded, - // IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936 - // IE6-8 do not support the defaultView property so parent will be undefined - if ( parent && parent.attachEvent && parent !== parent.top ) { - parent.attachEvent( "onbeforeunload", function() { - setDocument(); - }); - } - - /* 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( doc.createComment("") ); - return !div.getElementsByTagName("*").length; - }); - - // Check if getElementsByClassName can be trusted - support.getElementsByClassName = assert(function( div ) { - div.innerHTML = "
"; - - // Support: Safari<4 - // Catch class over-caching - div.firstChild.className = "i"; - // Support: Opera<10 - // Catch gEBCN failure to find non-leading classes - return div.getElementsByClassName("i").length === 2; - }); - - // 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 !doc.getElementsByName || !doc.getElementsByName( expando ).length; - }); - - // ID find and filter - if ( support.getById ) { - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== strundefined && documentIsHTML ) { - var m = context.getElementById( id ); - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - return m && m.parentNode ? [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 !== strundefined && elem.getAttributeNode("id"); - return node && node.value === attrId; - }; - }; - } - - // Tag - Expr.find["TAG"] = support.getElementsByTagName ? - function( tag, context ) { - if ( typeof context.getElementsByTagName !== strundefined ) { - return context.getElementsByTagName( tag ); - } - } : - function( tag, context ) { - var elem, - tmp = [], - i = 0, - 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 !== strundefined && 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( doc.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 - div.innerHTML = ""; - - // Support: IE8 - // Boolean attributes and "value" are not treated correctly - if ( !div.querySelectorAll("[selected]").length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); - } - - // 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"); - } - }); - - assert(function( div ) { - - // Support: Opera 10-12/IE8 - // ^= $= *= and empty values - // Should not select anything - // Support: Windows 8 Native Apps - // The type attribute is restricted during .innerHTML assignment - var input = doc.createElement("input"); - input.setAttribute( "type", "hidden" ); - div.appendChild( input ).setAttribute( "t", "" ); - - if ( div.querySelectorAll("[t^='']").length ) { - rbuggyQSA.push( "[*^$]=" + 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.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 - ---------------------------------------------------------------------- */ - - // Element contains another - // Purposefully does not implement inclusive descendent - // As in, an element does not contain itself - contains = rnative.test( docElem.contains ) || docElem.compareDocumentPosition ? - 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 = docElem.compareDocumentPosition ? - function( a, b ) { - - // Flag for duplicate removal - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - var compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b ); - - if ( compare ) { - // Disconnected nodes - if ( compare & 1 || - (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { - - // Choose the first element that is related to our preferred document - if ( a === doc || contains(preferredDoc, a) ) { - return -1; - } - if ( b === doc || contains(preferredDoc, b) ) { - return 1; - } - - // Maintain original order - return sortInput ? - ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : - 0; - } - - return compare & 4 ? -1 : 1; - } - - // Not directly comparable, sort on existence of method - return a.compareDocumentPosition ? -1 : 1; - } : - function( a, b ) { - var cur, - i = 0, - aup = a.parentNode, - bup = b.parentNode, - ap = [ a ], - bp = [ b ]; - - // Exit early if the nodes are identical - if ( a === b ) { - hasDuplicate = true; - return 0; - - // Parentless nodes are either documents or disconnected - } else if ( !aup || !bup ) { - return a === doc ? -1 : - b === doc ? 1 : - aup ? -1 : - bup ? 1 : - sortInput ? - ( indexOf.call( sortInput, a ) - indexOf.call( 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 doc; -}; - -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 && - ( !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 ? - support.attributes || !documentIsHTML ? - elem.getAttribute( name ) : - (val = elem.getAttributeNode(name)) && val.specified ? - val.value : - null : - val; -}; - -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 ); - } - } - - 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 - for ( ; (node = elem[i]); 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 (see #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[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[5] && match[2]; - - if ( matchExpr["CHILD"].test( match[0] ) ) { - return null; - } - - // Accept quoted arguments as-is - if ( match[3] && match[4] !== undefined ) { - match[2] = match[4]; - - // 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 !== strundefined && 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 + " " ).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, outerCache, node, diff, nodeIndex, start, - dir = simple !== forward ? "nextSibling" : "previousSibling", - parent = elem.parentNode, - name = ofType && elem.nodeName.toLowerCase(), - useCache = !xml && !ofType; - - 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 - outerCache = parent[ expando ] || (parent[ expando ] = {}); - cache = outerCache[ type ] || []; - nodeIndex = cache[0] === dirruns && cache[1]; - diff = cache[0] === dirruns && 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 ) { - outerCache[ type ] = [ dirruns, nodeIndex, diff ]; - break; - } - } - - // Use previously-cached element index if available - } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) { - diff = cache[1]; - - // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...) - } else { - // 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 ) { - (node[ expando ] || (node[ expando ] = {}))[ 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.call( 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 ); - return !results.pop(); - }; - }), - - "has": markFunction(function( selector ) { - return function( elem ) { - return Sizzle( selector, elem ).length > 0; - }; - }), - - "contains": markFunction(function( text ) { - 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 only affected by element nodes and content nodes(including text(3), cdata(4)), - // not comment, processing instructions, or others - // Thanks to Diego Perini for the nodeName shortcut - // Greater than "@" means alpha characters (specifically not starting with "#" or "?") - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - if ( elem.nodeName > "@" || elem.nodeType === 3 || elem.nodeType === 4 ) { - 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; - // 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" && - elem.type === "text" && - ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === elem.type ); - }, - - // 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(); - -function tokenize( 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 data, cache, outerCache, - dirkey = dirruns + " " + doneName; - - // We can't set arbitrary data on XML nodes, so they don't benefit from dir 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 ] = {}); - if ( (cache = outerCache[ dir ]) && cache[0] === dirkey ) { - if ( (data = cache[1]) === true || data === cachedruns ) { - return data === true; - } - } else { - cache = outerCache[ dir ] = [ dirkey ]; - cache[1] = matcher( elem, context, xml ) || cachedruns; - if ( cache[1] === true ) { - 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 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.call( 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.call( checkContext, elem ) > -1; - }, implicitRelative, true ), - matchers = [ function( elem, context, xml ) { - return ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( - (checkContext = context).nodeType ? - matchContext( elem, context, xml ) : - matchAnyContext( elem, context, xml ) ); - } ]; - - 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 ) { - // A counter to specify which element is currently being matched - var matcherCachedRuns = 0, - bySet = setMatchers.length > 0, - byElement = elementMatchers.length > 0, - superMatcher = function( seed, context, xml, results, expandContext ) { - var elem, j, matcher, - setMatched = [], - matchedCount = 0, - i = "0", - unmatched = seed && [], - outermost = expandContext != null, - contextBackup = outermostContext, - // We must always have either seed elements or context - elems = seed || byElement && Expr.find["TAG"]( "*", expandContext && context.parentNode || context ), - // Use integer dirruns iff this is the outermost matcher - dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1); - - if ( outermost ) { - outermostContext = context !== document && context; - cachedruns = matcherCachedRuns; - } - - // Add elements passing elementMatchers directly to results - // Keep `i` a string if there are no elements so `matchedCount` will be "00" below - for ( ; (elem = elems[i]) != null; i++ ) { - if ( byElement && elem ) { - j = 0; - while ( (matcher = elementMatchers[j++]) ) { - if ( matcher( elem, context, xml ) ) { - results.push( elem ); - break; - } - } - if ( outermost ) { - dirruns = dirrunsUnique; - cachedruns = ++matcherCachedRuns; - } - } - - // 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 ); - } - } - } - - // Apply set filters to unmatched elements - matchedCount += i; - 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, group /* 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 ( !group ) { - group = tokenize( selector ); - } - i = group.length; - while ( i-- ) { - cached = matcherFromTokens( group[i] ); - if ( cached[ expando ] ) { - setMatchers.push( cached ); - } else { - elementMatchers.push( cached ); - } - } - - // Cache the compiled function - cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); - } - return cached; -}; - -function multipleContexts( selector, contexts, results ) { - var i = 0, - len = contexts.length; - for ( ; i < len; i++ ) { - Sizzle( selector, contexts[i], results ); - } - return results; -} - -function select( selector, context, results, seed ) { - var i, tokens, token, type, find, - match = tokenize( selector ); - - if ( !seed ) { - // Try to minimize operations if there is only one group - if ( match.length === 1 ) { - - // Take a shortcut and set the context if the root 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; - } - 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 ) && 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 - // Provide `match` to avoid retokenization if we modified the selector above - compile( selector, match )( - seed, - context, - !documentIsHTML, - results, - rsibling.test( selector ) - ); - return results; -} - -// One-time assignments - -// Sort stability -support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; - -// Support: Chrome<14 -// 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 = ""; - 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 = ""; - 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 (val = elem.getAttributeNode( name )) && val.specified ? - val.value : - elem[ name ] === true ? name.toLowerCase() : null; - } - }); -} - -jQuery.find = Sizzle; -jQuery.expr = Sizzle.selectors; -jQuery.expr[":"] = jQuery.expr.pseudos; -jQuery.unique = Sizzle.uniqueSort; -jQuery.text = Sizzle.getText; -jQuery.isXMLDoc = Sizzle.isXML; -jQuery.contains = Sizzle.contains; - - -})( window ); -// String to Object options format cache -var optionsCache = {}; - -// Convert String-formatted options into Object-formatted ones and store in cache -function createOptions( options ) { - var object = optionsCache[ options ] = {}; - jQuery.each( options.match( core_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" ? - ( optionsCache[ options ] || 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, - // End of the loop when firing - firingLength, - // Index of currently firing callback (modified by remove if needed) - firingIndex, - // First callback to fire (used internally by add and fireWith) - firingStart, - // Actual callback list - list = [], - // Stack of fire calls for repeatable lists - stack = !options.once && [], - // Fire callbacks - fire = function( data ) { - memory = options.memory && data; - fired = true; - firingIndex = firingStart || 0; - firingStart = 0; - firingLength = list.length; - firing = true; - for ( ; list && firingIndex < firingLength; firingIndex++ ) { - if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { - memory = false; // To prevent further calls using add - break; - } - } - firing = false; - if ( list ) { - if ( stack ) { - if ( stack.length ) { - fire( stack.shift() ); - } - } else if ( memory ) { - list = []; - } else { - self.disable(); - } - } - }, - // Actual Callbacks object - self = { - // Add a callback or a collection of callbacks to the list - add: function() { - if ( list ) { - // First, we save the current length - var start = list.length; - (function add( args ) { - jQuery.each( args, function( _, arg ) { - var type = jQuery.type( arg ); - if ( type === "function" ) { - if ( !options.unique || !self.has( arg ) ) { - list.push( arg ); - } - } else if ( arg && arg.length && type !== "string" ) { - // Inspect recursively - add( arg ); - } - }); - })( 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 - } else if ( memory ) { - firingStart = start; - fire( memory ); - } - } - return this; - }, - // Remove a callback from the list - remove: function() { - if ( list ) { - jQuery.each( arguments, function( _, arg ) { - var index; - while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { - list.splice( index, 1 ); - // Handle firing indexes - if ( firing ) { - if ( index <= firingLength ) { - firingLength--; - } - 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 && list.length ); - }, - // Remove all callbacks from the list - empty: function() { - list = []; - firingLength = 0; - 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 ) { - 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 ( list && ( !fired || stack ) ) { - args = args || []; - args = [ context, args.slice ? args.slice() : args ]; - if ( firing ) { - stack.push( args ); - } else { - fire( 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; -}; -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 action = tuple[ 0 ], - 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() - .done( newDefer.resolve ) - .fail( newDefer.reject ) - .progress( newDefer.notify ); - } else { - newDefer[ action + "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 = core_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 ? core_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() - .done( updateFunc( i, resolveContexts, resolveValues ) ) - .fail( deferred.reject ) - .progress( updateFunc( i, progressContexts, progressValues ) ); - } else { - --remaining; - } - } - } - - // if we're not waiting on anything, resolve the master - if ( !remaining ) { - deferred.resolveWith( resolveContexts, resolveValues ); - } - - return deferred.promise(); - } -}); -jQuery.support = (function( support ) { - - var all, a, input, select, fragment, opt, eventName, isSupported, i, - div = document.createElement("div"); - - // Setup - div.setAttribute( "className", "t" ); - div.innerHTML = "
a"; - - // Finish early in limited (non-browser) environments - all = div.getElementsByTagName("*") || []; - a = div.getElementsByTagName("a")[ 0 ]; - if ( !a || !a.style || !all.length ) { - return support; - } - - // First batch of tests - select = document.createElement("select"); - opt = select.appendChild( document.createElement("option") ); - input = div.getElementsByTagName("input")[ 0 ]; - - a.style.cssText = "top:1px;float:left;opacity:.5"; - - // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) - support.getSetAttribute = div.className !== "t"; - - // 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; - - // 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"; - - // Make sure that element opacity exists - // (IE uses filter instead) - // Use a regex to work around a WebKit issue. See #5145 - support.opacity = /^0.5/.test( a.style.opacity ); - - // Verify style float existence - // (IE uses styleFloat instead of cssFloat) - support.cssFloat = !!a.style.cssFloat; - - // 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; - - // 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>"; - - // Will be defined later - support.inlineBlockNeedsLayout = false; - support.shrinkWrapBlocks = false; - support.pixelPosition = false; - support.deleteExpando = true; - support.noCloneEvent = true; - support.reliableMarginRight = true; - support.boxSizingReliable = true; - - // 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; - - // Support: IE<9 - try { - delete div.test; - } catch( e ) { - support.deleteExpando = false; - } - - // 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"; - - // #11217 - WebKit loses check when the name is after the checked attribute - input.setAttribute( "checked", "t" ); - input.setAttribute( "name", "t" ); - - fragment = document.createDocumentFragment(); - fragment.appendChild( input ); - - // Check if a disconnected checkbox will retain its checked - // value of true after appended to the DOM (IE6/7) - support.appendChecked = input.checked; - - // WebKit doesn't clone checked state correctly in fragments - support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; - - // Support: IE<9 - // Opera does not clone events (and typeof div.attachEvent === undefined). - // IE9-10 clones events bound via attachEvent, but they don't trigger with .click() - if ( div.attachEvent ) { - div.attachEvent( "onclick", function() { - support.noCloneEvent = false; - }); - - div.cloneNode( true ).click(); - } - - // Support: IE<9 (lack submit/change bubble), Firefox 17+ (lack focusin event) - // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) - for ( i in { submit: true, change: true, focusin: true }) { - div.setAttribute( eventName = "on" + i, "t" ); - - support[ i + "Bubbles" ] = eventName in window || div.attributes[ eventName ].expando === false; - } - - div.style.backgroundClip = "content-box"; - div.cloneNode( true ).style.backgroundClip = ""; - support.clearCloneStyle = div.style.backgroundClip === "content-box"; - - // Support: IE<9 - // Iteration over object's inherited properties before its own. - for ( i in jQuery( support ) ) { - break; - } - support.ownLast = i !== "0"; - - // Run tests that need a body at doc ready - jQuery(function() { - var container, marginDiv, tds, - divReset = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", - body = document.getElementsByTagName("body")[0]; - - if ( !body ) { - // Return for frameset docs that don't have a body - return; - } - - container = document.createElement("div"); - container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px"; - - body.appendChild( container ).appendChild( div ); - - // Support: IE8 - // 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.innerHTML = "
t
"; - tds = div.getElementsByTagName("td"); - tds[ 0 ].style.cssText = "padding:0;margin:0;border:0;display:none"; - isSupported = ( tds[ 0 ].offsetHeight === 0 ); - - tds[ 0 ].style.display = ""; - tds[ 1 ].style.display = "none"; - - // Support: IE8 - // Check if empty table cells still have offsetWidth/Height - support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 ); - - // Check box-sizing and margin behavior. - div.innerHTML = ""; - div.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;"; - - // Workaround failing boxSizing test due to offsetWidth returning wrong value - // with some non-1 values of body zoom, ticket #13543 - jQuery.swap( body, body.style.zoom != null ? { zoom: 1 } : {}, function() { - support.boxSizing = div.offsetWidth === 4; - }); - - // Use window.getComputedStyle because jsdom on node.js will break without it. - if ( window.getComputedStyle ) { - support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%"; - support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px"; - - // Check if div with explicit width and no margin-right incorrectly - // gets computed margin-right based on width of container. (#3333) - // Fails in WebKit before Feb 2011 nightlies - // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right - marginDiv = div.appendChild( document.createElement("div") ); - marginDiv.style.cssText = div.style.cssText = divReset; - marginDiv.style.marginRight = marginDiv.style.width = "0"; - div.style.width = "1px"; - - support.reliableMarginRight = - !parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight ); - } - - if ( typeof div.style.zoom !== core_strundefined ) { - // 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.innerHTML = ""; - div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1"; - support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 ); - - // Support: IE6 - // Check if elements with layout shrink-wrap their children - div.style.display = "block"; - div.innerHTML = "
"; - div.firstChild.style.width = "5px"; - support.shrinkWrapBlocks = ( div.offsetWidth !== 3 ); - - if ( support.inlineBlockNeedsLayout ) { - // 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 ); - - // Null elements to avoid leaks in IE - container = div = tds = marginDiv = null; - }); - - // Null elements to avoid leaks in IE - all = select = fragment = opt = a = input = null; - - return support; -})({}); - -var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, - rmultiDash = /([A-Z])/g; - -function internalData( elem, name, data, pvt /* Internal Use Only */ ){ - if ( !jQuery.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 ] = core_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 ( !jQuery.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 ( jQuery.support.deleteExpando || cache != cache.window ) { - /* jshint eqeqeq: true */ - delete cache[ id ]; - - // When all else fails, null - } else { - cache[ id ] = null; - } -} - -jQuery.extend({ - cache: {}, - - // The following elements throw uncatchable exceptions if you - // attempt to add expando properties to them. - noData: { - "applet": true, - "embed": true, - // Ban all objects except for Flash (which 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 ); - }, - - // A method for determining if a DOM node can handle the data expando - acceptData: function( elem ) { - // Do not set data on non-element because it will not be cleared (#8335). - if ( elem.nodeType && elem.nodeType !== 1 && elem.nodeType !== 9 ) { - return false; - } - - var noData = elem.nodeName && jQuery.noData[ elem.nodeName.toLowerCase() ]; - - // nodes accept data unless otherwise specified; rejection can be conditional - return !noData || noData !== true && elem.getAttribute("classid") === noData; - } -}); - -jQuery.fn.extend({ - data: function( key, value ) { - var attrs, name, - data = null, - i = 0, - elem = this[0]; - - // 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" ) ) { - attrs = elem.attributes; - for ( ; i < attrs.length; 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 ) ) : null; - }, - - 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 : - // 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; -} -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 ); - }); - }, - // 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, 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 ); - } -}); -var nodeHook, boolHook, - rclass = /[\t\r\n\f]/g, - rreturn = /\r/g, - rfocusable = /^(?:input|select|textarea|button|object)$/i, - rclickable = /^(?:a|area)$/i, - ruseDefault = /^(?:checked|selected)$/i, - getSetAttribute = jQuery.support.getSetAttribute, - getSetInput = jQuery.support.input; - -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 classes, elem, cur, clazz, j, - i = 0, - len = this.length, - proceed = typeof value === "string" && value; - - if ( jQuery.isFunction( value ) ) { - return this.each(function( j ) { - jQuery( this ).addClass( value.call( this, j, this.className ) ); - }); - } - - if ( proceed ) { - // The disjunction here is for better compressibility (see removeClass) - classes = ( value || "" ).match( core_rnotwhite ) || []; - - for ( ; i < len; i++ ) { - elem = this[ i ]; - cur = elem.nodeType === 1 && ( elem.className ? - ( " " + elem.className + " " ).replace( rclass, " " ) : - " " - ); - - if ( cur ) { - j = 0; - while ( (clazz = classes[j++]) ) { - if ( cur.indexOf( " " + clazz + " " ) < 0 ) { - cur += clazz + " "; - } - } - elem.className = jQuery.trim( cur ); - - } - } - } - - return this; - }, - - removeClass: function( value ) { - var classes, elem, cur, clazz, j, - i = 0, - len = this.length, - proceed = arguments.length === 0 || typeof value === "string" && value; - - if ( jQuery.isFunction( value ) ) { - return this.each(function( j ) { - jQuery( this ).removeClass( value.call( this, j, this.className ) ); - }); - } - if ( proceed ) { - classes = ( value || "" ).match( core_rnotwhite ) || []; - - for ( ; i < len; i++ ) { - elem = this[ i ]; - // This expression is here for better compressibility (see addClass) - cur = elem.nodeType === 1 && ( elem.className ? - ( " " + elem.className + " " ).replace( rclass, " " ) : - "" - ); - - if ( cur ) { - j = 0; - while ( (clazz = classes[j++]) ) { - // Remove *all* instances - while ( cur.indexOf( " " + clazz + " " ) >= 0 ) { - cur = cur.replace( " " + clazz + " ", " " ); - } - } - elem.className = value ? jQuery.trim( cur ) : ""; - } - } - } - - 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, this.className, stateVal), stateVal ); - }); - } - - return this.each(function() { - if ( type === "string" ) { - // toggle individual class names - var className, - i = 0, - self = jQuery( this ), - classNames = value.match( core_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 ( type === core_strundefined || type === "boolean" ) { - if ( this.className ) { - // store className if set - jQuery._data( this, "__className__", this.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. - 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 ) >= 0 ) { - return true; - } - } - - return false; - }, - - val: function( value ) { - var ret, hooks, 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 ) { - // Use proper attribute retrieval(#6932, #12072) - var val = jQuery.find.attr( elem, "value" ); - return val != null ? - val : - elem.text; - } - }, - 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 - ( 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; - }, - - 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(option).val(), values ) >= 0) ) { - optionSet = true; - } - } - - // force browsers to behave consistently when non-matching value is set - if ( !optionSet ) { - elem.selectedIndex = -1; - } - return values; - } - } - }, - - attr: function( elem, name, value ) { - var hooks, ret, - nType = elem.nodeType; - - // don't get/set attributes on text, comment and attribute nodes - if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - // Fallback to prop when attributes are not supported - if ( typeof elem.getAttribute === core_strundefined ) { - 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 ); - - } else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { - return ret; - - } else { - elem.setAttribute( name, value + "" ); - return value; - } - - } else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { - return ret; - - } else { - ret = jQuery.find.attr( elem, name ); - - // Non-existent attributes return null, we normalize to undefined - return ret == null ? - undefined : - ret; - } - }, - - removeAttr: function( elem, value ) { - var name, propName, - i = 0, - attrNames = value && value.match( core_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 ); - } - } - }, - - attrHooks: { - type: { - set: function( elem, value ) { - 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 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; - } - } - } - }, - - propFix: { - "for": "htmlFor", - "class": "className" - }, - - 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 ) { - return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ? - ret : - ( elem[ name ] = value ); - - } else { - return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ? - ret : - 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; - } - } - } -}); - -// 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 ); - - // Use defaultChecked and defaultSelected for oldIE - } else { - 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 = jQuery.expr.attrHandle[ name ] || jQuery.find.attr; - - jQuery.expr.attrHandle[ name ] = getSetInput && getSetAttribute || !ruseDefault.test( name ) ? - function( elem, name, isXML ) { - var fn = jQuery.expr.attrHandle[ name ], - ret = isXML ? - undefined : - /* jshint eqeqeq: false */ - (jQuery.expr.attrHandle[ name ] = undefined) != - getter( elem, name, isXML ) ? - - name.toLowerCase() : - null; - jQuery.expr.attrHandle[ name ] = fn; - return ret; - } : - function( elem, name, isXML ) { - return isXML ? - undefined : - 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) - return name === "value" || value === elem.getAttribute( name ) ? - value : - undefined; - } - }; - jQuery.expr.attrHandle.id = jQuery.expr.attrHandle.name = jQuery.expr.attrHandle.coords = - // Some attributes are constructed with empty-string values when not defined - function( elem, name, isXML ) { - var ret; - return isXML ? - undefined : - (ret = elem.getAttributeNode( name )) && ret.value !== "" ? - ret.value : - null; - }; - jQuery.valHooks.button = { - get: function( elem, name ) { - var ret = elem.getAttributeNode( name ); - return ret && ret.specified ? - ret.value : - undefined; - }, - 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; - } - } - }; - }); -} - - -// Some attributes require a special call on IE -// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !jQuery.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 ); - } - }; - }); -} - -if ( !jQuery.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 senstitivity in URL's, like in "background" - return elem.style.cssText || 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 = { - 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; - } - }; -} - -jQuery.each([ - "tabIndex", - "readOnly", - "maxLength", - "cellSpacing", - "cellPadding", - "rowSpan", - "colSpan", - "useMap", - "frameBorder", - "contentEditable" -], function() { - jQuery.propFix[ this.toLowerCase() ] = this; -}); - -// IE6/7 call enctype encoding -if ( !jQuery.support.enctype ) { - jQuery.propFix.enctype = "encoding"; -} - -// 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 ) >= 0 ); - } - } - }; - if ( !jQuery.support.checkOn ) { - jQuery.valHooks[ this ].get = function( elem ) { - // Support: Webkit - // "" is returned instead of "on" if a value isn't specified - return elem.getAttribute("value") === null ? "on" : elem.value; - }; - } -}); -var rformElems = /^(?:input|select|textarea)$/i, - rkeyEvent = /^key/, - rmouseEvent = /^(?:mouse|contextmenu)|click/, - rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, - rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; - -function returnTrue() { - return true; -} - -function returnFalse() { - return false; -} - -function safeActiveElement() { - try { - return document.activeElement; - } catch ( err ) { } -} - -/* - * 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 !== core_strundefined && (!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( core_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( core_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 = core_hasOwn.call( event, "type" ) ? event.type : event, - namespaces = core_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(".") >= 0 ) { - // 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.namespace_re = 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 && jQuery.acceptData( cur ) && handle.apply && 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( eventPath.pop(), data ) === false) && - 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) - 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, ret, handleObj, matched, j, - handlerQueue = [], - args = core_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.namespace_re || event.namespace_re.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 sel, handleObj, matches, i, - handlerQueue = [], - delegateCount = handlers.delegateCount, - cur = event.target; - - // Find delegate handlers - // Black-hole SVG instance trees (#13180) - // Avoid non-left-click bubbling in Firefox (#3861) - if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { - - /* 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 ) >= 0 : - 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: Chrome 23+, Safari? - // 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 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 ) { - - // Even when returnValue equals to undefined Firefox will still show alert - if ( event.result !== undefined ) { - event.originalEvent.returnValue = event.result; - } - } - } - }, - - 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(); - } - } -}; - -jQuery.removeEvent = document.removeEventListener ? - function( elem, type, handle ) { - if ( elem.removeEventListener ) { - elem.removeEventListener( type, handle, false ); - } - } : - 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 ] === core_strundefined ) { - 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.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; -}; - -// 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 = { - 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 ) { - 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() { - this.isImmediatePropagationStopped = returnTrue; - this.stopPropagation(); - } -}; - -// 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 ret, - target = this, - related = event.relatedTarget, - handleObj = event.handleObj; - - // 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 && !jQuery._data( form, "submitBubbles" ) ) { - jQuery.event.add( form, "submit._submit", function( event ) { - event._submit_bubble = true; - }); - jQuery._data( form, "submitBubbles", 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; - } - // Allow triggered, simulated change events (#11500) - 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 ) && !jQuery._data( elem, "changeBubbles" ) ) { - jQuery.event.add( elem, "change._change", function( event ) { - if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { - jQuery.event.simulate( "change", this.parentNode, event, true ); - } - }); - jQuery._data( elem, "changeBubbles", 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 type, origFn; - - // 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 ) { - 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 ) { - 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 isSimple = /^.[^:#\[\.,]*$/, - rparentsprev = /^(?:parents|prev(?:Until|All))/, - rneedsContext = jQuery.expr.match.needsContext, - // 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 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; - }, - - 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; - } - } - }); - }, - - not: function( selector ) { - return this.pushStack( winnow(this, selector || [], true) ); - }, - - filter: function( selector ) { - return this.pushStack( winnow(this, selector || [], false) ); - }, - - 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; - }, - - closest: function( selectors, context ) { - var cur, - i = 0, - l = this.length, - ret = [], - 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)) ) { - - cur = ret.push( cur ); - break; - } - } - } - - return this.pushStack( ret.length > 1 ? jQuery.unique( ret ) : ret ); - }, - - // 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 ) { - var set = typeof selector === "string" ? - jQuery( selector, context ) : - jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), - all = jQuery.merge( this.get(), set ); - - return this.pushStack( jQuery.unique(all) ); - }, - - 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 jQuery.dir( elem, "parentNode" ); - }, - parentsUntil: function( elem, i, until ) { - return jQuery.dir( elem, "parentNode", until ); - }, - next: function( elem ) { - return sibling( elem, "nextSibling" ); - }, - prev: function( elem ) { - return sibling( elem, "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.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.unique( ret ); - } - - // Reverse order for parents* and prev-derivatives - if ( rparentsprev.test( name ) ) { - ret = ret.reverse(); - } - } - - return this.pushStack( ret ); - }; -}); - -jQuery.extend({ - 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; - })); - }, - - 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; - }, - - 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, 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 ( isSimple.test( qualifier ) ) { - return jQuery.filter( qualifier, elements, not ); - } - - qualifier = jQuery.filter( qualifier, elements ); - } - - return jQuery.grep( elements, function( elem ) { - return ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not; - }); -} -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+="(?:null|\d+)"/g, - rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), - rleadingWhitespace = /^\s+/, - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, - rtagName = /<([\w:]+)/, - rtbody = /\s*$/g, - - // We have to close these tags to support XHTML (#13200) - wrapMap = { - option: [ 1, "" ], - legend: [ 1, "
", "
" ], - area: [ 1, "", "" ], - param: [ 1, "", "" ], - thead: [ 1, "", "
" ], - tr: [ 2, "", "
" ], - col: [ 2, "", "
" ], - td: [ 3, "", "
" ], - - // 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: jQuery.support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X
", "
" ] - }, - safeFragment = createSafeFragment( document ), - fragmentDiv = safeFragment.appendChild( document.createElement("div") ); - -wrapMap.optgroup = wrapMap.option; -wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; -wrapMap.th = wrapMap.td; - -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 ); - }, - - append: function() { - return this.domManip( arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.appendChild( elem ); - } - }); - }, - - prepend: function() { - return this.domManip( 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 this.domManip( arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this ); - } - }); - }, - - after: function() { - return this.domManip( arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this.nextSibling ); - } - }); - }, - - // keepData is for internal use only--do not document - remove: function( selector, keepData ) { - var elem, - elems = selector ? jQuery.filter( selector, this ) : this, - i = 0; - - for ( ; (elem = elems[i]) != null; i++ ) { - - if ( !keepData && elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem ) ); - } - - if ( elem.parentNode ) { - if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) { - setGlobalEval( getAll( elem, "script" ) ); - } - elem.parentNode.removeChild( elem ); - } - } - - return this; - }, - - 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 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, "" ) : - undefined; - } - - // See if we can take a shortcut and just use innerHTML - if ( typeof value === "string" && !rnoInnerhtml.test( value ) && - ( jQuery.support.htmlSerialize || !rnoshimcache.test( value ) ) && - ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) && - !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) { - - value = value.replace( rxhtmlTag, "<$1>" ); - - 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 - // Snapshot the DOM in case .domManip sweeps something relevant into its fragment - args = jQuery.map( this, function( elem ) { - return [ elem.nextSibling, elem.parentNode ]; - }), - i = 0; - - // Make the changes, replacing each context element with the new content - this.domManip( arguments, function( elem ) { - var next = args[ i++ ], - parent = args[ i++ ]; - - if ( parent ) { - // Don't use the snapshot next if it has moved (#13810) - if ( next && next.parentNode !== parent ) { - next = this.nextSibling; - } - jQuery( this ).remove(); - parent.insertBefore( elem, next ); - } - // Allow new content to include elements from the context set - }, true ); - - // Force removal if there was no new content (e.g., from empty arguments) - return i ? this : this.remove(); - }, - - detach: function( selector ) { - return this.remove( selector, true ); - }, - - domManip: function( args, callback, allowIntersection ) { - - // Flatten any nested arrays - args = core_concat.apply( [], args ); - - var first, node, hasScripts, - scripts, doc, fragment, - i = 0, - l = this.length, - set = this, - 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" || jQuery.support.checkClone || !rchecked.test( value ) ) ) { - return this.each(function( index ) { - var self = set.eq( index ); - if ( isFunction ) { - args[0] = value.call( this, index, self.html() ); - } - self.domManip( args, callback, allowIntersection ); - }); - } - - if ( l ) { - fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, !allowIntersection && this ); - first = fragment.firstChild; - - if ( fragment.childNodes.length === 1 ) { - fragment = first; - } - - if ( first ) { - 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 ) { - jQuery.merge( scripts, getAll( node, "script" ) ); - } - } - - callback.call( this[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 ) { - // Hope ajax is available... - jQuery._evalUrl( node.src ); - } else { - jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) ); - } - } - } - } - - // Fix #11809: Avoid leaking memory - fragment = first = null; - } - } - - return this; - } -}); - -// Support: IE<8 -// Manipulating tables requires a tbody -function manipulationTarget( elem, content ) { - return jQuery.nodeName( elem, "table" ) && - jQuery.nodeName( content.nodeType === 1 ? 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; -} - -// 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" ) ); - } -} - -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 ( !jQuery.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 ( jQuery.support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) { - dest.innerHTML = src.innerHTML; - } - - } else if ( nodeName === "input" && manipulation_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; - } -} - -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() - core_push.apply( ret, elems.get() ); - } - - return this.pushStack( ret ); - }; -}); - -function getAll( context, tag ) { - var elems, elem, - i = 0, - found = typeof context.getElementsByTagName !== core_strundefined ? context.getElementsByTagName( tag || "*" ) : - typeof context.querySelectorAll !== core_strundefined ? 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; -} - -// Used in buildFragment, fixes the defaultChecked property -function fixDefaultChecked( elem ) { - if ( manipulation_rcheckableType.test( elem.type ) ) { - elem.defaultChecked = elem.checked; - } -} - -jQuery.extend({ - clone: function( elem, dataAndEvents, deepDataAndEvents ) { - var destElements, node, clone, i, srcElements, - inPage = jQuery.contains( elem.ownerDocument, elem ); - - if ( jQuery.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 ( (!jQuery.support.noCloneEvent || !jQuery.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; - }, - - buildFragment: function( elems, context, scripts, selection ) { - 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] + elem.replace( rxhtmlTag, "<$1>" ) + 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 ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { - nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) ); - } - - // Remove IE's autoinserted from table fragments - if ( !jQuery.support.tbody ) { - - // String was a , *may* have spurious - elem = tag === "table" && !rtbody.test( elem ) ? - tmp.firstChild : - - // String was a bare or - wrap[1] === "
" && !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 ( !jQuery.support.appendChecked ) { - jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked ); - } - - i = 0; - while ( (elem = nodes[ i++ ]) ) { - - // #4087 - If origin and destination elements are the same, and this is - // that element, do not do anything - if ( selection && jQuery.inArray( elem, selection ) !== -1 ) { - 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; - }, - - cleanData: function( elems, /* internal */ acceptData ) { - var elem, type, id, data, - i = 0, - internalKey = jQuery.expando, - cache = jQuery.cache, - deleteExpando = jQuery.support.deleteExpando, - special = jQuery.event.special; - - for ( ; (elem = elems[i]) != null; i++ ) { - - if ( acceptData || jQuery.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 ]; - - // 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 ( deleteExpando ) { - delete elem[ internalKey ]; - - } else if ( typeof elem.removeAttribute !== core_strundefined ) { - elem.removeAttribute( internalKey ); - - } else { - elem[ internalKey ] = null; - } - - core_deletedIds.push( id ); - } - } - } - } - }, - - _evalUrl: function( url ) { - return jQuery.ajax({ - url: url, - type: "GET", - dataType: "script", - 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(); - } -}); -var iframe, getStyles, curCSS, - ralpha = /alpha\([^)]*\)/i, - ropacity = /opacity\s*=\s*([^)]*)/, - rposition = /^(top|right|bottom|left)$/, - // 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]).+)/, - rmargin = /^margin/, - rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ), - rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ), - rrelNum = new RegExp( "^([+-])=(" + core_pnum + ")", "i" ), - elemdisplay = { BODY: "block" }, - - cssShow = { position: "absolute", visibility: "hidden", display: "block" }, - cssNormalTransform = { - letterSpacing: 0, - fontWeight: 400 - }, - - cssExpand = [ "Top", "Right", "Bottom", "Left" ], - cssPrefixes = [ "Webkit", "O", "Moz", "ms" ]; - -// return a css property mapped to a potentially vendor prefixed property -function vendorPropName( style, name ) { - - // shortcut for names that are not vendor prefixed - if ( name in style ) { - return name; - } - - // check for vendor prefixed names - var capName = name.charAt(0).toUpperCase() + name.slice(1), - origName = name, - i = cssPrefixes.length; - - while ( i-- ) { - name = cssPrefixes[ i ] + capName; - if ( name in style ) { - return name; - } - } - - return origName; -} - -function isHidden( 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 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", css_defaultDisplay(elem.nodeName) ); - } - } else { - - if ( !values[ index ] ) { - 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; -} - -jQuery.fn.extend({ - css: function( name, value ) { - return jQuery.access( this, function( elem, name, value ) { - var len, styles, - 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(); - } - }); - } -}); - -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: { - "columnCount": true, - "fillOpacity": 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": 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, hooks, - origName = jQuery.camelCase( name ), - style = elem.style; - - name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, 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 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"; - } - - // 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 ( !jQuery.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 ) { - - // 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, 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( elem.style, 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 || jQuery.isNumeric( num ) ? num || 0 : val; - } - return val; - } -}); - -// NOTE: we've included the "window" in window.getComputedStyle -// because jsdom on node.js will break without it. -if ( window.getComputedStyle ) { - getStyles = function( elem ) { - return window.getComputedStyle( elem, null ); - }; - - curCSS = function( elem, name, _computed ) { - var width, minWidth, maxWidth, - computed = _computed || getStyles( elem ), - - // getPropertyValue is only needed for .css('filter') in IE9, see #12537 - ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined, - style = elem.style; - - if ( computed ) { - - if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { - ret = jQuery.style( elem, name ); - } - - // 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 ( 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; - }; -} else if ( document.documentElement.currentStyle ) { - getStyles = function( elem ) { - return elem.currentStyle; - }; - - curCSS = function( elem, name, _computed ) { - var left, rs, rsLeft, - computed = _computed || getStyles( elem ), - ret = computed ? computed[ name ] : undefined, - style = elem.style; - - // 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; - } - } - - return ret === "" ? "auto" : ret; - }; -} - -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 = jQuery.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 && ( jQuery.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"; -} - -// Try to determine the default display value of an element -function css_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(" - - - - - - - diff --git a/vendor/assets/components/jquery.atwho/package.json b/vendor/assets/components/jquery.atwho/package.json deleted file mode 100644 index 0861d4a40b..0000000000 --- a/vendor/assets/components/jquery.atwho/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "jquery.atwho", - "author": { - "name": "chord.luo", - "email": "chord.luo@gmail.com" - }, - "homepage": "http://ichord.github.com/At.js", - "license": "MIT", - "version": "0.4.11", - "engines": { - "node": ">= 0.6.0" - }, - "scripts": { - "test": "grunt test --verbose" - }, - "dependencies": { - "jQuery": "~1.7.0" - }, - "devDependencies": { - "grunt": "~0.4.2", - "grunt-contrib-coffee": "~0.10.0", - "grunt-contrib-uglify": "~0.3.2", - "grunt-contrib-jasmine": "~0.6.1", - "grunt-contrib-connect": "~0.6.0", - "grunt-contrib-watch": "~0.5.3", - "grunt-json-replace": "~0.1.2", - "grunt-notify": "~0.2.17", - "grunt-contrib-copy": "~0.5.0", - "grunt-contrib-concat": "~0.3.0", - "grunt-contrib-cssmin": "~0.9.0" - } -} diff --git a/vendor/assets/components/jquery.atwho/src/api.coffee b/vendor/assets/components/jquery.atwho/src/api.coffee deleted file mode 100644 index 04cf487b3d..0000000000 --- a/vendor/assets/components/jquery.atwho/src/api.coffee +++ /dev/null @@ -1,65 +0,0 @@ -Api = - # load a flag's data - # - # @params at[String] the flag - # @params data [Array] data to storage. - load: (at, data) -> c.model.load data if c = this.controller(at) - - getInsertedItemsWithIDs: (at) -> - return [null, null] unless c = this.controller at - at = "-#{c.get_opt('alias') || c.at}" if at - ids = [] - items = $.map @$inputor.find("span.atwho-view-flag#{at || ""}"), (item) -> - data = $(item).data('atwho-data-item') - return if ids.indexOf(data.id) > -1 - ids.push = data.id if data.id - data - [ids, items] - getInsertedItems: (at) -> Api.getInsertedItemsWithIDs.apply(this, [at])[1] - getInsertedIDs: (at) -> Api.getInsertedItemsWithIDs.apply(this, [at])[0] - setIframe: (iframe) -> this.setIframe(iframe) - - run: -> this.dispatch() - destroy: -> - this.shutdown() - @$inputor.data('atwho', null) - -Atwho = - # init or update an inputor with a special flag - # - # @params options [Object] settings of At.js - init: (options) -> - app = ($this = $(this)).data "atwho" - $this.data 'atwho', (app = new App(this)) if not app - app.reg options.at, options - this - -$CONTAINER = $("
") - -$.fn.atwho = (method) -> - _args = arguments - $('body').append($CONTAINER) - result = null - this.filter('textarea, input, [contenteditable=true]').each -> - if typeof method is 'object' || !method - Atwho.init.apply this, _args - else if Api[method] - result = Api[method].apply app, Array::slice.call(_args, 1) if app = $(this).data('atwho') - else - $.error "Method #{method} does not exist on jQuery.caret" - result || this - -$.fn.atwho.default = - at: undefined - alias: undefined - data: null - tpl: "
  • ${name}
  • " - insert_tpl: "${atwho-data-value}" - callbacks: DEFAULT_CALLBACKS - search_key: "name" - start_with_space: yes - highlight_first: yes - limit: 5 - max_len: 20 - display_timeout: 300 - delay: null diff --git a/vendor/assets/components/jquery.atwho/src/app.coffee b/vendor/assets/components/jquery.atwho/src/app.coffee deleted file mode 100644 index 33f7316b81..0000000000 --- a/vendor/assets/components/jquery.atwho/src/app.coffee +++ /dev/null @@ -1,118 +0,0 @@ -# At.js central contoller(searching, matching, evaluating and rendering.) -class App - - # @param inputor [HTML DOM Object] `input` or `textarea` - constructor: (inputor) -> - @current_flag = null - @controllers = {} - @alias_maps = {} - @$inputor = $(inputor) - @iframe = null - this.setIframe() - this.listen() - - setIframe: (iframe) -> - if iframe - @window = iframe.contentWindow - @document = iframe.contentDocument || @window.document - @iframe = iframe - this - else - @document = @$inputor[0].ownerDocument - @window = @document.defaultView || @document.parentWindow - try - @iframe = @window.frameElement - catch error - # throws error in cross-domain iframes - - controller: (at) -> - @controllers[@alias_maps[at] || at || @current_flag] - - set_context_for: (at) -> - @current_flag = at - this - - # At.js can register multiple at char (flag) to every inputor such as "@" and ":" - # Along with their own `settings` so that it works differently. - # After register, we still can update their `settings` such as updating `data` - # - # @param flag [String] at char (flag) - # @param settings [Hash] the settings - reg: (flag, setting) -> - controller = @controllers[flag] ||= new Controller(this, flag) - # TODO: it will produce rubbish alias map, reduse this. - @alias_maps[setting.alias] = flag if setting.alias - controller.init setting - this - - # binding jQuery events of `inputor`'s - listen: -> - @$inputor - .on 'keyup.atwhoInner', (e) => - this.on_keyup(e) - .on 'keydown.atwhoInner', (e) => - this.on_keydown(e) - .on 'scroll.atwhoInner', (e) => - this.controller()?.view.hide() - .on 'blur.atwhoInner', (e) => - c.view.hide(c.get_opt("display_timeout")) if c = this.controller() - - shutdown: -> - for _, c of @controllers - c.destroy() - delete @controllers[_] - @$inputor.off '.atwhoInner' - - dispatch: -> - $.map @controllers, (c) => - if delay = c.get_opt('delay') - clearTimeout @delayedCallback - @delayedCallback = setTimeout(=> - this.set_context_for c.at if c.look_up() - , delay) - else - this.set_context_for c.at if c.look_up() - - on_keyup: (e) -> - switch e.keyCode - when KEY_CODE.ESC - e.preventDefault() - this.controller()?.view.hide() - when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL - $.noop() - when KEY_CODE.P, KEY_CODE.N - this.dispatch() if not e.ctrlKey - else - this.dispatch() - # coffeescript will return everywhere!! - return - - on_keydown: (e) -> - # return if not (view = this.controller().view).visible() - view = this.controller()?.view - return if not (view and view.visible()) - switch e.keyCode - when KEY_CODE.ESC - e.preventDefault() - view.hide() - when KEY_CODE.UP - e.preventDefault() - view.prev() - when KEY_CODE.DOWN - e.preventDefault() - view.next() - when KEY_CODE.P - return if not e.ctrlKey - e.preventDefault() - view.prev() - when KEY_CODE.N - return if not e.ctrlKey - e.preventDefault() - view.next() - when KEY_CODE.TAB, KEY_CODE.ENTER - return if not view.visible() - e.preventDefault() - view.choose() - else - $.noop() - return diff --git a/vendor/assets/components/jquery.atwho/src/controller.coffee b/vendor/assets/components/jquery.atwho/src/controller.coffee deleted file mode 100644 index e084cbbab7..0000000000 --- a/vendor/assets/components/jquery.atwho/src/controller.coffee +++ /dev/null @@ -1,179 +0,0 @@ -class Controller - uid: -> - (Math.random().toString(16)+"000000000").substr(2,8) + (new Date().getTime()) - - constructor: (@app, @at) -> - @$inputor = @app.$inputor - @id = @$inputor[0].id || this.uid() - - @setting = null - @query = null - @pos = 0 - @cur_rect = null - @range = null - $CONTAINER.append @$el = $("
    ") - - @model = new Model(this) - @view = new View(this) - - init: (setting) -> - @setting = $.extend {}, @setting || $.fn.atwho.default, setting - @view.init() - @model.reload @setting.data - - destroy: -> - this.trigger 'beforeDestroy' - @model.destroy() - @view.destroy() - @$el.remove() - - call_default: (func_name, args...) -> - try - DEFAULT_CALLBACKS[func_name].apply this, args - catch error - $.error "#{error} Or maybe At.js doesn't have function #{func_name}" - - # Delegate custom `jQueryEvent` to the inputor - # This function will add `atwho` as namespace to every jQuery event - # and pass current context as the last param to it. - # - # @example - # this.trigger "roll_n_rock", [1,2,3,4] - # - # $inputor.on "rool_n_rock", (e, one, two, three, four) -> - # console.log one, two, three, four - # - # @param name [String] Event name - # @param data [Array] data to callback - trigger: (name, data=[]) -> - data.push this - alias = this.get_opt('alias') - event_name = if alias then "#{name}-#{alias}.atwho" else "#{name}.atwho" - @$inputor.trigger event_name, data - - # Get callback either in settings which was set by plugin user or in default callbacks list. - # - # @param func_name [String] callback's name - # @return [Function] The callback. - callbacks: (func_name)-> - this.get_opt("callbacks")[func_name] || DEFAULT_CALLBACKS[func_name] - - # Because different registered at chars have different settings. - # so we should give their own for them. - # - # @param at [String] setting's at name - # @param default_value [?] return this if nothing is returned from current settings. - # @return [?] setting's value - get_opt: (at, default_value) -> - try - @setting[at] - catch e - null - - content: -> if @$inputor.is('textarea, input') then @$inputor.val() else @$inputor.text() - - # Catch query string behind the at char - # - # @return [Hash] Info of the query. Look likes this: {'text': "hello", 'head_pos': 0, 'end_pos': 0} - catch_query: -> - content = this.content() - caret_pos = @$inputor.caret('pos') - subtext = content.slice(0,caret_pos) - - query = this.callbacks("matcher").call(this, @at, subtext, this.get_opt('start_with_space')) - if typeof query is "string" and query.length <= this.get_opt('max_len', 20) - start = caret_pos - query.length - end = start + query.length - @pos = start - query = {'text': query, 'head_pos': start, 'end_pos': end} - this.trigger "matched", [@at, query.text] - else - query = null - @view.hide() - - @query = query - - # Get offset of current at char(`flag`) - # - # @return [Hash] the offset which look likes this: {top: y, left: x, bottom: bottom} - rect: -> - return if not c = @$inputor.caret({iframe: @app.iframe}).caret('offset', @pos - 1) - c = (@cur_rect ||= c) || c if @$inputor.attr('contentEditable') == 'true' - scale_bottom = if @app.document.selection then 0 else 2 - {left: c.left, top: c.top, bottom: c.top + c.height + scale_bottom} - - reset_rect: -> - @cur_rect = null if @$inputor.attr('contentEditable') == 'true' - - mark_range: -> - if @$inputor.attr('contentEditable') == 'true' - @range = @app.window.getSelection().getRangeAt(0) if @app.window.getSelection - @ie8_range = @app.document.selection.createRange() if @app.document.selection - - insert_content_for: ($li) -> - data_value = $li.data('value') - tpl = this.get_opt('insert_tpl') - if @$inputor.is('textarea, input') or not tpl - return data_value - - data = $.extend {}, $li.data('item-data'), {'atwho-data-value': data_value, 'atwho-at': @at} - this.callbacks("tpl_eval").call(this, tpl, data) - - # Insert value of `data-value` attribute of chosen item into inputor - # - # @param content [String] string to insert - insert: (content, $li) -> - $inputor = @$inputor - - if $inputor.attr('contentEditable') == 'true' - class_name = "atwho-view-flag atwho-view-flag-#{this.get_opt('alias') || @at}" - content_node = "#{content} " - insert_node = "#{content_node}" - $insert_node = $(insert_node, @app.document).data('atwho-data-item', $li.data('item-data')) - if @app.document.selection - $insert_node = $("", @app.document).html($insert_node) - - if $inputor.is('textarea, input') - # ensure str is str. - # BTW: Good way to change num into str: http://jsperf.com/number-to-string/2 - content = '' + content - source = $inputor.val() - start_str = source.slice 0, Math.max(@query.head_pos - @at.length, 0) - text = "#{start_str}#{content} #{source.slice @query['end_pos'] || 0}" - $inputor.val text - $inputor.caret 'pos',start_str.length + content.length + 1 - else if range = @range - pos = range.startOffset - (@query.end_pos - @query.head_pos) - @at.length - range.setStart(range.endContainer, Math.max(pos,0)) - range.setEnd(range.endContainer, range.endOffset) - range.deleteContents() - range.insertNode($insert_node[0]) - range.collapse(false) - sel = @app.window.getSelection() - sel.removeAllRanges() - sel.addRange(range) - else if range = @ie8_range # IE < 9 - # NOTE: have to add this into
    - # to make it work batter. - # REF: http://stackoverflow.com/questions/15535933/ie-html1114-error-with-custom-cleditor-button?answertab=votes#tab-top - range.moveStart('character', @query.end_pos - @query.head_pos - @at.length) - range.pasteHTML(content_node) - range.collapse(false) - range.select() - $inputor.focus() if not $inputor.is ':focus' - $inputor.change() - - # Render list view - # - # @param data [Array] The data - render_view: (data) -> - search_key = this.get_opt("search_key") - data = this.callbacks("sorter").call(this, @query.text, data[0..1000] , search_key) - @view.render data[0...this.get_opt('limit')] - - # Searching! - look_up: -> - return if not (query = this.catch_query()) - _callback = (data) -> if data and data.length > 0 then this.render_view data else @view.hide() - @model.query query.text, $.proxy(_callback, this) - query diff --git a/vendor/assets/components/jquery.atwho/src/default.coffee b/vendor/assets/components/jquery.atwho/src/default.coffee deleted file mode 100644 index 2cc337fd22..0000000000 --- a/vendor/assets/components/jquery.atwho/src/default.coffee +++ /dev/null @@ -1,126 +0,0 @@ -KEY_CODE = - DOWN: 40 - UP: 38 - ESC: 27 - TAB: 9 - ENTER: 13 - CTRL: 17 - P: 80 - N: 78 - -# Functions set for handling and rendering the data. -# Others developers can override these methods to tweak At.js such as matcher. -# We can override them in `callbacks` settings. -# -# @mixin -# -# The context of these functions is `$.atwho.Controller` object and they are called in this sequences: -# -# [before_save, matcher, filter, remote_filter, sorter, tpl_evl, highlighter, before_insert] -# -DEFAULT_CALLBACKS = - - # It would be called to restructure the data before At.js invokes `Model#save` to save data - # In default, At.js will convert it to a Hash Array. - # - # @param data [Array] data to refacotor. - # @return [Array] Data after refactor. - before_save: (data) -> - return data if not $.isArray data - for item in data - if $.isPlainObject item then item else name:item - - # It would be called to match the `flag`. - # It will match at start of line or after whitespace - # - # @param flag [String] current `flag` ("@", etc) - # @param subtext [String] Text from start to current caret position. - # - # @return [String | null] Matched result. - matcher: (flag, subtext, should_start_with_space) -> - # escape RegExp - flag = flag.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&") - flag = '(?:^|\\s)' + flag if should_start_with_space - regexp = new RegExp flag+'([A-Za-z0-9_\+\-]*)$|'+flag+'([^\\x00-\\xff]*)$','gi' - match = regexp.exec subtext - if match then match[2] || match[1] else null - - # --------------------- - - # Filter data by matched string. - # - # @param query [String] Matched string. - # @param data [Array] data list - # @param search_key [String] at char for searching. - # - # @return [Array] result data. - filter: (query, data, search_key) -> - # !!null #=> false; !!undefined #=> false; !!'' #=> false; - _results = [] - for item in data - _results.push item if ~item[search_key].toLowerCase().indexOf query.toLowerCase() - _results - - # If a function is given, At.js will invoke it if local filter can not find any data - # - # @param params [String] matched query - # @param callback [Function] callback to render page. - remote_filter: null - # remote_filter: (query, callback) -> - # $.ajax url, - # data: params - # success: (data) -> - # callback(data) - - # Sorter data of course. - # - # @param query [String] matched string - # @param items [Array] data that was refactored - # @param search_key [String] at char to search - # - # @return [Array] sorted data - sorter: (query, items, search_key) -> - return items unless query - - _results = [] - for item in items - item.atwho_order = item[search_key].toLowerCase().indexOf query.toLowerCase() - _results.push item if item.atwho_order > -1 - - _results.sort (a,b) -> a.atwho_order - b.atwho_order - - # Eval template for every single item in display list. - # - # @param tpl [String] The template string. - # @param map [Hash] Data map to eval. - tpl_eval: (tpl, map) -> - try - tpl.replace /\$\{([^\}]*)\}/g, (tag, key, pos) -> map[key] - catch error - "" - - # Highlight the `matched query` string. - # - # @param li [String] HTML String after eval. - # @param query [String] matched query. - # - # @return [String] highlighted string. - highlighter: (li, query) -> - return li if not query - regexp = new RegExp(">\\s*(\\w*)(" + query.replace("+","\\+") + ")(\\w*)\\s*<", 'ig') - li.replace regexp, (str, $1, $2, $3) -> '> '+$1+'' + $2 + ''+$3+' <' - - # What to do before inserting item's value into inputor. - # - # @param value [String] content to insert - # @param $li [jQuery Object] the chosen item - before_insert: (value, $li) -> - value - - # You can adjust the menu's offset here. - # - # @param offset [Hash] offset will be applied to menu - # before_reposition: (offset) -> - # offset.left += 10 - # offset.top += 10 - # offset diff --git a/vendor/assets/components/jquery.atwho/src/jquery.atwho.css b/vendor/assets/components/jquery.atwho/src/jquery.atwho.css deleted file mode 100644 index 5f497df2d1..0000000000 --- a/vendor/assets/components/jquery.atwho/src/jquery.atwho.css +++ /dev/null @@ -1,46 +0,0 @@ -.atwho-view { - position:absolute; - top: 0; - left: 0; - display: none; - margin-top: 18px; - background: white; - border: 1px solid #DDD; - border-radius: 3px; - box-shadow: 0 0 5px rgba(0,0,0,0.1); - min-width: 120px; - z-index: 10; -} - -.atwho-view .cur { - background: #3366FF; - color: white; -} -.atwho-view .cur small { - color: white; -} -.atwho-view strong { - color: #3366FF; -} -.atwho-view .cur strong { - color: white; - font:bold; -} -.atwho-view ul { - /* width: 100px; */ - list-style:none; - padding:0; - margin:auto; -} -.atwho-view ul li { - display: block; - padding: 5px 10px; - border-bottom: 1px solid #DDD; - cursor: pointer; - /* border-top: 1px solid #C8C8C8; */ -} -.atwho-view small { - font-size: smaller; - color: #777; - font-weight: normal; -} diff --git a/vendor/assets/components/jquery.atwho/src/model.coffee b/vendor/assets/components/jquery.atwho/src/model.coffee deleted file mode 100644 index 4f72d18b25..0000000000 --- a/vendor/assets/components/jquery.atwho/src/model.coffee +++ /dev/null @@ -1,59 +0,0 @@ -# Class to process data -class Model - - constructor: (@context) -> - @at = @context.at - # NOTE: bind data storage to inputor maybe App class can handle it. - @storage = @context.$inputor - - destroy: -> - @storage.data(@at, null) - - saved: -> - this.fetch() > 0 - - # fetch data from storage by query. - # will invoke `callback` to return data - # - # @param query [String] catched string for searching - # @param callback [Function] for receiving data - query: (query, callback) -> - data = this.fetch() - search_key = @context.get_opt("search_key") - data = @context.callbacks('filter').call(@context, query, data, search_key) || [] - _remote_filter = @context.callbacks('remote_filter') - if data.length > 0 or (!_remote_filter and data.length == 0) - callback data - else - _remote_filter.call(@context, query, callback) - - # get or set current data which would be shown on the list view. - # - # @param data [Array] set data - # @return [Array|undefined] current data that are showing on the list view. - fetch: -> - @storage.data(@at) || [] - - # save special flag's data to storage - # - # @param data [Array] data to save - save: (data) -> - @storage.data @at, @context.callbacks("before_save").call(@context, data || []) - - # load data. It wouldn't load for a second time if it has been loaded. - # - # @param data [Array] data to load - load: (data) -> - this._load(data) unless this.saved() or not data - - reload: (data) -> - this._load(data) - - # load data from local or remote with callback - # - # @param data [Array|String] data to load. - _load: (data) -> - if typeof data is "string" - $.ajax(data, dataType: "json").done (data) => this.save(data) - else - this.save data diff --git a/vendor/assets/components/jquery.atwho/src/view.coffee b/vendor/assets/components/jquery.atwho/src/view.coffee deleted file mode 100644 index 2550ac753d..0000000000 --- a/vendor/assets/components/jquery.atwho/src/view.coffee +++ /dev/null @@ -1,97 +0,0 @@ -# View class to control how At.js's view showing. -# All classes share the same DOM view. -class View - - # @param controller [Object] The Controller. - constructor: (@context) -> - @$el = $("
      ") - @timeout_id = null - # create HTML DOM of list view if it does not exist - @context.$el.append(@$el) - this.bind_event() - - init: -> - id = @context.get_opt("alias") || @context.at.charCodeAt(0) - @$el.attr('id': "at-view-#{id}") - - destroy: -> - @$el.remove() - - bind_event: -> - $menu = @$el.find('ul') - $menu.on 'mouseenter.atwho-view','li', (e) -> - $menu.find('.cur').removeClass 'cur' - $(e.currentTarget).addClass 'cur' - .on 'click', (e) => - this.choose() - e.preventDefault() - - # Check if view is visible - # - # @return [Boolean] - visible: -> - @$el.is(":visible") - - choose: -> - if ($li = @$el.find ".cur").length - content = @context.insert_content_for $li - @context.insert @context.callbacks("before_insert").call(@context, content, $li), $li - @context.trigger "inserted", [$li] - this.hide() - - reposition: (rect) -> - if rect.bottom + @$el.height() - $(window).scrollTop() > $(window).height() - rect.bottom = rect.top - @$el.height() - offset = {left:rect.left, top:rect.bottom} - @context.callbacks("before_reposition")?.call(@context, offset) - @$el.offset offset - @context.trigger "reposition", [offset] - - next: -> - cur = @$el.find('.cur').removeClass('cur') - next = cur.next() - next = @$el.find('li:first') if not next.length - next.addClass 'cur' - - prev: -> - cur = @$el.find('.cur').removeClass('cur') - prev = cur.prev() - prev = @$el.find('li:last') if not prev.length - prev.addClass 'cur' - - show: -> - @context.mark_range() - if not this.visible() - @$el.show() - @context.trigger 'shown' - this.reposition(rect) if rect = @context.rect() - - hide: (time) -> - if isNaN time and this.visible() - @context.reset_rect() - @$el.hide() - @context.trigger 'hidden' - else - callback = => this.hide() - clearTimeout @timeout_id - @timeout_id = setTimeout callback, time - - # render list view - render: (list) -> - if not ($.isArray(list) and list.length > 0) - this.hide() - return - - @$el.find('ul').empty() - $ul = @$el.find('ul') - tpl = @context.get_opt('tpl') - - for item in list - item = $.extend {}, item, {'atwho-at': @context.at} - li = @context.callbacks("tpl_eval").call(@context, tpl, item) - $li = $ @context.callbacks("highlighter").call(@context, li, @context.query.text) - $li.data("item-data", item) - $ul.append $li - - this.show() - $ul.find("li:first").addClass "cur" if @context.get_opt('highlight_first') diff --git a/vendor/assets/components/jquery.atwho/src/wrapper_footer.js b/vendor/assets/components/jquery.atwho/src/wrapper_footer.js deleted file mode 100644 index d26d4f5fc6..0000000000 --- a/vendor/assets/components/jquery.atwho/src/wrapper_footer.js +++ /dev/null @@ -1,2 +0,0 @@ - }); -}).call(this); diff --git a/vendor/assets/components/jquery.atwho/src/wrapper_header.js b/vendor/assets/components/jquery.atwho/src/wrapper_header.js deleted file mode 100644 index 9d44419e2d..0000000000 --- a/vendor/assets/components/jquery.atwho/src/wrapper_header.js +++ /dev/null @@ -1,8 +0,0 @@ -(function() { - (function(factory) { - if (typeof define === 'function' && define.amd) { - return define(['jquery'], factory); - } else { - return factory(window.jQuery); - } - })(function($) { diff --git a/vendor/assets/components/jquery/.bower.json b/vendor/assets/components/jquery/.bower.json deleted file mode 100644 index 883a4c65f0..0000000000 --- a/vendor/assets/components/jquery/.bower.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "jquery", - "version": "1.11.0", - "main": "dist/jquery.js", - "license": "MIT", - "ignore": [ - "**/.*", - "build", - "speed", - "test", - "*.md", - "AUTHORS.txt", - "Gruntfile.js", - "package.json" - ], - "devDependencies": { - "sizzle": "1.10.16", - "requirejs": "~2.1.8", - "qunit": "~1.12.0", - "sinon": "~1.7.3" - }, - "keywords": [ - "jquery", - "javascript", - "library" - ], - "homepage": "https://github.com/jquery/jquery", - "_release": "1.11.0", - "_resolution": { - "type": "version", - "tag": "1.11.0", - "commit": "91cd1587ed4a1d4f3834227e8eb3cc30cb385409" - }, - "_source": "git://github.com/jquery/jquery.git", - "_target": "1.11.0", - "_originalSource": "jquery" -} \ No newline at end of file diff --git a/vendor/assets/components/jquery/.gitattributes b/vendor/assets/components/jquery/.gitattributes deleted file mode 100644 index d6dc47053c..0000000000 --- a/vendor/assets/components/jquery/.gitattributes +++ /dev/null @@ -1,2 +0,0 @@ -* eol=lf -*.jar binary diff --git a/vendor/assets/components/jquery/.gitignore b/vendor/assets/components/jquery/.gitignore deleted file mode 100644 index b3c0472506..0000000000 --- a/vendor/assets/components/jquery/.gitignore +++ /dev/null @@ -1,10 +0,0 @@ -src/selector.js -dist -.project -.settings -*~ -*.diff -*.patch -/*.html -.DS_Store -build/.sizecache.json diff --git a/vendor/assets/components/jquery/.gitmodules b/vendor/assets/components/jquery/.gitmodules deleted file mode 100644 index 19c60418e3..0000000000 --- a/vendor/assets/components/jquery/.gitmodules +++ /dev/null @@ -1,6 +0,0 @@ -[submodule "src/sizzle"] - path = src/sizzle - url = git://github.com/jquery/sizzle.git -[submodule "test/qunit"] - path = test/qunit - url = git://github.com/jquery/qunit.git diff --git a/vendor/assets/components/jquery/GPL-LICENSE.txt b/vendor/assets/components/jquery/GPL-LICENSE.txt deleted file mode 100644 index 11dddd00ef..0000000000 --- a/vendor/assets/components/jquery/GPL-LICENSE.txt +++ /dev/null @@ -1,278 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. diff --git a/vendor/assets/components/jquery/MIT-LICENSE.txt b/vendor/assets/components/jquery/MIT-LICENSE.txt deleted file mode 100644 index cdd31b5c71..0000000000 --- a/vendor/assets/components/jquery/MIT-LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -Copyright 2014 jQuery Foundation and other contributors -http://jquery.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/vendor/assets/components/jquery/Makefile b/vendor/assets/components/jquery/Makefile deleted file mode 100644 index 3d8566abfd..0000000000 --- a/vendor/assets/components/jquery/Makefile +++ /dev/null @@ -1,137 +0,0 @@ -SRC_DIR = src -TEST_DIR = test -BUILD_DIR = build - -PREFIX = . -DIST_DIR = ${PREFIX}/dist - -JS_ENGINE ?= `which node nodejs 2>/dev/null` -COMPILER = ${JS_ENGINE} ${BUILD_DIR}/uglify.js --unsafe -POST_COMPILER = ${JS_ENGINE} ${BUILD_DIR}/post-compile.js - -BASE_FILES = ${SRC_DIR}/core.js\ - ${SRC_DIR}/callbacks.js\ - ${SRC_DIR}/deferred.js\ - ${SRC_DIR}/support.js\ - ${SRC_DIR}/data.js\ - ${SRC_DIR}/queue.js\ - ${SRC_DIR}/attributes.js\ - ${SRC_DIR}/event.js\ - ${SRC_DIR}/selector.js\ - ${SRC_DIR}/traversing.js\ - ${SRC_DIR}/manipulation.js\ - ${SRC_DIR}/css.js\ - ${SRC_DIR}/ajax.js\ - ${SRC_DIR}/ajax/jsonp.js\ - ${SRC_DIR}/ajax/script.js\ - ${SRC_DIR}/ajax/xhr.js\ - ${SRC_DIR}/effects.js\ - ${SRC_DIR}/offset.js\ - ${SRC_DIR}/dimensions.js\ - ${SRC_DIR}/exports.js - -MODULES = ${SRC_DIR}/intro.js\ - ${BASE_FILES}\ - ${SRC_DIR}/outro.js - -JQ = ${DIST_DIR}/jquery.js -JQ_MIN = ${DIST_DIR}/jquery.min.js - -SIZZLE_DIR = ${SRC_DIR}/sizzle - -JQ_VER = $(shell cat version.txt) -VER = sed "s/@VERSION/${JQ_VER}/" - -DATE=$(shell git log -1 --pretty=format:%ad) - -all: update_submodules core - -core: jquery min hint size - @@echo "jQuery build complete." - -${DIST_DIR}: - @@mkdir -p ${DIST_DIR} - -jquery: ${JQ} - -${JQ}: ${MODULES} | ${DIST_DIR} - @@echo "Building" ${JQ} - - @@cat ${MODULES} | \ - sed 's/.function..jQuery...{//' | \ - sed 's/}...jQuery..;//' | \ - sed 's/@DATE/'"${DATE}"'/' | \ - ${VER} > ${JQ}; - -${SRC_DIR}/selector.js: ${SIZZLE_DIR}/sizzle.js - @@echo "Building selector code from Sizzle" - @@sed '/EXPOSE/r src/sizzle-jquery.js' ${SIZZLE_DIR}/sizzle.js | grep -v window.Sizzle > ${SRC_DIR}/selector.js - -hint: jquery - @@if test ! -z ${JS_ENGINE}; then \ - echo "Checking jQuery against JSHint..."; \ - ${JS_ENGINE} build/jshint-check.js; \ - else \ - echo "You must have NodeJS installed in order to test jQuery against JSHint."; \ - fi - -size: jquery min - @@if test ! -z ${JS_ENGINE}; then \ - gzip -c ${JQ_MIN} > ${JQ_MIN}.gz; \ - wc -c ${JQ} ${JQ_MIN} ${JQ_MIN}.gz | ${JS_ENGINE} ${BUILD_DIR}/sizer.js; \ - rm ${JQ_MIN}.gz; \ - else \ - echo "You must have NodeJS installed in order to size jQuery."; \ - fi - -freq: jquery min - @@if test ! -z ${JS_ENGINE}; then \ - ${JS_ENGINE} ${BUILD_DIR}/freq.js; \ - else \ - echo "You must have NodeJS installed to report the character frequency of minified jQuery."; \ - fi - -min: jquery ${JQ_MIN} - -${JQ_MIN}: ${JQ} - @@if test ! -z ${JS_ENGINE}; then \ - echo "Minifying jQuery" ${JQ_MIN}; \ - ${COMPILER} ${JQ} > ${JQ_MIN}.tmp; \ - ${POST_COMPILER} ${JQ_MIN}.tmp; \ - rm -f ${JQ_MIN}.tmp; \ - else \ - echo "You must have NodeJS installed in order to minify jQuery."; \ - fi - -clean: - @@echo "Removing Distribution directory:" ${DIST_DIR} - @@rm -rf ${DIST_DIR} - - @@echo "Removing built copy of Sizzle" - @@rm -f src/selector.js - -distclean: clean - @@echo "Removing submodules" - @@rm -rf test/qunit src/sizzle - -# change pointers for submodules and update them to what is specified in jQuery -# --merge doesn't work when doing an initial clone, thus test if we have non-existing -# submodules, then do an real update -update_submodules: - @@if [ -d .git ]; then \ - if git submodule status | grep -q -E '^-'; then \ - git submodule update --init --recursive; \ - else \ - git submodule update --init --recursive --merge; \ - fi; \ - fi; - -# update the submodules to the latest at the most logical branch -pull_submodules: - @@git submodule foreach "git pull \$$(git config remote.origin.url)" - @@git submodule summary - -pull: pull_submodules - @@git pull ${REMOTE} ${BRANCH} - -.PHONY: all jquery hint min clean distclean update_submodules pull_submodules pull core diff --git a/vendor/assets/components/jquery/README.md b/vendor/assets/components/jquery/README.md deleted file mode 100644 index ad38c228b3..0000000000 --- a/vendor/assets/components/jquery/README.md +++ /dev/null @@ -1,168 +0,0 @@ -[jQuery](http://jquery.com/) - New Wave JavaScript -================================================== - -Contribution Guides --------------------------------------- - -In the spirit of open source software development, jQuery always encourages community code contribution. To help you get started and before you jump into writing code, be sure to read these important contribution guidelines thoroughly: - -1. [Getting Involved](http://docs.jquery.com/Getting_Involved) -2. [Core Style Guide](http://docs.jquery.com/JQuery_Core_Style_Guidelines) -3. [Tips For Bug Patching](http://docs.jquery.com/Tips_for_jQuery_Bug_Patching) - - -Running the Unit Tests --------------------------------------- - -Run the unit tests with a local server that supports PHP. No database is required. Pre-configured php local servers are available for Windows and Mac. Here are some options: - -- Windows: [WAMP download](http://www.wampserver.com/en/) -- Mac: [MAMP download](http://www.mamp.info/en/index.html) -- Linux: [Setting up LAMP](https://www.linux.com/learn/tutorials/288158-easy-lamp-server-installation) -- [Mongoose (most platforms)](http://code.google.com/p/mongoose/) - - -What you need to build your own jQuery --------------------------------------- - -In order to build jQuery, you need to have GNU make 3.8 or later, Node.js 0.4.12 or later, and git 1.7 or later. -(Earlier versions might work OK, but are not tested.) - -Windows users have two options: - -1. Install [msysgit](https://code.google.com/p/msysgit/) (Full installer for official Git), - [GNU make for Windows](http://gnuwin32.sourceforge.net/packages/make.htm), and a - [binary version of Node.js](http://node-js.prcn.co.cc/). Make sure all three packages are installed to the same - location (by default, this is C:\Program Files\Git). -2. Install [Cygwin](http://cygwin.com/) (make sure you install the git, make, and which packages), then either follow - the [Node.js build instructions](https://github.com/ry/node/wiki/Building-node.js-on-Cygwin-%28Windows%29) or install - the [binary version of Node.js](http://node-js.prcn.co.cc/). - -Mac OS users should install Xcode (comes on your Mac OS install DVD, or downloadable from -[Apple's Xcode site](http://developer.apple.com/technologies/xcode.html)) and -[http://mxcl.github.com/homebrew/](Homebrew). Once Homebrew is installed, run `brew install git` to install git, -and `brew install node` to install Node.js. - -Linux/BSD users should use their appropriate package managers to install make, git, and node, or build from source -if you swing that way. Easy-peasy. - - -How to build your own jQuery ----------------------------- - -First, clone a copy of the main jQuery git repo by running `git clone git://github.com/jquery/jquery.git`. - -Then, to get a complete, minified, jslinted version of jQuery, simply `cd` to the `jquery` directory and type -`make`. If you don't have Node installed and/or want to make a basic, uncompressed, unlinted version of jQuery, use -`make jquery` instead of `make`. - -The built version of jQuery will be put in the `dist/` subdirectory. - -To remove all built files, run `make clean`. - - -Building to a different directory ---------------------------------- - -If you want to build jQuery to a directory that is different from the default location, you can specify the PREFIX -directory: `make PREFIX=/home/jquery/test/ [command]` - -With this example, the output files would end up in `/home/jquery/test/dist/`. - - -Troubleshooting ---------------- - -Sometimes, the various git repositories get into an inconsistent state where builds don't complete properly -(usually this results in the jquery.js or jquery.min.js being 0 bytes). If this happens, run `make clean`, then -run `make` again. - -Git for dummies ---------------- - -As the source code is handled by the version control system Git, it's useful to know some features used. - -### Submodules ### - -The repository uses submodules, which normally are handled directly by the Makefile, but sometimes you want to -be able to work with them manually. - -Following are the steps to manually get the submodules: - -1. `git clone https://github.com/jquery/jquery.git` -2. `git submodule init` -3. `git submodule update` - -Or: - -1. `git clone https://github.com/jquery/jquery.git` -2. `git submodule update --init` - -Or: - -1. `git clone --recursive https://github.com/jquery/jquery.git` - -If you want to work inside a submodule, it is possible, but first you need to checkout a branch: - -1. `cd src/sizzle` -2. `git checkout master` - -After you've committed your changes to the submodule, you'll update the jquery project to point to the new commit, -but remember to push the submodule changes before pushing the new jquery commit: - -1. `cd src/sizzle` -2. `git push origin master` -3. `cd ..` -4. `git add src/sizzle` -5. `git commit` - -The makefile has some targets to simplify submodule handling: - -#### `make update_submodules` #### - -checks out the commit pointed to by jquery, but merges your local changes, if any. This target is executed -when you are doing a normal `make`. - -#### `make pull_submodules` #### - -updates the content of the submodules to what is probably the latest upstream code. - -#### `make pull` #### - -make a `make pull_submodules` and after that a `git pull`. if you have no remote tracking in your master branch, you can -execute this command as `make pull REMOTE=origin BRANCH=master` instead. - -### cleaning ### - -If you want to purge your working directory back to the status of upstream, following commands can be used (remember everything you've worked on is gone after these): - -1. `git reset --hard upstream/master` -2. `git clean -fdx` - -### rebasing ### - -For feature/topic branches, you should always used the `--rebase` flag to `git pull`, or if you are usually handling many temporary "to be in a github pull request" branches, run following to automate this: - -* `git config branch.autosetuprebase local` (see `man git-config` for more information) - -### handling merge conflicts ### - -If you're getting merge conflicts when merging, instead of editing the conflicted files manually, you can use the feature -`git mergetool`. Even though the default tool `xxdiff` looks awful/old, it's rather useful. - -Following are some commands that can be used there: - -* `Ctrl + Alt + M` - automerge as much as possible -* `b` - jump to next merge conflict -* `s` - change the order of the conflicted lines -* `u` - undo an merge -* `left mouse button` - mark a block to be the winner -* `middle mouse button` - mark a line to be the winner -* `Ctrl + S` - save -* `Ctrl + Q` - quit - -Questions? ----------- - -If you have any questions, please feel free to ask on the -[Developing jQuery Core forum](http://forum.jquery.com/developing-jquery-core) or in #jquery on irc.freenode.net. diff --git a/vendor/assets/components/jquery/bower.json b/vendor/assets/components/jquery/bower.json deleted file mode 100644 index 447100c991..0000000000 --- a/vendor/assets/components/jquery/bower.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "jquery", - "version": "1.11.0", - "main": "dist/jquery.js", - "license": "MIT", - "ignore": [ - "**/.*", - "build", - "speed", - "test", - "*.md", - "AUTHORS.txt", - "Gruntfile.js", - "package.json" - ], - "devDependencies": { - "sizzle": "1.10.16", - "requirejs": "~2.1.8", - "qunit": "~1.12.0", - "sinon": "~1.7.3" - }, - "keywords": [ - "jquery", - "javascript", - "library" - ] -} diff --git a/vendor/assets/components/jquery/build/freq.js b/vendor/assets/components/jquery/build/freq.js deleted file mode 100644 index 0549f6af47..0000000000 --- a/vendor/assets/components/jquery/build/freq.js +++ /dev/null @@ -1,79 +0,0 @@ -#! /usr/bin/env node - -var fs = require( "fs" ); - -function isEmptyObject( obj ) { - for ( var name in obj ) { - return false; - } - return true; -} -function extend( obj ) { - var dest = obj, - src = [].slice.call( arguments, 1 ); - - Object.keys( src ).forEach(function( key ) { - var copy = src[ key ]; - - for ( var prop in copy ) { - dest[ prop ] = copy[ prop ]; - } - }); - - return dest; -}; - -function charSort( obj, callback ) { - - var ordered = [], - table = {}, - copied; - - copied = extend({}, obj ); - - (function order() { - - var largest = 0, - c; - - for ( var i in obj ) { - if ( obj[ i ] >= largest ) { - largest = obj[ i ]; - c = i; - } - } - - ordered.push( c ); - delete obj[ c ]; - - if ( !isEmptyObject( obj ) ) { - order(); - } else { - ordered.forEach(function( val ) { - table[ val ] = copied[ val ]; - }); - - callback( table ); - } - - })(); -} -function charFrequency( src, callback ) { - var obj = {}; - - src.replace(/[^\w]|\d/gi, "").split("").forEach(function( c ) { - obj[ c ] ? ++obj[ c ] : ( obj[ c ] = 1 ); - }); - - return charSort( obj, callback ); -} - - -charFrequency( fs.readFileSync( "dist/jquery.min.js", "utf8" ), function( obj ) { - var chr; - - for ( chr in obj ) { - console.log( " " + chr + " " + obj[ chr ] ); - } -}); - diff --git a/vendor/assets/components/jquery/build/jshint-check.js b/vendor/assets/components/jquery/build/jshint-check.js deleted file mode 100644 index 2594539318..0000000000 --- a/vendor/assets/components/jquery/build/jshint-check.js +++ /dev/null @@ -1,37 +0,0 @@ -var jshint = require("./lib/jshint").JSHINT, - src = require("fs").readFileSync("dist/jquery.js", "utf8"), - config = { - evil: true, - browser: true, - wsh: true, - eqnull: true, - expr: true, - curly: true, - trailing: true, - undef: true, - smarttabs: true, - predef: [ - "define", - "DOMParser" - ], - maxerr: 100 - }; - -if ( jshint( src, config ) ) { - console.log("JSHint check passed."); -} else { - - console.log( "JSHint found errors." ); - - jshint.errors.forEach(function( e ) { - if ( !e ) { return; } - - var str = e.evidence ? e.evidence : "", - character = e.character === true ? "EOL" : "C" + e.character; - - if ( str ) { - str = str.replace( /\t/g, " " ).trim(); - console.log( " [L" + e.line + ":" + character + "] " + e.reason + "\n " + str + "\n"); - } - }); -} \ No newline at end of file diff --git a/vendor/assets/components/jquery/build/lib/jshint.js b/vendor/assets/components/jquery/build/lib/jshint.js deleted file mode 100644 index a1ec53adaa..0000000000 --- a/vendor/assets/components/jquery/build/lib/jshint.js +++ /dev/null @@ -1,4359 +0,0 @@ -/*! - * JSHint, by JSHint Community. - * - * Licensed under the same slightly modified MIT license that JSLint is. - * It stops evil-doers everywhere. - * - * JSHint is a derivative work of JSLint: - * - * Copyright (c) 2002 Douglas Crockford (www.JSLint.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 shall be used for Good, not Evil. - * - * 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. - * - * JSHint was forked from 2010-12-16 edition of JSLint. - * - */ - -/* - JSHINT is a global function. It takes two parameters. - - var myResult = JSHINT(source, option); - - The first parameter is either a string or an array of strings. If it is a - string, it will be split on '\n' or '\r'. If it is an array of strings, it - is assumed that each string represents one line. The source can be a - JavaScript text or a JSON text. - - The second parameter is an optional object of options which control the - operation of JSHINT. Most of the options are booleans: They are all - optional and have a default value of false. One of the options, predef, - can be an array of names, which will be used to declare global variables, - or an object whose keys are used as global names, with a boolean value - that determines if they are assignable. - - If it checks out, JSHINT returns true. Otherwise, it returns false. - - If false, you can inspect JSHINT.errors to find out the problems. - JSHINT.errors is an array of objects containing these members: - - { - line : The line (relative to 0) at which the lint was found - character : The character (relative to 0) at which the lint was found - reason : The problem - evidence : The text line in which the problem occurred - raw : The raw message before the details were inserted - a : The first detail - b : The second detail - c : The third detail - d : The fourth detail - } - - If a fatal error was found, a null will be the last element of the - JSHINT.errors array. - - You can request a Function Report, which shows all of the functions - and the parameters and vars that they use. This can be used to find - implied global variables and other problems. The report is in HTML and - can be inserted in an HTML . - - var myReport = JSHINT.report(limited); - - If limited is true, then the report will be limited to only errors. - - You can request a data structure which contains JSHint's results. - - var myData = JSHINT.data(); - - It returns a structure with this form: - - { - errors: [ - { - line: NUMBER, - character: NUMBER, - reason: STRING, - evidence: STRING - } - ], - functions: [ - name: STRING, - line: NUMBER, - last: NUMBER, - param: [ - STRING - ], - closure: [ - STRING - ], - var: [ - STRING - ], - exception: [ - STRING - ], - outer: [ - STRING - ], - unused: [ - STRING - ], - global: [ - STRING - ], - label: [ - STRING - ] - ], - globals: [ - STRING - ], - member: { - STRING: NUMBER - }, - unused: [ - { - name: STRING, - line: NUMBER - } - ], - implieds: [ - { - name: STRING, - line: NUMBER - } - ], - urls: [ - STRING - ], - json: BOOLEAN - } - - Empty arrays will not be included. - -*/ - -/*jshint - evil: true, nomen: false, onevar: false, regexp: false, strict: true, boss: true, - undef: true, maxlen: 100, indent:4 -*/ - -/*members "\b", "\t", "\n", "\f", "\r", "!=", "!==", "\"", "%", "(begin)", - "(breakage)", "(context)", "(error)", "(global)", "(identifier)", "(last)", - "(line)", "(loopage)", "(name)", "(onevar)", "(params)", "(scope)", - "(statement)", "(verb)", "*", "+", "++", "-", "--", "\/", "<", "<=", "==", - "===", ">", ">=", $, $$, $A, $F, $H, $R, $break, $continue, $w, Abstract, Ajax, - __filename, __dirname, ActiveXObject, Array, ArrayBuffer, ArrayBufferView, Audio, - Autocompleter, Assets, Boolean, Builder, Buffer, Browser, COM, CScript, Canvas, - CustomAnimation, Class, Control, Chain, Color, Cookie, Core, DataView, Date, - Debug, Draggable, Draggables, Droppables, Document, DomReady, DOMReady, Drag, - E, Enumerator, Enumerable, Element, Elements, Error, Effect, EvalError, Event, - Events, FadeAnimation, Field, Flash, Float32Array, Float64Array, Form, - FormField, Frame, FormData, Function, Fx, GetObject, Group, Hash, HotKey, - HTMLElement, HTMLAnchorElement, HTMLBaseElement, HTMLBlockquoteElement, - HTMLBodyElement, HTMLBRElement, HTMLButtonElement, HTMLCanvasElement, HTMLDirectoryElement, - HTMLDivElement, HTMLDListElement, HTMLFieldSetElement, - HTMLFontElement, HTMLFormElement, HTMLFrameElement, HTMLFrameSetElement, - HTMLHeadElement, HTMLHeadingElement, HTMLHRElement, HTMLHtmlElement, - HTMLIFrameElement, HTMLImageElement, HTMLInputElement, HTMLIsIndexElement, - HTMLLabelElement, HTMLLayerElement, HTMLLegendElement, HTMLLIElement, - HTMLLinkElement, HTMLMapElement, HTMLMenuElement, HTMLMetaElement, - HTMLModElement, HTMLObjectElement, HTMLOListElement, HTMLOptGroupElement, - HTMLOptionElement, HTMLParagraphElement, HTMLParamElement, HTMLPreElement, - HTMLQuoteElement, HTMLScriptElement, HTMLSelectElement, HTMLStyleElement, - HtmlTable, HTMLTableCaptionElement, HTMLTableCellElement, HTMLTableColElement, - HTMLTableElement, HTMLTableRowElement, HTMLTableSectionElement, - HTMLTextAreaElement, HTMLTitleElement, HTMLUListElement, HTMLVideoElement, - Iframe, IframeShim, Image, Int16Array, Int32Array, Int8Array, - Insertion, InputValidator, JSON, Keyboard, Locale, LN10, LN2, LOG10E, LOG2E, - MAX_VALUE, MIN_VALUE, Mask, Math, MenuItem, MoveAnimation, MooTools, Native, - NEGATIVE_INFINITY, Number, Object, ObjectRange, Option, Options, OverText, PI, - POSITIVE_INFINITY, PeriodicalExecuter, Point, Position, Prototype, RangeError, - Rectangle, ReferenceError, RegExp, ResizeAnimation, Request, RotateAnimation, - SQRT1_2, SQRT2, ScrollBar, ScriptEngine, ScriptEngineBuildVersion, - ScriptEngineMajorVersion, ScriptEngineMinorVersion, Scriptaculous, Scroller, - Slick, Slider, Selector, SharedWorker, String, Style, SyntaxError, Sortable, Sortables, - SortableObserver, Sound, Spinner, System, Swiff, Text, TextArea, Template, - Timer, Tips, Type, TypeError, Toggle, Try, "use strict", unescape, URI, URIError, URL, - VBArray, WSH, WScript, XDomainRequest, Web, Window, XMLDOM, XMLHttpRequest, XPathEvaluator, - XPathException, XPathExpression, XPathNamespace, XPathNSResolver, XPathResult, "\\", a, - addEventListener, address, alert, apply, applicationCache, arguments, arity, - asi, b, basic, basicToken, bitwise, block, blur, boolOptions, boss, browser, c, call, callee, - caller, cases, charAt, charCodeAt, character, clearInterval, clearTimeout, - close, closed, closure, comment, condition, confirm, console, constructor, - content, couch, create, css, curly, d, data, datalist, dd, debug, decodeURI, - decodeURIComponent, defaultStatus, defineClass, deserialize, devel, document, - dojo, dijit, dojox, define, else, emit, encodeURI, encodeURIComponent, - entityify, eqeqeq, eqnull, errors, es5, escape, esnext, eval, event, evidence, evil, - ex, exception, exec, exps, expr, exports, FileReader, first, floor, focus, - forin, fragment, frames, from, fromCharCode, fud, funcscope, funct, function, functions, - g, gc, getComputedStyle, getRow, getter, getterToken, GLOBAL, global, globals, globalstrict, - hasOwnProperty, help, history, i, id, identifier, immed, implieds, importPackage, include, - indent, indexOf, init, ins, instanceOf, isAlpha, isApplicationRunning, isArray, - isDigit, isFinite, isNaN, iterator, java, join, jshint, - JSHINT, json, jquery, jQuery, keys, label, labelled, last, lastsemic, laxbreak, laxcomma, - latedef, lbp, led, left, length, line, load, loadClass, localStorage, location, - log, loopfunc, m, match, maxerr, maxlen, member,message, meta, module, moveBy, - moveTo, mootools, multistr, name, navigator, new, newcap, noarg, node, noempty, nomen, - nonew, nonstandard, nud, onbeforeunload, onblur, onerror, onevar, onecase, onfocus, - onload, onresize, onunload, open, openDatabase, openURL, opener, opera, options, outer, param, - parent, parseFloat, parseInt, passfail, plusplus, predef, print, process, prompt, - proto, prototype, prototypejs, provides, push, quit, range, raw, reach, reason, regexp, - readFile, readUrl, regexdash, removeEventListener, replace, report, require, - reserved, resizeBy, resizeTo, resolvePath, resumeUpdates, respond, rhino, right, - runCommand, scroll, screen, scripturl, scrollBy, scrollTo, scrollbar, search, seal, - send, serialize, sessionStorage, setInterval, setTimeout, setter, setterToken, shift, slice, - smarttabs, sort, spawn, split, stack, status, start, strict, sub, substr, supernew, shadow, - supplant, sum, sync, test, toLowerCase, toString, toUpperCase, toint32, token, top, trailing, - type, typeOf, Uint16Array, Uint32Array, Uint8Array, undef, undefs, unused, urls, validthis, - value, valueOf, var, version, WebSocket, white, window, Worker, wsh*/ - -/*global exports: false */ - -// We build the application inside a function so that we produce only a single -// global variable. That function will be invoked immediately, and its return -// value is the JSHINT function itself. - -var JSHINT = (function () { - "use strict"; - - var anonname, // The guessed name for anonymous functions. - -// These are operators that should not be used with the ! operator. - - bang = { - '<' : true, - '<=' : true, - '==' : true, - '===': true, - '!==': true, - '!=' : true, - '>' : true, - '>=' : true, - '+' : true, - '-' : true, - '*' : true, - '/' : true, - '%' : true - }, - - // These are the JSHint boolean options. - boolOptions = { - asi : true, // if automatic semicolon insertion should be tolerated - bitwise : true, // if bitwise operators should not be allowed - boss : true, // if advanced usage of assignments should be allowed - browser : true, // if the standard browser globals should be predefined - couch : true, // if CouchDB globals should be predefined - curly : true, // if curly braces around all blocks should be required - debug : true, // if debugger statements should be allowed - devel : true, // if logging globals should be predefined (console, - // alert, etc.) - dojo : true, // if Dojo Toolkit globals should be predefined - eqeqeq : true, // if === should be required - eqnull : true, // if == null comparisons should be tolerated - es5 : true, // if ES5 syntax should be allowed - esnext : true, // if es.next specific syntax should be allowed - evil : true, // if eval should be allowed - expr : true, // if ExpressionStatement should be allowed as Programs - forin : true, // if for in statements must filter - funcscope : true, // if only function scope should be used for scope tests - globalstrict: true, // if global "use strict"; should be allowed (also - // enables 'strict') - immed : true, // if immediate invocations must be wrapped in parens - iterator : true, // if the `__iterator__` property should be allowed - jquery : true, // if jQuery globals should be predefined - lastsemic : true, // if semicolons may be ommitted for the trailing - // statements inside of a one-line blocks. - latedef : true, // if the use before definition should not be tolerated - laxbreak : true, // if line breaks should not be checked - laxcomma : true, // if line breaks should not be checked around commas - loopfunc : true, // if functions should be allowed to be defined within - // loops - mootools : true, // if MooTools globals should be predefined - multistr : true, // allow multiline strings - newcap : true, // if constructor names must be capitalized - noarg : true, // if arguments.caller and arguments.callee should be - // disallowed - node : true, // if the Node.js environment globals should be - // predefined - noempty : true, // if empty blocks should be disallowed - nonew : true, // if using `new` for side-effects should be disallowed - nonstandard : true, // if non-standard (but widely adopted) globals should - // be predefined - nomen : true, // if names should be checked - onevar : true, // if only one var statement per function should be - // allowed - onecase : true, // if one case switch statements should be allowed - passfail : true, // if the scan should stop on first error - plusplus : true, // if increment/decrement should not be allowed - proto : true, // if the `__proto__` property should be allowed - prototypejs : true, // if Prototype and Scriptaculous globals should be - // predefined - regexdash : true, // if unescaped first/last dash (-) inside brackets - // should be tolerated - regexp : true, // if the . should not be allowed in regexp literals - rhino : true, // if the Rhino environment globals should be predefined - undef : true, // if variables should be declared before used - scripturl : true, // if script-targeted URLs should be tolerated - shadow : true, // if variable shadowing should be tolerated - smarttabs : true, // if smarttabs should be tolerated - // (http://www.emacswiki.org/emacs/SmartTabs) - strict : true, // require the "use strict"; pragma - sub : true, // if all forms of subscript notation are tolerated - supernew : true, // if `new function () { ... };` and `new Object;` - // should be tolerated - trailing : true, // if trailing whitespace rules apply - validthis : true, // if 'this' inside a non-constructor function is valid. - // This is a function scoped option only. - white : true, // if strict whitespace rules apply - wsh : true // if the Windows Scripting Host environment globals - // should be predefined - }, - - // browser contains a set of global names which are commonly provided by a - // web browser environment. - browser = { - ArrayBuffer : false, - ArrayBufferView : false, - Audio : false, - addEventListener : false, - applicationCache : false, - blur : false, - clearInterval : false, - clearTimeout : false, - close : false, - closed : false, - DataView : false, - defaultStatus : false, - document : false, - event : false, - FileReader : false, - Float32Array : false, - Float64Array : false, - FormData : false, - focus : false, - frames : false, - getComputedStyle : false, - HTMLElement : false, - HTMLAnchorElement : false, - HTMLBaseElement : false, - HTMLBlockquoteElement : false, - HTMLBodyElement : false, - HTMLBRElement : false, - HTMLButtonElement : false, - HTMLCanvasElement : false, - HTMLDirectoryElement : false, - HTMLDivElement : false, - HTMLDListElement : false, - HTMLFieldSetElement : false, - HTMLFontElement : false, - HTMLFormElement : false, - HTMLFrameElement : false, - HTMLFrameSetElement : false, - HTMLHeadElement : false, - HTMLHeadingElement : false, - HTMLHRElement : false, - HTMLHtmlElement : false, - HTMLIFrameElement : false, - HTMLImageElement : false, - HTMLInputElement : false, - HTMLIsIndexElement : false, - HTMLLabelElement : false, - HTMLLayerElement : false, - HTMLLegendElement : false, - HTMLLIElement : false, - HTMLLinkElement : false, - HTMLMapElement : false, - HTMLMenuElement : false, - HTMLMetaElement : false, - HTMLModElement : false, - HTMLObjectElement : false, - HTMLOListElement : false, - HTMLOptGroupElement : false, - HTMLOptionElement : false, - HTMLParagraphElement : false, - HTMLParamElement : false, - HTMLPreElement : false, - HTMLQuoteElement : false, - HTMLScriptElement : false, - HTMLSelectElement : false, - HTMLStyleElement : false, - HTMLTableCaptionElement : false, - HTMLTableCellElement : false, - HTMLTableColElement : false, - HTMLTableElement : false, - HTMLTableRowElement : false, - HTMLTableSectionElement : false, - HTMLTextAreaElement : false, - HTMLTitleElement : false, - HTMLUListElement : false, - HTMLVideoElement : false, - history : false, - Int16Array : false, - Int32Array : false, - Int8Array : false, - Image : false, - length : false, - localStorage : false, - location : false, - moveBy : false, - moveTo : false, - name : false, - navigator : false, - onbeforeunload : true, - onblur : true, - onerror : true, - onfocus : true, - onload : true, - onresize : true, - onunload : true, - open : false, - openDatabase : false, - opener : false, - Option : false, - parent : false, - print : false, - removeEventListener : false, - resizeBy : false, - resizeTo : false, - screen : false, - scroll : false, - scrollBy : false, - scrollTo : false, - sessionStorage : false, - setInterval : false, - setTimeout : false, - SharedWorker : false, - status : false, - top : false, - Uint16Array : false, - Uint32Array : false, - Uint8Array : false, - WebSocket : false, - window : false, - Worker : false, - XMLHttpRequest : false, - XPathEvaluator : false, - XPathException : false, - XPathExpression : false, - XPathNamespace : false, - XPathNSResolver : false, - XPathResult : false - }, - - couch = { - "require" : false, - respond : false, - getRow : false, - emit : false, - send : false, - start : false, - sum : false, - log : false, - exports : false, - module : false, - provides : false - }, - - devel = { - alert : false, - confirm : false, - console : false, - Debug : false, - opera : false, - prompt : false - }, - - dojo = { - dojo : false, - dijit : false, - dojox : false, - define : false, - "require" : false - }, - - escapes = { - '\b': '\\b', - '\t': '\\t', - '\n': '\\n', - '\f': '\\f', - '\r': '\\r', - '"' : '\\"', - '/' : '\\/', - '\\': '\\\\' - }, - - funct, // The current function - - functionicity = [ - 'closure', 'exception', 'global', 'label', - 'outer', 'unused', 'var' - ], - - functions, // All of the functions - - global, // The global scope - implied, // Implied globals - inblock, - indent, - jsonmode, - - jquery = { - '$' : false, - jQuery : false - }, - - lines, - lookahead, - member, - membersOnly, - - mootools = { - '$' : false, - '$$' : false, - Assets : false, - Browser : false, - Chain : false, - Class : false, - Color : false, - Cookie : false, - Core : false, - Document : false, - DomReady : false, - DOMReady : false, - Drag : false, - Element : false, - Elements : false, - Event : false, - Events : false, - Fx : false, - Group : false, - Hash : false, - HtmlTable : false, - Iframe : false, - IframeShim : false, - InputValidator : false, - instanceOf : false, - Keyboard : false, - Locale : false, - Mask : false, - MooTools : false, - Native : false, - Options : false, - OverText : false, - Request : false, - Scroller : false, - Slick : false, - Slider : false, - Sortables : false, - Spinner : false, - Swiff : false, - Tips : false, - Type : false, - typeOf : false, - URI : false, - Window : false - }, - - nexttoken, - - node = { - __filename : false, - __dirname : false, - Buffer : false, - console : false, - exports : false, - GLOBAL : false, - global : false, - module : false, - process : false, - require : false, - setTimeout : false, - clearTimeout : false, - setInterval : false, - clearInterval : false - }, - - noreach, - option, - predefined, // Global variables defined by option - prereg, - prevtoken, - - prototypejs = { - '$' : false, - '$$' : false, - '$A' : false, - '$F' : false, - '$H' : false, - '$R' : false, - '$break' : false, - '$continue' : false, - '$w' : false, - Abstract : false, - Ajax : false, - Class : false, - Enumerable : false, - Element : false, - Event : false, - Field : false, - Form : false, - Hash : false, - Insertion : false, - ObjectRange : false, - PeriodicalExecuter: false, - Position : false, - Prototype : false, - Selector : false, - Template : false, - Toggle : false, - Try : false, - Autocompleter : false, - Builder : false, - Control : false, - Draggable : false, - Draggables : false, - Droppables : false, - Effect : false, - Sortable : false, - SortableObserver : false, - Sound : false, - Scriptaculous : false - }, - - rhino = { - defineClass : false, - deserialize : false, - gc : false, - help : false, - importPackage: false, - "java" : false, - load : false, - loadClass : false, - print : false, - quit : false, - readFile : false, - readUrl : false, - runCommand : false, - seal : false, - serialize : false, - spawn : false, - sync : false, - toint32 : false, - version : false - }, - - scope, // The current scope - stack, - - // standard contains the global names that are provided by the - // ECMAScript standard. - standard = { - Array : false, - Boolean : false, - Date : false, - decodeURI : false, - decodeURIComponent : false, - encodeURI : false, - encodeURIComponent : false, - Error : false, - 'eval' : false, - EvalError : false, - Function : false, - hasOwnProperty : false, - isFinite : false, - isNaN : false, - JSON : false, - Math : false, - Number : false, - Object : false, - parseInt : false, - parseFloat : false, - RangeError : false, - ReferenceError : false, - RegExp : false, - String : false, - SyntaxError : false, - TypeError : false, - URIError : false - }, - - // widely adopted global names that are not part of ECMAScript standard - nonstandard = { - escape : false, - unescape : false - }, - - standard_member = { - E : true, - LN2 : true, - LN10 : true, - LOG2E : true, - LOG10E : true, - MAX_VALUE : true, - MIN_VALUE : true, - NEGATIVE_INFINITY : true, - PI : true, - POSITIVE_INFINITY : true, - SQRT1_2 : true, - SQRT2 : true - }, - - directive, - syntax = {}, - tab, - token, - urls, - useESNextSyntax, - warnings, - - wsh = { - ActiveXObject : true, - Enumerator : true, - GetObject : true, - ScriptEngine : true, - ScriptEngineBuildVersion : true, - ScriptEngineMajorVersion : true, - ScriptEngineMinorVersion : true, - VBArray : true, - WSH : true, - WScript : true, - XDomainRequest : true - }; - - // Regular expressions. Some of these are stupidly long. - var ax, cx, tx, nx, nxg, lx, ix, jx, ft; - (function () { - /*jshint maxlen:300 */ - - // unsafe comment or string - ax = /@cc|<\/?|script|\]\s*\]|<\s*!|</i; - - // unsafe characters that are silently deleted by one or more browsers - cx = /[\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/; - - // token - tx = /^\s*([(){}\[.,:;'"~\?\]#@]|==?=?|\/(\*(jshint|jslint|members?|global)?|=|\/)?|\*[\/=]?|\+(?:=|\++)?|-(?:=|-+)?|%=?|&[&=]?|\|[|=]?|>>?>?=?|<([\/=!]|\!(\[|--)?|<=?)?|\^=?|\!=?=?|[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+([xX][0-9a-fA-F]+|\.[0-9]*)?([eE][+\-]?[0-9]+)?)/; - - // characters in strings that need escapement - nx = /[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/; - nxg = /[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; - - // star slash - lx = /\*\/|\/\*/; - - // identifier - ix = /^([a-zA-Z_$][a-zA-Z0-9_$]*)$/; - - // javascript url - jx = /^(?:javascript|jscript|ecmascript|vbscript|mocha|livescript)\s*:/i; - - // catches /* falls through */ comments - ft = /^\s*\/\*\s*falls\sthrough\s*\*\/\s*$/; - }()); - - function F() {} // Used by Object.create - - function is_own(object, name) { - -// The object.hasOwnProperty method fails when the property under consideration -// is named 'hasOwnProperty'. So we have to use this more convoluted form. - - return Object.prototype.hasOwnProperty.call(object, name); - } - -// Provide critical ES5 functions to ES3. - - if (typeof Array.isArray !== 'function') { - Array.isArray = function (o) { - return Object.prototype.toString.apply(o) === '[object Array]'; - }; - } - - if (typeof Object.create !== 'function') { - Object.create = function (o) { - F.prototype = o; - return new F(); - }; - } - - if (typeof Object.keys !== 'function') { - Object.keys = function (o) { - var a = [], k; - for (k in o) { - if (is_own(o, k)) { - a.push(k); - } - } - return a; - }; - } - -// Non standard methods - - if (typeof String.prototype.entityify !== 'function') { - String.prototype.entityify = function () { - return this - .replace(/&/g, '&') - .replace(//g, '>'); - }; - } - - if (typeof String.prototype.isAlpha !== 'function') { - String.prototype.isAlpha = function () { - return (this >= 'a' && this <= 'z\uffff') || - (this >= 'A' && this <= 'Z\uffff'); - }; - } - - if (typeof String.prototype.isDigit !== 'function') { - String.prototype.isDigit = function () { - return (this >= '0' && this <= '9'); - }; - } - - if (typeof String.prototype.supplant !== 'function') { - String.prototype.supplant = function (o) { - return this.replace(/\{([^{}]*)\}/g, function (a, b) { - var r = o[b]; - return typeof r === 'string' || typeof r === 'number' ? r : a; - }); - }; - } - - if (typeof String.prototype.name !== 'function') { - String.prototype.name = function () { - -// If the string looks like an identifier, then we can return it as is. -// If the string contains no control characters, no quote characters, and no -// backslash characters, then we can simply slap some quotes around it. -// Otherwise we must also replace the offending characters with safe -// sequences. - - if (ix.test(this)) { - return this; - } - if (nx.test(this)) { - return '"' + this.replace(nxg, function (a) { - var c = escapes[a]; - if (c) { - return c; - } - return '\\u' + ('0000' + a.charCodeAt().toString(16)).slice(-4); - }) + '"'; - } - return '"' + this + '"'; - }; - } - - - function combine(t, o) { - var n; - for (n in o) { - if (is_own(o, n)) { - t[n] = o[n]; - } - } - } - - function assume() { - if (option.couch) { - combine(predefined, couch); - } - - if (option.rhino) { - combine(predefined, rhino); - } - - if (option.prototypejs) { - combine(predefined, prototypejs); - } - - if (option.node) { - combine(predefined, node); - } - - if (option.devel) { - combine(predefined, devel); - } - - if (option.dojo) { - combine(predefined, dojo); - } - - if (option.browser) { - combine(predefined, browser); - } - - if (option.nonstandard) { - combine(predefined, nonstandard); - } - - if (option.jquery) { - combine(predefined, jquery); - } - - if (option.mootools) { - combine(predefined, mootools); - } - - if (option.wsh) { - combine(predefined, wsh); - } - - if (option.esnext) { - useESNextSyntax(); - } - - if (option.globalstrict && option.strict !== false) { - option.strict = true; - } - } - - - // Produce an error warning. - function quit(message, line, chr) { - var percentage = Math.floor((line / lines.length) * 100); - - throw { - name: 'JSHintError', - line: line, - character: chr, - message: message + " (" + percentage + "% scanned).", - raw: message - }; - } - - function isundef(scope, m, t, a) { - return JSHINT.undefs.push([scope, m, t, a]); - } - - function warning(m, t, a, b, c, d) { - var ch, l, w; - t = t || nexttoken; - if (t.id === '(end)') { // `~ - t = token; - } - l = t.line || 0; - ch = t.from || 0; - w = { - id: '(error)', - raw: m, - evidence: lines[l - 1] || '', - line: l, - character: ch, - a: a, - b: b, - c: c, - d: d - }; - w.reason = m.supplant(w); - JSHINT.errors.push(w); - if (option.passfail) { - quit('Stopping. ', l, ch); - } - warnings += 1; - if (warnings >= option.maxerr) { - quit("Too many errors.", l, ch); - } - return w; - } - - function warningAt(m, l, ch, a, b, c, d) { - return warning(m, { - line: l, - from: ch - }, a, b, c, d); - } - - function error(m, t, a, b, c, d) { - var w = warning(m, t, a, b, c, d); - } - - function errorAt(m, l, ch, a, b, c, d) { - return error(m, { - line: l, - from: ch - }, a, b, c, d); - } - - - -// lexical analysis and token construction - - var lex = (function lex() { - var character, from, line, s; - -// Private lex methods - - function nextLine() { - var at, - tw; // trailing whitespace check - - if (line >= lines.length) - return false; - - character = 1; - s = lines[line]; - line += 1; - - // If smarttabs option is used check for spaces followed by tabs only. - // Otherwise check for any occurence of mixed tabs and spaces. - if (option.smarttabs) - at = s.search(/ \t/); - else - at = s.search(/ \t|\t /); - - if (at >= 0) - warningAt("Mixed spaces and tabs.", line, at + 1); - - s = s.replace(/\t/g, tab); - at = s.search(cx); - - if (at >= 0) - warningAt("Unsafe character.", line, at); - - if (option.maxlen && option.maxlen < s.length) - warningAt("Line too long.", line, s.length); - - // Check for trailing whitespaces - tw = /\s+$/.test(s); - if (option.trailing && tw && !/^\s+$/.test(s)) { - warningAt("Trailing whitespace.", line, tw); - } - return true; - } - -// Produce a token object. The token inherits from a syntax symbol. - - function it(type, value) { - var i, t; - if (type === '(color)' || type === '(range)') { - t = {type: type}; - } else if (type === '(punctuator)' || - (type === '(identifier)' && is_own(syntax, value))) { - t = syntax[value] || syntax['(error)']; - } else { - t = syntax[type]; - } - t = Object.create(t); - if (type === '(string)' || type === '(range)') { - if (!option.scripturl && jx.test(value)) { - warningAt("Script URL.", line, from); - } - } - if (type === '(identifier)') { - t.identifier = true; - if (value === '__proto__' && !option.proto) { - warningAt("The '{a}' property is deprecated.", - line, from, value); - } else if (value === '__iterator__' && !option.iterator) { - warningAt("'{a}' is only available in JavaScript 1.7.", - line, from, value); - } else if (option.nomen && (value.charAt(0) === '_' || - value.charAt(value.length - 1) === '_')) { - if (!option.node || token.id === '.' || - (value !== '__dirname' && value !== '__filename')) { - warningAt("Unexpected {a} in '{b}'.", line, from, "dangling '_'", value); - } - } - } - t.value = value; - t.line = line; - t.character = character; - t.from = from; - i = t.id; - if (i !== '(endline)') { - prereg = i && - (('(,=:[!&|?{};'.indexOf(i.charAt(i.length - 1)) >= 0) || - i === 'return' || - i === 'case'); - } - return t; - } - - // Public lex methods - return { - init: function (source) { - if (typeof source === 'string') { - lines = source - .replace(/\r\n/g, '\n') - .replace(/\r/g, '\n') - .split('\n'); - } else { - lines = source; - } - - // If the first line is a shebang (#!), make it a blank and move on. - // Shebangs are used by Node scripts. - if (lines[0] && lines[0].substr(0, 2) === '#!') - lines[0] = ''; - - line = 0; - nextLine(); - from = 1; - }, - - range: function (begin, end) { - var c, value = ''; - from = character; - if (s.charAt(0) !== begin) { - errorAt("Expected '{a}' and instead saw '{b}'.", - line, character, begin, s.charAt(0)); - } - for (;;) { - s = s.slice(1); - character += 1; - c = s.charAt(0); - switch (c) { - case '': - errorAt("Missing '{a}'.", line, character, c); - break; - case end: - s = s.slice(1); - character += 1; - return it('(range)', value); - case '\\': - warningAt("Unexpected '{a}'.", line, character, c); - } - value += c; - } - - }, - - - // token -- this is called by advance to get the next token - token: function () { - var b, c, captures, d, depth, high, i, l, low, q, t, isLiteral, isInRange; - - function match(x) { - var r = x.exec(s), r1; - if (r) { - l = r[0].length; - r1 = r[1]; - c = r1.charAt(0); - s = s.substr(l); - from = character + l - r1.length; - character += l; - return r1; - } - } - - function string(x) { - var c, j, r = '', allowNewLine = false; - - if (jsonmode && x !== '"') { - warningAt("Strings must use doublequote.", - line, character); - } - - function esc(n) { - var i = parseInt(s.substr(j + 1, n), 16); - j += n; - if (i >= 32 && i <= 126 && - i !== 34 && i !== 92 && i !== 39) { - warningAt("Unnecessary escapement.", line, character); - } - character += n; - c = String.fromCharCode(i); - } - j = 0; -unclosedString: for (;;) { - while (j >= s.length) { - j = 0; - - var cl = line, cf = from; - if (!nextLine()) { - errorAt("Unclosed string.", cl, cf); - break unclosedString; - } - - if (allowNewLine) { - allowNewLine = false; - } else { - warningAt("Unclosed string.", cl, cf); - } - } - c = s.charAt(j); - if (c === x) { - character += 1; - s = s.substr(j + 1); - return it('(string)', r, x); - } - if (c < ' ') { - if (c === '\n' || c === '\r') { - break; - } - warningAt("Control character in string: {a}.", - line, character + j, s.slice(0, j)); - } else if (c === '\\') { - j += 1; - character += 1; - c = s.charAt(j); - switch (c) { - case '\\': - case '"': - case '/': - break; - case '\'': - if (jsonmode) { - warningAt("Avoid \\'.", line, character); - } - break; - case 'b': - c = '\b'; - break; - case 'f': - c = '\f'; - break; - case 'n': - c = '\n'; - break; - case 'r': - c = '\r'; - break; - case 't': - c = '\t'; - break; - case 'u': - esc(4); - break; - case 'v': - if (jsonmode) { - warningAt("Avoid \\v.", line, character); - } - c = '\v'; - break; - case 'x': - if (jsonmode) { - warningAt("Avoid \\x-.", line, character); - } - esc(2); - break; - case '': - // last character is escape character - // always allow new line if escaped, but show - // warning if option is not set - allowNewLine = true; - if (option.multistr) { - if (jsonmode) { - warningAt("Avoid EOL escapement.", line, character); - } - c = ''; - character -= 1; - break; - } - warningAt("Bad escapement of EOL. Use option multistr if needed.", - line, character); - break; - default: - warningAt("Bad escapement.", line, character); - } - } - r += c; - character += 1; - j += 1; - } - } - - for (;;) { - if (!s) { - return it(nextLine() ? '(endline)' : '(end)', ''); - } - t = match(tx); - if (!t) { - t = ''; - c = ''; - while (s && s < '!') { - s = s.substr(1); - } - if (s) { - errorAt("Unexpected '{a}'.", line, character, s.substr(0, 1)); - s = ''; - } - } else { - - // identifier - - if (c.isAlpha() || c === '_' || c === '$') { - return it('(identifier)', t); - } - - // number - - if (c.isDigit()) { - if (!isFinite(Number(t))) { - warningAt("Bad number '{a}'.", - line, character, t); - } - if (s.substr(0, 1).isAlpha()) { - warningAt("Missing space after '{a}'.", - line, character, t); - } - if (c === '0') { - d = t.substr(1, 1); - if (d.isDigit()) { - if (token.id !== '.') { - warningAt("Don't use extra leading zeros '{a}'.", - line, character, t); - } - } else if (jsonmode && (d === 'x' || d === 'X')) { - warningAt("Avoid 0x-. '{a}'.", - line, character, t); - } - } - if (t.substr(t.length - 1) === '.') { - warningAt( -"A trailing decimal point can be confused with a dot '{a}'.", line, character, t); - } - return it('(number)', t); - } - switch (t) { - - // string - - case '"': - case "'": - return string(t); - - // // comment - - case '//': - s = ''; - token.comment = true; - break; - - // /* comment - - case '/*': - for (;;) { - i = s.search(lx); - if (i >= 0) { - break; - } - if (!nextLine()) { - errorAt("Unclosed comment.", line, character); - } - } - character += i + 2; - if (s.substr(i, 1) === '/') { - errorAt("Nested comment.", line, character); - } - s = s.substr(i + 2); - token.comment = true; - break; - - // /*members /*jshint /*global - - case '/*members': - case '/*member': - case '/*jshint': - case '/*jslint': - case '/*global': - case '*/': - return { - value: t, - type: 'special', - line: line, - character: character, - from: from - }; - - case '': - break; - // / - case '/': - if (token.id === '/=') { - errorAt("A regular expression literal can be confused with '/='.", - line, from); - } - if (prereg) { - depth = 0; - captures = 0; - l = 0; - for (;;) { - b = true; - c = s.charAt(l); - l += 1; - switch (c) { - case '': - errorAt("Unclosed regular expression.", line, from); - return quit('Stopping.', line, from); - case '/': - if (depth > 0) { - warningAt("{a} unterminated regular expression " + - "group(s).", line, from + l, depth); - } - c = s.substr(0, l - 1); - q = { - g: true, - i: true, - m: true - }; - while (q[s.charAt(l)] === true) { - q[s.charAt(l)] = false; - l += 1; - } - character += l; - s = s.substr(l); - q = s.charAt(0); - if (q === '/' || q === '*') { - errorAt("Confusing regular expression.", - line, from); - } - return it('(regexp)', c); - case '\\': - c = s.charAt(l); - if (c < ' ') { - warningAt( -"Unexpected control character in regular expression.", line, from + l); - } else if (c === '<') { - warningAt( -"Unexpected escaped character '{a}' in regular expression.", line, from + l, c); - } - l += 1; - break; - case '(': - depth += 1; - b = false; - if (s.charAt(l) === '?') { - l += 1; - switch (s.charAt(l)) { - case ':': - case '=': - case '!': - l += 1; - break; - default: - warningAt( -"Expected '{a}' and instead saw '{b}'.", line, from + l, ':', s.charAt(l)); - } - } else { - captures += 1; - } - break; - case '|': - b = false; - break; - case ')': - if (depth === 0) { - warningAt("Unescaped '{a}'.", - line, from + l, ')'); - } else { - depth -= 1; - } - break; - case ' ': - q = 1; - while (s.charAt(l) === ' ') { - l += 1; - q += 1; - } - if (q > 1) { - warningAt( -"Spaces are hard to count. Use {{a}}.", line, from + l, q); - } - break; - case '[': - c = s.charAt(l); - if (c === '^') { - l += 1; - if (option.regexp) { - warningAt("Insecure '{a}'.", - line, from + l, c); - } else if (s.charAt(l) === ']') { - errorAt("Unescaped '{a}'.", - line, from + l, '^'); - } - } - if (c === ']') { - warningAt("Empty class.", line, - from + l - 1); - } - isLiteral = false; - isInRange = false; -klass: do { - c = s.charAt(l); - l += 1; - switch (c) { - case '[': - case '^': - warningAt("Unescaped '{a}'.", - line, from + l, c); - if (isInRange) { - isInRange = false; - } else { - isLiteral = true; - } - break; - case '-': - if (isLiteral && !isInRange) { - isLiteral = false; - isInRange = true; - } else if (isInRange) { - isInRange = false; - } else if (s.charAt(l) === ']') { - isInRange = true; - } else { - if (option.regexdash !== (l === 2 || (l === 3 && - s.charAt(1) === '^'))) { - warningAt("Unescaped '{a}'.", - line, from + l - 1, '-'); - } - isLiteral = true; - } - break; - case ']': - if (isInRange && !option.regexdash) { - warningAt("Unescaped '{a}'.", - line, from + l - 1, '-'); - } - break klass; - case '\\': - c = s.charAt(l); - if (c < ' ') { - warningAt( -"Unexpected control character in regular expression.", line, from + l); - } else if (c === '<') { - warningAt( -"Unexpected escaped character '{a}' in regular expression.", line, from + l, c); - } - l += 1; - - // \w, \s and \d are never part of a character range - if (/[wsd]/i.test(c)) { - if (isInRange) { - warningAt("Unescaped '{a}'.", - line, from + l, '-'); - isInRange = false; - } - isLiteral = false; - } else if (isInRange) { - isInRange = false; - } else { - isLiteral = true; - } - break; - case '/': - warningAt("Unescaped '{a}'.", - line, from + l - 1, '/'); - - if (isInRange) { - isInRange = false; - } else { - isLiteral = true; - } - break; - case '<': - if (isInRange) { - isInRange = false; - } else { - isLiteral = true; - } - break; - default: - if (isInRange) { - isInRange = false; - } else { - isLiteral = true; - } - } - } while (c); - break; - case '.': - if (option.regexp) { - warningAt("Insecure '{a}'.", line, - from + l, c); - } - break; - case ']': - case '?': - case '{': - case '}': - case '+': - case '*': - warningAt("Unescaped '{a}'.", line, - from + l, c); - } - if (b) { - switch (s.charAt(l)) { - case '?': - case '+': - case '*': - l += 1; - if (s.charAt(l) === '?') { - l += 1; - } - break; - case '{': - l += 1; - c = s.charAt(l); - if (c < '0' || c > '9') { - warningAt( -"Expected a number and instead saw '{a}'.", line, from + l, c); - } - l += 1; - low = +c; - for (;;) { - c = s.charAt(l); - if (c < '0' || c > '9') { - break; - } - l += 1; - low = +c + (low * 10); - } - high = low; - if (c === ',') { - l += 1; - high = Infinity; - c = s.charAt(l); - if (c >= '0' && c <= '9') { - l += 1; - high = +c; - for (;;) { - c = s.charAt(l); - if (c < '0' || c > '9') { - break; - } - l += 1; - high = +c + (high * 10); - } - } - } - if (s.charAt(l) !== '}') { - warningAt( -"Expected '{a}' and instead saw '{b}'.", line, from + l, '}', c); - } else { - l += 1; - } - if (s.charAt(l) === '?') { - l += 1; - } - if (low > high) { - warningAt( -"'{a}' should not be greater than '{b}'.", line, from + l, low, high); - } - } - } - } - c = s.substr(0, l - 1); - character += l; - s = s.substr(l); - return it('(regexp)', c); - } - return it('(punctuator)', t); - - // punctuator - - case '#': - return it('(punctuator)', t); - default: - return it('(punctuator)', t); - } - } - } - } - }; - }()); - - - function addlabel(t, type) { - - if (t === 'hasOwnProperty') { - warning("'hasOwnProperty' is a really bad name."); - } - -// Define t in the current function in the current scope. - if (is_own(funct, t) && !funct['(global)']) { - if (funct[t] === true) { - if (option.latedef) - warning("'{a}' was used before it was defined.", nexttoken, t); - } else { - if (!option.shadow && type !== "exception") - warning("'{a}' is already defined.", nexttoken, t); - } - } - - funct[t] = type; - if (funct['(global)']) { - global[t] = funct; - if (is_own(implied, t)) { - if (option.latedef) - warning("'{a}' was used before it was defined.", nexttoken, t); - delete implied[t]; - } - } else { - scope[t] = funct; - } - } - - - function doOption() { - var b, obj, filter, o = nexttoken.value, t, v; - switch (o) { - case '*/': - error("Unbegun comment."); - break; - case '/*members': - case '/*member': - o = '/*members'; - if (!membersOnly) { - membersOnly = {}; - } - obj = membersOnly; - break; - case '/*jshint': - case '/*jslint': - obj = option; - filter = boolOptions; - break; - case '/*global': - obj = predefined; - break; - default: - error("What?"); - } - t = lex.token(); -loop: for (;;) { - for (;;) { - if (t.type === 'special' && t.value === '*/') { - break loop; - } - if (t.id !== '(endline)' && t.id !== ',') { - break; - } - t = lex.token(); - } - if (t.type !== '(string)' && t.type !== '(identifier)' && - o !== '/*members') { - error("Bad option.", t); - } - v = lex.token(); - if (v.id === ':') { - v = lex.token(); - if (obj === membersOnly) { - error("Expected '{a}' and instead saw '{b}'.", - t, '*/', ':'); - } - if (t.value === 'indent' && (o === '/*jshint' || o === '/*jslint')) { - b = +v.value; - if (typeof b !== 'number' || !isFinite(b) || b <= 0 || - Math.floor(b) !== b) { - error("Expected a small integer and instead saw '{a}'.", - v, v.value); - } - obj.white = true; - obj.indent = b; - } else if (t.value === 'maxerr' && (o === '/*jshint' || o === '/*jslint')) { - b = +v.value; - if (typeof b !== 'number' || !isFinite(b) || b <= 0 || - Math.floor(b) !== b) { - error("Expected a small integer and instead saw '{a}'.", - v, v.value); - } - obj.maxerr = b; - } else if (t.value === 'maxlen' && (o === '/*jshint' || o === '/*jslint')) { - b = +v.value; - if (typeof b !== 'number' || !isFinite(b) || b <= 0 || - Math.floor(b) !== b) { - error("Expected a small integer and instead saw '{a}'.", - v, v.value); - } - obj.maxlen = b; - } else if (t.value === 'validthis') { - if (funct['(global)']) { - error("Option 'validthis' can't be used in a global scope."); - } else { - if (v.value === 'true' || v.value === 'false') - obj[t.value] = v.value === 'true'; - else - error("Bad option value.", v); - } - } else if (v.value === 'true') { - obj[t.value] = true; - } else if (v.value === 'false') { - obj[t.value] = false; - } else { - error("Bad option value.", v); - } - t = lex.token(); - } else { - if (o === '/*jshint' || o === '/*jslint') { - error("Missing option value.", t); - } - obj[t.value] = false; - t = v; - } - } - if (filter) { - assume(); - } - } - - -// We need a peek function. If it has an argument, it peeks that much farther -// ahead. It is used to distinguish -// for ( var i in ... -// from -// for ( var i = ... - - function peek(p) { - var i = p || 0, j = 0, t; - - while (j <= i) { - t = lookahead[j]; - if (!t) { - t = lookahead[j] = lex.token(); - } - j += 1; - } - return t; - } - - - -// Produce the next token. It looks for programming errors. - - function advance(id, t) { - switch (token.id) { - case '(number)': - if (nexttoken.id === '.') { - warning("A dot following a number can be confused with a decimal point.", token); - } - break; - case '-': - if (nexttoken.id === '-' || nexttoken.id === '--') { - warning("Confusing minusses."); - } - break; - case '+': - if (nexttoken.id === '+' || nexttoken.id === '++') { - warning("Confusing plusses."); - } - break; - } - - if (token.type === '(string)' || token.identifier) { - anonname = token.value; - } - - if (id && nexttoken.id !== id) { - if (t) { - if (nexttoken.id === '(end)') { - warning("Unmatched '{a}'.", t, t.id); - } else { - warning("Expected '{a}' to match '{b}' from line {c} and instead saw '{d}'.", - nexttoken, id, t.id, t.line, nexttoken.value); - } - } else if (nexttoken.type !== '(identifier)' || - nexttoken.value !== id) { - warning("Expected '{a}' and instead saw '{b}'.", - nexttoken, id, nexttoken.value); - } - } - - prevtoken = token; - token = nexttoken; - for (;;) { - nexttoken = lookahead.shift() || lex.token(); - if (nexttoken.id === '(end)' || nexttoken.id === '(error)') { - return; - } - if (nexttoken.type === 'special') { - doOption(); - } else { - if (nexttoken.id !== '(endline)') { - break; - } - } - } - } - - -// This is the heart of JSHINT, the Pratt parser. In addition to parsing, it -// is looking for ad hoc lint patterns. We add .fud to Pratt's model, which is -// like .nud except that it is only used on the first token of a statement. -// Having .fud makes it much easier to define statement-oriented languages like -// JavaScript. I retained Pratt's nomenclature. - -// .nud Null denotation -// .fud First null denotation -// .led Left denotation -// lbp Left binding power -// rbp Right binding power - -// They are elements of the parsing method called Top Down Operator Precedence. - - function expression(rbp, initial) { - var left, isArray = false; - - if (nexttoken.id === '(end)') - error("Unexpected early end of program.", token); - - advance(); - if (initial) { - anonname = 'anonymous'; - funct['(verb)'] = token.value; - } - if (initial === true && token.fud) { - left = token.fud(); - } else { - if (token.nud) { - left = token.nud(); - } else { - if (nexttoken.type === '(number)' && token.id === '.') { - warning("A leading decimal point can be confused with a dot: '.{a}'.", - token, nexttoken.value); - advance(); - return token; - } else { - error("Expected an identifier and instead saw '{a}'.", - token, token.id); - } - } - while (rbp < nexttoken.lbp) { - isArray = token.value === 'Array'; - advance(); - if (isArray && token.id === '(' && nexttoken.id === ')') - warning("Use the array literal notation [].", token); - if (token.led) { - left = token.led(left); - } else { - error("Expected an operator and instead saw '{a}'.", - token, token.id); - } - } - } - return left; - } - - -// Functions for conformance of style. - - function adjacent(left, right) { - left = left || token; - right = right || nexttoken; - if (option.white) { - if (left.character !== right.from && left.line === right.line) { - left.from += (left.character - left.from); - warning("Unexpected space after '{a}'.", left, left.value); - } - } - } - - function nobreak(left, right) { - left = left || token; - right = right || nexttoken; - if (option.white && (left.character !== right.from || left.line !== right.line)) { - warning("Unexpected space before '{a}'.", right, right.value); - } - } - - function nospace(left, right) { - left = left || token; - right = right || nexttoken; - if (option.white && !left.comment) { - if (left.line === right.line) { - adjacent(left, right); - } - } - } - - function nonadjacent(left, right) { - if (option.white) { - left = left || token; - right = right || nexttoken; - if (left.line === right.line && left.character === right.from) { - left.from += (left.character - left.from); - warning("Missing space after '{a}'.", - left, left.value); - } - } - } - - function nobreaknonadjacent(left, right) { - left = left || token; - right = right || nexttoken; - if (!option.laxbreak && left.line !== right.line) { - warning("Bad line breaking before '{a}'.", right, right.id); - } else if (option.white) { - left = left || token; - right = right || nexttoken; - if (left.character === right.from) { - left.from += (left.character - left.from); - warning("Missing space after '{a}'.", - left, left.value); - } - } - } - - function indentation(bias) { - var i; - if (option.white && nexttoken.id !== '(end)') { - i = indent + (bias || 0); - if (nexttoken.from !== i) { - warning( -"Expected '{a}' to have an indentation at {b} instead at {c}.", - nexttoken, nexttoken.value, i, nexttoken.from); - } - } - } - - function nolinebreak(t) { - t = t || token; - if (t.line !== nexttoken.line) { - warning("Line breaking error '{a}'.", t, t.value); - } - } - - - function comma() { - if (token.line !== nexttoken.line) { - if (!option.laxcomma) { - if (comma.first) { - warning("Comma warnings can be turned off with 'laxcomma'"); - comma.first = false; - } - warning("Bad line breaking before '{a}'.", token, nexttoken.id); - } - } else if (!token.comment && token.character !== nexttoken.from && option.white) { - token.from += (token.character - token.from); - warning("Unexpected space after '{a}'.", token, token.value); - } - advance(','); - nonadjacent(token, nexttoken); - } - - comma.first = true; - - -// Functional constructors for making the symbols that will be inherited by -// tokens. - - function symbol(s, p) { - var x = syntax[s]; - if (!x || typeof x !== 'object') { - syntax[s] = x = { - id: s, - lbp: p, - value: s - }; - } - return x; - } - - - function delim(s) { - return symbol(s, 0); - } - - - function stmt(s, f) { - var x = delim(s); - x.identifier = x.reserved = true; - x.fud = f; - return x; - } - - - function blockstmt(s, f) { - var x = stmt(s, f); - x.block = true; - return x; - } - - - function reserveName(x) { - var c = x.id.charAt(0); - if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) { - x.identifier = x.reserved = true; - } - return x; - } - - - function prefix(s, f) { - var x = symbol(s, 150); - reserveName(x); - x.nud = (typeof f === 'function') ? f : function () { - this.right = expression(150); - this.arity = 'unary'; - if (this.id === '++' || this.id === '--') { - if (option.plusplus) { - warning("Unexpected use of '{a}'.", this, this.id); - } else if ((!this.right.identifier || this.right.reserved) && - this.right.id !== '.' && this.right.id !== '[') { - warning("Bad operand.", this); - } - } - return this; - }; - return x; - } - - - function type(s, f) { - var x = delim(s); - x.type = s; - x.nud = f; - return x; - } - - - function reserve(s, f) { - var x = type(s, f); - x.identifier = x.reserved = true; - return x; - } - - - function reservevar(s, v) { - return reserve(s, function () { - if (typeof v === 'function') { - v(this); - } - return this; - }); - } - - - function infix(s, f, p, w) { - var x = symbol(s, p); - reserveName(x); - x.led = function (left) { - if (!w) { - nobreaknonadjacent(prevtoken, token); - nonadjacent(token, nexttoken); - } - if (s === "in" && left.id === "!") { - warning("Confusing use of '{a}'.", left, '!'); - } - if (typeof f === 'function') { - return f(left, this); - } else { - this.left = left; - this.right = expression(p); - return this; - } - }; - return x; - } - - - function relation(s, f) { - var x = symbol(s, 100); - x.led = function (left) { - nobreaknonadjacent(prevtoken, token); - nonadjacent(token, nexttoken); - var right = expression(100); - if ((left && left.id === 'NaN') || (right && right.id === 'NaN')) { - warning("Use the isNaN function to compare with NaN.", this); - } else if (f) { - f.apply(this, [left, right]); - } - if (left.id === '!') { - warning("Confusing use of '{a}'.", left, '!'); - } - if (right.id === '!') { - warning("Confusing use of '{a}'.", right, '!'); - } - this.left = left; - this.right = right; - return this; - }; - return x; - } - - - function isPoorRelation(node) { - return node && - ((node.type === '(number)' && +node.value === 0) || - (node.type === '(string)' && node.value === '') || - (node.type === 'null' && !option.eqnull) || - node.type === 'true' || - node.type === 'false' || - node.type === 'undefined'); - } - - - function assignop(s, f) { - symbol(s, 20).exps = true; - return infix(s, function (left, that) { - var l; - that.left = left; - if (predefined[left.value] === false && - scope[left.value]['(global)'] === true) { - warning("Read only.", left); - } else if (left['function']) { - warning("'{a}' is a function.", left, left.value); - } - if (left) { - if (option.esnext && funct[left.value] === 'const') { - warning("Attempting to override '{a}' which is a constant", left, left.value); - } - if (left.id === '.' || left.id === '[') { - if (!left.left || left.left.value === 'arguments') { - warning('Bad assignment.', that); - } - that.right = expression(19); - return that; - } else if (left.identifier && !left.reserved) { - if (funct[left.value] === 'exception') { - warning("Do not assign to the exception parameter.", left); - } - that.right = expression(19); - return that; - } - if (left === syntax['function']) { - warning( -"Expected an identifier in an assignment and instead saw a function invocation.", - token); - } - } - error("Bad assignment.", that); - }, 20); - } - - - function bitwise(s, f, p) { - var x = symbol(s, p); - reserveName(x); - x.led = (typeof f === 'function') ? f : function (left) { - if (option.bitwise) { - warning("Unexpected use of '{a}'.", this, this.id); - } - this.left = left; - this.right = expression(p); - return this; - }; - return x; - } - - - function bitwiseassignop(s) { - symbol(s, 20).exps = true; - return infix(s, function (left, that) { - if (option.bitwise) { - warning("Unexpected use of '{a}'.", that, that.id); - } - nonadjacent(prevtoken, token); - nonadjacent(token, nexttoken); - if (left) { - if (left.id === '.' || left.id === '[' || - (left.identifier && !left.reserved)) { - expression(19); - return that; - } - if (left === syntax['function']) { - warning( -"Expected an identifier in an assignment, and instead saw a function invocation.", - token); - } - return that; - } - error("Bad assignment.", that); - }, 20); - } - - - function suffix(s, f) { - var x = symbol(s, 150); - x.led = function (left) { - if (option.plusplus) { - warning("Unexpected use of '{a}'.", this, this.id); - } else if ((!left.identifier || left.reserved) && - left.id !== '.' && left.id !== '[') { - warning("Bad operand.", this); - } - this.left = left; - return this; - }; - return x; - } - - - // fnparam means that this identifier is being defined as a function - // argument (see identifier()) - function optionalidentifier(fnparam) { - if (nexttoken.identifier) { - advance(); - if (token.reserved && !option.es5) { - // `undefined` as a function param is a common pattern to protect - // against the case when somebody does `undefined = true` and - // help with minification. More info: https://gist.github.com/315916 - if (!fnparam || token.value !== 'undefined') { - warning("Expected an identifier and instead saw '{a}' (a reserved word).", - token, token.id); - } - } - return token.value; - } - } - - // fnparam means that this identifier is being defined as a function - // argument - function identifier(fnparam) { - var i = optionalidentifier(fnparam); - if (i) { - return i; - } - if (token.id === 'function' && nexttoken.id === '(') { - warning("Missing name in function declaration."); - } else { - error("Expected an identifier and instead saw '{a}'.", - nexttoken, nexttoken.value); - } - } - - - function reachable(s) { - var i = 0, t; - if (nexttoken.id !== ';' || noreach) { - return; - } - for (;;) { - t = peek(i); - if (t.reach) { - return; - } - if (t.id !== '(endline)') { - if (t.id === 'function') { - if (!option.latedef) { - break; - } - warning( -"Inner functions should be listed at the top of the outer function.", t); - break; - } - warning("Unreachable '{a}' after '{b}'.", t, t.value, s); - break; - } - i += 1; - } - } - - - function statement(noindent) { - var i = indent, r, s = scope, t = nexttoken; - - if (t.id === ";") { - advance(";"); - return; - } - -// Is this a labelled statement? - - if (t.identifier && !t.reserved && peek().id === ':') { - advance(); - advance(':'); - scope = Object.create(s); - addlabel(t.value, 'label'); - if (!nexttoken.labelled) { - warning("Label '{a}' on {b} statement.", - nexttoken, t.value, nexttoken.value); - } - if (jx.test(t.value + ':')) { - warning("Label '{a}' looks like a javascript url.", - t, t.value); - } - nexttoken.label = t.value; - t = nexttoken; - } - -// Parse the statement. - - if (!noindent) { - indentation(); - } - r = expression(0, true); - - // Look for the final semicolon. - if (!t.block) { - if (!option.expr && (!r || !r.exps)) { - warning("Expected an assignment or function call and instead saw an expression.", - token); - } else if (option.nonew && r.id === '(' && r.left.id === 'new') { - warning("Do not use 'new' for side effects."); - } - - if (nexttoken.id !== ';') { - if (!option.asi) { - // If this is the last statement in a block that ends on - // the same line *and* option lastsemic is on, ignore the warning. - // Otherwise, complain about missing semicolon. - if (!option.lastsemic || nexttoken.id !== '}' || - nexttoken.line !== token.line) { - warningAt("Missing semicolon.", token.line, token.character); - } - } - } else { - adjacent(token, nexttoken); - advance(';'); - nonadjacent(token, nexttoken); - } - } - -// Restore the indentation. - - indent = i; - scope = s; - return r; - } - - - function statements(startLine) { - var a = [], f, p; - - while (!nexttoken.reach && nexttoken.id !== '(end)') { - if (nexttoken.id === ';') { - p = peek(); - if (!p || p.id !== "(") { - warning("Unnecessary semicolon."); - } - advance(';'); - } else { - a.push(statement(startLine === nexttoken.line)); - } - } - return a; - } - - - /* - * read all directives - * recognizes a simple form of asi, but always - * warns, if it is used - */ - function directives() { - var i, p, pn; - - for (;;) { - if (nexttoken.id === "(string)") { - p = peek(0); - if (p.id === "(endline)") { - i = 1; - do { - pn = peek(i); - i = i + 1; - } while (pn.id === "(endline)"); - - if (pn.id !== ";") { - if (pn.id !== "(string)" && pn.id !== "(number)" && - pn.id !== "(regexp)" && pn.identifier !== true && - pn.id !== "}") { - break; - } - warning("Missing semicolon.", nexttoken); - } else { - p = pn; - } - } else if (p.id === "}") { - // directive with no other statements, warn about missing semicolon - warning("Missing semicolon.", p); - } else if (p.id !== ";") { - break; - } - - indentation(); - advance(); - if (directive[token.value]) { - warning("Unnecessary directive \"{a}\".", token, token.value); - } - - if (token.value === "use strict") { - option.newcap = true; - option.undef = true; - } - - // there's no directive negation, so always set to true - directive[token.value] = true; - - if (p.id === ";") { - advance(";"); - } - continue; - } - break; - } - } - - - /* - * Parses a single block. A block is a sequence of statements wrapped in - * braces. - * - * ordinary - true for everything but function bodies and try blocks. - * stmt - true if block can be a single statement (e.g. in if/for/while). - * isfunc - true if block is a function body - */ - function block(ordinary, stmt, isfunc) { - var a, - b = inblock, - old_indent = indent, - m, - s = scope, - t, - line, - d; - - inblock = ordinary; - if (!ordinary || !option.funcscope) scope = Object.create(scope); - nonadjacent(token, nexttoken); - t = nexttoken; - - if (nexttoken.id === '{') { - advance('{'); - line = token.line; - if (nexttoken.id !== '}') { - indent += option.indent; - while (!ordinary && nexttoken.from > indent) { - indent += option.indent; - } - - if (isfunc) { - m = {}; - for (d in directive) { - if (is_own(directive, d)) { - m[d] = directive[d]; - } - } - directives(); - - if (option.strict && funct['(context)']['(global)']) { - if (!m["use strict"] && !directive["use strict"]) { - warning("Missing \"use strict\" statement."); - } - } - } - - a = statements(line); - - if (isfunc) { - directive = m; - } - - indent -= option.indent; - if (line !== nexttoken.line) { - indentation(); - } - } else if (line !== nexttoken.line) { - indentation(); - } - advance('}', t); - indent = old_indent; - } else if (!ordinary) { - error("Expected '{a}' and instead saw '{b}'.", - nexttoken, '{', nexttoken.value); - } else { - if (!stmt || option.curly) - warning("Expected '{a}' and instead saw '{b}'.", - nexttoken, '{', nexttoken.value); - - noreach = true; - indent += option.indent; - // test indentation only if statement is in new line - a = [statement(nexttoken.line === token.line)]; - indent -= option.indent; - noreach = false; - } - funct['(verb)'] = null; - if (!ordinary || !option.funcscope) scope = s; - inblock = b; - if (ordinary && option.noempty && (!a || a.length === 0)) { - warning("Empty block."); - } - return a; - } - - - function countMember(m) { - if (membersOnly && typeof membersOnly[m] !== 'boolean') { - warning("Unexpected /*member '{a}'.", token, m); - } - if (typeof member[m] === 'number') { - member[m] += 1; - } else { - member[m] = 1; - } - } - - - function note_implied(token) { - var name = token.value, line = token.line, a = implied[name]; - if (typeof a === 'function') { - a = false; - } - if (!a) { - a = [line]; - implied[name] = a; - } else if (a[a.length - 1] !== line) { - a.push(line); - } - } - - - // Build the syntax table by declaring the syntactic elements of the language. - - type('(number)', function () { - return this; - }); - - type('(string)', function () { - return this; - }); - - syntax['(identifier)'] = { - type: '(identifier)', - lbp: 0, - identifier: true, - nud: function () { - var v = this.value, - s = scope[v], - f; - - if (typeof s === 'function') { - // Protection against accidental inheritance. - s = undefined; - } else if (typeof s === 'boolean') { - f = funct; - funct = functions[0]; - addlabel(v, 'var'); - s = funct; - funct = f; - } - - // The name is in scope and defined in the current function. - if (funct === s) { - // Change 'unused' to 'var', and reject labels. - switch (funct[v]) { - case 'unused': - funct[v] = 'var'; - break; - case 'unction': - funct[v] = 'function'; - this['function'] = true; - break; - case 'function': - this['function'] = true; - break; - case 'label': - warning("'{a}' is a statement label.", token, v); - break; - } - } else if (funct['(global)']) { - // The name is not defined in the function. If we are in the global - // scope, then we have an undefined variable. - // - // Operators typeof and delete do not raise runtime errors even if - // the base object of a reference is null so no need to display warning - // if we're inside of typeof or delete. - - if (option.undef && typeof predefined[v] !== 'boolean') { - // Attempting to subscript a null reference will throw an - // error, even within the typeof and delete operators - if (!(anonname === 'typeof' || anonname === 'delete') || - (nexttoken && (nexttoken.value === '.' || nexttoken.value === '['))) { - - isundef(funct, "'{a}' is not defined.", token, v); - } - } - note_implied(token); - } else { - // If the name is already defined in the current - // function, but not as outer, then there is a scope error. - - switch (funct[v]) { - case 'closure': - case 'function': - case 'var': - case 'unused': - warning("'{a}' used out of scope.", token, v); - break; - case 'label': - warning("'{a}' is a statement label.", token, v); - break; - case 'outer': - case 'global': - break; - default: - // If the name is defined in an outer function, make an outer entry, - // and if it was unused, make it var. - if (s === true) { - funct[v] = true; - } else if (s === null) { - warning("'{a}' is not allowed.", token, v); - note_implied(token); - } else if (typeof s !== 'object') { - // Operators typeof and delete do not raise runtime errors even - // if the base object of a reference is null so no need to - // display warning if we're inside of typeof or delete. - if (option.undef) { - // Attempting to subscript a null reference will throw an - // error, even within the typeof and delete operators - if (!(anonname === 'typeof' || anonname === 'delete') || - (nexttoken && - (nexttoken.value === '.' || nexttoken.value === '['))) { - - isundef(funct, "'{a}' is not defined.", token, v); - } - } - funct[v] = true; - note_implied(token); - } else { - switch (s[v]) { - case 'function': - case 'unction': - this['function'] = true; - s[v] = 'closure'; - funct[v] = s['(global)'] ? 'global' : 'outer'; - break; - case 'var': - case 'unused': - s[v] = 'closure'; - funct[v] = s['(global)'] ? 'global' : 'outer'; - break; - case 'closure': - case 'parameter': - funct[v] = s['(global)'] ? 'global' : 'outer'; - break; - case 'label': - warning("'{a}' is a statement label.", token, v); - } - } - } - } - return this; - }, - led: function () { - error("Expected an operator and instead saw '{a}'.", - nexttoken, nexttoken.value); - } - }; - - type('(regexp)', function () { - return this; - }); - - -// ECMAScript parser - - delim('(endline)'); - delim('(begin)'); - delim('(end)').reach = true; - delim(''); - delim('(error)').reach = true; - delim('}').reach = true; - delim(')'); - delim(']'); - delim('"').reach = true; - delim("'").reach = true; - delim(';'); - delim(':').reach = true; - delim(','); - delim('#'); - delim('@'); - reserve('else'); - reserve('case').reach = true; - reserve('catch'); - reserve('default').reach = true; - reserve('finally'); - reservevar('arguments', function (x) { - if (directive['use strict'] && funct['(global)']) { - warning("Strict violation.", x); - } - }); - reservevar('eval'); - reservevar('false'); - reservevar('Infinity'); - reservevar('NaN'); - reservevar('null'); - reservevar('this', function (x) { - if (directive['use strict'] && !option.validthis && ((funct['(statement)'] && - funct['(name)'].charAt(0) > 'Z') || funct['(global)'])) { - warning("Possible strict violation.", x); - } - }); - reservevar('true'); - reservevar('undefined'); - assignop('=', 'assign', 20); - assignop('+=', 'assignadd', 20); - assignop('-=', 'assignsub', 20); - assignop('*=', 'assignmult', 20); - assignop('/=', 'assigndiv', 20).nud = function () { - error("A regular expression literal can be confused with '/='."); - }; - assignop('%=', 'assignmod', 20); - bitwiseassignop('&=', 'assignbitand', 20); - bitwiseassignop('|=', 'assignbitor', 20); - bitwiseassignop('^=', 'assignbitxor', 20); - bitwiseassignop('<<=', 'assignshiftleft', 20); - bitwiseassignop('>>=', 'assignshiftright', 20); - bitwiseassignop('>>>=', 'assignshiftrightunsigned', 20); - infix('?', function (left, that) { - that.left = left; - that.right = expression(10); - advance(':'); - that['else'] = expression(10); - return that; - }, 30); - - infix('||', 'or', 40); - infix('&&', 'and', 50); - bitwise('|', 'bitor', 70); - bitwise('^', 'bitxor', 80); - bitwise('&', 'bitand', 90); - relation('==', function (left, right) { - var eqnull = option.eqnull && (left.value === 'null' || right.value === 'null'); - - if (!eqnull && option.eqeqeq) - warning("Expected '{a}' and instead saw '{b}'.", this, '===', '=='); - else if (isPoorRelation(left)) - warning("Use '{a}' to compare with '{b}'.", this, '===', left.value); - else if (isPoorRelation(right)) - warning("Use '{a}' to compare with '{b}'.", this, '===', right.value); - - return this; - }); - relation('==='); - relation('!=', function (left, right) { - var eqnull = option.eqnull && - (left.value === 'null' || right.value === 'null'); - - if (!eqnull && option.eqeqeq) { - warning("Expected '{a}' and instead saw '{b}'.", - this, '!==', '!='); - } else if (isPoorRelation(left)) { - warning("Use '{a}' to compare with '{b}'.", - this, '!==', left.value); - } else if (isPoorRelation(right)) { - warning("Use '{a}' to compare with '{b}'.", - this, '!==', right.value); - } - return this; - }); - relation('!=='); - relation('<'); - relation('>'); - relation('<='); - relation('>='); - bitwise('<<', 'shiftleft', 120); - bitwise('>>', 'shiftright', 120); - bitwise('>>>', 'shiftrightunsigned', 120); - infix('in', 'in', 120); - infix('instanceof', 'instanceof', 120); - infix('+', function (left, that) { - var right = expression(130); - if (left && right && left.id === '(string)' && right.id === '(string)') { - left.value += right.value; - left.character = right.character; - if (!option.scripturl && jx.test(left.value)) { - warning("JavaScript URL.", left); - } - return left; - } - that.left = left; - that.right = right; - return that; - }, 130); - prefix('+', 'num'); - prefix('+++', function () { - warning("Confusing pluses."); - this.right = expression(150); - this.arity = 'unary'; - return this; - }); - infix('+++', function (left) { - warning("Confusing pluses."); - this.left = left; - this.right = expression(130); - return this; - }, 130); - infix('-', 'sub', 130); - prefix('-', 'neg'); - prefix('---', function () { - warning("Confusing minuses."); - this.right = expression(150); - this.arity = 'unary'; - return this; - }); - infix('---', function (left) { - warning("Confusing minuses."); - this.left = left; - this.right = expression(130); - return this; - }, 130); - infix('*', 'mult', 140); - infix('/', 'div', 140); - infix('%', 'mod', 140); - - suffix('++', 'postinc'); - prefix('++', 'preinc'); - syntax['++'].exps = true; - - suffix('--', 'postdec'); - prefix('--', 'predec'); - syntax['--'].exps = true; - prefix('delete', function () { - var p = expression(0); - if (!p || (p.id !== '.' && p.id !== '[')) { - warning("Variables should not be deleted."); - } - this.first = p; - return this; - }).exps = true; - - prefix('~', function () { - if (option.bitwise) { - warning("Unexpected '{a}'.", this, '~'); - } - expression(150); - return this; - }); - - prefix('!', function () { - this.right = expression(150); - this.arity = 'unary'; - if (bang[this.right.id] === true) { - warning("Confusing use of '{a}'.", this, '!'); - } - return this; - }); - prefix('typeof', 'typeof'); - prefix('new', function () { - var c = expression(155), i; - if (c && c.id !== 'function') { - if (c.identifier) { - c['new'] = true; - switch (c.value) { - case 'Object': - warning("Use the object literal notation {}.", token); - break; - case 'Number': - case 'String': - case 'Boolean': - case 'Math': - case 'JSON': - warning("Do not use {a} as a constructor.", token, c.value); - break; - case 'Function': - if (!option.evil) { - warning("The Function constructor is eval."); - } - break; - case 'Date': - case 'RegExp': - break; - default: - if (c.id !== 'function') { - i = c.value.substr(0, 1); - if (option.newcap && (i < 'A' || i > 'Z')) { - warning("A constructor name should start with an uppercase letter.", - token); - } - } - } - } else { - if (c.id !== '.' && c.id !== '[' && c.id !== '(') { - warning("Bad constructor.", token); - } - } - } else { - if (!option.supernew) - warning("Weird construction. Delete 'new'.", this); - } - adjacent(token, nexttoken); - if (nexttoken.id !== '(' && !option.supernew) { - warning("Missing '()' invoking a constructor."); - } - this.first = c; - return this; - }); - syntax['new'].exps = true; - - prefix('void').exps = true; - - infix('.', function (left, that) { - adjacent(prevtoken, token); - nobreak(); - var m = identifier(); - if (typeof m === 'string') { - countMember(m); - } - that.left = left; - that.right = m; - if (left && left.value === 'arguments' && (m === 'callee' || m === 'caller')) { - if (option.noarg) - warning("Avoid arguments.{a}.", left, m); - else if (directive['use strict']) - error('Strict violation.'); - } else if (!option.evil && left && left.value === 'document' && - (m === 'write' || m === 'writeln')) { - warning("document.write can be a form of eval.", left); - } - if (!option.evil && (m === 'eval' || m === 'execScript')) { - warning('eval is evil.'); - } - return that; - }, 160, true); - - infix('(', function (left, that) { - if (prevtoken.id !== '}' && prevtoken.id !== ')') { - nobreak(prevtoken, token); - } - nospace(); - if (option.immed && !left.immed && left.id === 'function') { - warning("Wrap an immediate function invocation in parentheses " + - "to assist the reader in understanding that the expression " + - "is the result of a function, and not the function itself."); - } - var n = 0, - p = []; - if (left) { - if (left.type === '(identifier)') { - if (left.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)) { - if (left.value !== 'Number' && left.value !== 'String' && - left.value !== 'Boolean' && - left.value !== 'Date') { - if (left.value === 'Math') { - warning("Math is not a function.", left); - } else if (option.newcap) { - warning( -"Missing 'new' prefix when invoking a constructor.", left); - } - } - } - } - } - if (nexttoken.id !== ')') { - for (;;) { - p[p.length] = expression(10); - n += 1; - if (nexttoken.id !== ',') { - break; - } - comma(); - } - } - advance(')'); - nospace(prevtoken, token); - if (typeof left === 'object') { - if (left.value === 'parseInt' && n === 1) { - warning("Missing radix parameter.", left); - } - if (!option.evil) { - if (left.value === 'eval' || left.value === 'Function' || - left.value === 'execScript') { - warning("eval is evil.", left); - } else if (p[0] && p[0].id === '(string)' && - (left.value === 'setTimeout' || - left.value === 'setInterval')) { - warning( - "Implied eval is evil. Pass a function instead of a string.", left); - } - } - if (!left.identifier && left.id !== '.' && left.id !== '[' && - left.id !== '(' && left.id !== '&&' && left.id !== '||' && - left.id !== '?') { - warning("Bad invocation.", left); - } - } - that.left = left; - return that; - }, 155, true).exps = true; - - prefix('(', function () { - nospace(); - if (nexttoken.id === 'function') { - nexttoken.immed = true; - } - var v = expression(0); - advance(')', this); - nospace(prevtoken, token); - if (option.immed && v.id === 'function') { - if (nexttoken.id === '(') { - warning( -"Move the invocation into the parens that contain the function.", nexttoken); - } else { - warning( -"Do not wrap function literals in parens unless they are to be immediately invoked.", - this); - } - } - return v; - }); - - infix('[', function (left, that) { - nobreak(prevtoken, token); - nospace(); - var e = expression(0), s; - if (e && e.type === '(string)') { - if (!option.evil && (e.value === 'eval' || e.value === 'execScript')) { - warning("eval is evil.", that); - } - countMember(e.value); - if (!option.sub && ix.test(e.value)) { - s = syntax[e.value]; - if (!s || !s.reserved) { - warning("['{a}'] is better written in dot notation.", - e, e.value); - } - } - } - advance(']', that); - nospace(prevtoken, token); - that.left = left; - that.right = e; - return that; - }, 160, true); - - prefix('[', function () { - var b = token.line !== nexttoken.line; - this.first = []; - if (b) { - indent += option.indent; - if (nexttoken.from === indent + option.indent) { - indent += option.indent; - } - } - while (nexttoken.id !== '(end)') { - while (nexttoken.id === ',') { - warning("Extra comma."); - advance(','); - } - if (nexttoken.id === ']') { - break; - } - if (b && token.line !== nexttoken.line) { - indentation(); - } - this.first.push(expression(10)); - if (nexttoken.id === ',') { - comma(); - if (nexttoken.id === ']' && !option.es5) { - warning("Extra comma.", token); - break; - } - } else { - break; - } - } - if (b) { - indent -= option.indent; - indentation(); - } - advance(']', this); - return this; - }, 160); - - - function property_name() { - var id = optionalidentifier(true); - if (!id) { - if (nexttoken.id === '(string)') { - id = nexttoken.value; - advance(); - } else if (nexttoken.id === '(number)') { - id = nexttoken.value.toString(); - advance(); - } - } - return id; - } - - - function functionparams() { - var i, t = nexttoken, p = []; - advance('('); - nospace(); - if (nexttoken.id === ')') { - advance(')'); - return; - } - for (;;) { - i = identifier(true); - p.push(i); - addlabel(i, 'parameter'); - if (nexttoken.id === ',') { - comma(); - } else { - advance(')', t); - nospace(prevtoken, token); - return p; - } - } - } - - - function doFunction(i, statement) { - var f, - oldOption = option, - oldScope = scope; - - option = Object.create(option); - scope = Object.create(scope); - - funct = { - '(name)' : i || '"' + anonname + '"', - '(line)' : nexttoken.line, - '(context)' : funct, - '(breakage)' : 0, - '(loopage)' : 0, - '(scope)' : scope, - '(statement)': statement - }; - f = funct; - token.funct = funct; - functions.push(funct); - if (i) { - addlabel(i, 'function'); - } - funct['(params)'] = functionparams(); - - block(false, false, true); - scope = oldScope; - option = oldOption; - funct['(last)'] = token.line; - funct = funct['(context)']; - return f; - } - - - (function (x) { - x.nud = function () { - var b, f, i, j, p, t; - var props = {}; // All properties, including accessors - - function saveProperty(name, token) { - if (props[name] && is_own(props, name)) - warning("Duplicate member '{a}'.", nexttoken, i); - else - props[name] = {}; - - props[name].basic = true; - props[name].basicToken = token; - } - - function saveSetter(name, token) { - if (props[name] && is_own(props, name)) { - if (props[name].basic || props[name].setter) - warning("Duplicate member '{a}'.", nexttoken, i); - } else { - props[name] = {}; - } - - props[name].setter = true; - props[name].setterToken = token; - } - - function saveGetter(name) { - if (props[name] && is_own(props, name)) { - if (props[name].basic || props[name].getter) - warning("Duplicate member '{a}'.", nexttoken, i); - } else { - props[name] = {}; - } - - props[name].getter = true; - props[name].getterToken = token; - } - - b = token.line !== nexttoken.line; - if (b) { - indent += option.indent; - if (nexttoken.from === indent + option.indent) { - indent += option.indent; - } - } - for (;;) { - if (nexttoken.id === '}') { - break; - } - if (b) { - indentation(); - } - if (nexttoken.value === 'get' && peek().id !== ':') { - advance('get'); - if (!option.es5) { - error("get/set are ES5 features."); - } - i = property_name(); - if (!i) { - error("Missing property name."); - } - saveGetter(i); - t = nexttoken; - adjacent(token, nexttoken); - f = doFunction(); - p = f['(params)']; - if (p) { - warning("Unexpected parameter '{a}' in get {b} function.", t, p[0], i); - } - adjacent(token, nexttoken); - } else if (nexttoken.value === 'set' && peek().id !== ':') { - advance('set'); - if (!option.es5) { - error("get/set are ES5 features."); - } - i = property_name(); - if (!i) { - error("Missing property name."); - } - saveSetter(i, nexttoken); - t = nexttoken; - adjacent(token, nexttoken); - f = doFunction(); - p = f['(params)']; - if (!p || p.length !== 1) { - warning("Expected a single parameter in set {a} function.", t, i); - } - } else { - i = property_name(); - saveProperty(i, nexttoken); - if (typeof i !== 'string') { - break; - } - advance(':'); - nonadjacent(token, nexttoken); - expression(10); - } - - countMember(i); - if (nexttoken.id === ',') { - comma(); - if (nexttoken.id === ',') { - warning("Extra comma.", token); - } else if (nexttoken.id === '}' && !option.es5) { - warning("Extra comma.", token); - } - } else { - break; - } - } - if (b) { - indent -= option.indent; - indentation(); - } - advance('}', this); - - // Check for lonely setters if in the ES5 mode. - if (option.es5) { - for (var name in props) { - if (is_own(props, name) && props[name].setter && !props[name].getter) { - warning("Setter is defined without getter.", props[name].setterToken); - } - } - } - return this; - }; - x.fud = function () { - error("Expected to see a statement and instead saw a block.", token); - }; - }(delim('{'))); - -// This Function is called when esnext option is set to true -// it adds the `const` statement to JSHINT - - useESNextSyntax = function () { - var conststatement = stmt('const', function (prefix) { - var id, name, value; - - this.first = []; - for (;;) { - nonadjacent(token, nexttoken); - id = identifier(); - if (funct[id] === "const") { - warning("const '" + id + "' has already been declared"); - } - if (funct['(global)'] && predefined[id] === false) { - warning("Redefinition of '{a}'.", token, id); - } - addlabel(id, 'const'); - if (prefix) { - break; - } - name = token; - this.first.push(token); - - if (nexttoken.id !== "=") { - warning("const " + - "'{a}' is initialized to 'undefined'.", token, id); - } - - if (nexttoken.id === '=') { - nonadjacent(token, nexttoken); - advance('='); - nonadjacent(token, nexttoken); - if (nexttoken.id === 'undefined') { - warning("It is not necessary to initialize " + - "'{a}' to 'undefined'.", token, id); - } - if (peek(0).id === '=' && nexttoken.identifier) { - error("Constant {a} was not declared correctly.", - nexttoken, nexttoken.value); - } - value = expression(0); - name.first = value; - } - - if (nexttoken.id !== ',') { - break; - } - comma(); - } - return this; - }); - conststatement.exps = true; - }; - - var varstatement = stmt('var', function (prefix) { - // JavaScript does not have block scope. It only has function scope. So, - // declaring a variable in a block can have unexpected consequences. - var id, name, value; - - if (funct['(onevar)'] && option.onevar) { - warning("Too many var statements."); - } else if (!funct['(global)']) { - funct['(onevar)'] = true; - } - this.first = []; - for (;;) { - nonadjacent(token, nexttoken); - id = identifier(); - if (option.esnext && funct[id] === "const") { - warning("const '" + id + "' has already been declared"); - } - if (funct['(global)'] && predefined[id] === false) { - warning("Redefinition of '{a}'.", token, id); - } - addlabel(id, 'unused'); - if (prefix) { - break; - } - name = token; - this.first.push(token); - if (nexttoken.id === '=') { - nonadjacent(token, nexttoken); - advance('='); - nonadjacent(token, nexttoken); - if (nexttoken.id === 'undefined') { - warning("It is not necessary to initialize '{a}' to 'undefined'.", token, id); - } - if (peek(0).id === '=' && nexttoken.identifier) { - error("Variable {a} was not declared correctly.", - nexttoken, nexttoken.value); - } - value = expression(0); - name.first = value; - } - if (nexttoken.id !== ',') { - break; - } - comma(); - } - return this; - }); - varstatement.exps = true; - - blockstmt('function', function () { - if (inblock) { - warning("Function declarations should not be placed in blocks. " + - "Use a function expression or move the statement to the top of " + - "the outer function.", token); - - } - var i = identifier(); - if (option.esnext && funct[i] === "const") { - warning("const '" + i + "' has already been declared"); - } - adjacent(token, nexttoken); - addlabel(i, 'unction'); - doFunction(i, true); - if (nexttoken.id === '(' && nexttoken.line === token.line) { - error( -"Function declarations are not invocable. Wrap the whole function invocation in parens."); - } - return this; - }); - - prefix('function', function () { - var i = optionalidentifier(); - if (i) { - adjacent(token, nexttoken); - } else { - nonadjacent(token, nexttoken); - } - doFunction(i); - if (!option.loopfunc && funct['(loopage)']) { - warning("Don't make functions within a loop."); - } - return this; - }); - - blockstmt('if', function () { - var t = nexttoken; - advance('('); - nonadjacent(this, t); - nospace(); - expression(20); - if (nexttoken.id === '=') { - if (!option.boss) - warning("Expected a conditional expression and instead saw an assignment."); - advance('='); - expression(20); - } - advance(')', t); - nospace(prevtoken, token); - block(true, true); - if (nexttoken.id === 'else') { - nonadjacent(token, nexttoken); - advance('else'); - if (nexttoken.id === 'if' || nexttoken.id === 'switch') { - statement(true); - } else { - block(true, true); - } - } - return this; - }); - - blockstmt('try', function () { - var b, e, s; - - block(false); - if (nexttoken.id === 'catch') { - advance('catch'); - nonadjacent(token, nexttoken); - advance('('); - s = scope; - scope = Object.create(s); - e = nexttoken.value; - if (nexttoken.type !== '(identifier)') { - warning("Expected an identifier and instead saw '{a}'.", - nexttoken, e); - } else { - addlabel(e, 'exception'); - } - advance(); - advance(')'); - block(false); - b = true; - scope = s; - } - if (nexttoken.id === 'finally') { - advance('finally'); - block(false); - return; - } else if (!b) { - error("Expected '{a}' and instead saw '{b}'.", - nexttoken, 'catch', nexttoken.value); - } - return this; - }); - - blockstmt('while', function () { - var t = nexttoken; - funct['(breakage)'] += 1; - funct['(loopage)'] += 1; - advance('('); - nonadjacent(this, t); - nospace(); - expression(20); - if (nexttoken.id === '=') { - if (!option.boss) - warning("Expected a conditional expression and instead saw an assignment."); - advance('='); - expression(20); - } - advance(')', t); - nospace(prevtoken, token); - block(true, true); - funct['(breakage)'] -= 1; - funct['(loopage)'] -= 1; - return this; - }).labelled = true; - - reserve('with'); - - blockstmt('switch', function () { - var t = nexttoken, - g = false; - funct['(breakage)'] += 1; - advance('('); - nonadjacent(this, t); - nospace(); - this.condition = expression(20); - advance(')', t); - nospace(prevtoken, token); - nonadjacent(token, nexttoken); - t = nexttoken; - advance('{'); - nonadjacent(token, nexttoken); - indent += option.indent; - this.cases = []; - for (;;) { - switch (nexttoken.id) { - case 'case': - switch (funct['(verb)']) { - case 'break': - case 'case': - case 'continue': - case 'return': - case 'switch': - case 'throw': - break; - default: - // You can tell JSHint that you don't use break intentionally by - // adding a comment /* falls through */ on a line just before - // the next `case`. - if (!ft.test(lines[nexttoken.line - 2])) { - warning( - "Expected a 'break' statement before 'case'.", - token); - } - } - indentation(-option.indent); - advance('case'); - this.cases.push(expression(20)); - g = true; - advance(':'); - funct['(verb)'] = 'case'; - break; - case 'default': - switch (funct['(verb)']) { - case 'break': - case 'continue': - case 'return': - case 'throw': - break; - default: - if (!ft.test(lines[nexttoken.line - 2])) { - warning( - "Expected a 'break' statement before 'default'.", - token); - } - } - indentation(-option.indent); - advance('default'); - g = true; - advance(':'); - break; - case '}': - indent -= option.indent; - indentation(); - advance('}', t); - if (this.cases.length === 1 || this.condition.id === 'true' || - this.condition.id === 'false') { - if (!option.onecase) - warning("This 'switch' should be an 'if'.", this); - } - funct['(breakage)'] -= 1; - funct['(verb)'] = undefined; - return; - case '(end)': - error("Missing '{a}'.", nexttoken, '}'); - return; - default: - if (g) { - switch (token.id) { - case ',': - error("Each value should have its own case label."); - return; - case ':': - g = false; - statements(); - break; - default: - error("Missing ':' on a case clause.", token); - return; - } - } else { - if (token.id === ':') { - advance(':'); - error("Unexpected '{a}'.", token, ':'); - statements(); - } else { - error("Expected '{a}' and instead saw '{b}'.", - nexttoken, 'case', nexttoken.value); - return; - } - } - } - } - }).labelled = true; - - stmt('debugger', function () { - if (!option.debug) { - warning("All 'debugger' statements should be removed."); - } - return this; - }).exps = true; - - (function () { - var x = stmt('do', function () { - funct['(breakage)'] += 1; - funct['(loopage)'] += 1; - this.first = block(true); - advance('while'); - var t = nexttoken; - nonadjacent(token, t); - advance('('); - nospace(); - expression(20); - if (nexttoken.id === '=') { - if (!option.boss) - warning("Expected a conditional expression and instead saw an assignment."); - advance('='); - expression(20); - } - advance(')', t); - nospace(prevtoken, token); - funct['(breakage)'] -= 1; - funct['(loopage)'] -= 1; - return this; - }); - x.labelled = true; - x.exps = true; - }()); - - blockstmt('for', function () { - var s, t = nexttoken; - funct['(breakage)'] += 1; - funct['(loopage)'] += 1; - advance('('); - nonadjacent(this, t); - nospace(); - if (peek(nexttoken.id === 'var' ? 1 : 0).id === 'in') { - if (nexttoken.id === 'var') { - advance('var'); - varstatement.fud.call(varstatement, true); - } else { - switch (funct[nexttoken.value]) { - case 'unused': - funct[nexttoken.value] = 'var'; - break; - case 'var': - break; - default: - warning("Bad for in variable '{a}'.", - nexttoken, nexttoken.value); - } - advance(); - } - advance('in'); - expression(20); - advance(')', t); - s = block(true, true); - if (option.forin && s && (s.length > 1 || typeof s[0] !== 'object' || - s[0].value !== 'if')) { - warning("The body of a for in should be wrapped in an if statement to filter " + - "unwanted properties from the prototype.", this); - } - funct['(breakage)'] -= 1; - funct['(loopage)'] -= 1; - return this; - } else { - if (nexttoken.id !== ';') { - if (nexttoken.id === 'var') { - advance('var'); - varstatement.fud.call(varstatement); - } else { - for (;;) { - expression(0, 'for'); - if (nexttoken.id !== ',') { - break; - } - comma(); - } - } - } - nolinebreak(token); - advance(';'); - if (nexttoken.id !== ';') { - expression(20); - if (nexttoken.id === '=') { - if (!option.boss) - warning("Expected a conditional expression and instead saw an assignment."); - advance('='); - expression(20); - } - } - nolinebreak(token); - advance(';'); - if (nexttoken.id === ';') { - error("Expected '{a}' and instead saw '{b}'.", - nexttoken, ')', ';'); - } - if (nexttoken.id !== ')') { - for (;;) { - expression(0, 'for'); - if (nexttoken.id !== ',') { - break; - } - comma(); - } - } - advance(')', t); - nospace(prevtoken, token); - block(true, true); - funct['(breakage)'] -= 1; - funct['(loopage)'] -= 1; - return this; - } - }).labelled = true; - - - stmt('break', function () { - var v = nexttoken.value; - - if (funct['(breakage)'] === 0) - warning("Unexpected '{a}'.", nexttoken, this.value); - - if (!option.asi) - nolinebreak(this); - - if (nexttoken.id !== ';') { - if (token.line === nexttoken.line) { - if (funct[v] !== 'label') { - warning("'{a}' is not a statement label.", nexttoken, v); - } else if (scope[v] !== funct) { - warning("'{a}' is out of scope.", nexttoken, v); - } - this.first = nexttoken; - advance(); - } - } - reachable('break'); - return this; - }).exps = true; - - - stmt('continue', function () { - var v = nexttoken.value; - - if (funct['(breakage)'] === 0) - warning("Unexpected '{a}'.", nexttoken, this.value); - - if (!option.asi) - nolinebreak(this); - - if (nexttoken.id !== ';') { - if (token.line === nexttoken.line) { - if (funct[v] !== 'label') { - warning("'{a}' is not a statement label.", nexttoken, v); - } else if (scope[v] !== funct) { - warning("'{a}' is out of scope.", nexttoken, v); - } - this.first = nexttoken; - advance(); - } - } else if (!funct['(loopage)']) { - warning("Unexpected '{a}'.", nexttoken, this.value); - } - reachable('continue'); - return this; - }).exps = true; - - - stmt('return', function () { - if (this.line === nexttoken.line) { - if (nexttoken.id === '(regexp)') - warning("Wrap the /regexp/ literal in parens to disambiguate the slash operator."); - - if (nexttoken.id !== ';' && !nexttoken.reach) { - nonadjacent(token, nexttoken); - if (peek().value === "=" && !option.boss) { - warningAt("Did you mean to return a conditional instead of an assignment?", - token.line, token.character + 1); - } - this.first = expression(0); - } - } else if (!option.asi) { - nolinebreak(this); // always warn (Line breaking error) - } - reachable('return'); - return this; - }).exps = true; - - - stmt('throw', function () { - nolinebreak(this); - nonadjacent(token, nexttoken); - this.first = expression(20); - reachable('throw'); - return this; - }).exps = true; - -// Superfluous reserved words - - reserve('class'); - reserve('const'); - reserve('enum'); - reserve('export'); - reserve('extends'); - reserve('import'); - reserve('super'); - - reserve('let'); - reserve('yield'); - reserve('implements'); - reserve('interface'); - reserve('package'); - reserve('private'); - reserve('protected'); - reserve('public'); - reserve('static'); - - -// Parse JSON - - function jsonValue() { - - function jsonObject() { - var o = {}, t = nexttoken; - advance('{'); - if (nexttoken.id !== '}') { - for (;;) { - if (nexttoken.id === '(end)') { - error("Missing '}' to match '{' from line {a}.", - nexttoken, t.line); - } else if (nexttoken.id === '}') { - warning("Unexpected comma.", token); - break; - } else if (nexttoken.id === ',') { - error("Unexpected comma.", nexttoken); - } else if (nexttoken.id !== '(string)') { - warning("Expected a string and instead saw {a}.", - nexttoken, nexttoken.value); - } - if (o[nexttoken.value] === true) { - warning("Duplicate key '{a}'.", - nexttoken, nexttoken.value); - } else if ((nexttoken.value === '__proto__' && - !option.proto) || (nexttoken.value === '__iterator__' && - !option.iterator)) { - warning("The '{a}' key may produce unexpected results.", - nexttoken, nexttoken.value); - } else { - o[nexttoken.value] = true; - } - advance(); - advance(':'); - jsonValue(); - if (nexttoken.id !== ',') { - break; - } - advance(','); - } - } - advance('}'); - } - - function jsonArray() { - var t = nexttoken; - advance('['); - if (nexttoken.id !== ']') { - for (;;) { - if (nexttoken.id === '(end)') { - error("Missing ']' to match '[' from line {a}.", - nexttoken, t.line); - } else if (nexttoken.id === ']') { - warning("Unexpected comma.", token); - break; - } else if (nexttoken.id === ',') { - error("Unexpected comma.", nexttoken); - } - jsonValue(); - if (nexttoken.id !== ',') { - break; - } - advance(','); - } - } - advance(']'); - } - - switch (nexttoken.id) { - case '{': - jsonObject(); - break; - case '[': - jsonArray(); - break; - case 'true': - case 'false': - case 'null': - case '(number)': - case '(string)': - advance(); - break; - case '-': - advance('-'); - if (token.character !== nexttoken.from) { - warning("Unexpected space after '-'.", token); - } - adjacent(token, nexttoken); - advance('(number)'); - break; - default: - error("Expected a JSON value.", nexttoken); - } - } - - -// The actual JSHINT function itself. - - var itself = function (s, o, g) { - var a, i, k; - JSHINT.errors = []; - JSHINT.undefs = []; - predefined = Object.create(standard); - combine(predefined, g || {}); - if (o) { - a = o.predef; - if (a) { - if (Array.isArray(a)) { - for (i = 0; i < a.length; i += 1) { - predefined[a[i]] = true; - } - } else if (typeof a === 'object') { - k = Object.keys(a); - for (i = 0; i < k.length; i += 1) { - predefined[k[i]] = !!a[k[i]]; - } - } - } - option = o; - } else { - option = {}; - } - option.indent = option.indent || 4; - option.maxerr = option.maxerr || 50; - - tab = ''; - for (i = 0; i < option.indent; i += 1) { - tab += ' '; - } - indent = 1; - global = Object.create(predefined); - scope = global; - funct = { - '(global)': true, - '(name)': '(global)', - '(scope)': scope, - '(breakage)': 0, - '(loopage)': 0 - }; - functions = [funct]; - urls = []; - stack = null; - member = {}; - membersOnly = null; - implied = {}; - inblock = false; - lookahead = []; - jsonmode = false; - warnings = 0; - lex.init(s); - prereg = true; - directive = {}; - - prevtoken = token = nexttoken = syntax['(begin)']; - assume(); - - // combine the passed globals after we've assumed all our options - combine(predefined, g || {}); - - try { - advance(); - switch (nexttoken.id) { - case '{': - case '[': - option.laxbreak = true; - jsonmode = true; - jsonValue(); - break; - default: - directives(); - if (directive["use strict"] && !option.globalstrict) { - warning("Use the function form of \"use strict\".", prevtoken); - } - - statements(); - } - advance('(end)'); - - var isDefined = function (name, context) { - do { - if (typeof context[name] === 'string') - return true; - - context = context['(context)']; - } while (context); - - return false; - }; - - // Check queued 'x is not defined' instances to see if they're still undefined. - for (i = 0; i < JSHINT.undefs.length; i += 1) { - k = JSHINT.undefs[i].slice(0); - - if (!isDefined(k[2].value, k[0])) { - warning.apply(warning, k.slice(1)); - } - } - } catch (e) { - if (e) { - var nt = nexttoken || {}; - JSHINT.errors.push({ - raw : e.raw, - reason : e.message, - line : e.line || nt.line, - character : e.character || nt.from - }, null); - } - } - - return JSHINT.errors.length === 0; - }; - - // Data summary. - itself.data = function () { - - var data = { functions: [], options: option }, fu, globals, implieds = [], f, i, j, - members = [], n, unused = [], v; - if (itself.errors.length) { - data.errors = itself.errors; - } - - if (jsonmode) { - data.json = true; - } - - for (n in implied) { - if (is_own(implied, n)) { - implieds.push({ - name: n, - line: implied[n] - }); - } - } - if (implieds.length > 0) { - data.implieds = implieds; - } - - if (urls.length > 0) { - data.urls = urls; - } - - globals = Object.keys(scope); - if (globals.length > 0) { - data.globals = globals; - } - - for (i = 1; i < functions.length; i += 1) { - f = functions[i]; - fu = {}; - for (j = 0; j < functionicity.length; j += 1) { - fu[functionicity[j]] = []; - } - for (n in f) { - if (is_own(f, n) && n.charAt(0) !== '(') { - v = f[n]; - if (v === 'unction') { - v = 'unused'; - } - if (Array.isArray(fu[v])) { - fu[v].push(n); - if (v === 'unused') { - unused.push({ - name: n, - line: f['(line)'], - 'function': f['(name)'] - }); - } - } - } - } - for (j = 0; j < functionicity.length; j += 1) { - if (fu[functionicity[j]].length === 0) { - delete fu[functionicity[j]]; - } - } - fu.name = f['(name)']; - fu.param = f['(params)']; - fu.line = f['(line)']; - fu.last = f['(last)']; - data.functions.push(fu); - } - - if (unused.length > 0) { - data.unused = unused; - } - - members = []; - for (n in member) { - if (typeof member[n] === 'number') { - data.member = member; - break; - } - } - - return data; - }; - - itself.report = function (option) { - var data = itself.data(); - - var a = [], c, e, err, f, i, k, l, m = '', n, o = [], s; - - function detail(h, array) { - var b, i, singularity; - if (array) { - o.push('
      ' + h + ' '); - array = array.sort(); - for (i = 0; i < array.length; i += 1) { - if (array[i] !== singularity) { - singularity = array[i]; - o.push((b ? ', ' : '') + singularity); - b = true; - } - } - o.push('
      '); - } - } - - - if (data.errors || data.implieds || data.unused) { - err = true; - o.push('
      Error:'); - if (data.errors) { - for (i = 0; i < data.errors.length; i += 1) { - c = data.errors[i]; - if (c) { - e = c.evidence || ''; - o.push('

      Problem' + (isFinite(c.line) ? ' at line ' + - c.line + ' character ' + c.character : '') + - ': ' + c.reason.entityify() + - '

      ' + - (e && (e.length > 80 ? e.slice(0, 77) + '...' : - e).entityify()) + '

      '); - } - } - } - - if (data.implieds) { - s = []; - for (i = 0; i < data.implieds.length; i += 1) { - s[i] = '' + data.implieds[i].name + ' ' + - data.implieds[i].line + ''; - } - o.push('

      Implied global: ' + s.join(', ') + '

      '); - } - - if (data.unused) { - s = []; - for (i = 0; i < data.unused.length; i += 1) { - s[i] = '' + data.unused[i].name + ' ' + - data.unused[i].line + ' ' + - data.unused[i]['function'] + ''; - } - o.push('

      Unused variable: ' + s.join(', ') + '

      '); - } - if (data.json) { - o.push('

      JSON: bad.

      '); - } - o.push('
      '); - } - - if (!option) { - - o.push('
      '); - - if (data.urls) { - detail("URLs
      ", data.urls, '
      '); - } - - if (data.json && !err) { - o.push('

      JSON: good.

      '); - } else if (data.globals) { - o.push('
      Global ' + - data.globals.sort().join(', ') + '
      '); - } else { - o.push('
      No new global variables introduced.
      '); - } - - for (i = 0; i < data.functions.length; i += 1) { - f = data.functions[i]; - - o.push('
      ' + f.line + '-' + - f.last + ' ' + (f.name || '') + '(' + - (f.param ? f.param.join(', ') : '') + ')
      '); - detail('Unused', f.unused); - detail('Closure', f.closure); - detail('Variable', f['var']); - detail('Exception', f.exception); - detail('Outer', f.outer); - detail('Global', f.global); - detail('Label', f.label); - } - - if (data.member) { - a = Object.keys(data.member); - if (a.length) { - a = a.sort(); - m = '
      /*members ';
      -                    l = 10;
      -                    for (i = 0; i < a.length; i += 1) {
      -                        k = a[i];
      -                        n = k.name();
      -                        if (l + n.length > 72) {
      -                            o.push(m + '
      '); - m = ' '; - l = 1; - } - l += n.length + 2; - if (data.member[k] === 1) { - n = '' + n + ''; - } - if (i < a.length - 1) { - n += ', '; - } - m += n; - } - o.push(m + '
      */
      '); - } - o.push('
      '); - } - } - return o.join(''); - }; - - itself.jshint = itself; - - return itself; -}()); - -// Make JSHINT a Node module, if possible. -if (typeof exports === 'object' && exports) - exports.JSHINT = JSHINT; \ No newline at end of file diff --git a/vendor/assets/components/jquery/build/lib/parse-js.js b/vendor/assets/components/jquery/build/lib/parse-js.js deleted file mode 100644 index 8edecb733b..0000000000 --- a/vendor/assets/components/jquery/build/lib/parse-js.js +++ /dev/null @@ -1,1315 +0,0 @@ -/*********************************************************************** - - A JavaScript tokenizer / parser / beautifier / compressor. - - This version is suitable for Node.js. With minimal changes (the - exports stuff) it should work on any JS platform. - - This file contains the tokenizer/parser. It is a port to JavaScript - of parse-js [1], a JavaScript parser library written in Common Lisp - by Marijn Haverbeke. Thank you Marijn! - - [1] http://marijn.haverbeke.nl/parse-js/ - - Exported functions: - - - tokenizer(code) -- returns a function. Call the returned - function to fetch the next token. - - - parse(code) -- returns an AST of the given JavaScript code. - - -------------------------------- (C) --------------------------------- - - Author: Mihai Bazon - - http://mihai.bazon.net/blog - - Distributed under the BSD license: - - Copyright 2010 (c) Mihai Bazon - Based on parse-js (http://marijn.haverbeke.nl/parse-js/). - - 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 HOLDER “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 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. - - ***********************************************************************/ - -/* -----[ Tokenizer (constants) ]----- */ - -var KEYWORDS = array_to_hash([ - "break", - "case", - "catch", - "const", - "continue", - "default", - "delete", - "do", - "else", - "finally", - "for", - "function", - "if", - "in", - "instanceof", - "new", - "return", - "switch", - "throw", - "try", - "typeof", - "var", - "void", - "while", - "with" -]); - -var RESERVED_WORDS = array_to_hash([ - "abstract", - "boolean", - "byte", - "char", - "class", - "debugger", - "double", - "enum", - "export", - "extends", - "final", - "float", - "goto", - "implements", - "import", - "int", - "interface", - "long", - "native", - "package", - "private", - "protected", - "public", - "short", - "static", - "super", - "synchronized", - "throws", - "transient", - "volatile" -]); - -var KEYWORDS_BEFORE_EXPRESSION = array_to_hash([ - "return", - "new", - "delete", - "throw", - "else", - "case" -]); - -var KEYWORDS_ATOM = array_to_hash([ - "false", - "null", - "true", - "undefined" -]); - -var OPERATOR_CHARS = array_to_hash(characters("+-*&%=<>!?|~^")); - -var RE_HEX_NUMBER = /^0x[0-9a-f]+$/i; -var RE_OCT_NUMBER = /^0[0-7]+$/; -var RE_DEC_NUMBER = /^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i; - -var OPERATORS = array_to_hash([ - "in", - "instanceof", - "typeof", - "new", - "void", - "delete", - "++", - "--", - "+", - "-", - "!", - "~", - "&", - "|", - "^", - "*", - "/", - "%", - ">>", - "<<", - ">>>", - "<", - ">", - "<=", - ">=", - "==", - "===", - "!=", - "!==", - "?", - "=", - "+=", - "-=", - "/=", - "*=", - "%=", - ">>=", - "<<=", - ">>>=", - "|=", - "^=", - "&=", - "&&", - "||" -]); - -var WHITESPACE_CHARS = array_to_hash(characters(" \n\r\t\u200b")); - -var PUNC_BEFORE_EXPRESSION = array_to_hash(characters("[{}(,.;:")); - -var PUNC_CHARS = array_to_hash(characters("[]{}(),;:")); - -var REGEXP_MODIFIERS = array_to_hash(characters("gmsiy")); - -/* -----[ Tokenizer ]----- */ - -// regexps adapted from http://xregexp.com/plugins/#unicode -var UNICODE = { - letter: new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u0523\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0621-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971\\u0972\\u097B-\\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\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D28\\u0D2A-\\u0D39\\u0D3D\\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\\u0EDD\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8B\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10D0-\\u10FA\\u10FC\\u1100-\\u1159\\u115F-\\u11A2\\u11A8-\\u11F9\\u1200-\\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-\\u1676\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u1900-\\u191C\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19A9\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\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-\\u2094\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2C6F\\u2C71-\\u2C7D\\u2C80-\\u2CE4\\u2D00-\\u2D25\\u2D30-\\u2D65\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31B7\\u31F0-\\u31FF\\u3400\\u4DB5\\u4E00\\u9FC3\\uA000-\\uA48C\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA65F\\uA662-\\uA66E\\uA67F-\\uA697\\uA717-\\uA71F\\uA722-\\uA788\\uA78B\\uA78C\\uA7FB-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA90A-\\uA925\\uA930-\\uA946\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAC00\\uD7A3\\uF900-\\uFA2D\\uFA30-\\uFA6A\\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]"), - non_spacing_mark: new RegExp("[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065E\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0900-\\u0902\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2\\u09E3\\u0A01\\u0A02\\u0A3C\\u0A41\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7\\u0AC8\\u0ACD\\u0AE2\\u0AE3\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0CBC\\u0CBF\\u0CC6\\u0CCC\\u0CCD\\u0CE2\\u0CE3\\u0D41-\\u0D44\\u0D4D\\u0D62\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86\\u0F87\\u0F90-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039\\u103A\\u103D\\u103E\\u1058\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108D\\u109D\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193B\\u1A17\\u1A18\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80\\u1B81\\u1BA2-\\u1BA5\\u1BA8\\u1BA9\\u1C2C-\\u1C33\\u1C36\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1DC0-\\u1DE6\\u1DFD-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F\\uA67C\\uA67D\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA825\\uA826\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uAA29-\\uAA2E\\uAA31\\uAA32\\uAA35\\uAA36\\uAA43\\uAA4C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26]"), - space_combining_mark: new RegExp("[\\u0903\\u093E-\\u0940\\u0949-\\u094C\\u094E\\u0982\\u0983\\u09BE-\\u09C0\\u09C7\\u09C8\\u09CB\\u09CC\\u09D7\\u0A03\\u0A3E-\\u0A40\\u0A83\\u0ABE-\\u0AC0\\u0AC9\\u0ACB\\u0ACC\\u0B02\\u0B03\\u0B3E\\u0B40\\u0B47\\u0B48\\u0B4B\\u0B4C\\u0B57\\u0BBE\\u0BBF\\u0BC1\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD7\\u0C01-\\u0C03\\u0C41-\\u0C44\\u0C82\\u0C83\\u0CBE\\u0CC0-\\u0CC4\\u0CC7\\u0CC8\\u0CCA\\u0CCB\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D57\\u0D82\\u0D83\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0F3E\\u0F3F\\u0F7F\\u102B\\u102C\\u1031\\u1038\\u103B\\u103C\\u1056\\u1057\\u1062-\\u1064\\u1067-\\u106D\\u1083\\u1084\\u1087-\\u108C\\u108F\\u109A-\\u109C\\u17B6\\u17BE-\\u17C5\\u17C7\\u17C8\\u1923-\\u1926\\u1929-\\u192B\\u1930\\u1931\\u1933-\\u1938\\u19B0-\\u19C0\\u19C8\\u19C9\\u1A19-\\u1A1B\\u1A55\\u1A57\\u1A61\\u1A63\\u1A64\\u1A6D-\\u1A72\\u1B04\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43\\u1B44\\u1B82\\u1BA1\\u1BA6\\u1BA7\\u1BAA\\u1C24-\\u1C2B\\u1C34\\u1C35\\u1CE1\\u1CF2\\uA823\\uA824\\uA827\\uA880\\uA881\\uA8B4-\\uA8C3\\uA952\\uA953\\uA983\\uA9B4\\uA9B5\\uA9BA\\uA9BB\\uA9BD-\\uA9C0\\uAA2F\\uAA30\\uAA33\\uAA34\\uAA4D\\uAA7B\\uABE3\\uABE4\\uABE6\\uABE7\\uABE9\\uABEA\\uABEC]"), - connector_punctuation: new RegExp("[\\u005F\\u203F\\u2040\\u2054\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF3F]") -}; - -function is_letter(ch) { - return UNICODE.letter.test(ch); -}; - -function is_digit(ch) { - ch = ch.charCodeAt(0); - return ch >= 48 && ch <= 57; //XXX: find out if "UnicodeDigit" means something else than 0..9 -}; - -function is_alphanumeric_char(ch) { - return is_digit(ch) || is_letter(ch); -}; - -function is_unicode_combining_mark(ch) { - return UNICODE.non_spacing_mark.test(ch) || UNICODE.space_combining_mark.test(ch); -}; - -function is_unicode_connector_punctuation(ch) { - return UNICODE.connector_punctuation.test(ch); -}; - -function is_identifier_start(ch) { - return ch == "$" || ch == "_" || is_letter(ch); -}; - -function is_identifier_char(ch) { - return is_identifier_start(ch) - || is_unicode_combining_mark(ch) - || is_digit(ch) - || is_unicode_connector_punctuation(ch) - || ch == "\u200c" // zero-width non-joiner - || ch == "\u200d" // zero-width joiner (in my ECMA-262 PDF, this is also 200c) - ; -}; - -function parse_js_number(num) { - if (RE_HEX_NUMBER.test(num)) { - return parseInt(num.substr(2), 16); - } else if (RE_OCT_NUMBER.test(num)) { - return parseInt(num.substr(1), 8); - } else if (RE_DEC_NUMBER.test(num)) { - return parseFloat(num); - } -}; - -function JS_Parse_Error(message, line, col, pos) { - this.message = message; - this.line = line; - this.col = col; - this.pos = pos; - try { - ({})(); - } catch(ex) { - this.stack = ex.stack; - }; -}; - -JS_Parse_Error.prototype.toString = function() { - return this.message + " (line: " + this.line + ", col: " + this.col + ", pos: " + this.pos + ")" + "\n\n" + this.stack; -}; - -function js_error(message, line, col, pos) { - throw new JS_Parse_Error(message, line, col, pos); -}; - -function is_token(token, type, val) { - return token.type == type && (val == null || token.value == val); -}; - -var EX_EOF = {}; - -function tokenizer($TEXT) { - - var S = { - text : $TEXT.replace(/\r\n?|[\n\u2028\u2029]/g, "\n").replace(/^\uFEFF/, ''), - pos : 0, - tokpos : 0, - line : 0, - tokline : 0, - col : 0, - tokcol : 0, - newline_before : false, - regex_allowed : false, - comments_before : [] - }; - - function peek() { return S.text.charAt(S.pos); }; - - function next(signal_eof) { - var ch = S.text.charAt(S.pos++); - if (signal_eof && !ch) - throw EX_EOF; - if (ch == "\n") { - S.newline_before = true; - ++S.line; - S.col = 0; - } else { - ++S.col; - } - return ch; - }; - - function eof() { - return !S.peek(); - }; - - function find(what, signal_eof) { - var pos = S.text.indexOf(what, S.pos); - if (signal_eof && pos == -1) throw EX_EOF; - return pos; - }; - - function start_token() { - S.tokline = S.line; - S.tokcol = S.col; - S.tokpos = S.pos; - }; - - function token(type, value, is_comment) { - S.regex_allowed = ((type == "operator" && !HOP(UNARY_POSTFIX, value)) || - (type == "keyword" && HOP(KEYWORDS_BEFORE_EXPRESSION, value)) || - (type == "punc" && HOP(PUNC_BEFORE_EXPRESSION, value))); - var ret = { - type : type, - value : value, - line : S.tokline, - col : S.tokcol, - pos : S.tokpos, - nlb : S.newline_before - }; - if (!is_comment) { - ret.comments_before = S.comments_before; - S.comments_before = []; - } - S.newline_before = false; - return ret; - }; - - function skip_whitespace() { - while (HOP(WHITESPACE_CHARS, peek())) - next(); - }; - - function read_while(pred) { - var ret = "", ch = peek(), i = 0; - while (ch && pred(ch, i++)) { - ret += next(); - ch = peek(); - } - return ret; - }; - - function parse_error(err) { - js_error(err, S.tokline, S.tokcol, S.tokpos); - }; - - function read_num(prefix) { - var has_e = false, after_e = false, has_x = false, has_dot = prefix == "."; - var num = read_while(function(ch, i){ - if (ch == "x" || ch == "X") { - if (has_x) return false; - return has_x = true; - } - if (!has_x && (ch == "E" || ch == "e")) { - if (has_e) return false; - return has_e = after_e = true; - } - if (ch == "-") { - if (after_e || (i == 0 && !prefix)) return true; - return false; - } - if (ch == "+") return after_e; - after_e = false; - if (ch == ".") { - if (!has_dot && !has_x) - return has_dot = true; - return false; - } - return is_alphanumeric_char(ch); - }); - if (prefix) - num = prefix + num; - var valid = parse_js_number(num); - if (!isNaN(valid)) { - return token("num", valid); - } else { - parse_error("Invalid syntax: " + num); - } - }; - - function read_escaped_char() { - var ch = next(true); - switch (ch) { - case "n" : return "\n"; - case "r" : return "\r"; - case "t" : return "\t"; - case "b" : return "\b"; - case "v" : return "\v"; - case "f" : return "\f"; - case "0" : return "\0"; - case "x" : return String.fromCharCode(hex_bytes(2)); - case "u" : return String.fromCharCode(hex_bytes(4)); - default : return ch; - } - }; - - function hex_bytes(n) { - var num = 0; - for (; n > 0; --n) { - var digit = parseInt(next(true), 16); - if (isNaN(digit)) - parse_error("Invalid hex-character pattern in string"); - num = (num << 4) | digit; - } - return num; - }; - - function read_string() { - return with_eof_error("Unterminated string constant", function(){ - var quote = next(), ret = ""; - for (;;) { - var ch = next(true); - if (ch == "\\") ch = read_escaped_char(); - else if (ch == quote) break; - ret += ch; - } - return token("string", ret); - }); - }; - - function read_line_comment() { - next(); - var i = find("\n"), ret; - if (i == -1) { - ret = S.text.substr(S.pos); - S.pos = S.text.length; - } else { - ret = S.text.substring(S.pos, i); - S.pos = i; - } - return token("comment1", ret, true); - }; - - function read_multiline_comment() { - next(); - return with_eof_error("Unterminated multiline comment", function(){ - var i = find("*/", true), - text = S.text.substring(S.pos, i), - tok = token("comment2", text, true); - S.pos = i + 2; - S.line += text.split("\n").length - 1; - S.newline_before = text.indexOf("\n") >= 0; - - // https://github.com/mishoo/UglifyJS/issues/#issue/100 - if (/^@cc_on/i.test(text)) { - warn("WARNING: at line " + S.line); - warn("*** Found \"conditional comment\": " + text); - warn("*** UglifyJS DISCARDS ALL COMMENTS. This means your code might no longer work properly in Internet Explorer."); - } - - return tok; - }); - }; - - function read_name() { - var backslash = false, name = "", ch; - while ((ch = peek()) != null) { - if (!backslash) { - if (ch == "\\") backslash = true, next(); - else if (is_identifier_char(ch)) name += next(); - else break; - } - else { - if (ch != "u") parse_error("Expecting UnicodeEscapeSequence -- uXXXX"); - ch = read_escaped_char(); - if (!is_identifier_char(ch)) parse_error("Unicode char: " + ch.charCodeAt(0) + " is not valid in identifier"); - name += ch; - backslash = false; - } - } - return name; - }; - - function read_regexp() { - return with_eof_error("Unterminated regular expression", function(){ - var prev_backslash = false, regexp = "", ch, in_class = false; - while ((ch = next(true))) if (prev_backslash) { - regexp += "\\" + ch; - prev_backslash = false; - } else if (ch == "[") { - in_class = true; - regexp += ch; - } else if (ch == "]" && in_class) { - in_class = false; - regexp += ch; - } else if (ch == "/" && !in_class) { - break; - } else if (ch == "\\") { - prev_backslash = true; - } else { - regexp += ch; - } - var mods = read_name(); - return token("regexp", [ regexp, mods ]); - }); - }; - - function read_operator(prefix) { - function grow(op) { - if (!peek()) return op; - var bigger = op + peek(); - if (HOP(OPERATORS, bigger)) { - next(); - return grow(bigger); - } else { - return op; - } - }; - return token("operator", grow(prefix || next())); - }; - - function handle_slash() { - next(); - var regex_allowed = S.regex_allowed; - switch (peek()) { - case "/": - S.comments_before.push(read_line_comment()); - S.regex_allowed = regex_allowed; - return next_token(); - case "*": - S.comments_before.push(read_multiline_comment()); - S.regex_allowed = regex_allowed; - return next_token(); - } - return S.regex_allowed ? read_regexp() : read_operator("/"); - }; - - function handle_dot() { - next(); - return is_digit(peek()) - ? read_num(".") - : token("punc", "."); - }; - - function read_word() { - var word = read_name(); - return !HOP(KEYWORDS, word) - ? token("name", word) - : HOP(OPERATORS, word) - ? token("operator", word) - : HOP(KEYWORDS_ATOM, word) - ? token("atom", word) - : token("keyword", word); - }; - - function with_eof_error(eof_error, cont) { - try { - return cont(); - } catch(ex) { - if (ex === EX_EOF) parse_error(eof_error); - else throw ex; - } - }; - - function next_token(force_regexp) { - if (force_regexp) - return read_regexp(); - skip_whitespace(); - start_token(); - var ch = peek(); - if (!ch) return token("eof"); - if (is_digit(ch)) return read_num(); - if (ch == '"' || ch == "'") return read_string(); - if (HOP(PUNC_CHARS, ch)) return token("punc", next()); - if (ch == ".") return handle_dot(); - if (ch == "/") return handle_slash(); - if (HOP(OPERATOR_CHARS, ch)) return read_operator(); - if (ch == "\\" || is_identifier_start(ch)) return read_word(); - parse_error("Unexpected character '" + ch + "'"); - }; - - next_token.context = function(nc) { - if (nc) S = nc; - return S; - }; - - return next_token; - -}; - -/* -----[ Parser (constants) ]----- */ - -var UNARY_PREFIX = array_to_hash([ - "typeof", - "void", - "delete", - "--", - "++", - "!", - "~", - "-", - "+" -]); - -var UNARY_POSTFIX = array_to_hash([ "--", "++" ]); - -var ASSIGNMENT = (function(a, ret, i){ - while (i < a.length) { - ret[a[i]] = a[i].substr(0, a[i].length - 1); - i++; - } - return ret; -})( - ["+=", "-=", "/=", "*=", "%=", ">>=", "<<=", ">>>=", "|=", "^=", "&="], - { "=": true }, - 0 -); - -var PRECEDENCE = (function(a, ret){ - for (var i = 0, n = 1; i < a.length; ++i, ++n) { - var b = a[i]; - for (var j = 0; j < b.length; ++j) { - ret[b[j]] = n; - } - } - return ret; -})( - [ - ["||"], - ["&&"], - ["|"], - ["^"], - ["&"], - ["==", "===", "!=", "!=="], - ["<", ">", "<=", ">=", "in", "instanceof"], - [">>", "<<", ">>>"], - ["+", "-"], - ["*", "/", "%"] - ], - {} -); - -var STATEMENTS_WITH_LABELS = array_to_hash([ "for", "do", "while", "switch" ]); - -var ATOMIC_START_TOKEN = array_to_hash([ "atom", "num", "string", "regexp", "name" ]); - -/* -----[ Parser ]----- */ - -function NodeWithToken(str, start, end) { - this.name = str; - this.start = start; - this.end = end; -}; - -NodeWithToken.prototype.toString = function() { return this.name; }; - -function parse($TEXT, exigent_mode, embed_tokens) { - - var S = { - input : typeof $TEXT == "string" ? tokenizer($TEXT, true) : $TEXT, - token : null, - prev : null, - peeked : null, - in_function : 0, - in_loop : 0, - labels : [] - }; - - S.token = next(); - - function is(type, value) { - return is_token(S.token, type, value); - }; - - function peek() { return S.peeked || (S.peeked = S.input()); }; - - function next() { - S.prev = S.token; - if (S.peeked) { - S.token = S.peeked; - S.peeked = null; - } else { - S.token = S.input(); - } - return S.token; - }; - - function prev() { - return S.prev; - }; - - function croak(msg, line, col, pos) { - var ctx = S.input.context(); - js_error(msg, - line != null ? line : ctx.tokline, - col != null ? col : ctx.tokcol, - pos != null ? pos : ctx.tokpos); - }; - - function token_error(token, msg) { - croak(msg, token.line, token.col); - }; - - function unexpected(token) { - if (token == null) - token = S.token; - token_error(token, "Unexpected token: " + token.type + " (" + token.value + ")"); - }; - - function expect_token(type, val) { - if (is(type, val)) { - return next(); - } - token_error(S.token, "Unexpected token " + S.token.type + ", expected " + type); - }; - - function expect(punc) { return expect_token("punc", punc); }; - - function can_insert_semicolon() { - return !exigent_mode && ( - S.token.nlb || is("eof") || is("punc", "}") - ); - }; - - function semicolon() { - if (is("punc", ";")) next(); - else if (!can_insert_semicolon()) unexpected(); - }; - - function as() { - return slice(arguments); - }; - - function parenthesised() { - expect("("); - var ex = expression(); - expect(")"); - return ex; - }; - - function add_tokens(str, start, end) { - return str instanceof NodeWithToken ? str : new NodeWithToken(str, start, end); - }; - - function maybe_embed_tokens(parser) { - if (embed_tokens) return function() { - var start = S.token; - var ast = parser.apply(this, arguments); - ast[0] = add_tokens(ast[0], start, prev()); - return ast; - }; - else return parser; - }; - - var statement = maybe_embed_tokens(function() { - if (is("operator", "/")) { - S.peeked = null; - S.token = S.input(true); // force regexp - } - switch (S.token.type) { - case "num": - case "string": - case "regexp": - case "operator": - case "atom": - return simple_statement(); - - case "name": - return is_token(peek(), "punc", ":") - ? labeled_statement(prog1(S.token.value, next, next)) - : simple_statement(); - - case "punc": - switch (S.token.value) { - case "{": - return as("block", block_()); - case "[": - case "(": - return simple_statement(); - case ";": - next(); - return as("block"); - default: - unexpected(); - } - - case "keyword": - switch (prog1(S.token.value, next)) { - case "break": - return break_cont("break"); - - case "continue": - return break_cont("continue"); - - case "debugger": - semicolon(); - return as("debugger"); - - case "do": - return (function(body){ - expect_token("keyword", "while"); - return as("do", prog1(parenthesised, semicolon), body); - })(in_loop(statement)); - - case "for": - return for_(); - - case "function": - return function_(true); - - case "if": - return if_(); - - case "return": - if (S.in_function == 0) - croak("'return' outside of function"); - return as("return", - is("punc", ";") - ? (next(), null) - : can_insert_semicolon() - ? null - : prog1(expression, semicolon)); - - case "switch": - return as("switch", parenthesised(), switch_block_()); - - case "throw": - return as("throw", prog1(expression, semicolon)); - - case "try": - return try_(); - - case "var": - return prog1(var_, semicolon); - - case "const": - return prog1(const_, semicolon); - - case "while": - return as("while", parenthesised(), in_loop(statement)); - - case "with": - return as("with", parenthesised(), statement()); - - default: - unexpected(); - } - } - }); - - function labeled_statement(label) { - S.labels.push(label); - var start = S.token, stat = statement(); - if (exigent_mode && !HOP(STATEMENTS_WITH_LABELS, stat[0])) - unexpected(start); - S.labels.pop(); - return as("label", label, stat); - }; - - function simple_statement() { - return as("stat", prog1(expression, semicolon)); - }; - - function break_cont(type) { - var name = is("name") ? S.token.value : null; - if (name != null) { - next(); - if (!member(name, S.labels)) - croak("Label " + name + " without matching loop or statement"); - } - else if (S.in_loop == 0) - croak(type + " not inside a loop or switch"); - semicolon(); - return as(type, name); - }; - - function for_() { - expect("("); - var init = null; - if (!is("punc", ";")) { - init = is("keyword", "var") - ? (next(), var_(true)) - : expression(true, true); - if (is("operator", "in")) - return for_in(init); - } - return regular_for(init); - }; - - function regular_for(init) { - expect(";"); - var test = is("punc", ";") ? null : expression(); - expect(";"); - var step = is("punc", ")") ? null : expression(); - expect(")"); - return as("for", init, test, step, in_loop(statement)); - }; - - function for_in(init) { - var lhs = init[0] == "var" ? as("name", init[1][0]) : init; - next(); - var obj = expression(); - expect(")"); - return as("for-in", init, lhs, obj, in_loop(statement)); - }; - - var function_ = maybe_embed_tokens(function(in_statement) { - var name = is("name") ? prog1(S.token.value, next) : null; - if (in_statement && !name) - unexpected(); - expect("("); - return as(in_statement ? "defun" : "function", - name, - // arguments - (function(first, a){ - while (!is("punc", ")")) { - if (first) first = false; else expect(","); - if (!is("name")) unexpected(); - a.push(S.token.value); - next(); - } - next(); - return a; - })(true, []), - // body - (function(){ - ++S.in_function; - var loop = S.in_loop; - S.in_loop = 0; - var a = block_(); - --S.in_function; - S.in_loop = loop; - return a; - })()); - }); - - function if_() { - var cond = parenthesised(), body = statement(), belse; - if (is("keyword", "else")) { - next(); - belse = statement(); - } - return as("if", cond, body, belse); - }; - - function block_() { - expect("{"); - var a = []; - while (!is("punc", "}")) { - if (is("eof")) unexpected(); - a.push(statement()); - } - next(); - return a; - }; - - var switch_block_ = curry(in_loop, function(){ - expect("{"); - var a = [], cur = null; - while (!is("punc", "}")) { - if (is("eof")) unexpected(); - if (is("keyword", "case")) { - next(); - cur = []; - a.push([ expression(), cur ]); - expect(":"); - } - else if (is("keyword", "default")) { - next(); - expect(":"); - cur = []; - a.push([ null, cur ]); - } - else { - if (!cur) unexpected(); - cur.push(statement()); - } - } - next(); - return a; - }); - - function try_() { - var body = block_(), bcatch, bfinally; - if (is("keyword", "catch")) { - next(); - expect("("); - if (!is("name")) - croak("Name expected"); - var name = S.token.value; - next(); - expect(")"); - bcatch = [ name, block_() ]; - } - if (is("keyword", "finally")) { - next(); - bfinally = block_(); - } - if (!bcatch && !bfinally) - croak("Missing catch/finally blocks"); - return as("try", body, bcatch, bfinally); - }; - - function vardefs(no_in) { - var a = []; - for (;;) { - if (!is("name")) - unexpected(); - var name = S.token.value; - next(); - if (is("operator", "=")) { - next(); - a.push([ name, expression(false, no_in) ]); - } else { - a.push([ name ]); - } - if (!is("punc", ",")) - break; - next(); - } - return a; - }; - - function var_(no_in) { - return as("var", vardefs(no_in)); - }; - - function const_() { - return as("const", vardefs()); - }; - - function new_() { - var newexp = expr_atom(false), args; - if (is("punc", "(")) { - next(); - args = expr_list(")"); - } else { - args = []; - } - return subscripts(as("new", newexp, args), true); - }; - - var expr_atom = maybe_embed_tokens(function(allow_calls) { - if (is("operator", "new")) { - next(); - return new_(); - } - if (is("operator") && HOP(UNARY_PREFIX, S.token.value)) { - return make_unary("unary-prefix", - prog1(S.token.value, next), - expr_atom(allow_calls)); - } - if (is("punc")) { - switch (S.token.value) { - case "(": - next(); - return subscripts(prog1(expression, curry(expect, ")")), allow_calls); - case "[": - next(); - return subscripts(array_(), allow_calls); - case "{": - next(); - return subscripts(object_(), allow_calls); - } - unexpected(); - } - if (is("keyword", "function")) { - next(); - return subscripts(function_(false), allow_calls); - } - if (HOP(ATOMIC_START_TOKEN, S.token.type)) { - var atom = S.token.type == "regexp" - ? as("regexp", S.token.value[0], S.token.value[1]) - : as(S.token.type, S.token.value); - return subscripts(prog1(atom, next), allow_calls); - } - unexpected(); - }); - - function expr_list(closing, allow_trailing_comma, allow_empty) { - var first = true, a = []; - while (!is("punc", closing)) { - if (first) first = false; else expect(","); - if (allow_trailing_comma && is("punc", closing)) break; - if (is("punc", ",") && allow_empty) { - a.push([ "atom", "undefined" ]); - } else { - a.push(expression(false)); - } - } - next(); - return a; - }; - - function array_() { - return as("array", expr_list("]", !exigent_mode, true)); - }; - - function object_() { - var first = true, a = []; - while (!is("punc", "}")) { - if (first) first = false; else expect(","); - if (!exigent_mode && is("punc", "}")) - // allow trailing comma - break; - var type = S.token.type; - var name = as_property_name(); - if (type == "name" && (name == "get" || name == "set") && !is("punc", ":")) { - a.push([ as_name(), function_(false), name ]); - } else { - expect(":"); - a.push([ name, expression(false) ]); - } - } - next(); - return as("object", a); - }; - - function as_property_name() { - switch (S.token.type) { - case "num": - case "string": - return prog1(S.token.value, next); - } - return as_name(); - }; - - function as_name() { - switch (S.token.type) { - case "name": - case "operator": - case "keyword": - case "atom": - return prog1(S.token.value, next); - default: - unexpected(); - } - }; - - function subscripts(expr, allow_calls) { - if (is("punc", ".")) { - next(); - return subscripts(as("dot", expr, as_name()), allow_calls); - } - if (is("punc", "[")) { - next(); - return subscripts(as("sub", expr, prog1(expression, curry(expect, "]"))), allow_calls); - } - if (allow_calls && is("punc", "(")) { - next(); - return subscripts(as("call", expr, expr_list(")")), true); - } - if (allow_calls && is("operator") && HOP(UNARY_POSTFIX, S.token.value)) { - return prog1(curry(make_unary, "unary-postfix", S.token.value, expr), - next); - } - return expr; - }; - - function make_unary(tag, op, expr) { - if ((op == "++" || op == "--") && !is_assignable(expr)) - croak("Invalid use of " + op + " operator"); - return as(tag, op, expr); - }; - - function expr_op(left, min_prec, no_in) { - var op = is("operator") ? S.token.value : null; - if (op && op == "in" && no_in) op = null; - var prec = op != null ? PRECEDENCE[op] : null; - if (prec != null && prec > min_prec) { - next(); - var right = expr_op(expr_atom(true), prec, no_in); - return expr_op(as("binary", op, left, right), min_prec, no_in); - } - return left; - }; - - function expr_ops(no_in) { - return expr_op(expr_atom(true), 0, no_in); - }; - - function maybe_conditional(no_in) { - var expr = expr_ops(no_in); - if (is("operator", "?")) { - next(); - var yes = expression(false); - expect(":"); - return as("conditional", expr, yes, expression(false, no_in)); - } - return expr; - }; - - function is_assignable(expr) { - if (!exigent_mode) return true; - switch (expr[0]) { - case "dot": - case "sub": - case "new": - case "call": - return true; - case "name": - return expr[1] != "this"; - } - }; - - function maybe_assign(no_in) { - var left = maybe_conditional(no_in), val = S.token.value; - if (is("operator") && HOP(ASSIGNMENT, val)) { - if (is_assignable(left)) { - next(); - return as("assign", ASSIGNMENT[val], left, maybe_assign(no_in)); - } - croak("Invalid assignment"); - } - return left; - }; - - var expression = maybe_embed_tokens(function(commas, no_in) { - if (arguments.length == 0) - commas = true; - var expr = maybe_assign(no_in); - if (commas && is("punc", ",")) { - next(); - return as("seq", expr, expression(true, no_in)); - } - return expr; - }); - - function in_loop(cont) { - try { - ++S.in_loop; - return cont(); - } finally { - --S.in_loop; - } - }; - - return as("toplevel", (function(a){ - while (!is("eof")) - a.push(statement()); - return a; - })([])); - -}; - -/* -----[ Utilities ]----- */ - -function curry(f) { - var args = slice(arguments, 1); - return function() { return f.apply(this, args.concat(slice(arguments))); }; -}; - -function prog1(ret) { - if (ret instanceof Function) - ret = ret(); - for (var i = 1, n = arguments.length; --n > 0; ++i) - arguments[i](); - return ret; -}; - -function array_to_hash(a) { - var ret = {}; - for (var i = 0; i < a.length; ++i) - ret[a[i]] = true; - return ret; -}; - -function slice(a, start) { - return Array.prototype.slice.call(a, start == null ? 0 : start); -}; - -function characters(str) { - return str.split(""); -}; - -function member(name, array) { - for (var i = array.length; --i >= 0;) - if (array[i] === name) - return true; - return false; -}; - -function HOP(obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); -}; - -var warn = function() {}; - -/* -----[ Exports ]----- */ - -exports.tokenizer = tokenizer; -exports.parse = parse; -exports.slice = slice; -exports.curry = curry; -exports.member = member; -exports.array_to_hash = array_to_hash; -exports.PRECEDENCE = PRECEDENCE; -exports.KEYWORDS_ATOM = KEYWORDS_ATOM; -exports.RESERVED_WORDS = RESERVED_WORDS; -exports.KEYWORDS = KEYWORDS; -exports.ATOMIC_START_TOKEN = ATOMIC_START_TOKEN; -exports.OPERATORS = OPERATORS; -exports.is_alphanumeric_char = is_alphanumeric_char; -exports.set_logger = function(logger) { - warn = logger; -}; diff --git a/vendor/assets/components/jquery/build/lib/process.js b/vendor/assets/components/jquery/build/lib/process.js deleted file mode 100644 index 3878c8d625..0000000000 --- a/vendor/assets/components/jquery/build/lib/process.js +++ /dev/null @@ -1,1666 +0,0 @@ -/*********************************************************************** - - A JavaScript tokenizer / parser / beautifier / compressor. - - This version is suitable for Node.js. With minimal changes (the - exports stuff) it should work on any JS platform. - - This file implements some AST processors. They work on data built - by parse-js. - - Exported functions: - - - ast_mangle(ast, options) -- mangles the variable/function names - in the AST. Returns an AST. - - - ast_squeeze(ast) -- employs various optimizations to make the - final generated code even smaller. Returns an AST. - - - gen_code(ast, options) -- generates JS code from the AST. Pass - true (or an object, see the code for some options) as second - argument to get "pretty" (indented) code. - - -------------------------------- (C) --------------------------------- - - Author: Mihai Bazon - - http://mihai.bazon.net/blog - - Distributed under the BSD license: - - Copyright 2010 (c) Mihai Bazon - - 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 HOLDER “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 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. - - ***********************************************************************/ - -var jsp = require("./parse-js"), - slice = jsp.slice, - member = jsp.member, - PRECEDENCE = jsp.PRECEDENCE, - OPERATORS = jsp.OPERATORS; - -/* -----[ helper for AST traversal ]----- */ - -function ast_walker(ast) { - function _vardefs(defs) { - return [ this[0], MAP(defs, function(def){ - var a = [ def[0] ]; - if (def.length > 1) - a[1] = walk(def[1]); - return a; - }) ]; - }; - function _block(statements) { - var out = [ this[0] ]; - if (statements != null) - out.push(MAP(statements, walk)); - return out; - }; - var walkers = { - "string": function(str) { - return [ this[0], str ]; - }, - "num": function(num) { - return [ this[0], num ]; - }, - "name": function(name) { - return [ this[0], name ]; - }, - "toplevel": function(statements) { - return [ this[0], MAP(statements, walk) ]; - }, - "block": _block, - "splice": _block, - "var": _vardefs, - "const": _vardefs, - "try": function(t, c, f) { - return [ - this[0], - MAP(t, walk), - c != null ? [ c[0], MAP(c[1], walk) ] : null, - f != null ? MAP(f, walk) : null - ]; - }, - "throw": function(expr) { - return [ this[0], walk(expr) ]; - }, - "new": function(ctor, args) { - return [ this[0], walk(ctor), MAP(args, walk) ]; - }, - "switch": function(expr, body) { - return [ this[0], walk(expr), MAP(body, function(branch){ - return [ branch[0] ? walk(branch[0]) : null, - MAP(branch[1], walk) ]; - }) ]; - }, - "break": function(label) { - return [ this[0], label ]; - }, - "continue": function(label) { - return [ this[0], label ]; - }, - "conditional": function(cond, t, e) { - return [ this[0], walk(cond), walk(t), walk(e) ]; - }, - "assign": function(op, lvalue, rvalue) { - return [ this[0], op, walk(lvalue), walk(rvalue) ]; - }, - "dot": function(expr) { - return [ this[0], walk(expr) ].concat(slice(arguments, 1)); - }, - "call": function(expr, args) { - return [ this[0], walk(expr), MAP(args, walk) ]; - }, - "function": function(name, args, body) { - return [ this[0], name, args.slice(), MAP(body, walk) ]; - }, - "defun": function(name, args, body) { - return [ this[0], name, args.slice(), MAP(body, walk) ]; - }, - "if": function(conditional, t, e) { - return [ this[0], walk(conditional), walk(t), walk(e) ]; - }, - "for": function(init, cond, step, block) { - return [ this[0], walk(init), walk(cond), walk(step), walk(block) ]; - }, - "for-in": function(vvar, key, hash, block) { - return [ this[0], walk(vvar), walk(key), walk(hash), walk(block) ]; - }, - "while": function(cond, block) { - return [ this[0], walk(cond), walk(block) ]; - }, - "do": function(cond, block) { - return [ this[0], walk(cond), walk(block) ]; - }, - "return": function(expr) { - return [ this[0], walk(expr) ]; - }, - "binary": function(op, left, right) { - return [ this[0], op, walk(left), walk(right) ]; - }, - "unary-prefix": function(op, expr) { - return [ this[0], op, walk(expr) ]; - }, - "unary-postfix": function(op, expr) { - return [ this[0], op, walk(expr) ]; - }, - "sub": function(expr, subscript) { - return [ this[0], walk(expr), walk(subscript) ]; - }, - "object": function(props) { - return [ this[0], MAP(props, function(p){ - return p.length == 2 - ? [ p[0], walk(p[1]) ] - : [ p[0], walk(p[1]), p[2] ]; // get/set-ter - }) ]; - }, - "regexp": function(rx, mods) { - return [ this[0], rx, mods ]; - }, - "array": function(elements) { - return [ this[0], MAP(elements, walk) ]; - }, - "stat": function(stat) { - return [ this[0], walk(stat) ]; - }, - "seq": function() { - return [ this[0] ].concat(MAP(slice(arguments), walk)); - }, - "label": function(name, block) { - return [ this[0], name, walk(block) ]; - }, - "with": function(expr, block) { - return [ this[0], walk(expr), walk(block) ]; - }, - "atom": function(name) { - return [ this[0], name ]; - } - }; - - var user = {}; - var stack = []; - function walk(ast) { - if (ast == null) - return null; - try { - stack.push(ast); - var type = ast[0]; - var gen = user[type]; - if (gen) { - var ret = gen.apply(ast, ast.slice(1)); - if (ret != null) - return ret; - } - gen = walkers[type]; - return gen.apply(ast, ast.slice(1)); - } finally { - stack.pop(); - } - }; - - function with_walkers(walkers, cont){ - var save = {}, i; - for (i in walkers) if (HOP(walkers, i)) { - save[i] = user[i]; - user[i] = walkers[i]; - } - var ret = cont(); - for (i in save) if (HOP(save, i)) { - if (!save[i]) delete user[i]; - else user[i] = save[i]; - } - return ret; - }; - - return { - walk: walk, - with_walkers: with_walkers, - parent: function() { - return stack[stack.length - 2]; // last one is current node - }, - stack: function() { - return stack; - } - }; -}; - -/* -----[ Scope and mangling ]----- */ - -function Scope(parent) { - this.names = {}; // names defined in this scope - this.mangled = {}; // mangled names (orig.name => mangled) - this.rev_mangled = {}; // reverse lookup (mangled => orig.name) - this.cname = -1; // current mangled name - this.refs = {}; // names referenced from this scope - this.uses_with = false; // will become TRUE if with() is detected in this or any subscopes - this.uses_eval = false; // will become TRUE if eval() is detected in this or any subscopes - this.parent = parent; // parent scope - this.children = []; // sub-scopes - if (parent) { - this.level = parent.level + 1; - parent.children.push(this); - } else { - this.level = 0; - } -}; - -var base54 = (function(){ - var DIGITS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_"; - return function(num) { - var ret = ""; - do { - ret = DIGITS.charAt(num % 54) + ret; - num = Math.floor(num / 54); - } while (num > 0); - return ret; - }; -})(); - -Scope.prototype = { - has: function(name) { - for (var s = this; s; s = s.parent) - if (HOP(s.names, name)) - return s; - }, - has_mangled: function(mname) { - for (var s = this; s; s = s.parent) - if (HOP(s.rev_mangled, mname)) - return s; - }, - toJSON: function() { - return { - names: this.names, - uses_eval: this.uses_eval, - uses_with: this.uses_with - }; - }, - - next_mangled: function() { - // we must be careful that the new mangled name: - // - // 1. doesn't shadow a mangled name from a parent - // scope, unless we don't reference the original - // name from this scope OR from any sub-scopes! - // This will get slow. - // - // 2. doesn't shadow an original name from a parent - // scope, in the event that the name is not mangled - // in the parent scope and we reference that name - // here OR IN ANY SUBSCOPES! - // - // 3. doesn't shadow a name that is referenced but not - // defined (possibly global defined elsewhere). - for (;;) { - var m = base54(++this.cname), prior; - - // case 1. - prior = this.has_mangled(m); - if (prior && this.refs[prior.rev_mangled[m]] === prior) - continue; - - // case 2. - prior = this.has(m); - if (prior && prior !== this && this.refs[m] === prior && !prior.has_mangled(m)) - continue; - - // case 3. - if (HOP(this.refs, m) && this.refs[m] == null) - continue; - - // I got "do" once. :-/ - if (!is_identifier(m)) - continue; - - return m; - } - }, - get_mangled: function(name, newMangle) { - if (this.uses_eval || this.uses_with) return name; // no mangle if eval or with is in use - var s = this.has(name); - if (!s) return name; // not in visible scope, no mangle - if (HOP(s.mangled, name)) return s.mangled[name]; // already mangled in this scope - if (!newMangle) return name; // not found and no mangling requested - - var m = s.next_mangled(); - s.rev_mangled[m] = name; - return s.mangled[name] = m; - }, - define: function(name) { - if (name != null) - return this.names[name] = name; - } -}; - -function ast_add_scope(ast) { - - var current_scope = null; - var w = ast_walker(), walk = w.walk; - var having_eval = []; - - function with_new_scope(cont) { - current_scope = new Scope(current_scope); - var ret = current_scope.body = cont(); - ret.scope = current_scope; - current_scope = current_scope.parent; - return ret; - }; - - function define(name) { - return current_scope.define(name); - }; - - function reference(name) { - current_scope.refs[name] = true; - }; - - function _lambda(name, args, body) { - var is_defun = this[0] == "defun"; - return [ this[0], is_defun ? define(name) : name, args, with_new_scope(function(){ - if (!is_defun) define(name); - MAP(args, define); - return MAP(body, walk); - })]; - }; - - return with_new_scope(function(){ - // process AST - var ret = w.with_walkers({ - "function": _lambda, - "defun": _lambda, - "with": function(expr, block) { - for (var s = current_scope; s; s = s.parent) - s.uses_with = true; - }, - "var": function(defs) { - MAP(defs, function(d){ define(d[0]) }); - }, - "const": function(defs) { - MAP(defs, function(d){ define(d[0]) }); - }, - "try": function(t, c, f) { - if (c != null) return [ - this[0], - MAP(t, walk), - [ define(c[0]), MAP(c[1], walk) ], - f != null ? MAP(f, walk) : null - ]; - }, - "name": function(name) { - if (name == "eval") - having_eval.push(current_scope); - reference(name); - } - }, function(){ - return walk(ast); - }); - - // the reason why we need an additional pass here is - // that names can be used prior to their definition. - - // scopes where eval was detected and their parents - // are marked with uses_eval, unless they define the - // "eval" name. - MAP(having_eval, function(scope){ - if (!scope.has("eval")) while (scope) { - scope.uses_eval = true; - scope = scope.parent; - } - }); - - // for referenced names it might be useful to know - // their origin scope. current_scope here is the - // toplevel one. - function fixrefs(scope, i) { - // do children first; order shouldn't matter - for (i = scope.children.length; --i >= 0;) - fixrefs(scope.children[i]); - for (i in scope.refs) if (HOP(scope.refs, i)) { - // find origin scope and propagate the reference to origin - for (var origin = scope.has(i), s = scope; s; s = s.parent) { - s.refs[i] = origin; - if (s === origin) break; - } - } - }; - fixrefs(current_scope); - - return ret; - }); - -}; - -/* -----[ mangle names ]----- */ - -function ast_mangle(ast, options) { - var w = ast_walker(), walk = w.walk, scope; - options = options || {}; - - function get_mangled(name, newMangle) { - if (!options.toplevel && !scope.parent) return name; // don't mangle toplevel - if (options.except && member(name, options.except)) - return name; - return scope.get_mangled(name, newMangle); - }; - - function get_define(name) { - // we always lookup a defined symbol for the current scope FIRST, so declared - // vars trump a DEFINE symbol, but if no such var is found, then match a DEFINE value - if (!scope.has(name)) { - if (HOP(options.defines, name)) { - return options.defines[name]; - } - } - return null; - }; - - function _lambda(name, args, body) { - var is_defun = this[0] == "defun"; - if (is_defun && name) name = get_mangled(name); - body = with_scope(body.scope, function(){ - if (!is_defun && name) name = get_mangled(name); - args = MAP(args, function(name){ return get_mangled(name) }); - return MAP(body, walk); - }); - return [ this[0], name, args, body ]; - }; - - function with_scope(s, cont) { - var _scope = scope; - scope = s; - for (var i in s.names) if (HOP(s.names, i)) { - get_mangled(i, true); - } - var ret = cont(); - ret.scope = s; - scope = _scope; - return ret; - }; - - function _vardefs(defs) { - return [ this[0], MAP(defs, function(d){ - return [ get_mangled(d[0]), walk(d[1]) ]; - }) ]; - }; - - return w.with_walkers({ - "function": _lambda, - "defun": function() { - // move function declarations to the top when - // they are not in some block. - var ast = _lambda.apply(this, arguments); - switch (w.parent()[0]) { - case "toplevel": - case "function": - case "defun": - return MAP.at_top(ast); - } - return ast; - }, - "var": _vardefs, - "const": _vardefs, - "name": function(name) { - return get_define(name) || [ this[0], get_mangled(name) ]; - }, - "try": function(t, c, f) { - return [ this[0], - MAP(t, walk), - c != null ? [ get_mangled(c[0]), MAP(c[1], walk) ] : null, - f != null ? MAP(f, walk) : null ]; - }, - "toplevel": function(body) { - var self = this; - return with_scope(self.scope, function(){ - return [ self[0], MAP(body, walk) ]; - }); - } - }, function() { - return walk(ast_add_scope(ast)); - }); -}; - -/* -----[ - - compress foo["bar"] into foo.bar, - - remove block brackets {} where possible - - join consecutive var declarations - - various optimizations for IFs: - - if (cond) foo(); else bar(); ==> cond?foo():bar(); - - if (cond) foo(); ==> cond&&foo(); - - if (foo) return bar(); else return baz(); ==> return foo?bar():baz(); // also for throw - - if (foo) return bar(); else something(); ==> {if(foo)return bar();something()} - ]----- */ - -var warn = function(){}; - -function best_of(ast1, ast2) { - return gen_code(ast1).length > gen_code(ast2[0] == "stat" ? ast2[1] : ast2).length ? ast2 : ast1; -}; - -function last_stat(b) { - if (b[0] == "block" && b[1] && b[1].length > 0) - return b[1][b[1].length - 1]; - return b; -} - -function aborts(t) { - if (t) { - t = last_stat(t); - if (t[0] == "return" || t[0] == "break" || t[0] == "continue" || t[0] == "throw") - return true; - } -}; - -function boolean_expr(expr) { - return ( (expr[0] == "unary-prefix" - && member(expr[1], [ "!", "delete" ])) || - - (expr[0] == "binary" - && member(expr[1], [ "in", "instanceof", "==", "!=", "===", "!==", "<", "<=", ">=", ">" ])) || - - (expr[0] == "binary" - && member(expr[1], [ "&&", "||" ]) - && boolean_expr(expr[2]) - && boolean_expr(expr[3])) || - - (expr[0] == "conditional" - && boolean_expr(expr[2]) - && boolean_expr(expr[3])) || - - (expr[0] == "assign" - && expr[1] === true - && boolean_expr(expr[3])) || - - (expr[0] == "seq" - && boolean_expr(expr[expr.length - 1])) - ); -}; - -function make_conditional(c, t, e) { - var make_real_conditional = function() { - if (c[0] == "unary-prefix" && c[1] == "!") { - return e ? [ "conditional", c[2], e, t ] : [ "binary", "||", c[2], t ]; - } else { - return e ? [ "conditional", c, t, e ] : [ "binary", "&&", c, t ]; - } - }; - // shortcut the conditional if the expression has a constant value - return when_constant(c, function(ast, val){ - warn_unreachable(val ? e : t); - return (val ? t : e); - }, make_real_conditional); -}; - -function empty(b) { - return !b || (b[0] == "block" && (!b[1] || b[1].length == 0)); -}; - -function is_string(node) { - return (node[0] == "string" || - node[0] == "unary-prefix" && node[1] == "typeof" || - node[0] == "binary" && node[1] == "+" && - (is_string(node[2]) || is_string(node[3]))); -}; - -var when_constant = (function(){ - - var $NOT_CONSTANT = {}; - - // this can only evaluate constant expressions. If it finds anything - // not constant, it throws $NOT_CONSTANT. - function evaluate(expr) { - switch (expr[0]) { - case "string": - case "num": - return expr[1]; - case "name": - case "atom": - switch (expr[1]) { - case "true": return true; - case "false": return false; - } - break; - case "unary-prefix": - switch (expr[1]) { - case "!": return !evaluate(expr[2]); - case "typeof": return typeof evaluate(expr[2]); - case "~": return ~evaluate(expr[2]); - case "-": return -evaluate(expr[2]); - case "+": return +evaluate(expr[2]); - } - break; - case "binary": - var left = expr[2], right = expr[3]; - switch (expr[1]) { - case "&&" : return evaluate(left) && evaluate(right); - case "||" : return evaluate(left) || evaluate(right); - case "|" : return evaluate(left) | evaluate(right); - case "&" : return evaluate(left) & evaluate(right); - case "^" : return evaluate(left) ^ evaluate(right); - case "+" : return evaluate(left) + evaluate(right); - case "*" : return evaluate(left) * evaluate(right); - case "/" : return evaluate(left) / evaluate(right); - case "-" : return evaluate(left) - evaluate(right); - case "<<" : return evaluate(left) << evaluate(right); - case ">>" : return evaluate(left) >> evaluate(right); - case ">>>" : return evaluate(left) >>> evaluate(right); - case "==" : return evaluate(left) == evaluate(right); - case "===" : return evaluate(left) === evaluate(right); - case "!=" : return evaluate(left) != evaluate(right); - case "!==" : return evaluate(left) !== evaluate(right); - case "<" : return evaluate(left) < evaluate(right); - case "<=" : return evaluate(left) <= evaluate(right); - case ">" : return evaluate(left) > evaluate(right); - case ">=" : return evaluate(left) >= evaluate(right); - case "in" : return evaluate(left) in evaluate(right); - case "instanceof" : return evaluate(left) instanceof evaluate(right); - } - } - throw $NOT_CONSTANT; - }; - - return function(expr, yes, no) { - try { - var val = evaluate(expr), ast; - switch (typeof val) { - case "string": ast = [ "string", val ]; break; - case "number": ast = [ "num", val ]; break; - case "boolean": ast = [ "name", String(val) ]; break; - default: throw new Error("Can't handle constant of type: " + (typeof val)); - } - return yes.call(expr, ast, val); - } catch(ex) { - if (ex === $NOT_CONSTANT) { - if (expr[0] == "binary" - && (expr[1] == "===" || expr[1] == "!==") - && ((is_string(expr[2]) && is_string(expr[3])) - || (boolean_expr(expr[2]) && boolean_expr(expr[3])))) { - expr[1] = expr[1].substr(0, 2); - } - else if (no && expr[0] == "binary" - && (expr[1] == "||" || expr[1] == "&&")) { - // the whole expression is not constant but the lval may be... - try { - var lval = evaluate(expr[2]); - expr = ((expr[1] == "&&" && (lval ? expr[3] : lval)) || - (expr[1] == "||" && (lval ? lval : expr[3])) || - expr); - } catch(ex2) { - // IGNORE... lval is not constant - } - } - return no ? no.call(expr, expr) : null; - } - else throw ex; - } - }; - -})(); - -function warn_unreachable(ast) { - if (!empty(ast)) - warn("Dropping unreachable code: " + gen_code(ast, true)); -}; - -function ast_squeeze(ast, options) { - options = defaults(options, { - make_seqs : true, - dead_code : true, - keep_comps : true, - no_warnings : false - }); - - var w = ast_walker(), walk = w.walk, scope; - - function negate(c) { - var not_c = [ "unary-prefix", "!", c ]; - switch (c[0]) { - case "unary-prefix": - return c[1] == "!" && boolean_expr(c[2]) ? c[2] : not_c; - case "seq": - c = slice(c); - c[c.length - 1] = negate(c[c.length - 1]); - return c; - case "conditional": - return best_of(not_c, [ "conditional", c[1], negate(c[2]), negate(c[3]) ]); - case "binary": - var op = c[1], left = c[2], right = c[3]; - if (!options.keep_comps) switch (op) { - case "<=" : return [ "binary", ">", left, right ]; - case "<" : return [ "binary", ">=", left, right ]; - case ">=" : return [ "binary", "<", left, right ]; - case ">" : return [ "binary", "<=", left, right ]; - } - switch (op) { - case "==" : return [ "binary", "!=", left, right ]; - case "!=" : return [ "binary", "==", left, right ]; - case "===" : return [ "binary", "!==", left, right ]; - case "!==" : return [ "binary", "===", left, right ]; - case "&&" : return best_of(not_c, [ "binary", "||", negate(left), negate(right) ]); - case "||" : return best_of(not_c, [ "binary", "&&", negate(left), negate(right) ]); - } - break; - } - return not_c; - }; - - function with_scope(s, cont) { - var _scope = scope; - scope = s; - var ret = cont(); - ret.scope = s; - scope = _scope; - return ret; - }; - - function rmblock(block) { - if (block != null && block[0] == "block" && block[1]) { - if (block[1].length == 1) - block = block[1][0]; - else if (block[1].length == 0) - block = [ "block" ]; - } - return block; - }; - - function _lambda(name, args, body) { - var is_defun = this[0] == "defun"; - body = with_scope(body.scope, function(){ - var ret = tighten(MAP(body, walk), "lambda"); - if (!is_defun && name && !HOP(scope.refs, name)) - name = null; - return ret; - }); - return [ this[0], name, args, body ]; - }; - - // we get here for blocks that have been already transformed. - // this function does a few things: - // 1. discard useless blocks - // 2. join consecutive var declarations - // 3. remove obviously dead code - // 4. transform consecutive statements using the comma operator - // 5. if block_type == "lambda" and it detects constructs like if(foo) return ... - rewrite like if (!foo) { ... } - function tighten(statements, block_type) { - statements = statements.reduce(function(a, stat){ - if (stat[0] == "block") { - if (stat[1]) { - a.push.apply(a, stat[1]); - } - } else { - a.push(stat); - } - return a; - }, []); - - statements = (function(a, prev){ - statements.forEach(function(cur){ - if (prev && ((cur[0] == "var" && prev[0] == "var") || - (cur[0] == "const" && prev[0] == "const"))) { - prev[1] = prev[1].concat(cur[1]); - } else { - a.push(cur); - prev = cur; - } - }); - return a; - })([]); - - if (options.dead_code) statements = (function(a, has_quit){ - statements.forEach(function(st){ - if (has_quit) { - if (member(st[0], [ "function", "defun" , "var", "const" ])) { - a.push(st); - } - else if (!options.no_warnings) - warn_unreachable(st); - } - else { - a.push(st); - if (member(st[0], [ "return", "throw", "break", "continue" ])) - has_quit = true; - } - }); - return a; - })([]); - - if (options.make_seqs) statements = (function(a, prev) { - statements.forEach(function(cur){ - if (prev && prev[0] == "stat" && cur[0] == "stat") { - prev[1] = [ "seq", prev[1], cur[1] ]; - } else { - a.push(cur); - prev = cur; - } - }); - return a; - })([]); - - if (block_type == "lambda") statements = (function(i, a, stat){ - while (i < statements.length) { - stat = statements[i++]; - if (stat[0] == "if" && !stat[3]) { - if (stat[2][0] == "return" && stat[2][1] == null) { - a.push(make_if(negate(stat[1]), [ "block", statements.slice(i) ])); - break; - } - var last = last_stat(stat[2]); - if (last[0] == "return" && last[1] == null) { - a.push(make_if(stat[1], [ "block", stat[2][1].slice(0, -1) ], [ "block", statements.slice(i) ])); - break; - } - } - a.push(stat); - } - return a; - })(0, []); - - return statements; - }; - - function make_if(c, t, e) { - return when_constant(c, function(ast, val){ - if (val) { - warn_unreachable(e); - return t; - } else { - warn_unreachable(t); - return e; - } - }, function() { - return make_real_if(c, t, e); - }); - }; - - function make_real_if(c, t, e) { - c = walk(c); - t = walk(t); - e = walk(e); - - if (empty(t)) { - c = negate(c); - t = e; - e = null; - } else if (empty(e)) { - e = null; - } else { - // if we have both else and then, maybe it makes sense to switch them? - (function(){ - var a = gen_code(c); - var n = negate(c); - var b = gen_code(n); - if (b.length < a.length) { - var tmp = t; - t = e; - e = tmp; - c = n; - } - })(); - } - if (empty(e) && empty(t)) - return [ "stat", c ]; - var ret = [ "if", c, t, e ]; - if (t[0] == "if" && empty(t[3]) && empty(e)) { - ret = best_of(ret, walk([ "if", [ "binary", "&&", c, t[1] ], t[2] ])); - } - else if (t[0] == "stat") { - if (e) { - if (e[0] == "stat") { - ret = best_of(ret, [ "stat", make_conditional(c, t[1], e[1]) ]); - } - } - else { - ret = best_of(ret, [ "stat", make_conditional(c, t[1]) ]); - } - } - else if (e && t[0] == e[0] && (t[0] == "return" || t[0] == "throw") && t[1] && e[1]) { - ret = best_of(ret, [ t[0], make_conditional(c, t[1], e[1] ) ]); - } - else if (e && aborts(t)) { - ret = [ [ "if", c, t ] ]; - if (e[0] == "block") { - if (e[1]) ret = ret.concat(e[1]); - } - else { - ret.push(e); - } - ret = walk([ "block", ret ]); - } - else if (t && aborts(e)) { - ret = [ [ "if", negate(c), e ] ]; - if (t[0] == "block") { - if (t[1]) ret = ret.concat(t[1]); - } else { - ret.push(t); - } - ret = walk([ "block", ret ]); - } - return ret; - }; - - function _do_while(cond, body) { - return when_constant(cond, function(cond, val){ - if (!val) { - warn_unreachable(body); - return [ "block" ]; - } else { - return [ "for", null, null, null, walk(body) ]; - } - }); - }; - - return w.with_walkers({ - "sub": function(expr, subscript) { - if (subscript[0] == "string") { - var name = subscript[1]; - if (is_identifier(name)) - return [ "dot", walk(expr), name ]; - else if (/^[1-9][0-9]*$/.test(name) || name === "0") - return [ "sub", walk(expr), [ "num", parseInt(name, 10) ] ]; - } - }, - "if": make_if, - "toplevel": function(body) { - return [ "toplevel", with_scope(this.scope, function(){ - return tighten(MAP(body, walk)); - }) ]; - }, - "switch": function(expr, body) { - var last = body.length - 1; - return [ "switch", walk(expr), MAP(body, function(branch, i){ - var block = tighten(MAP(branch[1], walk)); - if (i == last && block.length > 0) { - var node = block[block.length - 1]; - if (node[0] == "break" && !node[1]) - block.pop(); - } - return [ branch[0] ? walk(branch[0]) : null, block ]; - }) ]; - }, - "function": _lambda, - "defun": _lambda, - "block": function(body) { - if (body) return rmblock([ "block", tighten(MAP(body, walk)) ]); - }, - "binary": function(op, left, right) { - return when_constant([ "binary", op, walk(left), walk(right) ], function yes(c){ - return best_of(walk(c), this); - }, function no() { - return this; - }); - }, - "conditional": function(c, t, e) { - return make_conditional(walk(c), walk(t), walk(e)); - }, - "try": function(t, c, f) { - return [ - "try", - tighten(MAP(t, walk)), - c != null ? [ c[0], tighten(MAP(c[1], walk)) ] : null, - f != null ? tighten(MAP(f, walk)) : null - ]; - }, - "unary-prefix": function(op, expr) { - expr = walk(expr); - var ret = [ "unary-prefix", op, expr ]; - if (op == "!") - ret = best_of(ret, negate(expr)); - return when_constant(ret, function(ast, val){ - return walk(ast); // it's either true or false, so minifies to !0 or !1 - }, function() { return ret }); - }, - "name": function(name) { - switch (name) { - case "true": return [ "unary-prefix", "!", [ "num", 0 ]]; - case "false": return [ "unary-prefix", "!", [ "num", 1 ]]; - } - }, - "new": function(ctor, args) { - if (ctor[0] == "name" && ctor[1] == "Array" && !scope.has("Array")) { - if (args.length != 1) { - return [ "array", args ]; - } else { - return [ "call", [ "name", "Array" ], args ]; - } - } - }, - "call": function(expr, args) { - if (expr[0] == "name" && expr[1] == "Array" && args.length != 1 && !scope.has("Array")) { - return [ "array", args ]; - } - }, - "while": _do_while, - "do": _do_while - }, function() { - return walk(ast_add_scope(ast)); - }); -}; - -/* -----[ re-generate code from the AST ]----- */ - -var DOT_CALL_NO_PARENS = jsp.array_to_hash([ - "name", - "array", - "object", - "string", - "dot", - "sub", - "call", - "regexp" -]); - -function make_string(str, ascii_only) { - var dq = 0, sq = 0; - str = str.replace(/[\\\b\f\n\r\t\x22\x27\u2028\u2029]/g, function(s){ - switch (s) { - case "\\": return "\\\\"; - case "\b": return "\\b"; - case "\f": return "\\f"; - case "\n": return "\\n"; - case "\r": return "\\r"; - case "\t": return "\\t"; - case "\u2028": return "\\u2028"; - case "\u2029": return "\\u2029"; - case '"': ++dq; return '"'; - case "'": ++sq; return "'"; - } - return s; - }); - if (ascii_only) str = to_ascii(str); - if (dq > sq) return "'" + str.replace(/\x27/g, "\\'") + "'"; - else return '"' + str.replace(/\x22/g, '\\"') + '"'; -}; - -function to_ascii(str) { - return str.replace(/[\u0080-\uffff]/g, function(ch) { - var code = ch.charCodeAt(0).toString(16); - while (code.length < 4) code = "0" + code; - return "\\u" + code; - }); -}; - -var SPLICE_NEEDS_BRACKETS = jsp.array_to_hash([ "if", "while", "do", "for", "for-in", "with" ]); - -function gen_code(ast, options) { - options = defaults(options, { - indent_start : 0, - indent_level : 4, - quote_keys : false, - space_colon : false, - beautify : false, - ascii_only : false - }); - var beautify = !!options.beautify; - var indentation = 0, - newline = beautify ? "\n" : "", - space = beautify ? " " : ""; - - function encode_string(str) { - return make_string(str, options.ascii_only); - }; - - function make_name(name) { - name = name.toString(); - if (options.ascii_only) - name = to_ascii(name); - return name; - }; - - function indent(line) { - if (line == null) - line = ""; - if (beautify) - line = repeat_string(" ", options.indent_start + indentation * options.indent_level) + line; - return line; - }; - - function with_indent(cont, incr) { - if (incr == null) incr = 1; - indentation += incr; - try { return cont.apply(null, slice(arguments, 1)); } - finally { indentation -= incr; } - }; - - function add_spaces(a) { - if (beautify) - return a.join(" "); - var b = []; - for (var i = 0; i < a.length; ++i) { - var next = a[i + 1]; - b.push(a[i]); - if (next && - ((/[a-z0-9_\x24]$/i.test(a[i].toString()) && /^[a-z0-9_\x24]/i.test(next.toString())) || - (/[\+\-]$/.test(a[i].toString()) && /^[\+\-]/.test(next.toString())))) { - b.push(" "); - } - } - return b.join(""); - }; - - function add_commas(a) { - return a.join("," + space); - }; - - function parenthesize(expr) { - var gen = make(expr); - for (var i = 1; i < arguments.length; ++i) { - var el = arguments[i]; - if ((el instanceof Function && el(expr)) || expr[0] == el) - return "(" + gen + ")"; - } - return gen; - }; - - function best_of(a) { - if (a.length == 1) { - return a[0]; - } - if (a.length == 2) { - var b = a[1]; - a = a[0]; - return a.length <= b.length ? a : b; - } - return best_of([ a[0], best_of(a.slice(1)) ]); - }; - - function needs_parens(expr) { - if (expr[0] == "function" || expr[0] == "object") { - // dot/call on a literal function requires the - // function literal itself to be parenthesized - // only if it's the first "thing" in a - // statement. This means that the parent is - // "stat", but it could also be a "seq" and - // we're the first in this "seq" and the - // parent is "stat", and so on. Messy stuff, - // but it worths the trouble. - var a = slice($stack), self = a.pop(), p = a.pop(); - while (p) { - if (p[0] == "stat") return true; - if (((p[0] == "seq" || p[0] == "call" || p[0] == "dot" || p[0] == "sub" || p[0] == "conditional") && p[1] === self) || - ((p[0] == "binary" || p[0] == "assign" || p[0] == "unary-postfix") && p[2] === self)) { - self = p; - p = a.pop(); - } else { - return false; - } - } - } - return !HOP(DOT_CALL_NO_PARENS, expr[0]); - }; - - function make_num(num) { - var str = num.toString(10), a = [ str.replace(/^0\./, ".") ], m; - if (Math.floor(num) === num) { - a.push("0x" + num.toString(16).toLowerCase(), // probably pointless - "0" + num.toString(8)); // same. - if ((m = /^(.*?)(0+)$/.exec(num))) { - a.push(m[1] + "e" + m[2].length); - } - } else if ((m = /^0?\.(0+)(.*)$/.exec(num))) { - a.push(m[2] + "e-" + (m[1].length + m[2].length), - str.substr(str.indexOf("."))); - } - return best_of(a); - }; - - var generators = { - "string": encode_string, - "num": make_num, - "name": make_name, - "toplevel": function(statements) { - return make_block_statements(statements) - .join(newline + newline); - }, - "splice": function(statements) { - var parent = $stack[$stack.length - 2][0]; - if (HOP(SPLICE_NEEDS_BRACKETS, parent)) { - // we need block brackets in this case - return make_block.apply(this, arguments); - } else { - return MAP(make_block_statements(statements, true), - function(line, i) { - // the first line is already indented - return i > 0 ? indent(line) : line; - }).join(newline); - } - }, - "block": make_block, - "var": function(defs) { - return "var " + add_commas(MAP(defs, make_1vardef)) + ";"; - }, - "const": function(defs) { - return "const " + add_commas(MAP(defs, make_1vardef)) + ";"; - }, - "try": function(tr, ca, fi) { - var out = [ "try", make_block(tr) ]; - if (ca) out.push("catch", "(" + ca[0] + ")", make_block(ca[1])); - if (fi) out.push("finally", make_block(fi)); - return add_spaces(out); - }, - "throw": function(expr) { - return add_spaces([ "throw", make(expr) ]) + ";"; - }, - "new": function(ctor, args) { - args = args.length > 0 ? "(" + add_commas(MAP(args, make)) + ")" : ""; - return add_spaces([ "new", parenthesize(ctor, "seq", "binary", "conditional", "assign", function(expr){ - var w = ast_walker(), has_call = {}; - try { - w.with_walkers({ - "call": function() { throw has_call }, - "function": function() { return this } - }, function(){ - w.walk(expr); - }); - } catch(ex) { - if (ex === has_call) - return true; - throw ex; - } - }) + args ]); - }, - "switch": function(expr, body) { - return add_spaces([ "switch", "(" + make(expr) + ")", make_switch_block(body) ]); - }, - "break": function(label) { - var out = "break"; - if (label != null) - out += " " + make_name(label); - return out + ";"; - }, - "continue": function(label) { - var out = "continue"; - if (label != null) - out += " " + make_name(label); - return out + ";"; - }, - "conditional": function(co, th, el) { - return add_spaces([ parenthesize(co, "assign", "seq", "conditional"), "?", - parenthesize(th, "seq"), ":", - parenthesize(el, "seq") ]); - }, - "assign": function(op, lvalue, rvalue) { - if (op && op !== true) op += "="; - else op = "="; - return add_spaces([ make(lvalue), op, parenthesize(rvalue, "seq") ]); - }, - "dot": function(expr) { - var out = make(expr), i = 1; - if (expr[0] == "num") { - if (!/\./.test(expr[1])) - out += "."; - } else if (needs_parens(expr)) - out = "(" + out + ")"; - while (i < arguments.length) - out += "." + make_name(arguments[i++]); - return out; - }, - "call": function(func, args) { - var f = make(func); - if (needs_parens(func)) - f = "(" + f + ")"; - return f + "(" + add_commas(MAP(args, function(expr){ - return parenthesize(expr, "seq"); - })) + ")"; - }, - "function": make_function, - "defun": make_function, - "if": function(co, th, el) { - var out = [ "if", "(" + make(co) + ")", el ? make_then(th) : make(th) ]; - if (el) { - out.push("else", make(el)); - } - return add_spaces(out); - }, - "for": function(init, cond, step, block) { - var out = [ "for" ]; - init = (init != null ? make(init) : "").replace(/;*\s*$/, ";" + space); - cond = (cond != null ? make(cond) : "").replace(/;*\s*$/, ";" + space); - step = (step != null ? make(step) : "").replace(/;*\s*$/, ""); - var args = init + cond + step; - if (args == "; ; ") args = ";;"; - out.push("(" + args + ")", make(block)); - return add_spaces(out); - }, - "for-in": function(vvar, key, hash, block) { - return add_spaces([ "for", "(" + - (vvar ? make(vvar).replace(/;+$/, "") : make(key)), - "in", - make(hash) + ")", make(block) ]); - }, - "while": function(condition, block) { - return add_spaces([ "while", "(" + make(condition) + ")", make(block) ]); - }, - "do": function(condition, block) { - return add_spaces([ "do", make(block), "while", "(" + make(condition) + ")" ]) + ";"; - }, - "return": function(expr) { - var out = [ "return" ]; - if (expr != null) out.push(make(expr)); - return add_spaces(out) + ";"; - }, - "binary": function(operator, lvalue, rvalue) { - var left = make(lvalue), right = make(rvalue); - // XXX: I'm pretty sure other cases will bite here. - // we need to be smarter. - // adding parens all the time is the safest bet. - if (member(lvalue[0], [ "assign", "conditional", "seq" ]) || - lvalue[0] == "binary" && PRECEDENCE[operator] > PRECEDENCE[lvalue[1]]) { - left = "(" + left + ")"; - } - if (member(rvalue[0], [ "assign", "conditional", "seq" ]) || - rvalue[0] == "binary" && PRECEDENCE[operator] >= PRECEDENCE[rvalue[1]] && - !(rvalue[1] == operator && member(operator, [ "&&", "||", "*" ]))) { - right = "(" + right + ")"; - } - return add_spaces([ left, operator, right ]); - }, - "unary-prefix": function(operator, expr) { - var val = make(expr); - if (!(expr[0] == "num" || (expr[0] == "unary-prefix" && !HOP(OPERATORS, operator + expr[1])) || !needs_parens(expr))) - val = "(" + val + ")"; - return operator + (jsp.is_alphanumeric_char(operator.charAt(0)) ? " " : "") + val; - }, - "unary-postfix": function(operator, expr) { - var val = make(expr); - if (!(expr[0] == "num" || (expr[0] == "unary-postfix" && !HOP(OPERATORS, operator + expr[1])) || !needs_parens(expr))) - val = "(" + val + ")"; - return val + operator; - }, - "sub": function(expr, subscript) { - var hash = make(expr); - if (needs_parens(expr)) - hash = "(" + hash + ")"; - return hash + "[" + make(subscript) + "]"; - }, - "object": function(props) { - if (props.length == 0) - return "{}"; - return "{" + newline + with_indent(function(){ - return MAP(props, function(p){ - if (p.length == 3) { - // getter/setter. The name is in p[0], the arg.list in p[1][2], the - // body in p[1][3] and type ("get" / "set") in p[2]. - return indent(make_function(p[0], p[1][2], p[1][3], p[2])); - } - var key = p[0], val = make(p[1]); - if (options.quote_keys) { - key = encode_string(key); - } else if ((typeof key == "number" || !beautify && +key + "" == key) - && parseFloat(key) >= 0) { - key = make_num(+key); - } else if (!is_identifier(key)) { - key = encode_string(key); - } - return indent(add_spaces(beautify && options.space_colon - ? [ key, ":", val ] - : [ key + ":", val ])); - }).join("," + newline); - }) + newline + indent("}"); - }, - "regexp": function(rx, mods) { - return "/" + rx + "/" + mods; - }, - "array": function(elements) { - if (elements.length == 0) return "[]"; - return add_spaces([ "[", add_commas(MAP(elements, function(el){ - if (!beautify && el[0] == "atom" && el[1] == "undefined") return ""; - return parenthesize(el, "seq"); - })), "]" ]); - }, - "stat": function(stmt) { - return make(stmt).replace(/;*\s*$/, ";"); - }, - "seq": function() { - return add_commas(MAP(slice(arguments), make)); - }, - "label": function(name, block) { - return add_spaces([ make_name(name), ":", make(block) ]); - }, - "with": function(expr, block) { - return add_spaces([ "with", "(" + make(expr) + ")", make(block) ]); - }, - "atom": function(name) { - return make_name(name); - } - }; - - // The squeezer replaces "block"-s that contain only a single - // statement with the statement itself; technically, the AST - // is correct, but this can create problems when we output an - // IF having an ELSE clause where the THEN clause ends in an - // IF *without* an ELSE block (then the outer ELSE would refer - // to the inner IF). This function checks for this case and - // adds the block brackets if needed. - function make_then(th) { - if (th[0] == "do") { - // https://github.com/mishoo/UglifyJS/issues/#issue/57 - // IE croaks with "syntax error" on code like this: - // if (foo) do ... while(cond); else ... - // we need block brackets around do/while - return make([ "block", [ th ]]); - } - var b = th; - while (true) { - var type = b[0]; - if (type == "if") { - if (!b[3]) - // no else, we must add the block - return make([ "block", [ th ]]); - b = b[3]; - } - else if (type == "while" || type == "do") b = b[2]; - else if (type == "for" || type == "for-in") b = b[4]; - else break; - } - return make(th); - }; - - function make_function(name, args, body, keyword) { - var out = keyword || "function"; - if (name) { - out += " " + make_name(name); - } - out += "(" + add_commas(MAP(args, make_name)) + ")"; - return add_spaces([ out, make_block(body) ]); - }; - - function make_block_statements(statements, noindent) { - for (var a = [], last = statements.length - 1, i = 0; i <= last; ++i) { - var stat = statements[i]; - var code = make(stat); - if (code != ";") { - if (!beautify && i == last) { - if ((stat[0] == "while" && empty(stat[2])) || - (member(stat[0], [ "for", "for-in"] ) && empty(stat[4])) || - (stat[0] == "if" && empty(stat[2]) && !stat[3]) || - (stat[0] == "if" && stat[3] && empty(stat[3]))) { - code = code.replace(/;*\s*$/, ";"); - } else { - code = code.replace(/;+\s*$/, ""); - } - } - a.push(code); - } - } - return noindent ? a : MAP(a, indent); - }; - - function make_switch_block(body) { - var n = body.length; - if (n == 0) return "{}"; - return "{" + newline + MAP(body, function(branch, i){ - var has_body = branch[1].length > 0, code = with_indent(function(){ - return indent(branch[0] - ? add_spaces([ "case", make(branch[0]) + ":" ]) - : "default:"); - }, 0.5) + (has_body ? newline + with_indent(function(){ - return make_block_statements(branch[1]).join(newline); - }) : ""); - if (!beautify && has_body && i < n - 1) - code += ";"; - return code; - }).join(newline) + newline + indent("}"); - }; - - function make_block(statements) { - if (!statements) return ";"; - if (statements.length == 0) return "{}"; - return "{" + newline + with_indent(function(){ - return make_block_statements(statements).join(newline); - }) + newline + indent("}"); - }; - - function make_1vardef(def) { - var name = def[0], val = def[1]; - if (val != null) - name = add_spaces([ make_name(name), "=", parenthesize(val, "seq") ]); - return name; - }; - - var $stack = []; - - function make(node) { - var type = node[0]; - var gen = generators[type]; - if (!gen) - throw new Error("Can't find generator for \"" + type + "\""); - $stack.push(node); - var ret = gen.apply(type, node.slice(1)); - $stack.pop(); - return ret; - }; - - return make(ast); -}; - -function split_lines(code, max_line_length) { - var splits = [ 0 ]; - jsp.parse(function(){ - var next_token = jsp.tokenizer(code); - var last_split = 0; - var prev_token; - function current_length(tok) { - return tok.pos - last_split; - }; - function split_here(tok) { - last_split = tok.pos; - splits.push(last_split); - }; - function custom(){ - var tok = next_token.apply(this, arguments); - out: { - if (prev_token) { - if (prev_token.type == "keyword") break out; - } - if (current_length(tok) > max_line_length) { - switch (tok.type) { - case "keyword": - case "atom": - case "name": - case "punc": - split_here(tok); - break out; - } - } - } - prev_token = tok; - return tok; - }; - custom.context = function() { - return next_token.context.apply(this, arguments); - }; - return custom; - }()); - return splits.map(function(pos, i){ - return code.substring(pos, splits[i + 1] || code.length); - }).join("\n"); -}; - -/* -----[ Utilities ]----- */ - -function repeat_string(str, i) { - if (i <= 0) return ""; - if (i == 1) return str; - var d = repeat_string(str, i >> 1); - d += d; - if (i & 1) d += str; - return d; -}; - -function defaults(args, defs) { - var ret = {}; - if (args === true) - args = {}; - for (var i in defs) if (HOP(defs, i)) { - ret[i] = (args && HOP(args, i)) ? args[i] : defs[i]; - } - return ret; -}; - -function is_identifier(name) { - return /^[a-z_$][a-z0-9_$]*$/i.test(name) - && name != "this" - && !HOP(jsp.KEYWORDS_ATOM, name) - && !HOP(jsp.RESERVED_WORDS, name) - && !HOP(jsp.KEYWORDS, name); -}; - -function HOP(obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); -}; - -// some utilities - -var MAP; - -(function(){ - MAP = function(a, f, o) { - var ret = []; - for (var i = 0; i < a.length; ++i) { - var val = f.call(o, a[i], i); - if (val instanceof AtTop) ret.unshift(val.v); - else ret.push(val); - } - return ret; - }; - MAP.at_top = function(val) { return new AtTop(val) }; - function AtTop(val) { this.v = val }; -})(); - -/* -----[ Exports ]----- */ - -exports.ast_walker = ast_walker; -exports.ast_mangle = ast_mangle; -exports.ast_squeeze = ast_squeeze; -exports.gen_code = gen_code; -exports.ast_add_scope = ast_add_scope; -exports.set_logger = function(logger) { warn = logger }; -exports.make_string = make_string; -exports.split_lines = split_lines; -exports.MAP = MAP; - -// keep this last! -exports.ast_squeeze_more = require("./squeeze-more").ast_squeeze_more; diff --git a/vendor/assets/components/jquery/build/lib/squeeze-more.js b/vendor/assets/components/jquery/build/lib/squeeze-more.js deleted file mode 100644 index 12380af82c..0000000000 --- a/vendor/assets/components/jquery/build/lib/squeeze-more.js +++ /dev/null @@ -1,22 +0,0 @@ -var jsp = require("./parse-js"), - pro = require("./process"), - slice = jsp.slice, - member = jsp.member, - PRECEDENCE = jsp.PRECEDENCE, - OPERATORS = jsp.OPERATORS; - -function ast_squeeze_more(ast) { - var w = pro.ast_walker(), walk = w.walk; - return w.with_walkers({ - "call": function(expr, args) { - if (expr[0] == "dot" && expr[2] == "toString" && args.length == 0) { - // foo.toString() ==> foo+"" - return [ "binary", "+", expr[1], [ "string", "" ]]; - } - } - }, function() { - return walk(ast); - }); -}; - -exports.ast_squeeze_more = ast_squeeze_more; diff --git a/vendor/assets/components/jquery/build/post-compile.js b/vendor/assets/components/jquery/build/post-compile.js deleted file mode 100644 index f77a38bdc8..0000000000 --- a/vendor/assets/components/jquery/build/post-compile.js +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env node - -var fs = require( "fs" ), - src = fs.readFileSync( process.argv[2], "utf8" ), - version = fs.readFileSync( "version.txt", "utf8" ), - // License Template - license = "/*! jQuery v@VERSION jquery.com | jquery.org/license */"; - - -// Previously done in sed but reimplemented here due to portability issues -src = src.replace( /^(\s*\*\/)(.+)/m, "$1\n$2" ) + ";"; - -// Set minimal license block var -license = license.replace( "@VERSION", version ); - -// Replace license block with minimal license -src = src.replace( /\/\/.*?\/?\*.+?(?=\n|\r|$)|\/\*[\s\S]*?\/\/[\s\S]*?\*\//, license ); - -fs.writeFileSync( "dist/jquery.min.js", src, "utf8" ); diff --git a/vendor/assets/components/jquery/build/release-notes.js b/vendor/assets/components/jquery/build/release-notes.js deleted file mode 100644 index 87077758e5..0000000000 --- a/vendor/assets/components/jquery/build/release-notes.js +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env node -/* - * jQuery Release Note Generator - */ - -var fs = require("fs"), - http = require("http"), - tmpl = require("mustache"), - extract = /(.*?)<[^"]+"component">\s*(\S+)/g; - -var opts = { - version: "1.7.2rc1", - short_version: "1.7.2rc1", - final_version: "1.7.2", - categories: [] -}; - -http.request({ - host: "bugs.jquery.com", - port: 80, - method: "GET", - path: "/query?status=closed&resolution=fixed&component=!web&order=component&milestone=" + opts.final_version -}, function (res) { - var data = []; - - res.on( "data", function( chunk ) { - data.push( chunk ); - }); - - res.on( "end", function() { - var match, - file = data.join(""), - cur; - - while ( (match = extract.exec( file )) ) { - if ( "#" + match[1] !== match[2] ) { - var cat = match[3]; - - if ( !cur || cur.name !== cat ) { - cur = { name: match[3], niceName: match[3].replace(/^./, function(a){ return a.toUpperCase(); }), bugs: [] }; - opts.categories.push( cur ); - } - - cur.bugs.push({ ticket: match[1], title: match[2] }); - } - } - - buildNotes(); - }); -}).end(); - -function buildNotes() { - console.log( tmpl.to_html( fs.readFileSync("release-notes.txt", "utf8"), opts ) ); -} diff --git a/vendor/assets/components/jquery/build/release-notes.txt b/vendor/assets/components/jquery/build/release-notes.txt deleted file mode 100644 index 1d0ae7460f..0000000000 --- a/vendor/assets/components/jquery/build/release-notes.txt +++ /dev/null @@ -1,27 +0,0 @@ -

      jQuery {{version}} Released

      - -

      This is a preview release of jQuery. We're releasing it so that everyone can start testing the code in their applications, making sure that there are no major problems.

      - -

      You can get the code from the jQuery CDN:

      - -
      - -

      You can help us by dropping that code into your existing application and letting us know that if anything no longer works. Please file a bug and be sure to mention that you're testing against jQuery {{version}}.

      - -

      We want to encourage everyone from the community to try and get involved in contributing back to jQuery core. We've set up a full page of information dedicated towards becoming more involved with the team. The team is here and ready to help you help us!

      - -

      jQuery {{version}} Change Log

      - -

      The current change log of the {{version}} release.

      - -{{#categories}} -

      {{niceName}}

      - - -{{/categories}} diff --git a/vendor/assets/components/jquery/build/release.js b/vendor/assets/components/jquery/build/release.js deleted file mode 100644 index 7a42f998b4..0000000000 --- a/vendor/assets/components/jquery/build/release.js +++ /dev/null @@ -1,169 +0,0 @@ -#!/usr/bin/env node -/* - * jQuery Release Management - */ - -var fs = require("fs"), - child = require("child_process"), - debug = false; - -var scpURL = "jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/", - cdnURL = "http://code.origin.jquery.com/", - - version = /^[\d.]+(?:(?:a|b|rc)\d+|pre)?$/, - versionFile = "version.txt", - - file = "dist/jquery.js", - minFile = "dist/jquery.min.js", - - files = { - "jquery-VER.js": file, - "jquery-VER.min.js": minFile - }, - - finalFiles = { - "jquery.js": file, - "jquery-latest.js": file, - "jquery.min.js": minFile, - "jquery-latest.min.js": minFile - }; - -exec( "git pull && git status", function( error, stdout, stderr ) { - if ( /Changes to be committed/i.test( stdout ) ) { - exit( "Please commit changed files before attemping to push a release." ); - - } else if ( /Changes not staged for commit/i.test( stdout ) ) { - exit( "Please stash files before attempting to push a release." ); - - } else { - setVersion(); - } -}); - -function setVersion() { - var oldVersion = fs.readFileSync( versionFile, "utf8" ); - - prompt( "New Version (was " + oldVersion + "): ", function( data ) { - if ( data && version.test( data ) ) { - fs.writeFileSync( versionFile, data ); - - exec( "git commit -a -m 'Tagging the " + data + " release.' && git push && " + - "git tag " + data + " && git push origin " + data, function() { - make( data ); - }); - - } else { - console.error( "Malformed version number, please try again." ); - setVersion(); - } - }); -} - -function make( newVersion ) { - exec( "make clean && make", function( error, stdout, stderr ) { - // TODO: Verify JSLint - - Object.keys( files ).forEach(function( oldName ) { - var value = files[ oldName ], name = oldName.replace( /VER/g, newVersion ); - - copy( value, name ); - - delete files[ oldName ]; - files[ name ] = value; - }); - - exec( "scp " + Object.keys( files ).join( " " ) + " " + scpURL, function() { - setNextVersion( newVersion ); - }); - }); -} - -function setNextVersion( newVersion ) { - var isFinal = false; - - if ( /(?:a|b|rc)\d+$/.test( newVersion ) ) { - newVersion = newVersion.replace( /(?:a|b|rc)\d+$/, "pre" ); - - } else if ( /^\d+\.\d+\.?(\d*)$/.test( newVersion ) ) { - newVersion = newVersion.replace( /^(\d+\.\d+\.?)(\d*)$/, function( all, pre, num ) { - return pre + (pre.charAt( pre.length - 1 ) !== "." ? "." : "") + (num ? parseFloat( num ) + 1 : 1) + "pre"; - }); - - isFinal = true; - } - - prompt( "Next Version [" + newVersion + "]: ", function( data ) { - if ( !data ) { - data = newVersion; - } - - if ( version.test( data ) ) { - fs.writeFileSync( versionFile, data ); - - exec( "git commit -a -m 'Updating the source version to " + data + "' && git push", function() { - if ( isFinal ) { - makeFinal( newVersion ); - } - }); - - } else { - console.error( "Malformed version number, please try again." ); - setNextVersion( newVersion ); - } - }); -} - -function makeFinal( newVersion ) { - var all = Object.keys( finalFiles ); - - // Copy all the files - all.forEach(function( name ) { - copy( finalFiles[ name ], name ); - }); - - // Upload files to CDN - exec( "scp " + all.join( " " ) + " " + scpURL, function() { - exec( "curl '" + cdnURL + "{" + all.join( "," ) + "}?reload'", function() { - console.log( "Done." ); - }); - }); -} - -function copy( oldFile, newFile ) { - if ( debug ) { - console.log( "Copying " + oldFile + " to " + newFile ); - - } else { - fs.writeFileSync( newFile, fs.readFileSync( oldFile, "utf8" ) ); - } -} - -function prompt( msg, callback ) { - process.stdout.write( msg ); - - process.stdin.resume(); - process.stdin.setEncoding( "utf8" ); - - process.stdin.once( "data", function( chunk ) { - process.stdin.pause(); - callback( chunk.replace( /\n*$/g, "" ) ); - }); -} - -function exec( cmd, fn ) { - if ( debug ) { - console.log( cmd ); - fn(); - - } else { - child.exec( cmd, fn ); - } -} - -function exit( msg ) { - if ( msg ) { - console.error( "\nError: " + msg ); - } - - process.exit( 1 ); -} diff --git a/vendor/assets/components/jquery/build/sizer.js b/vendor/assets/components/jquery/build/sizer.js deleted file mode 100644 index 2372b5fd3f..0000000000 --- a/vendor/assets/components/jquery/build/sizer.js +++ /dev/null @@ -1,36 +0,0 @@ -var fs = require( "fs" ), - stdin = process.openStdin(), - rsize = /(\d+).*?(jquery\S+)/g, - oldsizes = {}, - sizes = {}; - -try { - oldsizes = JSON.parse( fs.readFileSync( __dirname + "/.sizecache.json", "utf8" ) ); -} catch(e) { - oldsizes = {}; -}; - -stdin.on( "data" , function( chunk ) { - var match; - - while ( match = rsize.exec( chunk ) ) { - sizes[ match[2] ] = parseInt( match[1], 10 ); - } -}); - -function lpad( str, len, chr ) { - return ( Array(len+1).join( chr || " ") + str ).substr( -len ); -} - -stdin.on( "end", function() { - console.log( "jQuery Size - compared to last make" ); - fs.writeFileSync( __dirname + "/.sizecache.json", JSON.stringify( sizes, true ), "utf8" ); - for ( var key in sizes ) { - var diff = oldsizes[ key ] && ( sizes[ key ] - oldsizes[ key ] ); - if ( diff > 0 ) { - diff = "+" + diff; - } - console.log( "%s %s %s", lpad( sizes[ key ], 8 ), lpad( diff ? "(" + diff + ")" : "(-)", 8 ), key ); - } - process.exit(); -}); \ No newline at end of file diff --git a/vendor/assets/components/jquery/build/uglify.js b/vendor/assets/components/jquery/build/uglify.js deleted file mode 100644 index aad18e8cac..0000000000 --- a/vendor/assets/components/jquery/build/uglify.js +++ /dev/null @@ -1,285 +0,0 @@ -#! /usr/bin/env node -// -*- js -*- - -global.sys = require(/^v0\.[012]/.test(process.version) ? "sys" : "util"); -var fs = require("fs"); -var jsp = require("./lib/parse-js"), - pro = require("./lib/process"); - -var options = { - ast: false, - mangle: true, - mangle_toplevel: false, - squeeze: true, - make_seqs: true, - dead_code: true, - verbose: false, - show_copyright: true, - out_same_file: false, - max_line_length: 32 * 1024, - unsafe: false, - reserved_names: null, - defines: { }, - codegen_options: { - ascii_only: false, - beautify: false, - indent_level: 4, - indent_start: 0, - quote_keys: false, - space_colon: false - }, - output: true // stdout -}; - -var args = jsp.slice(process.argv, 2); -var filename; - -out: while (args.length > 0) { - var v = args.shift(); - switch (v) { - case "-b": - case "--beautify": - options.codegen_options.beautify = true; - break; - case "-i": - case "--indent": - options.codegen_options.indent_level = args.shift(); - break; - case "-q": - case "--quote-keys": - options.codegen_options.quote_keys = true; - break; - case "-mt": - case "--mangle-toplevel": - options.mangle_toplevel = true; - break; - case "--no-mangle": - case "-nm": - options.mangle = false; - break; - case "--no-squeeze": - case "-ns": - options.squeeze = false; - break; - case "--no-seqs": - options.make_seqs = false; - break; - case "--no-dead-code": - options.dead_code = false; - break; - case "--no-copyright": - case "-nc": - options.show_copyright = false; - break; - case "-o": - case "--output": - options.output = args.shift(); - break; - case "--overwrite": - options.out_same_file = true; - break; - case "-v": - case "--verbose": - options.verbose = true; - break; - case "--ast": - options.ast = true; - break; - case "--unsafe": - options.unsafe = true; - break; - case "--max-line-len": - options.max_line_length = parseInt(args.shift(), 10); - break; - case "--reserved-names": - options.reserved_names = args.shift().split(","); - break; - case "-d": - case "--define": - var defarg = args.shift(); - try { - var defsym = function(sym) { - // KEYWORDS_ATOM doesn't include NaN or Infinity - should we check - // for them too ?? We don't check reserved words and the like as the - // define values are only substituted AFTER parsing - if (jsp.KEYWORDS_ATOM.hasOwnProperty(sym)) { - throw "Don't define values for inbuilt constant '"+sym+"'"; - } - return sym; - }, - defval = function(v) { - if (v.match(/^"(.*)"$/) || v.match(/^'(.*)'$/)) { - return [ "string", RegExp.$1 ]; - } - else if (!isNaN(parseFloat(v))) { - return [ "num", parseFloat(v) ]; - } - else if (v.match(/^[a-z\$_][a-z\$_0-9]*$/i)) { - return [ "name", v ]; - } - else if (!v.match(/"/)) { - return [ "string", v ]; - } - else if (!v.match(/'/)) { - return [ "string", v ]; - } - throw "Can't understand the specified value: "+v; - }; - if (defarg.match(/^([a-z_\$][a-z_\$0-9]*)(=(.*))?$/i)) { - var sym = defsym(RegExp.$1), - val = RegExp.$2 ? defval(RegExp.$2.substr(1)) : [ 'name', 'true' ]; - options.defines[sym] = val; - } - else { - throw "The --define option expects SYMBOL[=value]"; - } - } catch(ex) { - sys.print("ERROR: In option --define "+defarg+"\n"+ex+"\n"); - process.exit(1); - } - break; - case "--define-from-module": - var defmodarg = args.shift(), - defmodule = require(defmodarg), - sym, - val; - for (sym in defmodule) { - if (defmodule.hasOwnProperty(sym)) { - options.defines[sym] = function(val) { - if (typeof val == "string") - return [ "string", val ]; - if (typeof val == "number") - return [ "num", val ]; - if (val === true) - return [ 'name', 'true' ]; - if (val === false) - return [ 'name', 'false' ]; - if (val === null) - return [ 'name', 'null' ]; - if (val === undefined) - return [ 'name', 'undefined' ]; - sys.print("ERROR: In option --define-from-module "+defmodarg+"\n"); - sys.print("ERROR: Unknown object type for: "+sym+"="+val+"\n"); - process.exit(1); - return null; - }(defmodule[sym]); - } - } - break; - case "--ascii": - options.codegen_options.ascii_only = true; - break; - default: - filename = v; - break out; - } -} - -if (options.verbose) { - pro.set_logger(function(msg){ - sys.debug(msg); - }); -} - -jsp.set_logger(function(msg){ - sys.debug(msg); -}); - -if (filename) { - fs.readFile(filename, "utf8", function(err, text){ - if (err) throw err; - output(squeeze_it(text)); - }); -} else { - var stdin = process.openStdin(); - stdin.setEncoding("utf8"); - var text = ""; - stdin.on("data", function(chunk){ - text += chunk; - }); - stdin.on("end", function() { - output(squeeze_it(text)); - }); -} - -function output(text) { - var out; - if (options.out_same_file && filename) - options.output = filename; - if (options.output === true) { - out = process.stdout; - } else { - out = fs.createWriteStream(options.output, { - flags: "w", - encoding: "utf8", - mode: 0644 - }); - } - out.write(text); - if (options.output !== true) { - out.end(); - } -}; - -// --------- main ends here. - -function show_copyright(comments) { - var ret = ""; - for (var i = 0; i < comments.length; ++i) { - var c = comments[i]; - if (c.type == "comment1") { - ret += "//" + c.value + "\n"; - } else { - ret += "/*" + c.value + "*/"; - } - } - return ret; -}; - -function squeeze_it(code) { - var result = ""; - if (options.show_copyright) { - var tok = jsp.tokenizer(code), c; - c = tok(); - result += show_copyright(c.comments_before); - } - try { - var ast = time_it("parse", function(){ return jsp.parse(code); }); - if (options.mangle) ast = time_it("mangle", function(){ - return pro.ast_mangle(ast, { - toplevel: options.mangle_toplevel, - defines: options.defines, - except: options.reserved_names - }); - }); - if (options.squeeze) ast = time_it("squeeze", function(){ - ast = pro.ast_squeeze(ast, { - make_seqs : options.make_seqs, - dead_code : options.dead_code, - keep_comps : !options.unsafe - }); - if (options.unsafe) - ast = pro.ast_squeeze_more(ast); - return ast; - }); - if (options.ast) - return sys.inspect(ast, null, null); - result += time_it("generate", function(){ return pro.gen_code(ast, options.codegen_options) }); - if (!options.codegen_options.beautify && options.max_line_length) { - result = time_it("split", function(){ return pro.split_lines(result, options.max_line_length) }); - } - return result; - } catch(ex) { - sys.debug(ex.stack); - sys.debug(sys.inspect(ex)); - sys.debug(JSON.stringify(ex)); - } -}; - -function time_it(name, cont) { - if (!options.verbose) - return cont(); - var t1 = new Date().getTime(); - try { return cont(); } - finally { sys.debug("// " + name + ": " + ((new Date().getTime() - t1) / 1000).toFixed(3) + " sec."); } -}; diff --git a/vendor/assets/components/jquery/jquery.js b/vendor/assets/components/jquery/jquery.js deleted file mode 100755 index 3774ff9861..0000000000 --- a/vendor/assets/components/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 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 = "
      a"; - - 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>", - - // 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 = "
      " + - "" + - "
      "; - - 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 = "
      t
      "; - 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 = "
      "; - 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 = ""; - - // 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 = ""; - - 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 = "

      "; - - // 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 = "
      "; - - // 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 = /]", "i"), - // checked="checked" or checked - rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, - rscriptType = /\/(java|ecma)script/i, - rcleanScript = /^\s*", "" ], - legend: [ 1, "
      ", "
      " ], - thead: [ 1, "", "
      " ], - tr: [ 2, "", "
      " ], - td: [ 3, "", "
      " ], - col: [ 2, "", "
      " ], - area: [ 1, "", "" ], - _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 and - - - - - - -
      -

      Hello

      -
      -
      -

      lorem ipsum

      -

      dolor sit amet

      -
      -
      -
      -
        - - - diff --git a/vendor/assets/components/jquery/speed/css.html b/vendor/assets/components/jquery/speed/css.html deleted file mode 100644 index 4d6700cf48..0000000000 --- a/vendor/assets/components/jquery/speed/css.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - Test Event Handling Performance - - - - - - - - -

        Getting Values: Loading...

        -

        Setting Values: Loading...

        - - diff --git a/vendor/assets/components/jquery/speed/event.html b/vendor/assets/components/jquery/speed/event.html deleted file mode 100644 index 6d463b4d81..0000000000 --- a/vendor/assets/components/jquery/speed/event.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - Test Event Handling Performance - - - - - - - -

        Move the mouse, please!

        -

        - - diff --git a/vendor/assets/components/jquery/speed/filter.html b/vendor/assets/components/jquery/speed/filter.html deleted file mode 100644 index 43ee94e520..0000000000 --- a/vendor/assets/components/jquery/speed/filter.html +++ /dev/null @@ -1,183 +0,0 @@ - - - - Test .filter() Performance - - - - - - - -
        -

        Hello

        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
        -
          - - - diff --git a/vendor/assets/components/jquery/speed/find.html b/vendor/assets/components/jquery/speed/find.html deleted file mode 100644 index d3a2dc129d..0000000000 --- a/vendor/assets/components/jquery/speed/find.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - Test .find() Performance - - - - - - - -
          -

          Hello

          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
            - - - diff --git a/vendor/assets/components/jquery/speed/index.html b/vendor/assets/components/jquery/speed/index.html deleted file mode 100644 index 717ca7317d..0000000000 --- a/vendor/assets/components/jquery/speed/index.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - Speed Test - - - - - - - - -

            Speed Test

            -
            -
            -

            Using the following selector expressions ( times each):

            -

            NOTE: Number shown is an average.

            -
            - - - - - -
            - - - - - - - - - - - - - - - - - - - - - - - - - - -
            Run?Test
            - -
            - - - - - - -
            -
            -
            - - - - - diff --git a/vendor/assets/components/jquery/speed/jquery-basis.js b/vendor/assets/components/jquery/speed/jquery-basis.js deleted file mode 100644 index 6fe017c1c4..0000000000 --- a/vendor/assets/components/jquery/speed/jquery-basis.js +++ /dev/null @@ -1,6238 +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.head || document.getElementsByTagName("head")[0] || document.documentElement, - script = document.createElement("script"); - - 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 = "
            a"; - - 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 = ""; - - 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}) ); - }, - - 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 = ""; - - // 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 = ""; - 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 = "

            "; - - // 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 = "
            "; - - // 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 = /"; - }, - wrapMap = { - option: [ 1, "" ], - legend: [ 1, "
            ", "
            " ], - thead: [ 1, "", "
            " ], - tr: [ 2, "", "
            " ], - td: [ 3, "", "
            " ], - col: [ 2, "", "
            " ], - area: [ 1, "", "" ], - _default: [ 0, "", "" ] - }; - -wrapMap.optgroup = wrapMap.option; -wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; -wrapMap.th = wrapMap.td; - -// IE can't serialize and \ No newline at end of file diff --git a/vendor/assets/components/jquery/src/ajax.js b/vendor/assets/components/jquery/src/ajax.js deleted file mode 100644 index 1b01fd6a54..0000000000 --- a/vendor/assets/components/jquery/src/ajax.js +++ /dev/null @@ -1,807 +0,0 @@ -define([ - "./core", - "./var/rnotwhite", - "./ajax/var/nonce", - "./ajax/var/rquery", - "./core/init", - "./ajax/parseJSON", - "./ajax/parseXML", - "./deferred" -], function( jQuery, rnotwhite, nonce, rquery ) { - -var - // Document location - ajaxLocParts, - ajaxLocation, - - rhash = /#.*$/, - rts = /([?&])_=[^&]*/, - rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL - // #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("*"); - -// #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 = "*"; - } - - 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" ] ) { - 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: /xml/, - html: /html/, - json: /json/ - }, - - 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 - fireGlobals = 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 ] ); - } - // 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; - } - } - } - - // 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 ) { - 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; - } - - return jQuery.ajax({ - url: url, - type: method, - dataType: type, - data: data, - success: callback - }); - }; -}); - -// 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 ); - }; -}); - -return jQuery; -}); diff --git a/vendor/assets/components/jquery/src/ajax/jsonp.js b/vendor/assets/components/jquery/src/ajax/jsonp.js deleted file mode 100644 index ff0d53899d..0000000000 --- a/vendor/assets/components/jquery/src/ajax/jsonp.js +++ /dev/null @@ -1,89 +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") && 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() { - // Restore preexisting value - 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/vendor/assets/components/jquery/src/ajax/script.js b/vendor/assets/components/jquery/src/ajax/script.js deleted file mode 100644 index f6598aaf3d..0000000000 --- a/vendor/assets/components/jquery/src/ajax/script.js +++ /dev/null @@ -1,93 +0,0 @@ -define([ - "../core", - "../ajax" -], function( jQuery ) { - -// Install script dataType -jQuery.ajaxSetup({ - accepts: { - script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" - }, - contents: { - script: /(?:java|ecma)script/ - }, - 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 ); - } - } - }; - } -}); - -}); diff --git a/vendor/assets/components/jquery/src/ajax/xhr.js b/vendor/assets/components/jquery/src/ajax/xhr.js deleted file mode 100644 index 0f560f45a2..0000000000 --- a/vendor/assets/components/jquery/src/ajax/xhr.js +++ /dev/null @@ -1,196 +0,0 @@ -define([ - "../core", - "../var/support", - "../ajax" -], function( jQuery, support ) { - -// Create the request object -// (This is still attached to ajaxSettings for backward compatibility) -jQuery.ajaxSettings.xhr = window.ActiveXObject !== undefined ? - // Support: IE6+ - function() { - - // XHR cannot access local files, always use ActiveX for that case - return !this.isLocal && - - // Support: IE7-8 - // 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" - /^(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) -if ( window.ActiveXObject ) { - jQuery( window ).on( "unload", 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() ); - } - }; - - 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 - setTimeout( callback ); - } else { - // 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 ) {} -} - -}); diff --git a/vendor/assets/components/jquery/src/attributes.js b/vendor/assets/components/jquery/src/attributes.js deleted file mode 100644 index 0569013d4f..0000000000 --- a/vendor/assets/components/jquery/src/attributes.js +++ /dev/null @@ -1,11 +0,0 @@ -define([ - "./core", - "./attributes/val", - "./attributes/attr", - "./attributes/prop", - "./attributes/classes" -], function( jQuery ) { - -// Return jQuery for attributes-only inclusion -return jQuery; -}); diff --git a/vendor/assets/components/jquery/src/callbacks.js b/vendor/assets/components/jquery/src/callbacks.js deleted file mode 100644 index 9d12823d90..0000000000 --- a/vendor/assets/components/jquery/src/callbacks.js +++ /dev/null @@ -1,205 +0,0 @@ -define([ - "./core", - "./var/rnotwhite" -], function( jQuery, rnotwhite ) { - -// String to Object options format cache -var optionsCache = {}; - -// Convert String-formatted options into Object-formatted ones and store in cache -function createOptions( options ) { - var object = optionsCache[ options ] = {}; - 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" ? - ( optionsCache[ options ] || 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, - // End of the loop when firing - firingLength, - // Index of currently firing callback (modified by remove if needed) - firingIndex, - // First callback to fire (used internally by add and fireWith) - firingStart, - // Actual callback list - list = [], - // Stack of fire calls for repeatable lists - stack = !options.once && [], - // Fire callbacks - fire = function( data ) { - memory = options.memory && data; - fired = true; - firingIndex = firingStart || 0; - firingStart = 0; - firingLength = list.length; - firing = true; - for ( ; list && firingIndex < firingLength; firingIndex++ ) { - if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { - memory = false; // To prevent further calls using add - break; - } - } - firing = false; - if ( list ) { - if ( stack ) { - if ( stack.length ) { - fire( stack.shift() ); - } - } else if ( memory ) { - list = []; - } else { - self.disable(); - } - } - }, - // Actual Callbacks object - self = { - // Add a callback or a collection of callbacks to the list - add: function() { - if ( list ) { - // First, we save the current length - var start = list.length; - (function add( args ) { - jQuery.each( args, function( _, arg ) { - var type = jQuery.type( arg ); - if ( type === "function" ) { - if ( !options.unique || !self.has( arg ) ) { - list.push( arg ); - } - } else if ( arg && arg.length && type !== "string" ) { - // Inspect recursively - add( arg ); - } - }); - })( 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 - } else if ( memory ) { - firingStart = start; - fire( memory ); - } - } - return this; - }, - // Remove a callback from the list - remove: function() { - if ( list ) { - jQuery.each( arguments, function( _, arg ) { - var index; - while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { - list.splice( index, 1 ); - // Handle firing indexes - if ( firing ) { - if ( index <= firingLength ) { - firingLength--; - } - 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 && list.length ); - }, - // Remove all callbacks from the list - empty: function() { - list = []; - firingLength = 0; - 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 ) { - 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 ( list && ( !fired || stack ) ) { - args = args || []; - args = [ context, args.slice ? args.slice() : args ]; - if ( firing ) { - stack.push( args ); - } else { - fire( 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; -}; - -return jQuery; -}); diff --git a/vendor/assets/components/jquery/src/core.js b/vendor/assets/components/jquery/src/core.js deleted file mode 100644 index 9b87b00b17..0000000000 --- a/vendor/assets/components/jquery/src/core.js +++ /dev/null @@ -1,542 +0,0 @@ -define([ - "./var/deletedIds", - "./var/slice", - "./var/concat", - "./var/push", - "./var/indexOf", - "./var/class2type", - "./var/toString", - "./var/hasOwn", - "./var/trim", - "./var/support" -], function( deletedIds, slice, concat, push, indexOf, class2type, toString, hasOwn, trim, 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 ); - }, - - // Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE) - 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 a 'clean' array - ( num < 0 ? this[ num + this.length ] : this[ num ] ) : - - // Return just the object - 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. - // (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 ); - }, - - 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(null); - }, - - // 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 - return obj - parseFloat( obj ) >= 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.ownLast ) { - 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; - }, - - // 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 && 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 ); - } )( 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(); - }, - - // args is for internal usage only - each: function( obj, callback, args ) { - var value, - i = 0, - length = obj.length, - isArray = isArraylike( obj ); - - if ( args ) { - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback.apply( obj[ i ], args ); - - if ( value === false ) { - break; - } - } - } else { - for ( i in obj ) { - value = callback.apply( obj[ i ], args ); - - if ( value === false ) { - break; - } - } - } - - // A special, fast, case for the most common use of each - } else { - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback.call( obj[ i ], i, obj[ i ] ); - - if ( value === false ) { - break; - } - } - } else { - for ( i in obj ) { - value = callback.call( obj[ i ], i, obj[ i ] ); - - if ( value === false ) { - break; - } - } - } - } - - return obj; - }, - - // Use native String.trim function wherever possible - trim: trim && !trim.call("\uFEFF\xA0") ? - function( text ) { - return text == null ? - "" : - trim.call( text ); - } : - - // Otherwise use our own trimming functionality - 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 value, - i = 0, - length = elems.length, - isArray = isArraylike( elems ), - ret = []; - - // Go through the array, translating each of the items to their new values - if ( isArray ) { - 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 -}); - -// Populate the class2type map -jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); -}); - -function isArraylike( obj ) { - var length = obj.length, - type = jQuery.type( obj ); - - if ( type === "function" || jQuery.isWindow( obj ) ) { - return false; - } - - if ( obj.nodeType === 1 && length ) { - return true; - } - - return type === "array" || length === 0 || - typeof length === "number" && length > 0 && ( length - 1 ) in obj; -} - -return jQuery; -}); diff --git a/vendor/assets/components/jquery/src/css.js b/vendor/assets/components/jquery/src/css.js deleted file mode 100644 index 0f90f0b6a0..0000000000 --- a/vendor/assets/components/jquery/src/css.js +++ /dev/null @@ -1,508 +0,0 @@ -define([ - "./core", - "./var/pnum", - "./core/access", - "./css/var/rmargin", - "./css/var/rnumnonpx", - "./css/var/cssExpand", - "./css/var/isHidden", - "./css/curCSS", - "./css/defaultDisplay", - "./css/addGetHookIf", - "./css/support", - - "./core/init", - "./css/swap", - "./core/ready", - "./selector" // contains -], function( jQuery, pnum, access, rmargin, rnumnonpx, cssExpand, isHidden, - curCSS, defaultDisplay, addGetHookIf, support ) { - -var - // BuildExclude - getStyles = curCSS.getStyles, - ralpha = /alpha\([^)]*\)/i, - ropacity = /opacity\s*=\s*([^)]*)/, - - // 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" ), - rrelNum = new RegExp( "^([+-])=(" + pnum + ")", "i" ), - - cssShow = { position: "absolute", visibility: "hidden", display: "block" }, - cssNormalTransform = { - letterSpacing: 0, - fontWeight: 400 - }, - - cssPrefixes = [ "Webkit", "O", "Moz", "ms" ]; - -// BuildExclude -curCSS = curCSS.curCSS; - -// return a css property mapped to a potentially vendor prefixed property -function vendorPropName( style, name ) { - - // shortcut for names that are not vendor prefixed - if ( name in style ) { - return name; - } - - // check for vendor prefixed names - var capName = name.charAt(0).toUpperCase() + name.slice(1), - origName = name, - i = cssPrefixes.length; - - while ( i-- ) { - name = cssPrefixes[ i ] + capName; - if ( name in style ) { - return name; - } - } - - return origName; -} - -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 { - - if ( !values[ index ] ) { - 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: { - "columnCount": true, - "fillOpacity": 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( style, 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 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 null and NaN values aren't set. See: #7116 - if ( value == null || value !== 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"; - } - - // 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 { - // Support: Chrome, Safari - // Setting style to blank string required to delete "style: x !important;" - style[ name ] = ""; - 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( elem.style, 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 || jQuery.isNumeric( 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 elem.offsetWidth === 0 && rdisplayswap.test( jQuery.css( elem, "display" ) ) ? - jQuery.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 ) { - // 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" }, - 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/vendor/assets/components/jquery/src/data.js b/vendor/assets/components/jquery/src/data.js deleted file mode 100644 index 03994cdb39..0000000000 --- a/vendor/assets/components/jquery/src/data.js +++ /dev/null @@ -1,332 +0,0 @@ -define([ - "./core", - "./var/deletedIds", - "./data/support", - "./data/accepts" -], function( jQuery, deletedIds, support ) { - -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 ( !jQuery.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 ( !jQuery.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, null - } else { - cache[ id ] = null; - } -} - -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-- ) { - 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 ); - }); - } -}); - -return jQuery; -}); diff --git a/vendor/assets/components/jquery/src/deferred.js b/vendor/assets/components/jquery/src/deferred.js deleted file mode 100644 index 8dedbf74c0..0000000000 --- a/vendor/assets/components/jquery/src/deferred.js +++ /dev/null @@ -1,150 +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() - .done( newDefer.resolve ) - .fail( newDefer.reject ) - .progress( newDefer.notify ); - } 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() - .done( updateFunc( i, resolveContexts, resolveValues ) ) - .fail( deferred.reject ) - .progress( updateFunc( i, progressContexts, progressValues ) ); - } 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/vendor/assets/components/jquery/src/dimensions.js b/vendor/assets/components/jquery/src/dimensions.js deleted file mode 100644 index 5898832f90..0000000000 --- a/vendor/assets/components/jquery/src/dimensions.js +++ /dev/null @@ -1,50 +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 - // 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 ); - }; - }); -}); - -return jQuery; -}); diff --git a/vendor/assets/components/jquery/src/effects.js b/vendor/assets/components/jquery/src/effects.js deleted file mode 100644 index c843549c20..0000000000 --- a/vendor/assets/components/jquery/src/effects.js +++ /dev/null @@ -1,648 +0,0 @@ -define([ - "./core", - "./var/pnum", - "./css/var/cssExpand", - "./css/var/isHidden", - "./css/defaultDisplay", - "./effects/support", - - "./core/init", - "./effects/Tween", - "./queue", - "./css", - "./deferred", - "./traversing" -], function( jQuery, pnum, cssExpand, isHidden, defaultDisplay, support ) { - -var - fxNow, timerId, - rfxtypes = /^(?:toggle|show|hide)$/, - rfxnum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ), - rrun = /queueHooks$/, - animationPrefilters = [ defaultPrefilter ], - tweeners = { - "*": [ function( prop, value ) { - var tween = this.createTween( prop, value ), - target = tween.cur(), - parts = rfxnum.exec( value ), - unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), - - // Starting value computation is required for potential unit mismatches - start = ( jQuery.cssNumber[ prop ] || unit !== "px" && +target ) && - rfxnum.exec( jQuery.css( tween.elem, prop ) ), - scale = 1, - maxIterations = 20; - - if ( start && start[ 3 ] !== unit ) { - // Trust units reported by jQuery.css - unit = unit || start[ 3 ]; - - // Make sure we update the tween properties later on - parts = parts || []; - - // Iteratively approximate from a nonzero starting point - start = +target || 1; - - do { - // If previous iteration zeroed out, double until we get *something* - // Use a string for doubling factor so we don't accidentally see scale as unchanged below - scale = scale || ".5"; - - // Adjust and apply - start = start / scale; - jQuery.style( tween.elem, prop, start + unit ); - - // Update scale, tolerating zero or NaN from tween.cur() - // And breaking the loop if scale is unchanged or perfect, or if we've just had enough - } while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations ); - } - - // Update tween properties - if ( parts ) { - start = tween.start = +start || +target || 0; - tween.unit = unit; - // If a +=/-= token was provided, we're doing a relative animation - tween.end = parts[ 1 ] ? - start + ( parts[ 1 ] + 1 ) * parts[ 2 ] : - +parts[ 2 ]; - } - - return tween; - } ] - }; - -// Animations created synchronously will run synchronously -function createFxNow() { - 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 = ( tweeners[ prop ] || [] ).concat( 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, dDisplay, - 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" ); - dDisplay = defaultDisplay( elem.nodeName ); - if ( display === "none" ) { - display = dDisplay; - } - if ( display === "inline" && - jQuery.css( elem, "float" ) === "none" ) { - - // inline-level elements accept inline-block; - // block-level elements need to be inline with layout - if ( !support.inlineBlockNeedsLayout || dDisplay === "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 ); - } - } - - 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; - } - } - } - } -} - -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 = animationPrefilters.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 ), - // 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: {} }, 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.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 = animationPrefilters[ index ].call( animation, elem, props, animation.opts ); - if ( 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, { - tweener: function( props, callback ) { - if ( jQuery.isFunction( props ) ) { - callback = props; - props = [ "*" ]; - } else { - props = props.split(" "); - } - - var prop, - index = 0, - length = props.length; - - for ( ; index < length ; index++ ) { - prop = props[ index ]; - tweeners[ prop ] = tweeners[ prop ] || []; - tweeners[ prop ].unshift( callback ); - } - }, - - prefilter: function( callback, prepend ) { - if ( prepend ) { - animationPrefilters.unshift( callback ); - } else { - animationPrefilters.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 = setInterval( jQuery.fx.tick, jQuery.fx.interval ); - } -}; - -jQuery.fx.stop = function() { - clearInterval( timerId ); - timerId = null; -}; - -jQuery.fx.speeds = { - slow: 600, - fast: 200, - // Default speed - _default: 400 -}; - -return jQuery; -}); diff --git a/vendor/assets/components/jquery/src/event.js b/vendor/assets/components/jquery/src/event.js deleted file mode 100644 index 307907aa0d..0000000000 --- a/vendor/assets/components/jquery/src/event.js +++ /dev/null @@ -1,1029 +0,0 @@ -define([ - "./core", - "./var/strundefined", - "./var/rnotwhite", - "./var/hasOwn", - "./var/slice", - "./event/support", - - "./core/init", - "./data/accepts", - "./selector" -], function( jQuery, strundefined, rnotwhite, hasOwn, slice, support ) { - -var rformElems = /^(?:input|select|textarea)$/i, - rkeyEvent = /^key/, - rmouseEvent = /^(?:mouse|contextmenu)|click/, - rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, - rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; - -function returnTrue() { - return true; -} - -function returnFalse() { - return false; -} - -function safeActiveElement() { - try { - return document.activeElement; - } catch ( err ) { } -} - -/* - * 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 !== strundefined && (!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(".") >= 0 ) { - // 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.namespace_re = 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 && jQuery.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) && - 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) - 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, ret, handleObj, matched, j, - 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.namespace_re || event.namespace_re.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 sel, handleObj, matches, i, - handlerQueue = [], - delegateCount = handlers.delegateCount, - cur = event.target; - - // Find delegate handlers - // Black-hole SVG instance trees (#13180) - // Avoid non-left-click bubbling in Firefox (#3861) - if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { - - /* 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 ) >= 0 : - 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: Chrome 23+, Safari? - // 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 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 ) { - - // Even when returnValue equals to undefined Firefox will still show alert - if ( event.result !== undefined ) { - event.originalEvent.returnValue = event.result; - } - } - } - }, - - 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(); - } - } -}; - -jQuery.removeEvent = document.removeEventListener ? - function( elem, type, handle ) { - if ( elem.removeEventListener ) { - elem.removeEventListener( type, handle, false ); - } - } : - 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 ] === strundefined ) { - 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 - src.returnValue === false || - // Support: Android < 4.0 - 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; -}; - -// 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 = { - 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 ) { - 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() { - this.isImmediatePropagationStopped = returnTrue; - this.stopPropagation(); - } -}; - -// 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 ret, - target = this, - related = event.relatedTarget, - handleObj = event.handleObj; - - // 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 ( !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 && !jQuery._data( form, "submitBubbles" ) ) { - jQuery.event.add( form, "submit._submit", function( event ) { - event._submit_bubble = true; - }); - jQuery._data( form, "submitBubbles", 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 ( !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; - } - // Allow triggered, simulated change events (#11500) - 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 ) && !jQuery._data( elem, "changeBubbles" ) ) { - jQuery.event.add( elem, "change._change", function( event ) { - if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { - jQuery.event.simulate( "change", this.parentNode, event, true ); - } - }); - jQuery._data( elem, "changeBubbles", 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 ( !support.focusinBubbles ) { - 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 ), true ); - }; - - 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, /*INTERNAL*/ one ) { - var type, origFn; - - // 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 ) { - 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 ) { - 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 ); - } - } -}); - -return jQuery; -}); diff --git a/vendor/assets/components/jquery/src/exports.js b/vendor/assets/components/jquery/src/exports.js deleted file mode 100644 index 7d8964f012..0000000000 --- a/vendor/assets/components/jquery/src/exports.js +++ /dev/null @@ -1,22 +0,0 @@ -(function( jQuery ) { - -// 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; } ); -} - -})( jQuery ); diff --git a/vendor/assets/components/jquery/src/intro.js b/vendor/assets/components/jquery/src/intro.js deleted file mode 100644 index f7dd78d3f5..0000000000 --- a/vendor/assets/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 2005, 2014 jQuery Foundation, Inc. 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 inherently posses a window with a document - // (such as Node.js), expose a jQuery-making 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 ) { - -// Can't do this because several apps including ASP.NET trace -// the stack via arguments.caller.callee and Firefox dies if -// you try to trace through "use strict" call chains. (#13335) -// Support: Firefox 18+ -//"use strict"; diff --git a/vendor/assets/components/jquery/src/manipulation.js b/vendor/assets/components/jquery/src/manipulation.js deleted file mode 100644 index ee0baeb7ce..0000000000 --- a/vendor/assets/components/jquery/src/manipulation.js +++ /dev/null @@ -1,744 +0,0 @@ -define([ - "./core", - "./var/strundefined", - "./var/concat", - "./var/push", - "./var/deletedIds", - "./core/access", - "./manipulation/var/rcheckableType", - "./manipulation/support", - - "./core/init", - "./data/accepts", - "./traversing", - "./selector", - "./event" -], function( jQuery, strundefined, concat, push, deletedIds, access, rcheckableType, support ) { - -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+="(?:null|\d+)"/g, - rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), - rleadingWhitespace = /^\s+/, - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, - rtagName = /<([\w:]+)/, - rtbody = /\s*$/g, - - // We have to close these tags to support XHTML (#13200) - wrapMap = { - option: [ 1, "" ], - legend: [ 1, "
            ", "
            " ], - area: [ 1, "", "" ], - param: [ 1, "", "" ], - thead: [ 1, "", "
            " ], - tr: [ 2, "", "
            " ], - col: [ 2, "", "
            " ], - td: [ 3, "", "
            " ], - - // 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
            ", "
            " ] - }, - safeFragment = createSafeFragment( document ), - fragmentDiv = safeFragment.appendChild( document.createElement("div") ); - -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 !== strundefined ? context.getElementsByTagName( tag || "*" ) : - typeof context.querySelectorAll !== strundefined ? 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; -} - -// Used in buildFragment, fixes the defaultChecked property -function fixDefaultChecked( elem ) { - if ( rcheckableType.test( elem.type ) ) { - elem.defaultChecked = elem.checked; - } -} - -// 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; -} - -// 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" ) ); - } -} - -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; - } -} - -jQuery.extend({ - 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; - }, - - buildFragment: function( elems, context, scripts, selection ) { - 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] + elem.replace( rxhtmlTag, "<$1>" ) + 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 from table fragments - if ( !support.tbody ) { - - // String was a , *may* have spurious - elem = tag === "table" && !rtbody.test( elem ) ? - tmp.firstChild : - - // String was a bare or - wrap[1] === "
            " && !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++ ]) ) { - - // #4087 - If origin and destination elements are the same, and this is - // that element, do not do anything - if ( selection && jQuery.inArray( elem, selection ) !== -1 ) { - 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; - }, - - cleanData: function( elems, /* internal */ acceptData ) { - var elem, type, id, data, - i = 0, - internalKey = jQuery.expando, - cache = jQuery.cache, - deleteExpando = support.deleteExpando, - special = jQuery.event.special; - - for ( ; (elem = elems[i]) != null; i++ ) { - if ( acceptData || jQuery.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 ]; - - // 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 ( deleteExpando ) { - delete elem[ internalKey ]; - - } else if ( typeof elem.removeAttribute !== strundefined ) { - elem.removeAttribute( internalKey ); - - } else { - elem[ internalKey ] = null; - } - - deletedIds.push( id ); - } - } - } - } - } -}); - -jQuery.fn.extend({ - 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 this.domManip( arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.appendChild( elem ); - } - }); - }, - - prepend: function() { - return this.domManip( 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 this.domManip( arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this ); - } - }); - }, - - after: function() { - return this.domManip( arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this.nextSibling ); - } - }); - }, - - remove: function( selector, keepData /* Internal Use Only */ ) { - var elem, - elems = selector ? jQuery.filter( selector, this ) : this, - i = 0; - - for ( ; (elem = elems[i]) != null; i++ ) { - - if ( !keepData && elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem ) ); - } - - if ( elem.parentNode ) { - if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) { - setGlobalEval( getAll( elem, "script" ) ); - } - elem.parentNode.removeChild( elem ); - } - } - - return this; - }, - - 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 = value.replace( rxhtmlTag, "<$1>" ); - - 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 arg = arguments[ 0 ]; - - // Make the changes, replacing each context element with the new content - this.domManip( arguments, function( elem ) { - arg = this.parentNode; - - jQuery.cleanData( getAll( this ) ); - - if ( arg ) { - arg.replaceChild( elem, this ); - } - }); - - // Force removal if there was no new content (e.g., from empty arguments) - return arg && (arg.length || arg.nodeType) ? this : this.remove(); - }, - - detach: function( selector ) { - return this.remove( selector, true ); - }, - - domManip: function( args, callback ) { - - // Flatten any nested arrays - args = concat.apply( [], args ); - - var first, node, hasScripts, - scripts, doc, fragment, - i = 0, - l = this.length, - set = this, - 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 this.each(function( index ) { - var self = set.eq( index ); - if ( isFunction ) { - args[0] = value.call( this, index, self.html() ); - } - self.domManip( args, callback ); - }); - } - - if ( l ) { - fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this ); - first = fragment.firstChild; - - if ( fragment.childNodes.length === 1 ) { - fragment = first; - } - - if ( first ) { - 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 ) { - jQuery.merge( scripts, getAll( node, "script" ) ); - } - } - - callback.call( this[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 this; - } -}); - -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 ); - }; -}); - -return jQuery; -}); diff --git a/vendor/assets/components/jquery/src/offset.js b/vendor/assets/components/jquery/src/offset.js deleted file mode 100644 index 42d07eb4f5..0000000000 --- a/vendor/assets/components/jquery/src/offset.js +++ /dev/null @@ -1,211 +0,0 @@ -define([ - "./core", - "./var/strundefined", - "./core/access", - "./css/var/rnumnonpx", - "./css/curCSS", - "./css/addGetHookIf", - "./css/support", - - "./core/init", - "./css", - "./selector" // contains -], function( jQuery, strundefined, access, rnumnonpx, curCSS, addGetHookIf, support ) { - -// BuildExclude -curCSS = curCSS.curCSS; - -var docElem = window.document.documentElement; - -/** - * 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 ) ) { - 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({ - 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 !== strundefined ) { - 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 || docElem; - - while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position" ) === "static" ) ) { - offsetParent = offsetParent.offsetParent; - } - return offsetParent || docElem; - }); - } -}); - -// 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 ); - }; -}); - -// 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; - } - } - ); -}); - -return jQuery; -}); diff --git a/vendor/assets/components/jquery/src/outro.js b/vendor/assets/components/jquery/src/outro.js deleted file mode 100644 index be4600a5cb..0000000000 --- a/vendor/assets/components/jquery/src/outro.js +++ /dev/null @@ -1 +0,0 @@ -})); diff --git a/vendor/assets/components/jquery/src/queue.js b/vendor/assets/components/jquery/src/queue.js deleted file mode 100644 index 29e766078b..0000000000 --- a/vendor/assets/components/jquery/src/queue.js +++ /dev/null @@ -1,142 +0,0 @@ -define([ - "./core", - "./deferred", - "./callbacks" -], function( jQuery ) { - -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 ); - } -}); - -return jQuery; -}); diff --git a/vendor/assets/components/jquery/src/sizzle-jquery.js b/vendor/assets/components/jquery/src/sizzle-jquery.js deleted file mode 100644 index 7090e1c636..0000000000 --- a/vendor/assets/components/jquery/src/sizzle-jquery.js +++ /dev/null @@ -1,10 +0,0 @@ -// 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; diff --git a/vendor/assets/components/jquery/src/support.js b/vendor/assets/components/jquery/src/support.js deleted file mode 100644 index dbaf921597..0000000000 --- a/vendor/assets/components/jquery/src/support.js +++ /dev/null @@ -1,62 +0,0 @@ -define([ - "./core", - "./var/strundefined", - "./var/support", - "./core/init", // Needed for hasOwn support test - // This is listed as a dependency for build order, but it's still optional in builds - "./core/ready" -], function( jQuery, strundefined, support ) { - -// Support: IE<9 -// Iteration over object's inherited properties before its own -var i; -for ( i in jQuery( support ) ) { - break; -} -support.ownLast = i !== "0"; - -// Note: most support tests are defined in their respective modules. -// false until the test is run -support.inlineBlockNeedsLayout = false; - -jQuery(function() { - // We need to execute this one support test ASAP because we need to know - // if body.style.zoom needs to be set. - - var container, div, - body = document.getElementsByTagName("body")[0]; - - if ( !body ) { - // Return for frameset docs that don't have a body - return; - } - - // Setup - container = document.createElement( "div" ); - container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px"; - - div = document.createElement( "div" ); - body.appendChild( container ).appendChild( div ); - - if ( typeof div.style.zoom !== strundefined ) { - // 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 = "border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1"; - - if ( (support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 )) ) { - // 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 ); - - // Null elements to avoid leaks in IE - container = div = null; -}); - -}); diff --git a/vendor/assets/components/jquery/src/traversing.js b/vendor/assets/components/jquery/src/traversing.js deleted file mode 100644 index ee3676963a..0000000000 --- a/vendor/assets/components/jquery/src/traversing.js +++ /dev/null @@ -1,200 +0,0 @@ -define([ - "./core", - "./traversing/var/rneedsContext", - "./core/init", - "./traversing/findFilter", - "./selector" -], function( jQuery, 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.extend({ - 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; - }, - - sibling: function( n, elem ) { - var r = []; - - for ( ; n; n = n.nextSibling ) { - if ( n.nodeType === 1 && n !== elem ) { - r.push( n ); - } - } - - return r; - } -}); - -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.unique( 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.unique( - 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 jQuery.dir( elem, "parentNode" ); - }, - parentsUntil: function( elem, i, until ) { - return jQuery.dir( elem, "parentNode", until ); - }, - next: function( elem ) { - return sibling( elem, "nextSibling" ); - }, - prev: function( elem ) { - return sibling( elem, "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.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.unique( ret ); - } - - // Reverse order for parents* and prev-derivatives - if ( rparentsprev.test( name ) ) { - ret = ret.reverse(); - } - } - - return this.pushStack( ret ); - }; -}); - -return jQuery; -}); diff --git a/vendor/assets/components/jquery/test/csp.php b/vendor/assets/components/jquery/test/csp.php deleted file mode 100644 index 46cba83482..0000000000 --- a/vendor/assets/components/jquery/test/csp.php +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - CSP Test Page - - - - -

            CSP Test Page

            - - diff --git a/vendor/assets/components/jquery/test/data/1x1.jpg b/vendor/assets/components/jquery/test/data/1x1.jpg deleted file mode 100644 index b0d69110f9..0000000000 Binary files a/vendor/assets/components/jquery/test/data/1x1.jpg and /dev/null differ diff --git a/vendor/assets/components/jquery/test/data/atom+xml.php b/vendor/assets/components/jquery/test/data/atom+xml.php deleted file mode 100644 index 944591abf5..0000000000 --- a/vendor/assets/components/jquery/test/data/atom+xml.php +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/vendor/assets/components/jquery/test/data/badjson.js b/vendor/assets/components/jquery/test/data/badjson.js deleted file mode 100644 index ec41ee5d6e..0000000000 --- a/vendor/assets/components/jquery/test/data/badjson.js +++ /dev/null @@ -1 +0,0 @@ -{bad: 1} diff --git a/vendor/assets/components/jquery/test/data/dashboard.xml b/vendor/assets/components/jquery/test/data/dashboard.xml deleted file mode 100644 index 5a6f56142b..0000000000 --- a/vendor/assets/components/jquery/test/data/dashboard.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/vendor/assets/components/jquery/test/data/dimensions/documentLarge.html b/vendor/assets/components/jquery/test/data/dimensions/documentLarge.html deleted file mode 100644 index 8b434e7196..0000000000 --- a/vendor/assets/components/jquery/test/data/dimensions/documentLarge.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - -
            - -
            - - \ No newline at end of file diff --git a/vendor/assets/components/jquery/test/data/dimensions/documentSmall.html b/vendor/assets/components/jquery/test/data/dimensions/documentSmall.html deleted file mode 100644 index e0e9a3d54d..0000000000 --- a/vendor/assets/components/jquery/test/data/dimensions/documentSmall.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -
            - -
            - - \ No newline at end of file diff --git a/vendor/assets/components/jquery/test/data/echoData.php b/vendor/assets/components/jquery/test/data/echoData.php deleted file mode 100644 index a37ba515ad..0000000000 --- a/vendor/assets/components/jquery/test/data/echoData.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/vendor/assets/components/jquery/test/data/echoQuery.php b/vendor/assets/components/jquery/test/data/echoQuery.php deleted file mode 100644 index b72f329c9c..0000000000 --- a/vendor/assets/components/jquery/test/data/echoQuery.php +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/vendor/assets/components/jquery/test/data/errorWithText.php b/vendor/assets/components/jquery/test/data/errorWithText.php deleted file mode 100644 index abd873217c..0000000000 --- a/vendor/assets/components/jquery/test/data/errorWithText.php +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/vendor/assets/components/jquery/test/data/evalScript.php b/vendor/assets/components/jquery/test/data/evalScript.php deleted file mode 100644 index ea9b8c55fb..0000000000 --- a/vendor/assets/components/jquery/test/data/evalScript.php +++ /dev/null @@ -1 +0,0 @@ -ok( "" === "GET", "request method is " ); \ No newline at end of file diff --git a/vendor/assets/components/jquery/test/data/headers.php b/vendor/assets/components/jquery/test/data/headers.php deleted file mode 100644 index 968f13f19a..0000000000 --- a/vendor/assets/components/jquery/test/data/headers.php +++ /dev/null @@ -1,18 +0,0 @@ - $value ) { - - $key = str_replace( "_" , "-" , substr( $key , 0 , 5 ) == "HTTP_" ? substr( $key , 5 ) : $key ); - $headers[ $key ] = $value; - -} - -foreach( explode( "_" , $_GET[ "keys" ] ) as $key ) { - echo "$key: " . @$headers[ strtoupper( $key ) ] . "\n"; -} diff --git a/vendor/assets/components/jquery/test/data/if_modified_since.php b/vendor/assets/components/jquery/test/data/if_modified_since.php deleted file mode 100644 index e37a93e57a..0000000000 --- a/vendor/assets/components/jquery/test/data/if_modified_since.php +++ /dev/null @@ -1,20 +0,0 @@ - diff --git a/vendor/assets/components/jquery/test/data/iframe.html b/vendor/assets/components/jquery/test/data/iframe.html deleted file mode 100644 index 3ff26e1612..0000000000 --- a/vendor/assets/components/jquery/test/data/iframe.html +++ /dev/null @@ -1,8 +0,0 @@ - - - iframe - - -
            span text
            - - diff --git a/vendor/assets/components/jquery/test/data/include_js.php b/vendor/assets/components/jquery/test/data/include_js.php deleted file mode 100644 index 23207a9d93..0000000000 --- a/vendor/assets/components/jquery/test/data/include_js.php +++ /dev/null @@ -1,106 +0,0 @@ -/* -<'+'/script>');"; -} - -// the concatenated version of the the src files is both the default and the fallback -// because it does not require you to "make" jquery for it to update -if( $output === "" ) { - $files = array( - "intro", - "core", - "callbacks", - "deferred", - "support", - "data", - "queue", - "attributes", - "event", - "sizzle/sizzle", - "sizzle-jquery", - "traversing", - "manipulation", - "css", - "ajax", - "ajax/jsonp", - "ajax/script", - "ajax/xhr", - "effects", - "offset", - "dimensions", - "exports", - "outro" - ); - - foreach ( $files as $file ) { - $output .= file_get_contents( "../../src/" . $file . ".js" ); - } - - $output = str_replace( "(function( jQuery ) {", "", $output ); - $output = str_replace( "})( jQuery );", "", $output ); -} - -echo $output; -die(); -?> -*/ - -hasPHP = false; - -// javascript fallback using src files in case this is not run on a PHP server! -// please note that this fallback is for convenience only, and is not fully supported -// i.e. don't expect all of the tests to work properly -var baseURL = document.location.href.replace( /\/test\/.+/, "/"), - files = [ - "core", - "callbacks", - "deferred", - "support", - "data", - "queue", - "attributes", - "event", - "sizzle/sizzle", - "sizzle-jquery", - "traversing", - "manipulation", - "css", - "ajax", - "ajax/jsonp", - "ajax/script", - "ajax/xhr", - "effects", - "offset", - "dimensions", - "exports" - ], - len = files.length, - i = 0; - -for ( ; i < len; i++ ) { - document.write(" diff --git a/vendor/assets/components/jquery/test/data/name.php b/vendor/assets/components/jquery/test/data/name.php deleted file mode 100644 index 64028585db..0000000000 --- a/vendor/assets/components/jquery/test/data/name.php +++ /dev/null @@ -1,24 +0,0 @@ -$xml$result"; - die(); -} -$name = $_REQUEST['name']; -if($name == 'foo') { - echo "bar"; - die(); -} else if($name == 'peter') { - echo "pan"; - die(); -} - -echo 'ERROR '; -?> \ No newline at end of file diff --git a/vendor/assets/components/jquery/test/data/offset/absolute.html b/vendor/assets/components/jquery/test/data/offset/absolute.html deleted file mode 100644 index 5a0e4afb4d..0000000000 --- a/vendor/assets/components/jquery/test/data/offset/absolute.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - absolute - - - - - -
            absolute-1 -
            absolute-1-1 -
            absolute-1-1-1
            -
            -
            -
            absolute-2
            -
            Has absolute position but no values set for the location ('auto').
            -
            -

            Click the white box to move the marker to it. Clicking the box also changes the position to absolute (if not already) and sets the position according to the position method.

            - - diff --git a/vendor/assets/components/jquery/test/data/offset/body.html b/vendor/assets/components/jquery/test/data/offset/body.html deleted file mode 100644 index ec7668c10c..0000000000 --- a/vendor/assets/components/jquery/test/data/offset/body.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - body - - - - - -
            - - diff --git a/vendor/assets/components/jquery/test/data/offset/fixed.html b/vendor/assets/components/jquery/test/data/offset/fixed.html deleted file mode 100644 index 8a7b31f196..0000000000 --- a/vendor/assets/components/jquery/test/data/offset/fixed.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - fixed - - - - - -
            -
            -
            -
            -
            -

            Click the white box to move the marker to it.

            - - diff --git a/vendor/assets/components/jquery/test/data/offset/relative.html b/vendor/assets/components/jquery/test/data/offset/relative.html deleted file mode 100644 index 361d4b2940..0000000000 --- a/vendor/assets/components/jquery/test/data/offset/relative.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - relative - - - - - -
            -
            -
            -

            Click the white box to move the marker to it. Clicking the box also changes the position to absolute (if not already) and sets the position according to the position method.

            - - diff --git a/vendor/assets/components/jquery/test/data/offset/scroll.html b/vendor/assets/components/jquery/test/data/offset/scroll.html deleted file mode 100644 index 17f01d8fc3..0000000000 --- a/vendor/assets/components/jquery/test/data/offset/scroll.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - scroll - - - - - -
            -
            -
            -
            -
            -
            -
            -

            Click the white box to move the marker to it.

            - - diff --git a/vendor/assets/components/jquery/test/data/offset/static.html b/vendor/assets/components/jquery/test/data/offset/static.html deleted file mode 100644 index cb5ed03ebd..0000000000 --- a/vendor/assets/components/jquery/test/data/offset/static.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - static - - - - - -
            -
            -
            -

            Click the white box to move the marker to it. Clicking the box also changes the position to absolute (if not already) and sets the position according to the position method.

            - - diff --git a/vendor/assets/components/jquery/test/data/offset/table.html b/vendor/assets/components/jquery/test/data/offset/table.html deleted file mode 100644 index 4a6a7a470f..0000000000 --- a/vendor/assets/components/jquery/test/data/offset/table.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - table - - - - - -
            - - - - - - - - - - - - - - -
            th-1th-2th-3
            td-1td-2td-3
            -
            -

            Click the white box to move the marker to it.

            - - diff --git a/vendor/assets/components/jquery/test/data/params_html.php b/vendor/assets/components/jquery/test/data/params_html.php deleted file mode 100644 index e88ef1521e..0000000000 --- a/vendor/assets/components/jquery/test/data/params_html.php +++ /dev/null @@ -1,12 +0,0 @@ -
            -$value ) - echo "$value"; -?> -
            -
            -$value ) - echo "$value"; -?> -
            \ No newline at end of file diff --git a/vendor/assets/components/jquery/test/data/readywaitasset.js b/vendor/assets/components/jquery/test/data/readywaitasset.js deleted file mode 100644 index 2308965ce2..0000000000 --- a/vendor/assets/components/jquery/test/data/readywaitasset.js +++ /dev/null @@ -1 +0,0 @@ -var delayedMessage = "It worked!"; diff --git a/vendor/assets/components/jquery/test/data/readywaitloader.js b/vendor/assets/components/jquery/test/data/readywaitloader.js deleted file mode 100644 index e07dac7a9a..0000000000 --- a/vendor/assets/components/jquery/test/data/readywaitloader.js +++ /dev/null @@ -1,25 +0,0 @@ -// Simple script loader that uses jQuery.readyWait via jQuery.holdReady() - -//Hold on jQuery! -jQuery.holdReady(true); - -var readyRegExp = /^(complete|loaded)$/; - -function assetLoaded( evt ){ - var node = evt.currentTarget || evt.srcElement; - if ( evt.type === "load" || readyRegExp.test(node.readyState) ) { - jQuery.holdReady(false); - } -} - -setTimeout( function() { - var script = document.createElement("script"); - script.type = "text/javascript"; - if ( script.addEventListener ) { - script.addEventListener( "load", assetLoaded, false ); - } else { - script.attachEvent( "onreadystatechange", assetLoaded ); - } - script.src = "data/readywaitasset.js"; - document.getElementsByTagName("head")[0].appendChild(script); -}, 2000 ); diff --git a/vendor/assets/components/jquery/test/data/script.php b/vendor/assets/components/jquery/test/data/script.php deleted file mode 100644 index fb7110491f..0000000000 --- a/vendor/assets/components/jquery/test/data/script.php +++ /dev/null @@ -1,11 +0,0 @@ - -ok( true, "Script executed correctly." ); diff --git a/vendor/assets/components/jquery/test/data/selector/html5_selector.html b/vendor/assets/components/jquery/test/data/selector/html5_selector.html deleted file mode 100644 index ed0bfbc94a..0000000000 --- a/vendor/assets/components/jquery/test/data/selector/html5_selector.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - jQuery selector - attributes - - - - - - - - - - -
            - -
            - - -
            - - - -
            - - - - - -
              - -
              - -
              - - - - - - - - - - - - - - - -
              -
              Term
              This is the first definition in compact format.
              -
              Term
              This is the second definition in compact format.
              -
              - - - - Scrolling text (non-standard) - - diff --git a/vendor/assets/components/jquery/test/data/selector/sizzle_cache.html b/vendor/assets/components/jquery/test/data/selector/sizzle_cache.html deleted file mode 100644 index 6221263fa7..0000000000 --- a/vendor/assets/components/jquery/test/data/selector/sizzle_cache.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - jQuery selector - sizzle cache - - - - - - - - - - - - diff --git a/vendor/assets/components/jquery/test/data/statusText.php b/vendor/assets/components/jquery/test/data/statusText.php deleted file mode 100644 index daf58ce3ff..0000000000 --- a/vendor/assets/components/jquery/test/data/statusText.php +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/vendor/assets/components/jquery/test/data/support/bodyBackground.html b/vendor/assets/components/jquery/test/data/support/bodyBackground.html deleted file mode 100644 index 0f12e75f9d..0000000000 --- a/vendor/assets/components/jquery/test/data/support/bodyBackground.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - -
              - -
              - - - diff --git a/vendor/assets/components/jquery/test/data/support/boxModelIE.html b/vendor/assets/components/jquery/test/data/support/boxModelIE.html deleted file mode 100644 index ca647a2810..0000000000 --- a/vendor/assets/components/jquery/test/data/support/boxModelIE.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - diff --git a/vendor/assets/components/jquery/test/data/support/hiddenIFrameFF.html b/vendor/assets/components/jquery/test/data/support/hiddenIFrameFF.html deleted file mode 100644 index c2dda8cd4e..0000000000 --- a/vendor/assets/components/jquery/test/data/support/hiddenIFrameFF.html +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/vendor/assets/components/jquery/test/data/support/testElementCrash.html b/vendor/assets/components/jquery/test/data/support/testElementCrash.html deleted file mode 100644 index 583ca7b0f9..0000000000 --- a/vendor/assets/components/jquery/test/data/support/testElementCrash.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - diff --git a/vendor/assets/components/jquery/test/data/test.html b/vendor/assets/components/jquery/test/data/test.html deleted file mode 100644 index eec028e90f..0000000000 --- a/vendor/assets/components/jquery/test/data/test.html +++ /dev/null @@ -1,7 +0,0 @@ -html text
              - - -blabla diff --git a/vendor/assets/components/jquery/test/data/test.js b/vendor/assets/components/jquery/test/data/test.js deleted file mode 100644 index 69f492dcc8..0000000000 --- a/vendor/assets/components/jquery/test/data/test.js +++ /dev/null @@ -1,3 +0,0 @@ -var foobar = "bar"; -jQuery('#ap').html('bar'); -ok( true, "test.js executed"); diff --git a/vendor/assets/components/jquery/test/data/test.php b/vendor/assets/components/jquery/test/data/test.php deleted file mode 100644 index 3d08f3253a..0000000000 --- a/vendor/assets/components/jquery/test/data/test.php +++ /dev/null @@ -1,7 +0,0 @@ -html text
              - - -blabla \ No newline at end of file diff --git a/vendor/assets/components/jquery/test/data/test2.html b/vendor/assets/components/jquery/test/data/test2.html deleted file mode 100644 index 1df6151a0c..0000000000 --- a/vendor/assets/components/jquery/test/data/test2.html +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/vendor/assets/components/jquery/test/data/test3.html b/vendor/assets/components/jquery/test/data/test3.html deleted file mode 100644 index 909d41745c..0000000000 --- a/vendor/assets/components/jquery/test/data/test3.html +++ /dev/null @@ -1,3 +0,0 @@ -
              This is a user
              -
              This is a user
              -
              This is a teacher
              diff --git a/vendor/assets/components/jquery/test/data/testinit.js b/vendor/assets/components/jquery/test/data/testinit.js deleted file mode 100644 index 43244e7eb6..0000000000 --- a/vendor/assets/components/jquery/test/data/testinit.js +++ /dev/null @@ -1,162 +0,0 @@ -var jQuery = this.jQuery || "jQuery", // For testing .noConflict() - $ = this.$ || "$", - originaljQuery = jQuery, - original$ = $, - hasPHP = true, - amdDefined; - -/** - * Set up a mock AMD define function for testing AMD registration. - */ -function define(name, dependencies, callback) { - amdDefined = callback(); -} - -define.amd = { - jQuery: true -}; - -/** - * Returns an array of elements with the given IDs, eg. - * @example q("main", "foo", "bar") - * @result [
              , , ] - */ -function q() { - var r = []; - - for ( var i = 0; i < arguments.length; i++ ) { - r.push( document.getElementById( arguments[i] ) ); - } - - return r; -} - -/** - * Asserts that a select matches the given IDs * @example t("Check for something", "//[a]", ["foo", "baar"]); - * @result returns true if "//[a]" return two elements with the IDs 'foo' and 'baar' - */ -function t(a,b,c) { - var f = jQuery(b).get(), s = ""; - - for ( var i = 0; i < f.length; i++ ) { - s += (s && ",") + '"' + f[i].id + '"'; - } - - deepEqual(f, q.apply(q,c), a + " (" + b + ")"); -} - -var fireNative; -if ( document.createEvent ) { - fireNative = function( node, type ) { - var event = document.createEvent('HTMLEvents'); - event.initEvent( type, true, true ); - node.dispatchEvent( event ); - }; -} else { - fireNative = function( node, type ) { - var event = document.createEventObject(); - node.fireEvent( 'on' + type, event ); - }; -} - -/** - * Add random number to url to stop IE from caching - * - * @example url("data/test.html") - * @result "data/test.html?10538358428943" - * - * @example url("data/test.php?foo=bar") - * @result "data/test.php?foo=bar&10538358345554" - */ -function url(value) { - return value + (/\?/.test(value) ? "&" : "?") + new Date().getTime() + "" + parseInt(Math.random()*100000); -} - -(function () { - // Store the old counts so that we only assert on tests that have actually leaked, - // instead of asserting every time a test has leaked sometime in the past - var oldCacheLength = 0, - oldFragmentsLength = 0, - oldTimersLength = 0, - oldActive = 0; - - /** - * Ensures that tests have cleaned up properly after themselves. Should be passed as the - * teardown function on all modules' lifecycle object. - */ - this.moduleTeardown = function () { - var i, fragmentsLength = 0, cacheLength = 0; - - // Allow QUnit.reset to clean up any attached elements before checking for leaks - QUnit.reset(); - - for ( i in jQuery.cache ) { - ++cacheLength; - } - - jQuery.fragments = {}; - - for ( i in jQuery.fragments ) { - ++fragmentsLength; - } - - // Because QUnit doesn't have a mechanism for retrieving the number of expected assertions for a test, - // if we unconditionally assert any of these, the test will fail with too many assertions :| - if ( cacheLength !== oldCacheLength ) { - equal( cacheLength, oldCacheLength, "No unit tests leak memory in jQuery.cache" ); - oldCacheLength = cacheLength; - } - if ( fragmentsLength !== oldFragmentsLength ) { - equal( fragmentsLength, oldFragmentsLength, "No unit tests leak memory in jQuery.fragments" ); - oldFragmentsLength = fragmentsLength; - } - if ( jQuery.timers.length !== oldTimersLength ) { - equal( jQuery.timers.length, oldTimersLength, "No timers are still running" ); - oldTimersLength = jQuery.timers.length; - } - if ( jQuery.active !== oldActive ) { - equal( jQuery.active, 0, "No AJAX requests are still active" ); - oldActive = jQuery.active; - } - }; - - this.testIframe = function( fileName, name, fn ) { - - test(name, function() { - // pause execution for now - stop(); - - // load fixture in iframe - var iframe = loadFixture(), - win = iframe.contentWindow, - interval = setInterval( function() { - if ( win && win.jQuery && win.jQuery.isReady ) { - clearInterval( interval ); - // continue - start(); - // call actual tests passing the correct jQuery instance to use - fn.call( this, win.jQuery, win, win.document ); - document.body.removeChild( iframe ); - iframe = null; - } - }, 15 ); - }); - - function loadFixture() { - var src = "./data/" + fileName + ".html?" + parseInt( Math.random()*1000, 10 ), - iframe = jQuery(" -
              -
              -

              See this blog entry for more information.

              -

              - Here are some links in a normal paragraph: Google, - Google Groups (Link). - This link has class="blog": - diveintomark - -

              -
              -

              Everything inside the red border is inside a div with id="foo".

              -

              This is a normal link: Yahoo

              -

              This link has class="blog": Simon Willison's Weblog

              - -
              - -

              Try them out:

              -
                -
                  -
                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - test element -
                  - Float test. - -
                  - - -
                  -
                  - -
                  - - - - -
                  - -
                  - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                  -
                  -
                  - -
                  -
                  hi there
                  -
                  -
                  -
                  -
                  -
                  -
                  -
                  -
                  - -
                  -
                    -
                  1. Rice
                  2. -
                  3. Beans
                  4. -
                  5. Blinis
                  6. -
                  7. Tofu
                  8. -
                  - -
                  I'm hungry. I should...
                  - ...Eat lots of food... | - ...Eat a little food... | - ...Eat no food... - ...Eat a burger... - ...Eat some funyuns... - ...Eat some funyuns... -
                  - -
                  - - -
                  - -
                  - 1 - 2 -
                  -
                  -
                  -
                  -
                  -
                  fadeIn
                  fadeIn
                  -
                  fadeOut
                  fadeOut
                  - -
                  show
                  show
                  -
                  hide
                  hide
                  - -
                  togglein
                  togglein
                  -
                  toggleout
                  toggleout
                  - - -
                  slideUp
                  slideUp
                  -
                  slideDown
                  slideDown
                  - -
                  slideToggleIn
                  slideToggleIn
                  -
                  slideToggleOut
                  slideToggleOut
                  - -
                  fadeToggleIn
                  fadeToggleIn
                  -
                  fadeToggleOut
                  fadeToggleOut
                  - -
                  fadeTo
                  fadeTo
                  -
                  - -
                  -
                  - - - diff --git a/vendor/assets/components/jquery/test/localfile.html b/vendor/assets/components/jquery/test/localfile.html deleted file mode 100644 index 2c089c4d2a..0000000000 --- a/vendor/assets/components/jquery/test/localfile.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - jQuery Local File Test - - - - - -

                  jQuery Local File Test

                  -

                  - Introduction -

                  -
                    -
                  • - Access this file using the "file:" protocol, -
                  • -
                  • - two green "OK" strings must appear below, -
                  • -
                  • - Empty local files will issue errors, it's a known limitation. -
                  • -
                  -

                  - Results -

                  -
                    -
                  • - Success: - - -
                  • -
                  • - Error: - - -
                  • -
                  -

                  - Logs: -

                  -
                    -
                  - - \ No newline at end of file diff --git a/vendor/assets/components/jquery/test/networkerror.html b/vendor/assets/components/jquery/test/networkerror.html deleted file mode 100644 index e258d83d83..0000000000 --- a/vendor/assets/components/jquery/test/networkerror.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - jQuery Network Error Test for Firefox - - - - - - -

                  - jQuery Network Error Test for Firefox -

                  -
                  - This is a test page for - - #8135 - - which was reported in Firefox when accessing properties - of an XMLHttpRequest object after a network error occured. -
                  -
                  Take the following steps:
                  -
                    -
                  1. - make sure you accessed this page through a web server, -
                  2. -
                  3. - stop the web server, -
                  4. -
                  5. - open the console, -
                  6. -
                  7. - click this - - , -
                  8. -
                  9. - wait for both requests to fail. -
                  10. -
                  -
                  - Test passes if you get two log lines: -
                    -
                  • - the first starting with "abort", -
                  • -
                  • - the second starting with "complete", -
                  • -
                  -
                  -
                  - Test fails if the browser notifies an exception. -
                  - - \ No newline at end of file diff --git a/vendor/assets/components/jquery/test/polluted.php b/vendor/assets/components/jquery/test/polluted.php deleted file mode 100644 index 50fc7cd687..0000000000 --- a/vendor/assets/components/jquery/test/polluted.php +++ /dev/null @@ -1,99 +0,0 @@ - array( - "versions" => array( "1.1.1", "1.2.0", "1.2.3", "1.3.0", "1.3.1", "1.3.2", "1.4.0", "1.4.1", "1.4.3", "1.5.0" ), - "url" => "dojo/XYZ/dojo/dojo.xd.js" - ), - "ExtCore" => array( - "versions" => array( "3.0.0", "3.1.0" ), - "url" => "ext-core/XYZ/ext-core.js" - ), - "jQuery" => array( - "versions" => array( "1.2.3", "1.2.6", "1.3.0", "1.3.1", "1.3.2", "1.4.0", "1.4.1", "1.4.2", "1.4.3", "1.4.4", "1.5.0" ), - "url" => "jquery/XYZ/jquery.min.js" - ), - "jQueryUI" => array( - "versions" => array( "1.5.2", "1.5.3", "1.6.0", "1.7.0", "1.7.1", "1.7.2", "1.7.3", "1.8.0", "1.8.1", "1.8.2", "1.8.4", "1.8.5", "1.8.6", "1.8.7", "1.8.8", "1.8.9" ), - "url" => "jqueryui/XYZ/jquery-ui.min.js" - ), - "MooTools" => array( - "versions" => array( "1.1.1", "1.1.2", "1.2.1", "1.2.2", "1.2.3", "1.2.4", "1.2.5", "1.3.0" ), - "url" => "mootools/XYZ/mootools-yui-compressed.js" - ), - "Prototype" => array( - "versions" => array( "1.6.0.2", "1.6.0.3", "1.6.1.0", "1.7.0.0" ), - "url" => "prototype/XYZ/prototype.js" - ), - "scriptaculous" => array( - "versions" => array( "1.8.1", "1.8.2", "1.8.3" ), - "url" => "scriptaculous/XYZ/scriptaculous.js" - ), - "SWFObject" => array( - "versions" => array( "2.1", "2.2" ), - "url" => "swfobject/XYZ/swfobject.js" - ), - "YUI" => array( - "versions" => array( "2.6.0", "2.7.0", "2.8.0r4", "2.8.1", "2.8.2", "3.3.0" ), - "url" => "yui/XYZ/build/yui/yui-min.js" - ) - ); - - if( count($_POST) ) { - $includes = array(); - foreach( $_POST as $name => $ver ){ - $url = $libraries[ $name ][ "url" ]; - if( $name == "YUI" && $ver[0] == "2" ) { - $url = str_replace( "/yui", "/yuiloader", $url, $count = 2 ); - } - $include = "\n"; - if( $lib == "prototype" ) { // prototype must be included first - array_unshift( $includes, $include ); - } else { - array_push( $includes, $include ); - } - } - - $includes = implode( "\n", $includes ); - $suite = file_get_contents( "index.html" ); - echo str_replace( "", $includes, $suite ); - exit; - } -?> - - - - - Run jQuery Test Suite Polluted - - - - -

                  jQuery Test Suite

                  - -

                  Choose other libraries to include

                  - -
                  - $data ) { - echo "
                  $name"; - $i = 0; - foreach( $data[ "versions" ] as $ver ) { - $i++; - echo ""; - if( !($i % 4) ) echo "
                  "; - } - echo "
                  "; - } - ?> - -
                  - - diff --git a/vendor/assets/components/jquery/test/readywait.html b/vendor/assets/components/jquery/test/readywait.html deleted file mode 100644 index a9eab39615..0000000000 --- a/vendor/assets/components/jquery/test/readywait.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - jQuery.holdReady Test - - - - - - - - - - -

                  - jQuery.holdReady Test -

                  -

                  - This is a test page for jQuery.readyWait and jQuery.holdReady, - see - #6781 - and - #8803. -

                  -

                  - Test for jQuery.holdReady, which can be used - by plugins and other scripts to indicate something - important to the page is still loading and needs - to block the DOM ready callbacks that are registered - with jQuery. -

                  -

                  - Script loaders are the most likely kind of script - to use jQuery.holdReady, but it could be used by - other things like a script that loads a CSS file - and wants to pause the DOM ready callbacks. -

                  -

                  - Expected Result: The text - It Worked! - appears below after about 2 seconds. -

                  -

                  - If there is an error in the console, - or the text does not show up, then the test failed. -

                  -
                  - - diff --git a/vendor/assets/components/jquery/test/unit/ajax.js b/vendor/assets/components/jquery/test/unit/ajax.js deleted file mode 100644 index de680cb7d0..0000000000 --- a/vendor/assets/components/jquery/test/unit/ajax.js +++ /dev/null @@ -1,2365 +0,0 @@ -module("ajax", { teardown: moduleTeardown }); - -if ( !isLocal || hasPHP) { - -test("jQuery.ajax() - success callbacks", function() { - expect( 8 ); - - jQuery.ajaxSetup({ timeout: 0 }); - - stop(); - - jQuery("#foo").ajaxStart(function(){ - ok( true, "ajaxStart" ); - }).ajaxStop(function(){ - ok( true, "ajaxStop" ); - start(); - }).ajaxSend(function(){ - ok( true, "ajaxSend" ); - }).ajaxComplete(function(){ - ok( true, "ajaxComplete" ); - }).ajaxError(function(){ - ok( false, "ajaxError" ); - }).ajaxSuccess(function(){ - ok( true, "ajaxSuccess" ); - }); - - jQuery.ajax({ - url: url("data/name.html"), - beforeSend: function(){ ok(true, "beforeSend"); }, - success: function(){ ok(true, "success"); }, - error: function(){ ok(false, "error"); }, - complete: function(){ ok(true, "complete"); } - }); -}); - -test("jQuery.ajax() - success callbacks - (url, options) syntax", function() { - expect( 8 ); - - jQuery.ajaxSetup({ timeout: 0 }); - - stop(); - - setTimeout(function(){ - jQuery("#foo").ajaxStart(function(){ - ok( true, "ajaxStart" ); - }).ajaxStop(function(){ - ok( true, "ajaxStop" ); - start(); - }).ajaxSend(function(){ - ok( true, "ajaxSend" ); - }).ajaxComplete(function(){ - ok( true, "ajaxComplete" ); - }).ajaxError(function(){ - ok( false, "ajaxError" ); - }).ajaxSuccess(function(){ - ok( true, "ajaxSuccess" ); - }); - - jQuery.ajax( url("data/name.html") , { - beforeSend: function(){ ok(true, "beforeSend"); }, - success: function(){ ok(true, "success"); }, - error: function(){ ok(false, "error"); }, - complete: function(){ ok(true, "complete"); } - }); - }, 13); -}); - -test("jQuery.ajax() - success callbacks (late binding)", function() { - expect( 8 ); - - jQuery.ajaxSetup({ timeout: 0 }); - - stop(); - - setTimeout(function(){ - jQuery("#foo").ajaxStart(function(){ - ok( true, "ajaxStart" ); - }).ajaxStop(function(){ - ok( true, "ajaxStop" ); - start(); - }).ajaxSend(function(){ - ok( true, "ajaxSend" ); - }).ajaxComplete(function(){ - ok( true, "ajaxComplete" ); - }).ajaxError(function(){ - ok( false, "ajaxError" ); - }).ajaxSuccess(function(){ - ok( true, "ajaxSuccess" ); - }); - - jQuery.ajax({ - url: url("data/name.html"), - beforeSend: function(){ ok(true, "beforeSend"); } - }) - .complete(function(){ ok(true, "complete"); }) - .success(function(){ ok(true, "success"); }) - .error(function(){ ok(false, "error"); }); - }, 13); -}); - -test("jQuery.ajax() - success callbacks (oncomplete binding)", function() { - expect( 8 ); - - jQuery.ajaxSetup({ timeout: 0 }); - - stop(); - - setTimeout(function(){ - jQuery("#foo").ajaxStart(function(){ - ok( true, "ajaxStart" ); - }).ajaxStop(function(){ - ok( true, "ajaxStop" ); - }).ajaxSend(function(){ - ok( true, "ajaxSend" ); - }).ajaxComplete(function(){ - ok( true, "ajaxComplete" ); - }).ajaxError(function(){ - ok( false, "ajaxError" ); - }).ajaxSuccess(function(){ - ok( true, "ajaxSuccess" ); - }); - - jQuery.ajax({ - url: url("data/name.html"), - beforeSend: function(){ ok(true, "beforeSend"); }, - complete: function(xhr) { - xhr - .complete(function(){ ok(true, "complete"); }) - .success(function(){ ok(true, "success"); }) - .error(function(){ ok(false, "error"); }) - .complete(function(){ start(); }); - } - }); - }, 13); -}); - -test("jQuery.ajax() - success callbacks (very late binding)", function() { - expect( 8 ); - - jQuery.ajaxSetup({ timeout: 0 }); - - stop(); - - setTimeout(function(){ - jQuery("#foo").ajaxStart(function(){ - ok( true, "ajaxStart" ); - }).ajaxStop(function(){ - ok( true, "ajaxStop" ); - }).ajaxSend(function(){ - ok( true, "ajaxSend" ); - }).ajaxComplete(function(){ - ok( true, "ajaxComplete" ); - }).ajaxError(function(){ - ok( false, "ajaxError" ); - }).ajaxSuccess(function(){ - ok( true, "ajaxSuccess" ); - }); - - jQuery.ajax({ - url: url("data/name.html"), - beforeSend: function(){ ok(true, "beforeSend"); }, - complete: function(xhr) { - setTimeout (function() { - xhr - .complete(function(){ ok(true, "complete"); }) - .success(function(){ ok(true, "success"); }) - .error(function(){ ok(false, "error"); }) - .complete(function(){ start(); }); - },100); - } - }); - }, 13); -}); - -test("jQuery.ajax() - success callbacks (order)", function() { - expect( 1 ); - - jQuery.ajaxSetup({ timeout: 0 }); - - stop(); - - var testString = ""; - - setTimeout(function(){ - jQuery.ajax({ - url: url("data/name.html"), - success: function( _1 , _2 , xhr ) { - xhr.success(function() { - xhr.success(function() { - testString += "E"; - }); - testString += "D"; - }); - testString += "A"; - }, - complete: function() { - strictEqual(testString, "ABCDE", "Proper order"); - start(); - } - }).success(function() { - testString += "B"; - }).success(function() { - testString += "C"; - }); - }, 13); -}); - -test("jQuery.ajax() - error callbacks", function() { - expect( 8 ); - stop(); - - jQuery("#foo").ajaxStart(function(){ - ok( true, "ajaxStart" ); - }).ajaxStop(function(){ - ok( true, "ajaxStop" ); - start(); - }).ajaxSend(function(){ - ok( true, "ajaxSend" ); - }).ajaxComplete(function(){ - ok( true, "ajaxComplete" ); - }).ajaxError(function(){ - ok( true, "ajaxError" ); - }).ajaxSuccess(function(){ - ok( false, "ajaxSuccess" ); - }); - - jQuery.ajaxSetup({ timeout: 500 }); - - jQuery.ajax({ - url: url("data/name.php?wait=5"), - beforeSend: function(){ ok(true, "beforeSend"); }, - success: function(){ ok(false, "success"); }, - error: function(){ ok(true, "error"); }, - complete: function(){ ok(true, "complete"); } - }); -}); - -test( "jQuery.ajax - multiple method signatures introduced in 1.5 ( #8107)", function() { - - expect( 4 ); - - stop(); - - jQuery.when( - jQuery.ajax().success(function() { ok( true, "With no arguments" ); }), - jQuery.ajax("data/name.html").success(function() { ok( true, "With only string URL argument" ); }), - jQuery.ajax("data/name.html", {} ).success(function() { ok( true, "With string URL param and map" ); }), - jQuery.ajax({ url: "data/name.html"} ).success(function() { ok( true, "With only map" ); }) - ).always(function() { - start(); - }); - -}); - -test("jQuery.ajax() - textStatus and errorThrown values", function() { - - var nb = 2; - - expect( 2 * nb ); - stop(); - - function startN() { - if ( !( --nb ) ) { - start(); - } - } - - /* - Safari 3.x returns "OK" instead of "Not Found" - Safari 4.x doesn't have this issue so the test should be re-instated once - we drop support for 3.x - - jQuery.ajax({ - url: url("data/nonExistingURL"), - error: function( _ , textStatus , errorThrown ){ - strictEqual( textStatus, "error", "textStatus is 'error' for 404" ); - strictEqual( errorThrown, "Not Found", "errorThrown is 'Not Found' for 404"); - startN(); - } - }); - */ - - jQuery.ajax({ - url: url("data/name.php?wait=5"), - error: function( _ , textStatus , errorThrown ){ - strictEqual( textStatus, "abort", "textStatus is 'abort' for abort" ); - strictEqual( errorThrown, "abort", "errorThrown is 'abort' for abort"); - startN(); - } - }).abort(); - - jQuery.ajax({ - url: url("data/name.php?wait=5"), - error: function( _ , textStatus , errorThrown ){ - strictEqual( textStatus, "mystatus", "textStatus is 'mystatus' for abort('mystatus')" ); - strictEqual( errorThrown, "mystatus", "errorThrown is 'mystatus' for abort('mystatus')"); - startN(); - } - }).abort( "mystatus" ); -}); - -test("jQuery.ajax() - responseText on error", function() { - - expect( 1 ); - - stop(); - - jQuery.ajax({ - url: url("data/errorWithText.php"), - error: function(xhr) { - strictEqual( xhr.responseText , "plain text message" , "Test jqXHR.responseText is filled for HTTP errors" ); - }, - complete: function() { - start(); - } - }); -}); - -test(".ajax() - retry with jQuery.ajax( this )", function() { - - expect( 2 ); - - stop(); - - var firstTime = true, - previousUrl; - - jQuery.ajax({ - url: url("data/errorWithText.php"), - error: function() { - if ( firstTime ) { - firstTime = false; - jQuery.ajax( this ); - } else { - ok( true , "Test retrying with jQuery.ajax(this) works" ); - jQuery.ajax({ - url: url("data/errorWithText.php"), - data: { x: 1 }, - beforeSend: function() { - if ( !previousUrl ) { - previousUrl = this.url; - } else { - strictEqual( this.url , previousUrl, "url parameters are not re-appended" ); - start(); - return false; - } - }, - error: function() { - jQuery.ajax( this ); - } - }); - } - } - }); -}); - -test(".ajax() - headers" , function() { - - expect( 4 ); - - stop(); - - jQuery("#foo").ajaxSend(function( evt, xhr ) { - xhr.setRequestHeader( "ajax-send", "test" ); - }); - - var requestHeaders = { - siMPle: "value", - "SometHing-elsE": "other value", - OthEr: "something else" - }, - list = [], - i; - - for( i in requestHeaders ) { - list.push( i ); - } - list.push( "ajax-send" ); - - jQuery.ajax(url("data/headers.php?keys="+list.join( "_" ) ), { - - headers: requestHeaders, - success: function( data , _ , xhr ) { - var tmp = []; - for ( i in requestHeaders ) { - tmp.push( i , ": " , requestHeaders[ i ] , "\n" ); - } - tmp.push( "ajax-send: test\n" ); - tmp = tmp.join( "" ); - - strictEqual( data , tmp , "Headers were sent" ); - strictEqual( xhr.getResponseHeader( "Sample-Header" ) , "Hello World" , "Sample header received" ); - if ( jQuery.browser.mozilla ) { - ok( true, "Firefox doesn't support empty headers" ); - } else { - strictEqual( xhr.getResponseHeader( "Empty-Header" ) , "" , "Empty header received" ); - } - strictEqual( xhr.getResponseHeader( "Sample-Header2" ) , "Hello World 2" , "Second sample header received" ); - }, - error: function(){ ok(false, "error"); } - - }).always(function() { - start(); - }); - -}); - -test(".ajax() - Accept header" , function() { - - expect( 1 ); - - stop(); - - jQuery.ajax(url("data/headers.php?keys=accept"), { - headers: { - Accept: "very wrong accept value" - }, - beforeSend: function( xhr ) { - xhr.setRequestHeader( "Accept", "*/*" ); - }, - success: function( data ) { - strictEqual( data , "accept: */*\n" , "Test Accept header is set to last value provided" ); - start(); - }, - error: function(){ ok(false, "error"); } - }); - -}); - -test(".ajax() - contentType" , function() { - - expect( 2 ); - - stop(); - - var count = 2; - - function restart() { - if ( ! --count ) { - start(); - } - } - - jQuery.ajax(url("data/headers.php?keys=content-type" ), { - contentType: "test", - success: function( data ) { - strictEqual( data , "content-type: test\n" , "Test content-type is sent when options.contentType is set" ); - }, - complete: function() { - restart(); - } - }); - - jQuery.ajax(url("data/headers.php?keys=content-type" ), { - contentType: false, - success: function( data ) { - strictEqual( data , "content-type: \n" , "Test content-type is not sent when options.contentType===false" ); - }, - complete: function() { - restart(); - } - }); - -}); - -test(".ajax() - protocol-less urls", function() { - expect(1); - - jQuery.ajax({ - url: "//somedomain.com", - beforeSend: function( xhr, settings ) { - equal(settings.url, location.protocol + "//somedomain.com", "Make sure that the protocol is added."); - return false; - } - }); -}); - -test(".ajax() - hash", function() { - expect(3); - - jQuery.ajax({ - url: "data/name.html#foo", - beforeSend: function( xhr, settings ) { - equal(settings.url, "data/name.html", "Make sure that the URL is trimmed."); - return false; - } - }); - - jQuery.ajax({ - url: "data/name.html?abc#foo", - beforeSend: function( xhr, settings ) { - equal(settings.url, "data/name.html?abc", "Make sure that the URL is trimmed."); - return false; - } - }); - - jQuery.ajax({ - url: "data/name.html?abc#foo", - data: { "test": 123 }, - beforeSend: function( xhr, settings ) { - equal(settings.url, "data/name.html?abc&test=123", "Make sure that the URL is trimmed."); - return false; - } - }); -}); - -test("jQuery ajax - cross-domain detection", function() { - - expect( 6 ); - - var loc = document.location, - otherPort = loc.port === 666 ? 667 : 666, - otherProtocol = loc.protocol === "http:" ? "https:" : "http:"; - - jQuery.ajax({ - dataType: "jsonp", - url: otherProtocol + "//" + loc.host, - beforeSend: function( _ , s ) { - ok( s.crossDomain , "Test different protocols are detected as cross-domain" ); - return false; - } - }); - - jQuery.ajax({ - dataType: "jsonp", - url: "app:/path", - beforeSend: function( _ , s ) { - ok( s.crossDomain , "Adobe AIR app:/ URL detected as cross-domain" ); - return false; - } - }); - - jQuery.ajax({ - dataType: "jsonp", - url: loc.protocol + "//somewebsitethatdoesnotexist-656329477541.com:" + ( loc.port || 80 ), - beforeSend: function( _ , s ) { - ok( s.crossDomain , "Test different hostnames are detected as cross-domain" ); - return false; - } - }); - - jQuery.ajax({ - dataType: "jsonp", - url: loc.protocol + "//" + loc.hostname + ":" + otherPort, - beforeSend: function( _ , s ) { - ok( s.crossDomain , "Test different ports are detected as cross-domain" ); - return false; - } - }); - - jQuery.ajax({ - dataType: "jsonp", - url: "about:blank", - beforeSend: function( _ , s ) { - ok( s.crossDomain , "Test about:blank is detected as cross-domain" ); - return false; - } - }); - - jQuery.ajax({ - dataType: "jsonp", - url: loc.protocol + "//" + loc.host, - crossDomain: true, - beforeSend: function( _ , s ) { - ok( s.crossDomain , "Test forced crossDomain is detected as cross-domain" ); - return false; - } - }); - -}); - -test(".load() - 404 error callbacks", function() { - expect( 6 ); - stop(); - - jQuery("#foo").ajaxStart(function(){ - ok( true, "ajaxStart" ); - }).ajaxStop(function(){ - ok( true, "ajaxStop" ); - start(); - }).ajaxSend(function(){ - ok( true, "ajaxSend" ); - }).ajaxComplete(function(){ - ok( true, "ajaxComplete" ); - }).ajaxError(function(){ - ok( true, "ajaxError" ); - }).ajaxSuccess(function(){ - ok( false, "ajaxSuccess" ); - }); - - jQuery("
                  ").load("data/404.html", function(){ - ok(true, "complete"); - }); -}); - -test("jQuery.ajax() - abort", function() { - expect( 8 ); - stop(); - - jQuery("#foo").ajaxStart(function(){ - ok( true, "ajaxStart" ); - }).ajaxStop(function(){ - ok( true, "ajaxStop" ); - start(); - }).ajaxSend(function(){ - ok( true, "ajaxSend" ); - }).ajaxComplete(function(){ - ok( true, "ajaxComplete" ); - }); - - var xhr = jQuery.ajax({ - url: url("data/name.php?wait=5"), - beforeSend: function(){ ok(true, "beforeSend"); }, - complete: function(){ ok(true, "complete"); } - }); - - equal( xhr.readyState, 1, "XHR readyState indicates successful dispatch" ); - - xhr.abort(); - equal( xhr.readyState, 0, "XHR readyState indicates successful abortion" ); -}); - -test("Ajax events with context", function() { - expect(14); - - stop(); - var context = document.createElement("div"); - - function event(e){ - equal( this, context, e.type ); - } - - function callback(msg){ - return function(){ - equal( this, context, "context is preserved on callback " + msg ); - }; - } - - function nocallback(msg){ - return function(){ - equal( typeof this.url, "string", "context is settings on callback " + msg ); - }; - } - - jQuery("#foo").add(context) - .ajaxSend(event) - .ajaxComplete(event) - .ajaxError(event) - .ajaxSuccess(event); - - jQuery.ajax({ - url: url("data/name.html"), - beforeSend: callback("beforeSend"), - success: callback("success"), - error: callback("error"), - complete:function(){ - callback("complete").call(this); - - jQuery.ajax({ - url: url("data/404.html"), - context: context, - beforeSend: callback("beforeSend"), - error: callback("error"), - complete: function(){ - callback("complete").call(this); - - jQuery("#foo").add(context).unbind(); - - jQuery.ajax({ - url: url("data/404.html"), - beforeSend: nocallback("beforeSend"), - error: nocallback("error"), - complete: function(){ - nocallback("complete").call(this); - start(); - } - }); - } - }); - }, - context:context - }); -}); - -test("jQuery.ajax context modification", function() { - expect(1); - - stop(); - - var obj = {}; - - jQuery.ajax({ - url: url("data/name.html"), - context: obj, - beforeSend: function(){ - this.test = "foo"; - }, - complete: function() { - start(); - } - }); - - equal( obj.test, "foo", "Make sure the original object is maintained." ); -}); - -test("jQuery.ajax context modification through ajaxSetup", function() { - expect(4); - - stop(); - - var obj = {}; - - jQuery.ajaxSetup({ - context: obj - }); - - strictEqual( jQuery.ajaxSettings.context, obj, "Make sure the context is properly set in ajaxSettings." ); - - jQuery.ajax({ - url: url("data/name.html"), - complete: function() { - strictEqual( this, obj, "Make sure the original object is maintained." ); - jQuery.ajax({ - url: url("data/name.html"), - context: {}, - complete: function() { - ok( this !== obj, "Make sure overidding context is possible." ); - jQuery.ajaxSetup({ - context: false - }); - jQuery.ajax({ - url: url("data/name.html"), - beforeSend: function(){ - this.test = "foo2"; - }, - complete: function() { - ok( this !== obj, "Make sure unsetting context is possible." ); - start(); - } - }); - } - }); - } - }); -}); - -test("jQuery.ajax() - disabled globals", function() { - expect( 3 ); - stop(); - - jQuery("#foo").ajaxStart(function(){ - ok( false, "ajaxStart" ); - }).ajaxStop(function(){ - ok( false, "ajaxStop" ); - }).ajaxSend(function(){ - ok( false, "ajaxSend" ); - }).ajaxComplete(function(){ - ok( false, "ajaxComplete" ); - }).ajaxError(function(){ - ok( false, "ajaxError" ); - }).ajaxSuccess(function(){ - ok( false, "ajaxSuccess" ); - }); - - jQuery.ajax({ - global: false, - url: url("data/name.html"), - beforeSend: function(){ ok(true, "beforeSend"); }, - success: function(){ ok(true, "success"); }, - error: function(){ ok(false, "error"); }, - complete: function(){ - ok(true, "complete"); - setTimeout(function(){ start(); }, 13); - } - }); -}); - -test("jQuery.ajax - xml: non-namespace elements inside namespaced elements", function() { - expect(3); - stop(); - jQuery.ajax({ - url: url("data/with_fries.xml"), - dataType: "xml", - success: function(resp) { - equal( jQuery("properties", resp).length, 1, "properties in responseXML" ); - equal( jQuery("jsconf", resp).length, 1, "jsconf in responseXML" ); - equal( jQuery("thing", resp).length, 2, "things in responseXML" ); - start(); - } - }); -}); - -test("jQuery.ajax - xml: non-namespace elements inside namespaced elements (over JSONP)", function() { - expect(3); - stop(); - jQuery.ajax({ - url: url("data/with_fries_over_jsonp.php"), - dataType: "jsonp xml", - success: function(resp) { - equal( jQuery("properties", resp).length, 1, "properties in responseXML" ); - equal( jQuery("jsconf", resp).length, 1, "jsconf in responseXML" ); - equal( jQuery("thing", resp).length, 2, "things in responseXML" ); - start(); - }, - error: function(_1,_2,error) { - ok( false, error ); - start(); - } - }); -}); - -test("jQuery.ajax - HEAD requests", function() { - expect(2); - - stop(); - jQuery.ajax({ - url: url("data/name.html"), - type: "HEAD", - success: function(data, status, xhr){ - var h = xhr.getAllResponseHeaders(); - ok( /Date/i.test(h), "No Date in HEAD response" ); - - jQuery.ajax({ - url: url("data/name.html"), - data: { whip_it: "good" }, - type: "HEAD", - success: function(data, status, xhr){ - var h = xhr.getAllResponseHeaders(); - ok( /Date/i.test(h), "No Date in HEAD response with data" ); - start(); - } - }); - } - }); - -}); - -test("jQuery.ajax - beforeSend", function() { - expect(1); - stop(); - - var check = false; - - jQuery.ajaxSetup({ timeout: 0 }); - - jQuery.ajax({ - url: url("data/name.html"), - beforeSend: function(xml) { - check = true; - }, - success: function(data) { - ok( check, "check beforeSend was executed" ); - start(); - } - }); -}); - -test("jQuery.ajax - beforeSend, cancel request (#2688)", function() { - expect(2); - var request = jQuery.ajax({ - url: url("data/name.html"), - beforeSend: function() { - ok( true, "beforeSend got called, canceling" ); - return false; - }, - success: function() { - ok( false, "request didn't get canceled" ); - }, - complete: function() { - ok( false, "request didn't get canceled" ); - }, - error: function() { - ok( false, "request didn't get canceled" ); - } - }); - ok( request === false, "canceled request must return false instead of XMLHttpRequest instance" ); -}); - -test("jQuery.ajax - beforeSend, cancel request manually", function() { - expect(2); - var request = jQuery.ajax({ - url: url("data/name.html"), - beforeSend: function(xhr) { - ok( true, "beforeSend got called, canceling" ); - xhr.abort(); - }, - success: function() { - ok( false, "request didn't get canceled" ); - }, - complete: function() { - ok( false, "request didn't get canceled" ); - }, - error: function() { - ok( false, "request didn't get canceled" ); - } - }); - ok( request === false, "canceled request must return false instead of XMLHttpRequest instance" ); -}); - -window.foobar = null; -window.testFoo = undefined; - -test("jQuery.ajax - dataType html", function() { - expect(5); - stop(); - - var verifyEvaluation = function() { - equal( testFoo, "foo", "Check if script was evaluated for datatype html" ); - equal( foobar, "bar", "Check if script src was evaluated for datatype html" ); - - start(); - }; - - jQuery.ajax({ - dataType: "html", - url: url("data/test.html"), - success: function(data) { - jQuery("#ap").html(data); - ok( data.match(/^html text/), "Check content for datatype html" ); - setTimeout(verifyEvaluation, 600); - } - }); -}); - -test("serialize()", function() { - expect(5); - - // Add html5 elements only for serialize because selector can't yet find them on non-html5 browsers - jQuery("#search").after( - ""+ - "" - ); - - equal( jQuery("#form").serialize(), - "action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&search=search&email=dave%40jquery.com&number=43&select1=&select2=3&select3=1&select3=2&select5=3", - "Check form serialization as query string"); - - equal( jQuery("#form :input").serialize(), - "action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&search=search&email=dave%40jquery.com&number=43&select1=&select2=3&select3=1&select3=2&select5=3", - "Check input serialization as query string"); - - equal( jQuery("#testForm").serialize(), - "T3=%3F%0D%0AZ&H1=x&H2=&PWD=&T1=&T2=YES&My+Name=me&S1=abc&S3=YES&S4=", - "Check form serialization as query string"); - - equal( jQuery("#testForm :input").serialize(), - "T3=%3F%0D%0AZ&H1=x&H2=&PWD=&T1=&T2=YES&My+Name=me&S1=abc&S3=YES&S4=", - "Check input serialization as query string"); - - equal( jQuery("#form, #testForm").serialize(), - "action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&search=search&email=dave%40jquery.com&number=43&select1=&select2=3&select3=1&select3=2&select5=3&T3=%3F%0D%0AZ&H1=x&H2=&PWD=&T1=&T2=YES&My+Name=me&S1=abc&S3=YES&S4=", - "Multiple form serialization as query string"); - - /* Temporarily disabled. Opera 10 has problems with form serialization. - equal( jQuery("#form, #testForm :input").serialize(), - "action=Test&radio2=on&check=on&hidden=&foo%5Bbar%5D=&name=name&search=search&email=dave%40jquery.com&number=43&select1=&select2=3&select3=1&select3=2&T3=%3F%0D%0AZ&H1=x&H2=&PWD=&T1=&T2=YES&My+Name=me&S1=abc&S3=YES&S4=", - "Mixed form/input serialization as query string"); - */ - jQuery("#html5email, #html5number").remove(); -}); - -test("jQuery.param()", function() { - expect(21); - - equal( !jQuery.ajaxSettings.traditional, true, "traditional flag, falsy by default" ); - - var params = {foo:"bar", baz:42, quux:"All your base are belong to us"}; - equal( jQuery.param(params), "foo=bar&baz=42&quux=All+your+base+are+belong+to+us", "simple" ); - - params = {someName: [1, 2, 3], regularThing: "blah" }; - equal( jQuery.param(params), "someName%5B%5D=1&someName%5B%5D=2&someName%5B%5D=3®ularThing=blah", "with array" ); - - params = {foo: ["a", "b", "c"]}; - equal( jQuery.param(params), "foo%5B%5D=a&foo%5B%5D=b&foo%5B%5D=c", "with array of strings" ); - - params = {foo: ["baz", 42, "All your base are belong to us"] }; - equal( jQuery.param(params), "foo%5B%5D=baz&foo%5B%5D=42&foo%5B%5D=All+your+base+are+belong+to+us", "more array" ); - - params = {foo: { bar: "baz", beep: 42, quux: "All your base are belong to us" } }; - equal( jQuery.param(params), "foo%5Bbar%5D=baz&foo%5Bbeep%5D=42&foo%5Bquux%5D=All+your+base+are+belong+to+us", "even more arrays" ); - - params = { a:[1,2], b:{ c:3, d:[4,5], e:{ x:[6], y:7, z:[8,9] }, f:true, g:false, h:undefined }, i:[10,11], j:true, k:false, l:[undefined,0], m:"cowboy hat?" }; - equal( decodeURIComponent( jQuery.param(params) ), "a[]=1&a[]=2&b[c]=3&b[d][]=4&b[d][]=5&b[e][x][]=6&b[e][y]=7&b[e][z][]=8&b[e][z][]=9&b[f]=true&b[g]=false&b[h]=undefined&i[]=10&i[]=11&j=true&k=false&l[]=undefined&l[]=0&m=cowboy+hat?", "huge structure" ); - - params = { a: [ 0, [ 1, 2 ], [ 3, [ 4, 5 ], [ 6 ] ], { b: [ 7, [ 8, 9 ], [ { c: 10, d: 11 } ], [ [ 12 ] ], [ [ [ 13 ] ] ], { e: { f: { g: [ 14, [ 15 ] ] } } }, 16 ] }, 17 ] }; - equal( decodeURIComponent( jQuery.param(params) ), "a[]=0&a[1][]=1&a[1][]=2&a[2][]=3&a[2][1][]=4&a[2][1][]=5&a[2][2][]=6&a[3][b][]=7&a[3][b][1][]=8&a[3][b][1][]=9&a[3][b][2][0][c]=10&a[3][b][2][0][d]=11&a[3][b][3][0][]=12&a[3][b][4][0][0][]=13&a[3][b][5][e][f][g][]=14&a[3][b][5][e][f][g][1][]=15&a[3][b][]=16&a[]=17", "nested arrays" ); - - params = { a:[1,2], b:{ c:3, d:[4,5], e:{ x:[6], y:7, z:[8,9] }, f:true, g:false, h:undefined }, i:[10,11], j:true, k:false, l:[undefined,0], m:"cowboy hat?" }; - equal( jQuery.param(params,true), "a=1&a=2&b=%5Bobject+Object%5D&i=10&i=11&j=true&k=false&l=undefined&l=0&m=cowboy+hat%3F", "huge structure, forced traditional" ); - - equal( decodeURIComponent( jQuery.param({ a: [1,2,3], "b[]": [4,5,6], "c[d]": [7,8,9], e: { f: [10], g: [11,12], h: 13 } }) ), "a[]=1&a[]=2&a[]=3&b[]=4&b[]=5&b[]=6&c[d][]=7&c[d][]=8&c[d][]=9&e[f][]=10&e[g][]=11&e[g][]=12&e[h]=13", "Make sure params are not double-encoded." ); - - // #7945 - equal( jQuery.param({"jquery": "1.4.2"}), "jquery=1.4.2", "Check that object with a jQuery property get serialized correctly" ); - - jQuery.ajaxSetup({ traditional: true }); - - var params = {foo:"bar", baz:42, quux:"All your base are belong to us"}; - equal( jQuery.param(params), "foo=bar&baz=42&quux=All+your+base+are+belong+to+us", "simple" ); - - params = {someName: [1, 2, 3], regularThing: "blah" }; - equal( jQuery.param(params), "someName=1&someName=2&someName=3®ularThing=blah", "with array" ); - - params = {foo: ["a", "b", "c"]}; - equal( jQuery.param(params), "foo=a&foo=b&foo=c", "with array of strings" ); - - params = {"foo[]":["baz", 42, "All your base are belong to us"]}; - equal( jQuery.param(params), "foo%5B%5D=baz&foo%5B%5D=42&foo%5B%5D=All+your+base+are+belong+to+us", "more array" ); - - params = {"foo[bar]":"baz", "foo[beep]":42, "foo[quux]":"All your base are belong to us"}; - equal( jQuery.param(params), "foo%5Bbar%5D=baz&foo%5Bbeep%5D=42&foo%5Bquux%5D=All+your+base+are+belong+to+us", "even more arrays" ); - - params = { a:[1,2], b:{ c:3, d:[4,5], e:{ x:[6], y:7, z:[8,9] }, f:true, g:false, h:undefined }, i:[10,11], j:true, k:false, l:[undefined,0], m:"cowboy hat?" }; - equal( jQuery.param(params), "a=1&a=2&b=%5Bobject+Object%5D&i=10&i=11&j=true&k=false&l=undefined&l=0&m=cowboy+hat%3F", "huge structure" ); - - params = { a: [ 0, [ 1, 2 ], [ 3, [ 4, 5 ], [ 6 ] ], { b: [ 7, [ 8, 9 ], [ { c: 10, d: 11 } ], [ [ 12 ] ], [ [ [ 13 ] ] ], { e: { f: { g: [ 14, [ 15 ] ] } } }, 16 ] }, 17 ] }; - equal( jQuery.param(params), "a=0&a=1%2C2&a=3%2C4%2C5%2C6&a=%5Bobject+Object%5D&a=17", "nested arrays (not possible when jQuery.param.traditional == true)" ); - - params = { a:[1,2], b:{ c:3, d:[4,5], e:{ x:[6], y:7, z:[8,9] }, f:true, g:false, h:undefined }, i:[10,11], j:true, k:false, l:[undefined,0], m:"cowboy hat?" }; - equal( decodeURIComponent( jQuery.param(params,false) ), "a[]=1&a[]=2&b[c]=3&b[d][]=4&b[d][]=5&b[e][x][]=6&b[e][y]=7&b[e][z][]=8&b[e][z][]=9&b[f]=true&b[g]=false&b[h]=undefined&i[]=10&i[]=11&j=true&k=false&l[]=undefined&l[]=0&m=cowboy+hat?", "huge structure, forced not traditional" ); - - params = { param1: null }; - equal( jQuery.param(params,false), "param1=null", "Make sure that null params aren't traversed." ); - - params = {"test": {"length": 3, "foo": "bar"} }; - equal( jQuery.param( params, false ), "test%5Blength%5D=3&test%5Bfoo%5D=bar", "Sub-object with a length property" ); -}); - -test("jQuery.param() Constructed prop values", function() { - expect( 4 ); - - function Record() { - this.prop = "val"; - } - - var params = { "test": new String("foo") }; - equal( jQuery.param( params, false ), "test=foo", "Do not mistake new String() for a plain object" ); - - params = { "test": new Number(5) }; - equal( jQuery.param( params, false ), "test=5", "Do not mistake new Number() for a plain object" ); - - params = { "test": new Date() }; - ok( jQuery.param( params, false ), "(Non empty string returned) Do not mistake new Date() for a plain object" ); - - // should allow non-native constructed objects - params = { "test": new Record() }; - equal( jQuery.param( params, false ), jQuery.param({ "test": { prop: "val" } }), "Allow non-native constructed objects" ); -}); - -test("synchronous request", function() { - expect(1); - ok( /^{ "data"/.test( jQuery.ajax({url: url("data/json_obj.js"), dataType: "text", async: false}).responseText ), "check returned text" ); -}); - -test("synchronous request with callbacks", function() { - expect(2); - var result; - jQuery.ajax({url: url("data/json_obj.js"), async: false, dataType: "text", success: function(data) { ok(true, "sucess callback executed"); result = data; } }); - ok( /^{ "data"/.test( result ), "check returned text" ); -}); - -test("pass-through request object", function() { - expect(8); - stop(); - - var target = "data/name.html"; - var successCount = 0; - var errorCount = 0; - var errorEx = ""; - var success = function() { - successCount++; - }; - jQuery("#foo").ajaxError(function (e, xml, s, ex) { - errorCount++; - errorEx += ": " + xml.status; - }); - jQuery("#foo").one("ajaxStop", function () { - equal(successCount, 5, "Check all ajax calls successful"); - equal(errorCount, 0, "Check no ajax errors (status" + errorEx + ")"); - jQuery("#foo").unbind("ajaxError"); - - start(); - }); - - ok( jQuery.get(url(target), success), "get" ); - ok( jQuery.post(url(target), success), "post" ); - ok( jQuery.getScript(url("data/test.js"), success), "script" ); - ok( jQuery.getJSON(url("data/json_obj.js"), success), "json" ); - ok( jQuery.ajax({url: url(target), success: success}), "generic" ); -}); - -test("ajax cache", function () { - expect(18); - - stop(); - - var count = 0; - - jQuery("#firstp").bind("ajaxSuccess", function (e, xml, s) { - var re = /_=(.*?)(&|$)/g; - var oldOne = null; - for (var i = 0; i < 6; i++) { - var ret = re.exec(s.url); - if (!ret) { - break; - } - oldOne = ret[1]; - } - equal(i, 1, "Test to make sure only one 'no-cache' parameter is there"); - ok(oldOne != "tobereplaced555", "Test to be sure parameter (if it was there) was replaced"); - if(++count == 6) - start(); - }); - - ok( jQuery.ajax({url: "data/text.php", cache:false}), "test with no parameters" ); - ok( jQuery.ajax({url: "data/text.php?pizza=true", cache:false}), "test with 1 parameter" ); - ok( jQuery.ajax({url: "data/text.php?_=tobereplaced555", cache:false}), "test with _= parameter" ); - ok( jQuery.ajax({url: "data/text.php?pizza=true&_=tobereplaced555", cache:false}), "test with 1 parameter plus _= one" ); - ok( jQuery.ajax({url: "data/text.php?_=tobereplaced555&tv=false", cache:false}), "test with 1 parameter plus _= one before it" ); - ok( jQuery.ajax({url: "data/text.php?name=David&_=tobereplaced555&washere=true", cache:false}), "test with 2 parameters surrounding _= one" ); -}); - -/* - * Test disabled. - * The assertions expect that the passed-in object will be modified, - * which shouldn't be the case. Fixes #5439. -test("global ajaxSettings", function() { - expect(2); - - var tmp = jQuery.extend({}, jQuery.ajaxSettings); - var orig = { url: "data/with_fries.xml" }; - var t; - - jQuery.ajaxSetup({ data: {foo: "bar", bar: "BAR"} }); - - t = jQuery.extend({}, orig); - t.data = {}; - jQuery.ajax(t); - ok( t.url.indexOf("foo") > -1 && t.url.indexOf("bar") > -1, "Check extending {}" ); - - t = jQuery.extend({}, orig); - t.data = { zoo: "a", ping: "b" }; - jQuery.ajax(t); - ok( t.url.indexOf("ping") > -1 && t.url.indexOf("zoo") > -1 && t.url.indexOf("foo") > -1 && t.url.indexOf("bar") > -1, "Check extending { zoo: "a", ping: "b" }" ); - - jQuery.ajaxSettings = tmp; -}); -*/ - -test("load(String)", function() { - expect(1); - stop(); // check if load can be called with only url - jQuery("#first").load("data/name.html", function() { - start(); - }); -}); - -test("load('url selector')", function() { - expect(1); - stop(); // check if load can be called with only url - jQuery("#first").load("data/test3.html div.user", function(){ - equal( jQuery(this).children("div").length, 2, "Verify that specific elements were injected" ); - start(); - }); -}); - -test("load(String, Function) with ajaxSetup on dataType json, see #2046", function() { - expect(1); - stop(); - jQuery.ajaxSetup({ dataType: "json" }); - jQuery("#first").ajaxComplete(function (e, xml, s) { - equal( s.dataType, "html", "Verify the load() dataType was html" ); - jQuery("#first").unbind("ajaxComplete"); - jQuery.ajaxSetup({ dataType: "" }); - start(); - }); - jQuery("#first").load("data/test3.html"); -}); - -test("load(String, Function) - simple: inject text into DOM", function() { - expect(2); - stop(); - jQuery("#first").load(url("data/name.html"), function() { - ok( /^ERROR/.test(jQuery("#first").text()), "Check if content was injected into the DOM" ); - start(); - }); -}); - -test("load(String, Function) - check scripts", function() { - expect(7); - stop(); - - var verifyEvaluation = function() { - equal( foobar, "bar", "Check if script src was evaluated after load" ); - equal( jQuery("#ap").html(), "bar", "Check if script evaluation has modified DOM"); - - start(); - }; - jQuery("#first").load(url("data/test.html"), function() { - ok( jQuery("#first").html().match(/^html text/), "Check content after loading html" ); - equal( jQuery("#foo").html(), "foo", "Check if script evaluation has modified DOM"); - equal( testFoo, "foo", "Check if script was evaluated after load" ); - setTimeout(verifyEvaluation, 600); - }); -}); - -test("load(String, Function) - check file with only a script tag", function() { - expect(3); - stop(); - - jQuery("#first").load(url("data/test2.html"), function() { - equal( jQuery("#foo").html(), "foo", "Check if script evaluation has modified DOM"); - equal( testFoo, "foo", "Check if script was evaluated after load" ); - - start(); - }); -}); - -test("load(String, Function) - dataFilter in ajaxSettings", function() { - expect(2); - stop(); - jQuery.ajaxSetup({ dataFilter: function() { return "Hello World"; } }); - var div = jQuery("
                  ").load(url("data/name.html"), function(responseText) { - strictEqual( div.html(), "Hello World" , "Test div was filled with filtered data" ); - strictEqual( responseText, "Hello World" , "Test callback receives filtered data" ); - jQuery.ajaxSetup({ dataFilter: 0 }); - start(); - }); -}); - -test("load(String, Object, Function)", function() { - expect(2); - stop(); - - jQuery("
                  ").load(url("data/params_html.php"), { foo: 3, bar: "ok" }, function() { - var $post = jQuery(this).find("#post"); - equal( $post.find("#foo").text(), "3", "Check if a hash of data is passed correctly"); - equal( $post.find("#bar").text(), "ok", "Check if a hash of data is passed correctly"); - start(); - }); -}); - -test("load(String, String, Function)", function() { - expect(2); - stop(); - - jQuery("
                  ").load(url("data/params_html.php"), "foo=3&bar=ok", function() { - var $get = jQuery(this).find("#get"); - equal( $get.find("#foo").text(), "3", "Check if a string of data is passed correctly"); - equal( $get.find("#bar").text(), "ok", "Check if a of data is passed correctly"); - start(); - }); -}); - -test("jQuery.get(String, Function) - data in ajaxSettings (#8277)", function() { - expect(1); - stop(); - jQuery.ajaxSetup({ - data: "helloworld" - }); - jQuery.get(url("data/echoQuery.php"), function(data) { - ok( /helloworld$/.test( data ), "Data from ajaxSettings was used"); - jQuery.ajaxSetup({ - data: null - }); - start(); - }); -}); - -test("jQuery.get(String, Hash, Function) - parse xml and use text() on nodes", function() { - expect(2); - stop(); - jQuery.get(url("data/dashboard.xml"), function(xml) { - var content = []; - jQuery("tab", xml).each(function() { - content.push(jQuery(this).text()); - }); - equal( content[0], "blabla", "Check first tab"); - equal( content[1], "blublu", "Check second tab"); - start(); - }); -}); - -test("jQuery.getScript(String, Function) - with callback", function() { - expect(3); - stop(); - jQuery.getScript(url("data/test.js"), function( data, _, jqXHR ) { - equal( foobar, "bar", "Check if script was evaluated" ); - strictEqual( data, jqXHR.responseText, "Same-domain script requests returns the source of the script (#8082)" ); - setTimeout(function() { - start(); - }, 1000 ); - }); -}); - -test("jQuery.getScript(String, Function) - no callback", function() { - expect(1); - stop(); - jQuery.getScript(url("data/test.js"), function(){ - start(); - }); -}); - -jQuery.each( [ "Same Domain", "Cross Domain" ] , function( crossDomain , label ) { - - test("jQuery.ajax() - JSONP, " + label, function() { - expect(20); - - var count = 0; - function plus(){ if ( ++count == 18 ) start(); } - - stop(); - - jQuery.ajax({ - url: "data/jsonp.php", - dataType: "jsonp", - crossDomain: crossDomain, - success: function(data){ - ok( data.data, "JSON results returned (GET, no callback)" ); - plus(); - }, - error: function(data){ - ok( false, "Ajax error JSON (GET, no callback)" ); - plus(); - } - }); - - jQuery.ajax({ - url: "data/jsonp.php?callback=?", - dataType: "jsonp", - crossDomain: crossDomain, - success: function(data){ - ok( data.data, "JSON results returned (GET, url callback)" ); - plus(); - }, - error: function(data){ - ok( false, "Ajax error JSON (GET, url callback)" ); - plus(); - } - }); - - jQuery.ajax({ - url: "data/jsonp.php", - dataType: "jsonp", - crossDomain: crossDomain, - data: "callback=?", - success: function(data){ - ok( data.data, "JSON results returned (GET, data callback)" ); - plus(); - }, - error: function(data){ - ok( false, "Ajax error JSON (GET, data callback)" ); - plus(); - } - }); - - jQuery.ajax({ - url: "data/jsonp.php?callback=??", - dataType: "jsonp", - crossDomain: crossDomain, - success: function(data){ - ok( data.data, "JSON results returned (GET, url context-free callback)" ); - plus(); - }, - error: function(data){ - ok( false, "Ajax error JSON (GET, url context-free callback)" ); - plus(); - } - }); - - jQuery.ajax({ - url: "data/jsonp.php", - dataType: "jsonp", - crossDomain: crossDomain, - data: "callback=??", - success: function(data){ - ok( data.data, "JSON results returned (GET, data context-free callback)" ); - plus(); - }, - error: function(data){ - ok( false, "Ajax error JSON (GET, data context-free callback)" ); - plus(); - } - }); - - jQuery.ajax({ - url: "data/jsonp.php/??", - dataType: "jsonp", - crossDomain: crossDomain, - success: function(data){ - ok( data.data, "JSON results returned (GET, REST-like)" ); - plus(); - }, - error: function(data){ - ok( false, "Ajax error JSON (GET, REST-like)" ); - plus(); - } - }); - - jQuery.ajax({ - url: "data/jsonp.php/???json=1", - dataType: "jsonp", - crossDomain: crossDomain, - success: function(data){ - strictEqual( jQuery.type(data), "array", "JSON results returned (GET, REST-like with param)" ); - plus(); - }, - error: function(data){ - ok( false, "Ajax error JSON (GET, REST-like with param)" ); - plus(); - } - }); - - jQuery.ajax({ - url: "data/jsonp.php", - dataType: "jsonp", - crossDomain: crossDomain, - jsonp: "callback", - success: function(data){ - ok( data.data, "JSON results returned (GET, data obj callback)" ); - plus(); - }, - error: function(data){ - ok( false, "Ajax error JSON (GET, data obj callback)" ); - plus(); - } - }); - - window.jsonpResults = function(data) { - ok( data.data, "JSON results returned (GET, custom callback function)" ); - window.jsonpResults = undefined; - plus(); - }; - - jQuery.ajax({ - url: "data/jsonp.php", - dataType: "jsonp", - crossDomain: crossDomain, - jsonpCallback: "jsonpResults", - success: function(data){ - ok( data.data, "JSON results returned (GET, custom callback name)" ); - plus(); - }, - error: function(data){ - ok( false, "Ajax error JSON (GET, custom callback name)" ); - plus(); - } - }); - - jQuery.ajax({ - url: "data/jsonp.php", - dataType: "jsonp", - crossDomain: crossDomain, - jsonpCallback: "functionToCleanUp", - success: function(data){ - ok( data.data, "JSON results returned (GET, custom callback name to be cleaned up)" ); - strictEqual( window.functionToCleanUp, undefined, "Callback was removed (GET, custom callback name to be cleaned up)" ); - plus(); - var xhr; - jQuery.ajax({ - url: "data/jsonp.php", - dataType: "jsonp", - crossDomain: crossDomain, - jsonpCallback: "functionToCleanUp", - beforeSend: function( jqXHR ) { - xhr = jqXHR; - return false; - } - }); - xhr.error(function() { - ok( true, "Ajax error JSON (GET, custom callback name to be cleaned up)" ); - strictEqual( window.functionToCleanUp, undefined, "Callback was removed after early abort (GET, custom callback name to be cleaned up)" ); - plus(); - }); - }, - error: function(data){ - ok( false, "Ajax error JSON (GET, custom callback name to be cleaned up)" ); - plus(); - } - }); - - jQuery.ajax({ - type: "POST", - url: "data/jsonp.php", - dataType: "jsonp", - crossDomain: crossDomain, - success: function(data){ - ok( data.data, "JSON results returned (POST, no callback)" ); - plus(); - }, - error: function(data){ - ok( false, "Ajax error JSON (GET, data obj callback)" ); - plus(); - } - }); - - jQuery.ajax({ - type: "POST", - url: "data/jsonp.php", - data: "callback=?", - dataType: "jsonp", - crossDomain: crossDomain, - success: function(data){ - ok( data.data, "JSON results returned (POST, data callback)" ); - plus(); - }, - error: function(data){ - ok( false, "Ajax error JSON (POST, data callback)" ); - plus(); - } - }); - - jQuery.ajax({ - type: "POST", - url: "data/jsonp.php", - jsonp: "callback", - dataType: "jsonp", - crossDomain: crossDomain, - success: function(data){ - ok( data.data, "JSON results returned (POST, data obj callback)" ); - plus(); - }, - error: function(data){ - ok( false, "Ajax error JSON (POST, data obj callback)" ); - plus(); - } - }); - - //#7578 - jQuery.ajax({ - url: "data/jsonp.php", - dataType: "jsonp", - crossDomain: crossDomain, - beforeSend: function(){ - strictEqual( this.cache, false, "cache must be false on JSON request" ); - plus(); - return false; - } - }); - - jQuery.ajax({ - url: "data/jsonp.php?callback=XXX", - dataType: "jsonp", - jsonp: false, - jsonpCallback: "XXX", - crossDomain: crossDomain, - beforeSend: function() { - ok( /^data\/jsonp.php\?callback=XXX&_=\d+$/.test( this.url ) , - "The URL wasn't messed with (GET, custom callback name with no url manipulation)" ); - plus(); - }, - success: function(data){ - ok( data.data, "JSON results returned (GET, custom callback name with no url manipulation)" ); - plus(); - }, - error: function(data){ - ok( false, "Ajax error JSON (GET, custom callback name with no url manipulation)" ); - plus(); - } - }); - - }); -}); - -test("jQuery.ajax() - script, Remote", function() { - expect(2); - - var base = window.location.href.replace(/[^\/]*$/, ""); - - stop(); - - jQuery.ajax({ - url: base + "data/test.js", - dataType: "script", - success: function(data){ - ok( foobar, "Script results returned (GET, no callback)" ); - start(); - } - }); -}); - -test("jQuery.ajax() - script, Remote with POST", function() { - expect(3); - - var base = window.location.href.replace(/[^\/]*$/, ""); - - stop(); - - jQuery.ajax({ - url: base + "data/test.js", - type: "POST", - dataType: "script", - success: function(data, status){ - ok( foobar, "Script results returned (POST, no callback)" ); - equal( status, "success", "Script results returned (POST, no callback)" ); - start(); - }, - error: function(xhr) { - ok( false, "ajax error, status code: " + xhr.status ); - start(); - } - }); -}); - -test("jQuery.ajax() - script, Remote with scheme-less URL", function() { - expect(2); - - var base = window.location.href.replace(/[^\/]*$/, ""); - base = base.replace(/^.*?\/\//, "//"); - - stop(); - - jQuery.ajax({ - url: base + "data/test.js", - dataType: "script", - success: function(data){ - ok( foobar, "Script results returned (GET, no callback)" ); - start(); - } - }); -}); - -test("jQuery.ajax() - malformed JSON", function() { - expect(2); - - stop(); - - jQuery.ajax({ - url: "data/badjson.js", - dataType: "json", - success: function(){ - ok( false, "Success." ); - start(); - }, - error: function(xhr, msg, detailedMsg) { - equal( "parsererror", msg, "A parse error occurred." ); - ok( /(invalid|error|exception)/i.test(detailedMsg), "Detailed parsererror message provided" ); - start(); - } - }); -}); - -test("jQuery.ajax() - script by content-type", function() { - expect(2); - - stop(); - - jQuery.when( - - jQuery.ajax({ - url: "data/script.php", - data: { header: "script" } - }), - - jQuery.ajax({ - url: "data/script.php", - data: { header: "ecma" } - }) - - ).always(function() { - start(); - }); -}); - -test("jQuery.ajax() - json by content-type", function() { - expect(5); - - stop(); - - jQuery.ajax({ - url: "data/json.php", - data: { header: "json", json: "array" }, - success: function( json ) { - ok( json.length >= 2, "Check length"); - equal( json[0].name, "John", "Check JSON: first, name" ); - equal( json[0].age, 21, "Check JSON: first, age" ); - equal( json[1].name, "Peter", "Check JSON: second, name" ); - equal( json[1].age, 25, "Check JSON: second, age" ); - start(); - } - }); -}); - -test("jQuery.ajax() - json by content-type disabled with options", function() { - expect(6); - - stop(); - - jQuery.ajax({ - url: url("data/json.php"), - data: { header: "json", json: "array" }, - contents: { - json: false - }, - success: function( text ) { - equal( typeof text , "string" , "json wasn't auto-determined" ); - var json = jQuery.parseJSON( text ); - ok( json.length >= 2, "Check length"); - equal( json[0].name, "John", "Check JSON: first, name" ); - equal( json[0].age, 21, "Check JSON: first, age" ); - equal( json[1].name, "Peter", "Check JSON: second, name" ); - equal( json[1].age, 25, "Check JSON: second, age" ); - start(); - } - }); -}); - -test("jQuery.getJSON(String, Hash, Function) - JSON array", function() { - expect(5); - stop(); - jQuery.getJSON(url("data/json.php"), {json: "array"}, function(json) { - ok( json.length >= 2, "Check length"); - equal( json[0].name, "John", "Check JSON: first, name" ); - equal( json[0].age, 21, "Check JSON: first, age" ); - equal( json[1].name, "Peter", "Check JSON: second, name" ); - equal( json[1].age, 25, "Check JSON: second, age" ); - start(); - }); -}); - -test("jQuery.getJSON(String, Function) - JSON object", function() { - expect(2); - stop(); - jQuery.getJSON(url("data/json.php"), function(json) { - if (json && json.data) { - equal( json.data.lang, "en", "Check JSON: lang" ); - equal( json.data.length, 25, "Check JSON: length" ); - } - start(); - }); -}); - -test("jQuery.getJSON - Using Native JSON", function() { - expect(2); - - var old = window.JSON; - JSON = { - parse: function(str){ - ok( true, "Verifying that parse method was run" ); - return true; - } - }; - - stop(); - jQuery.getJSON(url("data/json.php"), function(json) { - window.JSON = old; - equal( json, true, "Verifying return value" ); - start(); - }); -}); - -test("jQuery.getJSON(String, Function) - JSON object with absolute url to local content", function() { - expect(2); - - var base = window.location.href.replace(/[^\/]*$/, ""); - - stop(); - jQuery.getJSON(url(base + "data/json.php"), function(json) { - equal( json.data.lang, "en", "Check JSON: lang" ); - equal( json.data.length, 25, "Check JSON: length" ); - start(); - }); -}); - -test("jQuery.post - data", 3, function() { - stop(); - - jQuery.when( - jQuery.post( url( "data/name.php" ), { xml: "5-2", length: 3 }, function( xml ) { - jQuery( "math", xml ).each(function() { - equal( jQuery( "calculation", this ).text(), "5-2", "Check for XML" ); - equal( jQuery( "result", this ).text(), "3", "Check for XML" ); - }); - }), - - jQuery.ajax({ - url: url("data/echoData.php"), - type: "POST", - data: { - "test": { - "length": 7, - "foo": "bar" - } - }, - success: function( data ) { - strictEqual( data, "test%5Blength%5D=7&test%5Bfoo%5D=bar", "Check if a sub-object with a length param is serialized correctly"); - } - }) - ).always(function() { - start(); - }); - -}); - -test("jQuery.post(String, Hash, Function) - simple with xml", function() { - expect(4); - stop(); - var done = 0; - - jQuery.post(url("data/name.php"), {xml: "5-2"}, function(xml){ - jQuery("math", xml).each(function() { - equal( jQuery("calculation", this).text(), "5-2", "Check for XML" ); - equal( jQuery("result", this).text(), "3", "Check for XML" ); - }); - if ( ++done === 2 ) start(); - }); - - jQuery.post(url("data/name.php?xml=5-2"), {}, function(xml){ - jQuery("math", xml).each(function() { - equal( jQuery("calculation", this).text(), "5-2", "Check for XML" ); - equal( jQuery("result", this).text(), "3", "Check for XML" ); - }); - if ( ++done === 2 ) start(); - }); -}); - -test("jQuery.ajaxSetup({timeout: Number}) - with global timeout", function() { - stop(); - - var passed = 0; - - jQuery.ajaxSetup({timeout: 1000}); - - var pass = function() { - passed++; - if ( passed == 2 ) { - ok( true, "Check local and global callbacks after timeout" ); - jQuery("#qunit-fixture").unbind("ajaxError"); - start(); - } - }; - - var fail = function(a,b,c) { - ok( false, "Check for timeout failed " + a + " " + b ); - start(); - }; - - jQuery("#qunit-fixture").ajaxError(pass); - - jQuery.ajax({ - type: "GET", - url: url("data/name.php?wait=5"), - error: pass, - success: fail - }); - - // reset timeout - jQuery.ajaxSetup({timeout: 0}); -}); - -test("jQuery.ajaxSetup({timeout: Number}) with localtimeout", function() { - stop(); - jQuery.ajaxSetup({timeout: 50}); - - jQuery.ajax({ - type: "GET", - timeout: 15000, - url: url("data/name.php?wait=1"), - error: function() { - ok( false, "Check for local timeout failed" ); - start(); - }, - success: function() { - ok( true, "Check for local timeout" ); - start(); - } - }); - - // reset timeout - jQuery.ajaxSetup({timeout: 0}); -}); - -test("jQuery.ajax - simple get", function() { - expect(1); - stop(); - jQuery.ajax({ - type: "GET", - url: url("data/name.php?name=foo"), - success: function(msg){ - equal( msg, "bar", "Check for GET" ); - start(); - } - }); -}); - -test("jQuery.ajax - simple post", function() { - expect(1); - stop(); - jQuery.ajax({ - type: "POST", - url: url("data/name.php"), - data: "name=peter", - success: function(msg){ - equal( msg, "pan", "Check for POST" ); - start(); - } - }); -}); - -test("ajaxSetup()", function() { - expect(1); - stop(); - jQuery.ajaxSetup({ - url: url("data/name.php?name=foo"), - success: function(msg){ - equal( msg, "bar", "Check for GET" ); - start(); - } - }); - jQuery.ajax(); -}); - -/* -test("custom timeout does not set error message when timeout occurs, see #970", function() { - stop(); - jQuery.ajax({ - url: "data/name.php?wait=1", - timeout: 500, - error: function(request, status) { - ok( status != null, "status shouldn't be null in error handler" ); - equal( "timeout", status ); - start(); - } - }); -}); -*/ - -test("data option: evaluate function values (#2806)", function() { - stop(); - jQuery.ajax({ - url: "data/echoQuery.php", - data: { - key: function() { - return "value"; - } - }, - success: function(result) { - equal( result, "key=value" ); - start(); - } - }); -}); - -test("data option: empty bodies for non-GET requests", function() { - stop(); - jQuery.ajax({ - url: "data/echoData.php", - data: undefined, - type: "post", - success: function(result) { - equal( result, "" ); - start(); - } - }); -}); - -var ifModifiedNow = new Date(); - -jQuery.each( { " (cache)": true, " (no cache)": false }, function( label, cache ) { - - test("jQuery.ajax - If-Modified-Since support" + label, function() { - expect( 3 ); - - stop(); - - var url = "data/if_modified_since.php?ts=" + ifModifiedNow++; - - jQuery.ajax({ - url: url, - ifModified: true, - cache: cache, - success: function(data, status) { - equal(status, "success" ); - - jQuery.ajax({ - url: url, - ifModified: true, - cache: cache, - success: function(data, status) { - if ( data === "FAIL" ) { - ok(jQuery.browser.opera, "Opera is incapable of doing .setRequestHeader('If-Modified-Since')."); - ok(jQuery.browser.opera, "Opera is incapable of doing .setRequestHeader('If-Modified-Since')."); - } else { - equal(status, "notmodified"); - ok(data == null, "response body should be empty"); - } - start(); - }, - error: function() { - // Do this because opera simply refuses to implement 304 handling :( - // A feature-driven way of detecting this would be appreciated - // See: http://gist.github.com/599419 - ok(jQuery.browser.opera, "error"); - ok(jQuery.browser.opera, "error"); - start(); - } - }); - }, - error: function() { - equal(false, "error"); - // Do this because opera simply refuses to implement 304 handling :( - // A feature-driven way of detecting this would be appreciated - // See: http://gist.github.com/599419 - ok(jQuery.browser.opera, "error"); - start(); - } - }); - }); - - test("jQuery.ajax - Etag support" + label, function() { - expect( 3 ); - - stop(); - - var url = "data/etag.php?ts=" + ifModifiedNow++; - - jQuery.ajax({ - url: url, - ifModified: true, - cache: cache, - success: function(data, status) { - equal(status, "success" ); - - jQuery.ajax({ - url: url, - ifModified: true, - cache: cache, - success: function(data, status) { - if ( data === "FAIL" ) { - ok(jQuery.browser.opera, "Opera is incapable of doing .setRequestHeader('If-None-Match')."); - ok(jQuery.browser.opera, "Opera is incapable of doing .setRequestHeader('If-None-Match')."); - } else { - equal(status, "notmodified"); - ok(data == null, "response body should be empty"); - } - start(); - }, - error: function() { - // Do this because opera simply refuses to implement 304 handling :( - // A feature-driven way of detecting this would be appreciated - // See: http://gist.github.com/599419 - ok(jQuery.browser.opera, "error"); - ok(jQuery.browser.opera, "error"); - start(); - } - }); - }, - error: function() { - // Do this because opera simply refuses to implement 304 handling :( - // A feature-driven way of detecting this would be appreciated - // See: http://gist.github.com/599419 - ok(jQuery.browser.opera, "error"); - start(); - } - }); - }); -}); - -test("jQuery ajax - failing cross-domain", function() { - - expect( 2 ); - - stop(); - - var i = 2; - - jQuery.ajax({ - url: "http://somewebsitethatdoesnotexist-67864863574657654.com", - success: function(){ ok( false , "success" ); }, - error: function(xhr,_,e){ ok( true , "file not found: " + xhr.status + " => " + e ); }, - complete: function() { if ( ! --i ) start(); } - }); - - jQuery.ajax({ - url: "http://www.google.com", - success: function(){ ok( false , "success" ); }, - error: function(xhr,_,e){ ok( true , "access denied: " + xhr.status + " => " + e ); }, - complete: function() { if ( ! --i ) start(); } - }); - -}); - -test("jQuery ajax - atom+xml", function() { - - stop(); - - jQuery.ajax({ - url: url( "data/atom+xml.php" ), - success: function(){ ok( true , "success" ); }, - error: function(){ ok( false , "error" ); }, - complete: function() { start(); } - }); - -}); - -test( "jQuery.ajax - Location object as url (#7531)", 1, function () { - var success = false; - try { - var xhr = jQuery.ajax({ url: window.location }); - success = true; - xhr.abort(); - } catch (e) {} - - ok( success, "document.location did not generate exception" ); -}); - -test( "jQuery.ajax - Context with circular references (#9887)", 2, function () { - var success = false, - context = {}; - context.field = context; - try { - success = !jQuery.ajax( "non-existing", { - context: context, - beforeSend: function() { - ok( this === context, "context was not deep extended" ); - return false; - } - }); - } catch (e) { console.log( e ); } - ok( success, "context with circular reference did not generate an exception" ); -}); - -test( "jQuery.ajax - statusText" , 3, function() { - stop(); - jQuery.ajax( url( "data/statusText.php?status=200&text=Hello" ) ).done(function( _, statusText, jqXHR ) { - strictEqual( statusText, "success", "callback status text ok for success" ); - ok( jqXHR.statusText === "Hello" || jQuery.browser.safari && jqXHR.statusText === "OK", "jqXHR status text ok for success (" + jqXHR.statusText + ")" ); - jQuery.ajax( url( "data/statusText.php?status=404&text=World" ) ).fail(function( jqXHR, statusText ) { - strictEqual( statusText, "error", "callback status text ok for error" ); - // ok( jqXHR.statusText === "World" || jQuery.browser.safari && jqXHR.statusText === "Not Found", "jqXHR status text ok for error (" + jqXHR.statusText + ")" ); - start(); - }); - }); -}); - -test( "jQuery.ajax - statusCode" , function() { - - var count = 12; - - expect( 20 ); - stop(); - - function countComplete() { - if ( ! --count ) { - start(); - } - } - - function createStatusCodes( name , isSuccess ) { - name = "Test " + name + " " + ( isSuccess ? "success" : "error" ); - return { - 200: function() { - ok( isSuccess , name ); - }, - 404: function() { - ok( ! isSuccess , name ); - } - }; - } - - jQuery.each( { - "data/name.html": true, - "data/someFileThatDoesNotExist.html": false - } , function( uri , isSuccess ) { - - jQuery.ajax( url( uri ) , { - statusCode: createStatusCodes( "in options" , isSuccess ), - complete: countComplete - }); - - jQuery.ajax( url( uri ) , { - complete: countComplete - }).statusCode( createStatusCodes( "immediately with method" , isSuccess ) ); - - jQuery.ajax( url( uri ) , { - complete: function(jqXHR) { - jqXHR.statusCode( createStatusCodes( "on complete" , isSuccess ) ); - countComplete(); - } - }); - - jQuery.ajax( url( uri ) , { - complete: function(jqXHR) { - setTimeout(function() { - jqXHR.statusCode( createStatusCodes( "very late binding" , isSuccess ) ); - countComplete(); - } , 100 ); - } - }); - - jQuery.ajax( url( uri ) , { - statusCode: createStatusCodes( "all (options)" , isSuccess ), - complete: function(jqXHR) { - jqXHR.statusCode( createStatusCodes( "all (on complete)" , isSuccess ) ); - setTimeout(function() { - jqXHR.statusCode( createStatusCodes( "all (very late binding)" , isSuccess ) ); - countComplete(); - } , 100 ); - } - }).statusCode( createStatusCodes( "all (immediately with method)" , isSuccess ) ); - - var testString = ""; - - jQuery.ajax( url( uri ), { - success: function( a , b , jqXHR ) { - ok( isSuccess , "success" ); - var statusCode = {}; - statusCode[ jqXHR.status ] = function() { - testString += "B"; - }; - jqXHR.statusCode( statusCode ); - testString += "A"; - }, - error: function( jqXHR ) { - ok( ! isSuccess , "error" ); - var statusCode = {}; - statusCode[ jqXHR.status ] = function() { - testString += "B"; - }; - jqXHR.statusCode( statusCode ); - testString += "A"; - }, - complete: function() { - strictEqual( testString , "AB" , "Test statusCode callbacks are ordered like " + - ( isSuccess ? "success" : "error" ) + " callbacks" ); - countComplete(); - } - } ); - - }); -}); - -test("jQuery.ajax - transitive conversions", function() { - - expect( 8 ); - - stop(); - - jQuery.when( - - jQuery.ajax( url("data/json.php") , { - converters: { - "json myJson": function( data ) { - ok( true , "converter called" ); - return data; - } - }, - dataType: "myJson", - success: function() { - ok( true , "Transitive conversion worked" ); - strictEqual( this.dataTypes[0] , "text" , "response was retrieved as text" ); - strictEqual( this.dataTypes[1] , "myjson" , "request expected myjson dataType" ); - } - }), - - jQuery.ajax( url("data/json.php") , { - converters: { - "json myJson": function( data ) { - ok( true , "converter called (*)" ); - return data; - } - }, - contents: false, /* headers are wrong so we ignore them */ - dataType: "* myJson", - success: function() { - ok( true , "Transitive conversion worked (*)" ); - strictEqual( this.dataTypes[0] , "text" , "response was retrieved as text (*)" ); - strictEqual( this.dataTypes[1] , "myjson" , "request expected myjson dataType (*)" ); - } - }) - - ).always(function() { - start(); - }); - -}); - -test("jQuery.ajax - overrideMimeType", function() { - - expect( 2 ); - - stop(); - - jQuery.when( - - jQuery.ajax( url("data/json.php") , { - beforeSend: function( xhr ) { - xhr.overrideMimeType( "application/json" ); - }, - success: function( json ) { - ok( json.data , "Mimetype overriden using beforeSend" ); - } - }), - - jQuery.ajax( url("data/json.php") , { - mimeType: "application/json", - success: function( json ) { - ok( json.data , "Mimetype overriden using mimeType option" ); - } - }) - - ).always(function() { - start(); - }); - -}); - -test("jQuery.ajax - abort in prefilter", function() { - - expect( 1 ); - - jQuery.ajaxPrefilter(function( options, _, jqXHR ) { - if ( options.abortInPrefilter ) { - jqXHR.abort(); - } - }); - - strictEqual( jQuery.ajax({ - abortInPrefilter: true, - error: function() { - ok( false, "error callback called" ); - } - }), false, "Request was properly aborted early by the prefilter" ); - -}); - -test( "jQuery.ajax - loading binary data shouldn't throw an exception in IE (#11426)", 1, function() { - stop(); - jQuery.ajax( url( "data/1x1.jpg" ), { - success: function( data ) { - ok( data === undefined || /JFIF/.test( data ) , "success callback reached" ); - start(); - }, - error: function( _, __, error ) { - ok( false, "exception thrown: '" + error + "'" ); - start(); - } - }); -}); - -test( "jQuery.domManip - no side effect because of ajaxSetup or global events (#11264)", function() { - expect( 1 ); - - jQuery.ajaxSetup({ - type: "POST" - }); - - jQuery( document ).bind( "ajaxStart ajaxStop", function() { - ok( false, "Global event triggered" ); - }); - - jQuery( "#qunit-fixture" ).append( "" ); - - jQuery( document ).unbind( "ajaxStart ajaxStop" ); - - jQuery.ajaxSetup({ - type: "GET" - }); -}); - -test("jQuery.ajax - active counter", function() { - ok( jQuery.active == 0, "ajax active counter should be zero: " + jQuery.active ); -}); - -} \ No newline at end of file diff --git a/vendor/assets/components/jquery/test/unit/attributes.js b/vendor/assets/components/jquery/test/unit/attributes.js deleted file mode 100644 index dd21b65396..0000000000 --- a/vendor/assets/components/jquery/test/unit/attributes.js +++ /dev/null @@ -1,1194 +0,0 @@ -module("attributes", { teardown: moduleTeardown }); - -var bareObj = function(value) { return value; }; -var functionReturningObj = function(value) { return (function() { return value; }); }; - - -test("jQuery.propFix integrity test", function() { - expect(1); - - // This must be maintained and equal jQuery.attrFix when appropriate - // Ensure that accidental or erroneous property - // overwrites don't occur - // This is simply for better code coverage and future proofing. - var props = { - tabindex: "tabIndex", - readonly: "readOnly", - "for": "htmlFor", - "class": "className", - maxlength: "maxLength", - cellspacing: "cellSpacing", - cellpadding: "cellPadding", - rowspan: "rowSpan", - colspan: "colSpan", - usemap: "useMap", - frameborder: "frameBorder", - contenteditable: "contentEditable" - }; - - if ( !jQuery.support.enctype ) { - props.enctype = "encoding"; - } - - deepEqual(props, jQuery.propFix, "jQuery.propFix passes integrity check"); -}); - -test("attr(String)", function() { - expect(46); - - equal( jQuery("#text1").attr("type"), "text", "Check for type attribute" ); - equal( jQuery("#radio1").attr("type"), "radio", "Check for type attribute" ); - equal( jQuery("#check1").attr("type"), "checkbox", "Check for type attribute" ); - equal( jQuery("#simon1").attr("rel"), "bookmark", "Check for rel attribute" ); - equal( jQuery("#google").attr("title"), "Google!", "Check for title attribute" ); - equal( jQuery("#mark").attr("hreflang"), "en", "Check for hreflang attribute" ); - equal( jQuery("#en").attr("lang"), "en", "Check for lang attribute" ); - equal( jQuery("#simon").attr("class"), "blog link", "Check for class attribute" ); - equal( jQuery("#name").attr("name"), "name", "Check for name attribute" ); - equal( jQuery("#text1").attr("name"), "action", "Check for name attribute" ); - ok( jQuery("#form").attr("action").indexOf("formaction") >= 0, "Check for action attribute" ); - equal( jQuery("#text1").attr("value", "t").attr("value"), "t", "Check setting the value attribute" ); - equal( jQuery("
                  ").attr("value"), "t", "Check setting custom attr named 'value' on a div" ); - equal( jQuery("#form").attr("blah", "blah").attr("blah"), "blah", "Set non-existant attribute on a form" ); - equal( jQuery("#foo").attr("height"), undefined, "Non existent height attribute should return undefined" ); - - // [7472] & [3113] (form contains an input with name="action" or name="id") - var extras = jQuery("").appendTo("#testForm"); - equal( jQuery("#form").attr("action","newformaction").attr("action"), "newformaction", "Check that action attribute was changed" ); - equal( jQuery("#testForm").attr("target"), undefined, "Retrieving target does not equal the input with name=target" ); - equal( jQuery("#testForm").attr("target", "newTarget").attr("target"), "newTarget", "Set target successfully on a form" ); - equal( jQuery("#testForm").removeAttr("id").attr("id"), undefined, "Retrieving id does not equal the input with name=id after id is removed [#7472]" ); - // Bug #3685 (form contains input with name="name") - equal( jQuery("#testForm").attr("name"), undefined, "Retrieving name does not retrieve input with name=name" ); - extras.remove(); - - equal( jQuery("#text1").attr("maxlength"), "30", "Check for maxlength attribute" ); - equal( jQuery("#text1").attr("maxLength"), "30", "Check for maxLength attribute" ); - equal( jQuery("#area1").attr("maxLength"), "30", "Check for maxLength attribute" ); - - // using innerHTML in IE causes href attribute to be serialized to the full path - jQuery("").attr({ "id": "tAnchor5", "href": "#5" }).appendTo("#qunit-fixture"); - equal( jQuery("#tAnchor5").attr("href"), "#5", "Check for non-absolute href (an anchor)" ); - - // list attribute is readonly by default in browsers that support it - jQuery("#list-test").attr("list", "datalist"); - equal( jQuery("#list-test").attr("list"), "datalist", "Check setting list attribute" ); - - // Related to [5574] and [5683] - var body = document.body, $body = jQuery(body); - - strictEqual( $body.attr("foo"), undefined, "Make sure that a non existent attribute returns undefined" ); - - body.setAttribute("foo", "baz"); - equal( $body.attr("foo"), "baz", "Make sure the dom attribute is retrieved when no expando is found" ); - - $body.attr("foo","cool"); - equal( $body.attr("foo"), "cool", "Make sure that setting works well when both expando and dom attribute are available" ); - - body.removeAttribute("foo"); // Cleanup - - var select = document.createElement("select"), optgroup = document.createElement("optgroup"), option = document.createElement("option"); - optgroup.appendChild( option ); - select.appendChild( optgroup ); - - equal( jQuery( option ).attr("selected"), "selected", "Make sure that a single option is selected, even when in an optgroup." ); - - var $img = jQuery("").appendTo("body"); - equal( $img.attr("width"), "215", "Retrieve width attribute an an element with display:none." ); - equal( $img.attr("height"), "53", "Retrieve height attribute an an element with display:none." ); - - // Check for style support - ok( !!~jQuery("#dl").attr("style").indexOf("position"), "Check style attribute getter, also normalize css props to lowercase" ); - ok( !!~jQuery("#foo").attr("style", "position:absolute;").attr("style").indexOf("position"), "Check style setter" ); - - // Check value on button element (#1954) - var $button = jQuery("").insertAfter("#button"); - equal( $button.attr("value"), "foobar", "Value retrieval on a button does not return innerHTML" ); - equal( $button.attr("value", "baz").html(), "text", "Setting the value does not change innerHTML" ); - - // Attributes with a colon on a table element (#1591) - equal( jQuery("#table").attr("test:attrib"), undefined, "Retrieving a non-existent attribute on a table with a colon does not throw an error." ); - equal( jQuery("#table").attr("test:attrib", "foobar").attr("test:attrib"), "foobar", "Setting an attribute on a table with a colon does not throw an error." ); - - var $form = jQuery("
                  ").appendTo("#qunit-fixture"); - equal( $form.attr("class"), "something", "Retrieve the class attribute on a form." ); - - var $a = jQuery("
                  Click").appendTo("#qunit-fixture"); - equal( $a.attr("onclick"), "something()", "Retrieve ^on attribute without anonymous function wrapper." ); - - ok( jQuery("
                  ").attr("doesntexist") === undefined, "Make sure undefined is returned when no attribute is found." ); - ok( jQuery("
                  ").attr("title") === undefined, "Make sure undefined is returned when no attribute is found." ); - equal( jQuery("
                  ").attr("title", "something").attr("title"), "something", "Set the title attribute." ); - ok( jQuery().attr("doesntexist") === undefined, "Make sure undefined is returned when no element is there." ); - equal( jQuery("
                  ").attr("value"), undefined, "An unset value on a div returns undefined." ); - equal( jQuery("").attr("value"), "", "An unset value on an input returns current value." ); - - $form = jQuery("#form").attr("enctype", "multipart/form-data"); - equal( $form.prop("enctype"), "multipart/form-data", "Set the enctype of a form (encoding in IE6/7 #6743)" ); -}); - -if ( !isLocal ) { - test("attr(String) in XML Files", function() { - expect(3); - stop(); - jQuery.get("data/dashboard.xml", function( xml ) { - equal( jQuery( "locations", xml ).attr("class"), "foo", "Check class attribute in XML document" ); - equal( jQuery( "location", xml ).attr("for"), "bar", "Check for attribute in XML document" ); - equal( jQuery( "location", xml ).attr("checked"), "different", "Check that hooks are not attached in XML document" ); - start(); - }); - }); -} - -test("attr(String, Function)", function() { - expect(2); - equal( jQuery("#text1").attr("value", function() { return this.id; })[0].value, "text1", "Set value from id" ); - equal( jQuery("#text1").attr("title", function(i) { return i; }).attr("title"), "0", "Set value with an index"); -}); - -test("attr(Hash)", function() { - expect(3); - var pass = true; - jQuery("div").attr({foo: "baz", zoo: "ping"}).each(function(){ - if ( this.getAttribute("foo") != "baz" && this.getAttribute("zoo") != "ping" ) pass = false; - }); - ok( pass, "Set Multiple Attributes" ); - equal( jQuery("#text1").attr({value: function() { return this.id; }})[0].value, "text1", "Set attribute to computed value #1" ); - equal( jQuery("#text1").attr({title: function(i) { return i; }}).attr("title"), "0", "Set attribute to computed value #2"); -}); - -test("attr(String, Object)", function() { - expect(81); - - var div = jQuery("div").attr("foo", "bar"), - fail = false; - - for ( var i = 0; i < div.size(); i++ ) { - if ( div.get(i).getAttribute("foo") != "bar" ){ - fail = i; - break; - } - } - - equal( fail, false, "Set Attribute, the #" + fail + " element didn't get the attribute 'foo'" ); - - ok( jQuery("#foo").attr({ "width": null }), "Try to set an attribute to nothing" ); - - jQuery("#name").attr("name", "something"); - equal( jQuery("#name").attr("name"), "something", "Set name attribute" ); - jQuery("#name").attr("name", null); - equal( jQuery("#name").attr("name"), undefined, "Remove name attribute" ); - var $input = jQuery("", { name: "something", id: "specified" }); - equal( $input.attr("name"), "something", "Check element creation gets/sets the name attribute." ); - equal( $input.attr("id"), "specified", "Check element creation gets/sets the id attribute." ); - - jQuery("#check2").prop("checked", true).prop("checked", false).attr("checked", true); - equal( document.getElementById("check2").checked, true, "Set checked attribute" ); - equal( jQuery("#check2").prop("checked"), true, "Set checked attribute" ); - equal( jQuery("#check2").attr("checked"), "checked", "Set checked attribute" ); - jQuery("#check2").attr("checked", false); - equal( document.getElementById("check2").checked, false, "Set checked attribute" ); - equal( jQuery("#check2").prop("checked"), false, "Set checked attribute" ); - equal( jQuery("#check2").attr("checked"), undefined, "Set checked attribute" ); - jQuery("#text1").attr("readonly", true); - equal( document.getElementById("text1").readOnly, true, "Set readonly attribute" ); - equal( jQuery("#text1").prop("readOnly"), true, "Set readonly attribute" ); - equal( jQuery("#text1").attr("readonly"), "readonly", "Set readonly attribute" ); - jQuery("#text1").attr("readonly", false); - equal( document.getElementById("text1").readOnly, false, "Set readonly attribute" ); - equal( jQuery("#text1").prop("readOnly"), false, "Set readonly attribute" ); - equal( jQuery("#text1").attr("readonly"), undefined, "Set readonly attribute" ); - - jQuery("#check2").prop("checked", true); - equal( document.getElementById("check2").checked, true, "Set checked attribute" ); - equal( jQuery("#check2").prop("checked"), true, "Set checked attribute" ); - equal( jQuery("#check2").attr("checked"), "checked", "Set checked attribute" ); - jQuery("#check2").prop("checked", false); - equal( document.getElementById("check2").checked, false, "Set checked attribute" ); - equal( jQuery("#check2").prop("checked"), false, "Set checked attribute" ); - equal( jQuery("#check2").attr("checked"), undefined, "Set checked attribute" ); - - jQuery("#check2").attr("checked", "checked"); - equal( document.getElementById("check2").checked, true, "Set checked attribute with 'checked'" ); - equal( jQuery("#check2").prop("checked"), true, "Set checked attribute" ); - equal( jQuery("#check2").attr("checked"), "checked", "Set checked attribute" ); - - QUnit.reset(); - - var $radios = jQuery("#checkedtest").find("input[type='radio']"); - $radios.eq(1).click(); - equal( $radios.eq(1).prop("checked"), true, "Second radio was checked when clicked"); - equal( $radios.attr("checked"), $radios[0].checked ? "checked" : undefined, "Known booleans do not fall back to attribute presence (#10278)"); - - jQuery("#text1").prop("readOnly", true); - equal( document.getElementById("text1").readOnly, true, "Set readonly attribute" ); - equal( jQuery("#text1").prop("readOnly"), true, "Set readonly attribute" ); - equal( jQuery("#text1").attr("readonly"), "readonly", "Set readonly attribute" ); - jQuery("#text1").prop("readOnly", false); - equal( document.getElementById("text1").readOnly, false, "Set readonly attribute" ); - equal( jQuery("#text1").prop("readOnly"), false, "Set readonly attribute" ); - equal( jQuery("#text1").attr("readonly"), undefined, "Set readonly attribute" ); - - jQuery("#name").attr("maxlength", "5"); - equal( document.getElementById("name").maxLength, 5, "Set maxlength attribute" ); - jQuery("#name").attr("maxLength", "10"); - equal( document.getElementById("name").maxLength, 10, "Set maxlength attribute" ); - - // HTML5 boolean attributes - var $text = jQuery("#text1").attr({ - "autofocus": true, - "required": true - }); - equal( $text.attr("autofocus"), "autofocus", "Set boolean attributes to the same name" ); - equal( $text.attr("autofocus", false).attr("autofocus"), undefined, "Setting autofocus attribute to false removes it" ); - equal( $text.attr("required"), "required", "Set boolean attributes to the same name" ); - equal( $text.attr("required", false).attr("required"), undefined, "Setting required attribute to false removes it" ); - - var $details = jQuery("
                  ").appendTo("#qunit-fixture"); - equal( $details.attr("open"), "open", "open attribute presense indicates true" ); - equal( $details.attr("open", false).attr("open"), undefined, "Setting open attribute to false removes it" ); - - $text.attr("data-something", true); - equal( $text.attr("data-something"), "true", "Set data attributes"); - equal( $text.data("something"), true, "Setting data attributes are not affected by boolean settings"); - $text.attr("data-another", false); - equal( $text.attr("data-another"), "false", "Set data attributes"); - equal( $text.data("another"), false, "Setting data attributes are not affected by boolean settings" ); - equal( $text.attr("aria-disabled", false).attr("aria-disabled"), "false", "Setting aria attributes are not affected by boolean settings"); - $text.removeData("something").removeData("another").removeAttr("aria-disabled"); - - jQuery("#foo").attr("contenteditable", true); - equal( jQuery("#foo").attr("contenteditable"), "true", "Enumerated attributes are set properly" ); - - var attributeNode = document.createAttribute("irrelevant"), - commentNode = document.createComment("some comment"), - textNode = document.createTextNode("some text"), - obj = {}; - - jQuery.each( [commentNode, textNode, attributeNode], function( i, elem ) { - var $elem = jQuery( elem ); - $elem.attr( "nonexisting", "foo" ); - strictEqual( $elem.attr("nonexisting"), undefined, "attr(name, value) works correctly on comment and text nodes (bug #7500)." ); - }); - - jQuery.each( [window, document, obj, "#firstp"], function( i, elem ) { - var $elem = jQuery( elem ); - strictEqual( $elem.attr("nonexisting"), undefined, "attr works correctly for non existing attributes (bug #7500)." ); - equal( $elem.attr("something", "foo" ).attr("something"), "foo", "attr falls back to prop on unsupported arguments" ); - }); - - var table = jQuery("#table").append("cellcellcellcellcell"), - td = table.find("td:first"); - td.attr("rowspan", "2"); - equal( td[0].rowSpan, 2, "Check rowspan is correctly set" ); - td.attr("colspan", "2"); - equal( td[0].colSpan, 2, "Check colspan is correctly set" ); - table.attr("cellspacing", "2"); - equal( table[0].cellSpacing, "2", "Check cellspacing is correctly set" ); - - equal( jQuery("#area1").attr("value"), "foobar", "Value attribute retrieves the property for backwards compatibility." ); - - // for #1070 - jQuery("#name").attr("someAttr", "0"); - equal( jQuery("#name").attr("someAttr"), "0", "Set attribute to a string of \"0\"" ); - jQuery("#name").attr("someAttr", 0); - equal( jQuery("#name").attr("someAttr"), "0", "Set attribute to the number 0" ); - jQuery("#name").attr("someAttr", 1); - equal( jQuery("#name").attr("someAttr"), "1", "Set attribute to the number 1" ); - - // using contents will get comments regular, text, and comment nodes - var j = jQuery("#nonnodes").contents(); - - j.attr("name", "attrvalue"); - equal( j.attr("name"), "attrvalue", "Check node,textnode,comment for attr" ); - j.removeAttr("name"); - - // Type - var type = jQuery("#check2").attr("type"); - var thrown = false; - try { - jQuery("#check2").attr("type","hidden"); - } catch(e) { - thrown = true; - } - ok( thrown, "Exception thrown when trying to change type property" ); - equal( type, jQuery("#check2").attr("type"), "Verify that you can't change the type of an input element" ); - - var check = document.createElement("input"); - thrown = true; - try { - jQuery(check).attr("type", "checkbox"); - } catch(e) { - thrown = false; - } - ok( thrown, "Exception thrown when trying to change type property" ); - equal( "checkbox", jQuery(check).attr("type"), "Verify that you can change the type of an input element that isn't in the DOM" ); - - check = jQuery(""); - thrown = true; - try { - check.attr("type","checkbox"); - } catch(e) { - thrown = false; - } - ok( thrown, "Exception thrown when trying to change type property" ); - equal( "checkbox", check.attr("type"), "Verify that you can change the type of an input element that isn't in the DOM" ); - - var button = jQuery("#button"); - thrown = false; - try { - button.attr("type","submit"); - } catch(e) { - thrown = true; - } - ok( thrown, "Exception thrown when trying to change type property" ); - equal( "button", button.attr("type"), "Verify that you can't change the type of a button element" ); - - var $radio = jQuery("", { "value": "sup", "type": "radio" }).appendTo("#testForm"); - equal( $radio.val(), "sup", "Value is not reset when type is set after value on a radio" ); - - // Setting attributes on svg elements (bug #3116) - var $svg = jQuery("" - + "" - + "").appendTo("body"); - equal( $svg.attr("cx", 100).attr("cx"), "100", "Set attribute on svg element" ); - $svg.remove(); - - // undefined values are chainable - jQuery("#name").attr("maxlength", "5").removeAttr("nonexisting"); - equal( typeof jQuery("#name").attr("maxlength", undefined), "object", ".attr('attribute', undefined) is chainable (#5571)" ); - equal( jQuery("#name").attr("maxlength", undefined).attr("maxlength"), "5", ".attr('attribute', undefined) does not change value (#5571)" ); - equal( jQuery("#name").attr("nonexisting", undefined).attr("nonexisting"), undefined, ".attr('attribute', undefined) does not create attribute (#5571)" ); -}); - -test("attr(jquery_method)", function(){ - expect(7); - - var $elem = jQuery("
                  "), - elem = $elem[0]; - - // one at a time - $elem.attr({html: "foo"}, true); - equal( elem.innerHTML, "foo", "attr(html)"); - - $elem.attr({text: "bar"}, true); - equal( elem.innerHTML, "bar", "attr(text)"); - - $elem.attr({css: {color: "red"}}, true); - ok( /^(#ff0000|red)$/i.test(elem.style.color), "attr(css)"); - - $elem.attr({height: 10}, true); - equal( elem.style.height, "10px", "attr(height)"); - - // Multiple attributes - - $elem.attr({ - width:10, - css:{ paddingLeft:1, paddingRight:1 } - }, true); - - equal( elem.style.width, "10px", "attr({...})"); - equal( elem.style.paddingLeft, "1px", "attr({...})"); - equal( elem.style.paddingRight, "1px", "attr({...})"); -}); - -if ( !isLocal ) { - test("attr(String, Object) - Loaded via XML document", function() { - expect(2); - stop(); - jQuery.get("data/dashboard.xml", function( xml ) { - var titles = []; - jQuery( "tab", xml ).each(function() { - titles.push( jQuery(this).attr("title") ); - }); - equal( titles[0], "Location", "attr() in XML context: Check first title" ); - equal( titles[1], "Users", "attr() in XML context: Check second title" ); - start(); - }); - }); -} - -test("attr('tabindex')", function() { - expect(8); - - // elements not natively tabbable - equal(jQuery("#listWithTabIndex").attr("tabindex"), 5, "not natively tabbable, with tabindex set to 0"); - equal(jQuery("#divWithNoTabIndex").attr("tabindex"), undefined, "not natively tabbable, no tabindex set"); - - // anchor with href - equal(jQuery("#linkWithNoTabIndex").attr("tabindex"), 0, "anchor with href, no tabindex set"); - equal(jQuery("#linkWithTabIndex").attr("tabindex"), 2, "anchor with href, tabindex set to 2"); - equal(jQuery("#linkWithNegativeTabIndex").attr("tabindex"), -1, "anchor with href, tabindex set to -1"); - - // anchor without href - equal(jQuery("#linkWithNoHrefWithNoTabIndex").attr("tabindex"), undefined, "anchor without href, no tabindex set"); - equal(jQuery("#linkWithNoHrefWithTabIndex").attr("tabindex"), 1, "anchor without href, tabindex set to 2"); - equal(jQuery("#linkWithNoHrefWithNegativeTabIndex").attr("tabindex"), -1, "anchor without href, no tabindex set"); -}); - -test("attr('tabindex', value)", function() { - expect(9); - - var element = jQuery("#divWithNoTabIndex"); - equal(element.attr("tabindex"), undefined, "start with no tabindex"); - - // set a positive string - element.attr("tabindex", "1"); - equal(element.attr("tabindex"), 1, "set tabindex to 1 (string)"); - - // set a zero string - element.attr("tabindex", "0"); - equal(element.attr("tabindex"), 0, "set tabindex to 0 (string)"); - - // set a negative string - element.attr("tabindex", "-1"); - equal(element.attr("tabindex"), -1, "set tabindex to -1 (string)"); - - // set a positive number - element.attr("tabindex", 1); - equal(element.attr("tabindex"), 1, "set tabindex to 1 (number)"); - - // set a zero number - element.attr("tabindex", 0); - equal(element.attr("tabindex"), 0, "set tabindex to 0 (number)"); - - // set a negative number - element.attr("tabindex", -1); - equal(element.attr("tabindex"), -1, "set tabindex to -1 (number)"); - - element = jQuery("#linkWithTabIndex"); - equal(element.attr("tabindex"), 2, "start with tabindex 2"); - - element.attr("tabindex", -1); - equal(element.attr("tabindex"), -1, "set negative tabindex"); -}); - -test("removeAttr(String)", function() { - expect( 10 ); - var $first; - - equal( jQuery("#mark").removeAttr( "class" ).attr("class"), undefined, "remove class" ); - equal( jQuery("#form").removeAttr("id").attr("id"), undefined, "Remove id" ); - equal( jQuery("#foo").attr("style", "position:absolute;").removeAttr("style").attr("style"), undefined, "Check removing style attribute" ); - equal( jQuery("#form").attr("style", "position:absolute;").removeAttr("style").attr("style"), undefined, "Check removing style attribute on a form" ); - equal( jQuery("
                  ").appendTo("#foo").removeAttr("style").prop("style").cssText, "", "Check removing style attribute (#9699 Webkit)" ); - equal( jQuery("#fx-test-group").attr("height", "3px").removeAttr("height").css("height"), "1px", "Removing height attribute has no effect on height set with style attribute" ); - - jQuery("#check1").removeAttr("checked").prop("checked", true).removeAttr("checked"); - equal( document.getElementById("check1").checked, false, "removeAttr sets boolean properties to false" ); - jQuery("#text1").prop("readOnly", true).removeAttr("readonly"); - equal( document.getElementById("text1").readOnly, false, "removeAttr sets boolean properties to false" ); - - jQuery("#option2c").removeAttr("selected"); - equal( jQuery("#option2d").attr("selected"), "selected", "Removing `selected` from an option that is not selected does not remove selected from the currently selected option (#10870)"); - - try { - $first = jQuery("#first").attr("contenteditable", "true").removeAttr("contenteditable"); - equal( $first.attr('contenteditable'), undefined, "Remove the contenteditable attribute" ); - } catch(e) { - ok( false, "Removing contenteditable threw an error (#10429)" ); - } -}); - -test("removeAttr(Multi String, variable space width)", function() { - expect(8); - - var div = jQuery("
                  "), - tests = { - id: "a", - alt: "b", - title: "c", - rel: "d" - }; - - jQuery.each( tests, function( key, val ) { - equal( div.attr(key), val, "Attribute `" + key + "` exists, and has a value of `" + val + "`" ); - }); - - div.removeAttr( "id alt title rel " ); - - jQuery.each( tests, function( key, val ) { - equal( div.attr(key), undefined, "Attribute `" + key + "` was removed" ); - }); -}); - -test("prop(String, Object)", function() { - expect(31); - - equal( jQuery("#text1").prop("value"), "Test", "Check for value attribute" ); - equal( jQuery("#text1").prop("value", "Test2").prop("defaultValue"), "Test", "Check for defaultValue attribute" ); - equal( jQuery("#select2").prop("selectedIndex"), 3, "Check for selectedIndex attribute" ); - equal( jQuery("#foo").prop("nodeName").toUpperCase(), "DIV", "Check for nodeName attribute" ); - equal( jQuery("#foo").prop("tagName").toUpperCase(), "DIV", "Check for tagName attribute" ); - equal( jQuery(""); - $select1.val(valueObj( 4 )); - equal( $select1.val(), "4", "Should be possible to set the val() to a newly created option" ); - - // using contents will get comments regular, text, and comment nodes - var j = jQuery("#nonnodes").contents(); - j.val(valueObj( "asdf" )); - equal( j.val(), "asdf", "Check node,textnode,comment with val()" ); - j.removeAttr("value"); -} - -test("val(String/Number)", function() { - testVal(bareObj); -}); - -test("val(Function)", function() { - testVal(functionReturningObj); -}); - -test( "val(Array of Numbers) (Bug #7123)", function() { - expect(4); - jQuery("#form").append(""); - var elements = jQuery("input[name=arrayTest]").val([ 1, 2 ]); - ok( elements[0].checked, "First element was checked" ); - ok( elements[1].checked, "Second element was checked" ); - ok( !elements[2].checked, "Third element was unchecked" ); - ok( !elements[3].checked, "Fourth element remained unchecked" ); - - elements.remove(); -}); - -test("val(Function) with incoming value", function() { - expect(10); - - QUnit.reset(); - var oldVal = jQuery("#text1").val(); - - jQuery("#text1").val(function(i, val) { - equal( val, oldVal, "Make sure the incoming value is correct." ); - return "test"; - }); - - equal( document.getElementById("text1").value, "test", "Check for modified (via val(String)) value of input element" ); - - oldVal = jQuery("#text1").val(); - - jQuery("#text1").val(function(i, val) { - equal( val, oldVal, "Make sure the incoming value is correct." ); - return 67; - }); - - equal( document.getElementById("text1").value, "67", "Check for modified (via val(Number)) value of input element" ); - - oldVal = jQuery("#select1").val(); - - jQuery("#select1").val(function(i, val) { - equal( val, oldVal, "Make sure the incoming value is correct." ); - return "3"; - }); - - equal( jQuery("#select1").val(), "3", "Check for modified (via val(String)) value of select element" ); - - oldVal = jQuery("#select1").val(); - - jQuery("#select1").val(function(i, val) { - equal( val, oldVal, "Make sure the incoming value is correct." ); - return 2; - }); - - equal( jQuery("#select1").val(), "2", "Check for modified (via val(Number)) value of select element" ); - - jQuery("#select1").append(""); - - oldVal = jQuery("#select1").val(); - - jQuery("#select1").val(function(i, val) { - equal( val, oldVal, "Make sure the incoming value is correct." ); - return 4; - }); - - equal( jQuery("#select1").val(), "4", "Should be possible to set the val() to a newly created option" ); -}); - -// testing if a form.reset() breaks a subsequent call to a select element's .val() (in IE only) -test("val(select) after form.reset() (Bug #2551)", function() { - expect(3); - - jQuery("
                  ").appendTo("#qunit-fixture"); - - jQuery("#kkk").val( "gf" ); - - document.kk.reset(); - - equal( jQuery("#kkk")[0].value, "cf", "Check value of select after form reset." ); - equal( jQuery("#kkk").val(), "cf", "Check value of select after form reset." ); - - // re-verify the multi-select is not broken (after form.reset) by our fix for single-select - deepEqual( jQuery("#select3").val(), ["1", "2"], "Call val() on a multiple=\"multiple\" select" ); - - jQuery("#kk").remove(); -}); - -var testAddClass = function(valueObj) { - expect(9); - - var div = jQuery("div"); - div.addClass( valueObj("test") ); - var pass = true; - for ( var i = 0; i < div.size(); i++ ) { - if ( !~div.get(i).className.indexOf("test") ) { - pass = false; - } - } - ok( pass, "Add Class" ); - - // using contents will get regular, text, and comment nodes - var j = jQuery("#nonnodes").contents(); - j.addClass( valueObj("asdf") ); - ok( j.hasClass("asdf"), "Check node,textnode,comment for addClass" ); - - div = jQuery("
                  "); - - div.addClass( valueObj("test") ); - equal( div.attr("class"), "test", "Make sure there's no extra whitespace." ); - - div.attr("class", " foo"); - div.addClass( valueObj("test") ); - equal( div.attr("class"), "foo test", "Make sure there's no extra whitespace." ); - - div.attr("class", "foo"); - div.addClass( valueObj("bar baz") ); - equal( div.attr("class"), "foo bar baz", "Make sure there isn't too much trimming." ); - - div.removeClass(); - div.addClass( valueObj("foo") ).addClass( valueObj("foo") ); - equal( div.attr("class"), "foo", "Do not add the same class twice in separate calls." ); - - div.addClass( valueObj("fo") ); - equal( div.attr("class"), "foo fo", "Adding a similar class does not get interrupted." ); - div.removeClass().addClass("wrap2"); - ok( div.addClass("wrap").hasClass("wrap"), "Can add similarly named classes"); - - div.removeClass(); - div.addClass( valueObj("bar bar") ); - equal( div.attr("class"), "bar", "Do not add the same class twice in the same call." ); -}; - -test("addClass(String)", function() { - testAddClass(bareObj); -}); - -test("addClass(Function)", function() { - testAddClass(functionReturningObj); -}); - -test("addClass(Function) with incoming value", function() { - expect(48); - var div = jQuery("div"), old = div.map(function(){ - return jQuery(this).attr("class") || ""; - }); - - div.addClass(function(i, val) { - if ( this.id !== "_firebugConsole") { - equal( val, old[i], "Make sure the incoming value is correct." ); - return "test"; - } - }); - - var pass = true; - for ( var i = 0; i < div.length; i++ ) { - if ( div.get(i).className.indexOf("test") == -1 ) pass = false; - } - ok( pass, "Add Class" ); -}); - -var testRemoveClass = function(valueObj) { - expect(7); - - var $divs = jQuery("div"); - - $divs.addClass("test").removeClass( valueObj("test") ); - - ok( !$divs.is(".test"), "Remove Class" ); - - QUnit.reset(); - $divs = jQuery("div"); - - $divs.addClass("test").addClass("foo").addClass("bar"); - $divs.removeClass( valueObj("test") ).removeClass( valueObj("bar") ).removeClass( valueObj("foo") ); - - ok( !$divs.is(".test,.bar,.foo"), "Remove multiple classes" ); - - QUnit.reset(); - $divs = jQuery("div"); - - // Make sure that a null value doesn't cause problems - $divs.eq(0).addClass("test").removeClass( valueObj(null) ); - ok( $divs.eq(0).is(".test"), "Null value passed to removeClass" ); - - $divs.eq(0).addClass("test").removeClass( valueObj("") ); - ok( $divs.eq(0).is(".test"), "Empty string passed to removeClass" ); - - // using contents will get regular, text, and comment nodes - var j = jQuery("#nonnodes").contents(); - j.removeClass( valueObj("asdf") ); - ok( !j.hasClass("asdf"), "Check node,textnode,comment for removeClass" ); - - var div = document.createElement("div"); - div.className = " test foo "; - - jQuery(div).removeClass( valueObj("foo") ); - equal( div.className, "test", "Make sure remaining className is trimmed." ); - - div.className = " test "; - - jQuery(div).removeClass( valueObj("test") ); - equal( div.className, "", "Make sure there is nothing left after everything is removed." ); -}; - -test("removeClass(String) - simple", function() { - testRemoveClass(bareObj); -}); - -test("removeClass(Function) - simple", function() { - testRemoveClass(functionReturningObj); -}); - -test("removeClass(Function) with incoming value", function() { - expect(48); - - var $divs = jQuery("div").addClass("test"), old = $divs.map(function(){ - return jQuery(this).attr("class"); - }); - - $divs.removeClass(function(i, val) { - if ( this.id !== "_firebugConsole" ) { - equal( val, old[i], "Make sure the incoming value is correct." ); - return "test"; - } - }); - - ok( !$divs.is(".test"), "Remove Class" ); - - QUnit.reset(); -}); - -var testToggleClass = function(valueObj) { - expect(17); - - var e = jQuery("#firstp"); - ok( !e.is(".test"), "Assert class not present" ); - e.toggleClass( valueObj("test") ); - ok( e.is(".test"), "Assert class present" ); - e.toggleClass( valueObj("test") ); - ok( !e.is(".test"), "Assert class not present" ); - - // class name with a boolean - e.toggleClass( valueObj("test"), false ); - ok( !e.is(".test"), "Assert class not present" ); - e.toggleClass( valueObj("test"), true ); - ok( e.is(".test"), "Assert class present" ); - e.toggleClass( valueObj("test"), false ); - ok( !e.is(".test"), "Assert class not present" ); - - // multiple class names - e.addClass("testA testB"); - ok( (e.is(".testA.testB")), "Assert 2 different classes present" ); - e.toggleClass( valueObj("testB testC") ); - ok( (e.is(".testA.testC") && !e.is(".testB")), "Assert 1 class added, 1 class removed, and 1 class kept" ); - e.toggleClass( valueObj("testA testC") ); - ok( (!e.is(".testA") && !e.is(".testB") && !e.is(".testC")), "Assert no class present" ); - - // toggleClass storage - e.toggleClass(true); - ok( e[0].className === "", "Assert class is empty (data was empty)" ); - e.addClass("testD testE"); - ok( e.is(".testD.testE"), "Assert class present" ); - e.toggleClass(); - ok( !e.is(".testD.testE"), "Assert class not present" ); - ok( jQuery._data(e[0], "__className__") === "testD testE", "Assert data was stored" ); - e.toggleClass(); - ok( e.is(".testD.testE"), "Assert class present (restored from data)" ); - e.toggleClass(false); - ok( !e.is(".testD.testE"), "Assert class not present" ); - e.toggleClass(true); - ok( e.is(".testD.testE"), "Assert class present (restored from data)" ); - e.toggleClass(); - e.toggleClass(false); - e.toggleClass(); - ok( e.is(".testD.testE"), "Assert class present (restored from data)" ); - - // Cleanup - e.removeClass("testD"); - jQuery.removeData(e[0], "__className__", true); -}; - -test("toggleClass(String|boolean|undefined[, boolean])", function() { - testToggleClass(bareObj); -}); - -test("toggleClass(Function[, boolean])", function() { - testToggleClass(functionReturningObj); -}); - -test("toggleClass(Fucntion[, boolean]) with incoming value", function() { - expect(14); - - var e = jQuery("#firstp"), old = e.attr("class") || ""; - ok( !e.is(".test"), "Assert class not present" ); - - e.toggleClass(function(i, val) { - equal( old, val, "Make sure the incoming value is correct." ); - return "test"; - }); - ok( e.is(".test"), "Assert class present" ); - - old = e.attr("class"); - - e.toggleClass(function(i, val) { - equal( old, val, "Make sure the incoming value is correct." ); - return "test"; - }); - ok( !e.is(".test"), "Assert class not present" ); - - old = e.attr("class") || ""; - - // class name with a boolean - e.toggleClass(function(i, val, state) { - equal( old, val, "Make sure the incoming value is correct." ); - equal( state, false, "Make sure that the state is passed in." ); - return "test"; - }, false ); - ok( !e.is(".test"), "Assert class not present" ); - - old = e.attr("class") || ""; - - e.toggleClass(function(i, val, state) { - equal( old, val, "Make sure the incoming value is correct." ); - equal( state, true, "Make sure that the state is passed in." ); - return "test"; - }, true ); - ok( e.is(".test"), "Assert class present" ); - - old = e.attr("class"); - - e.toggleClass(function(i, val, state) { - equal( old, val, "Make sure the incoming value is correct." ); - equal( state, false, "Make sure that the state is passed in." ); - return "test"; - }, false ); - ok( !e.is(".test"), "Assert class not present" ); - - // Cleanup - e.removeClass("test"); - jQuery.removeData(e[0], "__className__", true); -}); - -test("addClass, removeClass, hasClass", function() { - expect(17); - - var jq = jQuery("

                  Hi

                  "), x = jq[0]; - - jq.addClass("hi"); - equal( x.className, "hi", "Check single added class" ); - - jq.addClass("foo bar"); - equal( x.className, "hi foo bar", "Check more added classes" ); - - jq.removeClass(); - equal( x.className, "", "Remove all classes" ); - - jq.addClass("hi foo bar"); - jq.removeClass("foo"); - equal( x.className, "hi bar", "Check removal of one class" ); - - ok( jq.hasClass("hi"), "Check has1" ); - ok( jq.hasClass("bar"), "Check has2" ); - - var jq = jQuery("

                  "); - ok( jq.hasClass("class1"), "Check hasClass with line feed" ); - ok( jq.is(".class1"), "Check is with line feed" ); - ok( jq.hasClass("class2"), "Check hasClass with tab" ); - ok( jq.is(".class2"), "Check is with tab" ); - ok( jq.hasClass("cla.ss3"), "Check hasClass with dot" ); - ok( jq.hasClass("class4"), "Check hasClass with carriage return" ); - ok( jq.is(".class4"), "Check is with carriage return" ); - - jq.removeClass("class2"); - ok( jq.hasClass("class2")==false, "Check the class has been properly removed" ); - jq.removeClass("cla"); - ok( jq.hasClass("cla.ss3"), "Check the dotted class has not been removed" ); - jq.removeClass("cla.ss3"); - ok( jq.hasClass("cla.ss3")==false, "Check the dotted class has been removed" ); - jq.removeClass("class4"); - ok( jq.hasClass("class4")==false, "Check the class has been properly removed" ); -}); - -test("contents().hasClass() returns correct values", function() { - expect(2); - - var $div = jQuery("
                  text
                  "), - $contents = $div.contents(); - - ok( $contents.hasClass("foo"), "Found 'foo' in $contents" ); - ok( !$contents.hasClass("undefined"), "Did not find 'undefined' in $contents (correctly)" ); -}); - -test("coords returns correct values in IE6/IE7, see #10828", function() { - expect(2); - - var map = jQuery(""), - area; - - area = map.html("a").find("area"); - equal( area.attr("coords"), "0,0,0,0", "did not retrieve coords correctly"); - - area = map.html("a").find("area"); - equal( area.attr("coords"), undefined, "did not retrieve coords correctly"); -}); diff --git a/vendor/assets/components/jquery/test/unit/callbacks.js b/vendor/assets/components/jquery/test/unit/callbacks.js deleted file mode 100644 index acc88f2c24..0000000000 --- a/vendor/assets/components/jquery/test/unit/callbacks.js +++ /dev/null @@ -1,183 +0,0 @@ -module("callbacks", { teardown: moduleTeardown }); - -(function() { - -var output, - addToOutput = function( string ) { - return function() { - output += string; - }; - }, - outputA = addToOutput( "A" ), - outputB = addToOutput( "B" ), - outputC = addToOutput( "C" ), - tests = { - "": "XABC X XABCABCC X XBB X XABA X", - "once": "XABC X X X X X XABA X", - "memory": "XABC XABC XABCABCCC XA XBB XB XABA XC", - "unique": "XABC X XABCA X XBB X XAB X", - "stopOnFalse": "XABC X XABCABCC X XBB X XA X", - "once memory": "XABC XABC X XA X XA XABA XC", - "once unique": "XABC X X X X X XAB X", - "once stopOnFalse": "XABC X X X X X XA X", - "memory unique": "XABC XA XABCA XA XBB XB XAB XC", - "memory stopOnFalse": "XABC XABC XABCABCCC XA XBB XB XA X", - "unique stopOnFalse": "XABC X XABCA X XBB X XA X" - }, - filters = { - "no filter": undefined, - "filter": function( fn ) { - return function() { - return fn.apply( this, arguments ); - }; - } - }; - -jQuery.each( tests, function( flags, resultString ) { - - jQuery.each( filters, function( filterLabel, filter ) { - - test( "jQuery.Callbacks( \"" + flags + "\" ) - " + filterLabel, function() { - - expect( 20 ); - - // Give qunit a little breathing room - stop(); - setTimeout( start, 0 ); - - var cblist; - results = resultString.split( /\s+/ ); - - // Basic binding and firing - output = "X"; - cblist = jQuery.Callbacks( flags ); - cblist.add(function( str ) { - output += str; - }); - cblist.fire( "A" ); - strictEqual( output, "XA", "Basic binding and firing" ); - strictEqual( cblist.fired(), true, ".fired() detects firing" ); - output = "X"; - cblist.disable(); - cblist.add(function( str ) { - output += str; - }); - strictEqual( output, "X", "Adding a callback after disabling" ); - cblist.fire( "A" ); - strictEqual( output, "X", "Firing after disabling" ); - - // Basic binding and firing (context, arguments) - output = "X"; - cblist = jQuery.Callbacks( flags ); - cblist.add(function() { - equal( this, window, "Basic binding and firing (context)" ); - output += Array.prototype.join.call( arguments, "" ); - }); - cblist.fireWith( window, [ "A", "B" ] ); - strictEqual( output, "XAB", "Basic binding and firing (arguments)" ); - - // fireWith with no arguments - output = ""; - cblist = jQuery.Callbacks( flags ); - cblist.add(function() { - equal( this, window, "fireWith with no arguments (context is window)" ); - strictEqual( arguments.length, 0, "fireWith with no arguments (no arguments)" ); - }); - cblist.fireWith(); - - // Basic binding, removing and firing - output = "X"; - cblist = jQuery.Callbacks( flags ); - cblist.add( outputA, outputB, outputC ); - cblist.remove( outputB, outputC ); - cblist.fire(); - strictEqual( output, "XA", "Basic binding, removing and firing" ); - - // Empty - output = "X"; - cblist = jQuery.Callbacks( flags ); - cblist.add( outputA ); - cblist.add( outputB ); - cblist.add( outputC ); - cblist.empty(); - cblist.fire(); - strictEqual( output, "X", "Empty" ); - - // Locking - output = "X"; - cblist = jQuery.Callbacks( flags ); - cblist.add( function( str ) { - output += str; - }); - cblist.lock(); - cblist.add( function( str ) { - output += str; - }); - cblist.fire( "A" ); - cblist.add( function( str ) { - output += str; - }); - strictEqual( output, "X", "Lock early" ); - - // Ordering - output = "X"; - cblist = jQuery.Callbacks( flags ); - cblist.add( function() { - cblist.add( outputC ); - outputA(); - }, outputB ); - cblist.fire(); - strictEqual( output, results.shift(), "Proper ordering" ); - - // Add and fire again - output = "X"; - cblist.add( function() { - cblist.add( outputC ); - outputA(); - }, outputB ); - strictEqual( output, results.shift(), "Add after fire" ); - - output = "X"; - cblist.fire(); - strictEqual( output, results.shift(), "Fire again" ); - - // Multiple fire - output = "X"; - cblist = jQuery.Callbacks( flags ); - cblist.add( function( str ) { - output += str; - } ); - cblist.fire( "A" ); - strictEqual( output, "XA", "Multiple fire (first fire)" ); - output = "X"; - cblist.add( function( str ) { - output += str; - } ); - strictEqual( output, results.shift(), "Multiple fire (first new callback)" ); - output = "X"; - cblist.fire( "B" ); - strictEqual( output, results.shift(), "Multiple fire (second fire)" ); - output = "X"; - cblist.add( function( str ) { - output += str; - } ); - strictEqual( output, results.shift(), "Multiple fire (second new callback)" ); - - // Return false - output = "X"; - cblist = jQuery.Callbacks( flags ); - cblist.add( outputA, function() { return false; }, outputB ); - cblist.add( outputA ); - cblist.fire(); - strictEqual( output, results.shift(), "Callback returning false" ); - - // Add another callback (to control lists with memory do not fire anymore) - output = "X"; - cblist.add( outputC ); - strictEqual( output, results.shift(), "Adding a callback after one returned false" ); - - }); - }); -}); - -})(); diff --git a/vendor/assets/components/jquery/test/unit/core.js b/vendor/assets/components/jquery/test/unit/core.js deleted file mode 100644 index e87c10664e..0000000000 --- a/vendor/assets/components/jquery/test/unit/core.js +++ /dev/null @@ -1,1286 +0,0 @@ -module("core", { teardown: moduleTeardown }); - -test("Unit Testing Environment", function () { - expect(2); - ok( hasPHP, "Running Unit tests without PHP is unsupported! The AJAX tests won't run without it and don't expect all tests to pass without it!" ); - ok( !isLocal, "Unit tests shouldn't be run from file://, especially in Chrome. If you must test from file:// with Chrome, run it with the --allow-file-access-from-files flag!" ); -}); - -test("Basic requirements", function() { - expect(7); - ok( Array.prototype.push, "Array.push()" ); - ok( Function.prototype.apply, "Function.apply()" ); - ok( document.getElementById, "getElementById" ); - ok( document.getElementsByTagName, "getElementsByTagName" ); - ok( RegExp, "RegExp" ); - ok( jQuery, "jQuery" ); - ok( $, "$" ); -}); - -test("jQuery()", function() { - expect(29); - - // Basic constructor's behavior - - equal( jQuery().length, 0, "jQuery() === jQuery([])" ); - equal( jQuery(undefined).length, 0, "jQuery(undefined) === jQuery([])" ); - equal( jQuery(null).length, 0, "jQuery(null) === jQuery([])" ); - equal( jQuery("").length, 0, "jQuery('') === jQuery([])" ); - equal( jQuery("#").length, 0, "jQuery('#') === jQuery([])" ); - - var obj = jQuery("div"); - equal( jQuery(obj).selector, "div", "jQuery(jQueryObj) == jQueryObj" ); - - // can actually yield more than one, when iframes are included, the window is an array as well - equal( jQuery(window).length, 1, "Correct number of elements generated for jQuery(window)" ); - - - var main = jQuery("#qunit-fixture"); - deepEqual( jQuery("div p", main).get(), q("sndp", "en", "sap"), "Basic selector with jQuery object as context" ); - -/* - // disabled since this test was doing nothing. i tried to fix it but i'm not sure - // what the expected behavior should even be. FF returns "\n" for the text node - // make sure this is handled - var crlfContainer = jQuery('

                  \r\n

                  '); - var x = crlfContainer.contents().get(0).nodeValue; - equal( x, what???, "Check for \\r and \\n in jQuery()" ); -*/ - - /* // Disabled until we add this functionality in - var pass = true; - try { - jQuery("
                  Testing
                  ").appendTo(document.getElementById("iframe").contentDocument.body); - } catch(e){ - pass = false; - } - ok( pass, "jQuery('<tag>') needs optional document parameter to ease cross-frame DOM wrangling, see #968" );*/ - - var code = jQuery(""); - equal( code.length, 1, "Correct number of elements generated for code" ); - equal( code.parent().length, 0, "Make sure that the generated HTML has no parent." ); - var img = jQuery(""); - equal( img.length, 1, "Correct number of elements generated for img" ); - equal( img.parent().length, 0, "Make sure that the generated HTML has no parent." ); - var div = jQuery("

                  "); - equal( div.length, 4, "Correct number of elements generated for div hr code b" ); - equal( div.parent().length, 0, "Make sure that the generated HTML has no parent." ); - - equal( jQuery([1,2,3]).get(1), 2, "Test passing an array to the factory" ); - - equal( jQuery(document.body).get(0), jQuery("body").get(0), "Test passing an html node to the factory" ); - - var exec = false; - - var elem = jQuery("
                  ", { - width: 10, - css: { paddingLeft:1, paddingRight:1 }, - click: function(){ ok(exec, "Click executed."); }, - text: "test", - "class": "test2", - id: "test3" - }); - - equal( elem[0].style.width, "10px", "jQuery() quick setter width"); - equal( elem[0].style.paddingLeft, "1px", "jQuery quick setter css"); - equal( elem[0].style.paddingRight, "1px", "jQuery quick setter css"); - equal( elem[0].childNodes.length, 1, "jQuery quick setter text"); - equal( elem[0].firstChild.nodeValue, "test", "jQuery quick setter text"); - equal( elem[0].className, "test2", "jQuery() quick setter class"); - equal( elem[0].id, "test3", "jQuery() quick setter id"); - - exec = true; - elem.click(); - - // manually clean up detached elements - elem.remove(); - - for ( var i = 0; i < 3; ++i ) { - elem = jQuery(""); - } - equal( elem[0].defaultValue, "TEST", "Ensure cached nodes are cloned properly (Bug #6655)" ); - - // manually clean up detached elements - elem.remove(); - - equal( jQuery("
                  ").length, 1, "Make sure whitespace is trimmed." ); - equal( jQuery(" a
                  b ").length, 1, "Make sure whitespace and other characters are trimmed." ); - - var long = ""; - for ( var i = 0; i < 128; i++ ) { - long += "12345678"; - } - - equal( jQuery("
                  " + long + "
                  ").length, 1, "Make sure whitespace is trimmed on long strings." ); - equal( jQuery(" a
                  " + long + "
                  b ").length, 1, "Make sure whitespace and other characters are trimmed on long strings." ); -}); - -test("selector state", function() { - expect(31); - - var test; - - test = jQuery(undefined); - equal( test.selector, "", "Empty jQuery Selector" ); - equal( test.context, undefined, "Empty jQuery Context" ); - - test = jQuery(document); - equal( test.selector, "", "Document Selector" ); - equal( test.context, document, "Document Context" ); - - test = jQuery(document.body); - equal( test.selector, "", "Body Selector" ); - equal( test.context, document.body, "Body Context" ); - - test = jQuery("#qunit-fixture"); - equal( test.selector, "#qunit-fixture", "#qunit-fixture Selector" ); - equal( test.context, document, "#qunit-fixture Context" ); - - test = jQuery("#notfoundnono"); - equal( test.selector, "#notfoundnono", "#notfoundnono Selector" ); - equal( test.context, document, "#notfoundnono Context" ); - - test = jQuery("#qunit-fixture", document); - equal( test.selector, "#qunit-fixture", "#qunit-fixture Selector" ); - equal( test.context, document, "#qunit-fixture Context" ); - - test = jQuery("#qunit-fixture", document.body); - equal( test.selector, "#qunit-fixture", "#qunit-fixture Selector" ); - equal( test.context, document.body, "#qunit-fixture Context" ); - - // Test cloning - test = jQuery(test); - equal( test.selector, "#qunit-fixture", "#qunit-fixture Selector" ); - equal( test.context, document.body, "#qunit-fixture Context" ); - - test = jQuery(document.body).find("#qunit-fixture"); - equal( test.selector, "#qunit-fixture", "#qunit-fixture find Selector" ); - equal( test.context, document.body, "#qunit-fixture find Context" ); - - test = jQuery("#qunit-fixture").filter("div"); - equal( test.selector, "#qunit-fixture.filter(div)", "#qunit-fixture filter Selector" ); - equal( test.context, document, "#qunit-fixture filter Context" ); - - test = jQuery("#qunit-fixture").not("div"); - equal( test.selector, "#qunit-fixture.not(div)", "#qunit-fixture not Selector" ); - equal( test.context, document, "#qunit-fixture not Context" ); - - test = jQuery("#qunit-fixture").filter("div").not("div"); - equal( test.selector, "#qunit-fixture.filter(div).not(div)", "#qunit-fixture filter, not Selector" ); - equal( test.context, document, "#qunit-fixture filter, not Context" ); - - test = jQuery("#qunit-fixture").filter("div").not("div").end(); - equal( test.selector, "#qunit-fixture.filter(div)", "#qunit-fixture filter, not, end Selector" ); - equal( test.context, document, "#qunit-fixture filter, not, end Context" ); - - test = jQuery("#qunit-fixture").parent("body"); - equal( test.selector, "#qunit-fixture.parent(body)", "#qunit-fixture parent Selector" ); - equal( test.context, document, "#qunit-fixture parent Context" ); - - test = jQuery("#qunit-fixture").eq(0); - equal( test.selector, "#qunit-fixture.slice(0,1)", "#qunit-fixture eq Selector" ); - equal( test.context, document, "#qunit-fixture eq Context" ); - - var d = "
                  "; - equal( - jQuery(d).appendTo(jQuery(d)).selector, - jQuery(d).appendTo(d).selector, - "manipulation methods make same selector for jQuery objects" - ); -}); - -test( "globalEval", function() { - - expect( 3 ); - - jQuery.globalEval( "var globalEvalTest = true;" ); - ok( window.globalEvalTest, "Test variable declarations are global" ); - - window.globalEvalTest = false; - - jQuery.globalEval( "globalEvalTest = true;" ); - ok( window.globalEvalTest, "Test variable assignments are global" ); - - window.globalEvalTest = false; - - jQuery.globalEval( "this.globalEvalTest = true;" ); - ok( window.globalEvalTest, "Test context (this) is the window object" ); - - window.globalEvalTest = undefined; -}); - -if ( !isLocal ) { -test("browser", function() { - stop(); - - jQuery.get("data/ua.txt", function(data){ - var uas = data.split("\n"); - expect( (uas.length - 1) * 2 ); - - jQuery.each(uas, function(){ - var parts = this.split("\t"); - if ( parts[2] ) { - var ua = jQuery.uaMatch( parts[2] ); - equal( ua.browser, parts[0], "Checking browser for " + parts[2] ); - equal( ua.version, parts[1], "Checking version string for " + parts[2] ); - } - }); - - start(); - }); -}); -} - -test("noConflict", function() { - expect(7); - - var $$ = jQuery; - - equal( jQuery, jQuery.noConflict(), "noConflict returned the jQuery object" ); - equal( jQuery, $$, "Make sure jQuery wasn't touched." ); - equal( $, original$, "Make sure $ was reverted." ); - - jQuery = $ = $$; - - equal( jQuery.noConflict(true), $$, "noConflict returned the jQuery object" ); - equal( jQuery, originaljQuery, "Make sure jQuery was reverted." ); - equal( $, original$, "Make sure $ was reverted." ); - ok( $$("#qunit-fixture").html("test"), "Make sure that jQuery still works." ); - - jQuery = $$; -}); - -test("trim", function() { - expect(9); - - var nbsp = String.fromCharCode(160); - - equal( jQuery.trim("hello "), "hello", "trailing space" ); - equal( jQuery.trim(" hello"), "hello", "leading space" ); - equal( jQuery.trim(" hello "), "hello", "space on both sides" ); - equal( jQuery.trim(" " + nbsp + "hello " + nbsp + " "), "hello", " " ); - - equal( jQuery.trim(), "", "Nothing in." ); - equal( jQuery.trim( undefined ), "", "Undefined" ); - equal( jQuery.trim( null ), "", "Null" ); - equal( jQuery.trim( 5 ), "5", "Number" ); - equal( jQuery.trim( false ), "false", "Boolean" ); -}); - -test("type", function() { - expect(23); - - equal( jQuery.type(null), "null", "null" ); - equal( jQuery.type(undefined), "undefined", "undefined" ); - equal( jQuery.type(true), "boolean", "Boolean" ); - equal( jQuery.type(false), "boolean", "Boolean" ); - equal( jQuery.type(Boolean(true)), "boolean", "Boolean" ); - equal( jQuery.type(0), "number", "Number" ); - equal( jQuery.type(1), "number", "Number" ); - equal( jQuery.type(Number(1)), "number", "Number" ); - equal( jQuery.type(""), "string", "String" ); - equal( jQuery.type("a"), "string", "String" ); - equal( jQuery.type(String("a")), "string", "String" ); - equal( jQuery.type({}), "object", "Object" ); - equal( jQuery.type(/foo/), "regexp", "RegExp" ); - equal( jQuery.type(new RegExp("asdf")), "regexp", "RegExp" ); - equal( jQuery.type([1]), "array", "Array" ); - equal( jQuery.type(new Date()), "date", "Date" ); - equal( jQuery.type(new Function("return;")), "function", "Function" ); - equal( jQuery.type(function(){}), "function", "Function" ); - equal( jQuery.type(window), "object", "Window" ); - equal( jQuery.type(document), "object", "Document" ); - equal( jQuery.type(document.body), "object", "Element" ); - equal( jQuery.type(document.createTextNode("foo")), "object", "TextNode" ); - equal( jQuery.type(document.getElementsByTagName("*")), "object", "NodeList" ); -}); - -test("isPlainObject", function() { - expect(15); - - stop(); - - // The use case that we want to match - ok(jQuery.isPlainObject({}), "{}"); - - // Not objects shouldn't be matched - ok(!jQuery.isPlainObject(""), "string"); - ok(!jQuery.isPlainObject(0) && !jQuery.isPlainObject(1), "number"); - ok(!jQuery.isPlainObject(true) && !jQuery.isPlainObject(false), "boolean"); - ok(!jQuery.isPlainObject(null), "null"); - ok(!jQuery.isPlainObject(undefined), "undefined"); - - // Arrays shouldn't be matched - ok(!jQuery.isPlainObject([]), "array"); - - // Instantiated objects shouldn't be matched - ok(!jQuery.isPlainObject(new Date), "new Date"); - - var fn = function(){}; - - // Functions shouldn't be matched - ok(!jQuery.isPlainObject(fn), "fn"); - - // Again, instantiated objects shouldn't be matched - ok(!jQuery.isPlainObject(new fn), "new fn (no methods)"); - - // Makes the function a little more realistic - // (and harder to detect, incidentally) - fn.prototype = {someMethod: function(){}}; - - // Again, instantiated objects shouldn't be matched - ok(!jQuery.isPlainObject(new fn), "new fn"); - - // DOM Element - ok(!jQuery.isPlainObject(document.createElement("div")), "DOM Element"); - - // Window - ok(!jQuery.isPlainObject(window), "window"); - - try { - jQuery.isPlainObject( window.location ); - ok( true, "Does not throw exceptions on host objects"); - } catch ( e ) { - ok( false, "Does not throw exceptions on host objects -- FAIL"); - } - - try { - var iframe = document.createElement("iframe"); - document.body.appendChild(iframe); - - window.iframeDone = function(otherObject){ - // Objects from other windows should be matched - ok(jQuery.isPlainObject(new otherObject), "new otherObject"); - document.body.removeChild( iframe ); - start(); - }; - - var doc = iframe.contentDocument || iframe.contentWindow.document; - doc.open(); - doc.write(""); - doc.close(); - } catch(e) { - document.body.removeChild( iframe ); - - ok(true, "new otherObject - iframes not supported"); - start(); - } -}); - -test("isFunction", function() { - expect(19); - - // Make sure that false values return false - ok( !jQuery.isFunction(), "No Value" ); - ok( !jQuery.isFunction( null ), "null Value" ); - ok( !jQuery.isFunction( undefined ), "undefined Value" ); - ok( !jQuery.isFunction( "" ), "Empty String Value" ); - ok( !jQuery.isFunction( 0 ), "0 Value" ); - - // Check built-ins - // Safari uses "(Internal Function)" - ok( jQuery.isFunction(String), "String Function("+String+")" ); - ok( jQuery.isFunction(Array), "Array Function("+Array+")" ); - ok( jQuery.isFunction(Object), "Object Function("+Object+")" ); - ok( jQuery.isFunction(Function), "Function Function("+Function+")" ); - - // When stringified, this could be misinterpreted - var mystr = "function"; - ok( !jQuery.isFunction(mystr), "Function String" ); - - // When stringified, this could be misinterpreted - var myarr = [ "function" ]; - ok( !jQuery.isFunction(myarr), "Function Array" ); - - // When stringified, this could be misinterpreted - var myfunction = { "function": "test" }; - ok( !jQuery.isFunction(myfunction), "Function Object" ); - - // Make sure normal functions still work - var fn = function(){}; - ok( jQuery.isFunction(fn), "Normal Function" ); - - var obj = document.createElement("object"); - - // Firefox says this is a function - ok( !jQuery.isFunction(obj), "Object Element" ); - - // IE says this is an object - // Since 1.3, this isn't supported (#2968) - //ok( jQuery.isFunction(obj.getAttribute), "getAttribute Function" ); - - var nodes = document.body.childNodes; - - // Safari says this is a function - ok( !jQuery.isFunction(nodes), "childNodes Property" ); - - var first = document.body.firstChild; - - // Normal elements are reported ok everywhere - ok( !jQuery.isFunction(first), "A normal DOM Element" ); - - var input = document.createElement("input"); - input.type = "text"; - document.body.appendChild( input ); - - // IE says this is an object - // Since 1.3, this isn't supported (#2968) - //ok( jQuery.isFunction(input.focus), "A default function property" ); - - document.body.removeChild( input ); - - var a = document.createElement("a"); - a.href = "some-function"; - document.body.appendChild( a ); - - // This serializes with the word 'function' in it - ok( !jQuery.isFunction(a), "Anchor Element" ); - - document.body.removeChild( a ); - - // Recursive function calls have lengths and array-like properties - function callme(callback){ - function fn(response){ - callback(response); - } - - ok( jQuery.isFunction(fn), "Recursive Function Call" ); - - fn({ some: "data" }); - }; - - callme(function(){ - callme(function(){}); - }); -}); - -test( "isNumeric", function() { - expect( 37 ); - - var t = jQuery.isNumeric, - Traditionalists = function(n) { - this.value = n; - this.toString = function(){ - return String(this.value); - }; - }, - answer = new Traditionalists( "42" ), - rong = new Traditionalists( "Devo" ); - - ok( t("-10"), "Negative integer string"); - ok( t("0"), "Zero string"); - ok( t("5"), "Positive integer string"); - ok( t(-16), "Negative integer number"); - ok( t(0), "Zero integer number"); - ok( t(32), "Positive integer number"); - ok( t("040"), "Octal integer literal string"); - ok( t(0144), "Octal integer literal"); - ok( t("0xFF"), "Hexadecimal integer literal string"); - ok( t(0xFFF), "Hexadecimal integer literal"); - ok( t("-1.6"), "Negative floating point string"); - ok( t("4.536"), "Positive floating point string"); - ok( t(-2.6), "Negative floating point number"); - ok( t(3.1415), "Positive floating point number"); - ok( t(8e5), "Exponential notation"); - ok( t("123e-2"), "Exponential notation string"); - ok( t(answer), "Custom .toString returning number"); - equal( t(""), false, "Empty string"); - equal( t(" "), false, "Whitespace characters string"); - equal( t("\t\t"), false, "Tab characters string"); - equal( t("abcdefghijklm1234567890"), false, "Alphanumeric character string"); - equal( t("xabcdefx"), false, "Non-numeric character string"); - equal( t(true), false, "Boolean true literal"); - equal( t(false), false, "Boolean false literal"); - equal( t("bcfed5.2"), false, "Number with preceding non-numeric characters"); - equal( t("7.2acdgs"), false, "Number with trailling non-numeric characters"); - equal( t(undefined), false, "Undefined value"); - equal( t(null), false, "Null value"); - equal( t(NaN), false, "NaN value"); - equal( t(Infinity), false, "Infinity primitive"); - equal( t(Number.POSITIVE_INFINITY), false, "Positive Infinity"); - equal( t(Number.NEGATIVE_INFINITY), false, "Negative Infinity"); - equal( t(rong), false, "Custom .toString returning non-number"); - equal( t({}), false, "Empty object"); - equal( t(function(){} ), false, "Instance of a function"); - equal( t( new Date ), false, "Instance of a Date"); - equal( t(function(){} ), false, "Instance of a function"); -}); - -test("isXMLDoc - HTML", function() { - expect(4); - - ok( !jQuery.isXMLDoc( document ), "HTML document" ); - ok( !jQuery.isXMLDoc( document.documentElement ), "HTML documentElement" ); - ok( !jQuery.isXMLDoc( document.body ), "HTML Body Element" ); - - var iframe = document.createElement("iframe"); - document.body.appendChild( iframe ); - - try { - var body = jQuery(iframe).contents()[0]; - - try { - ok( !jQuery.isXMLDoc( body ), "Iframe body element" ); - } catch(e) { - ok( false, "Iframe body element exception" ); - } - - } catch(e) { - ok( true, "Iframe body element - iframe not working correctly" ); - } - - document.body.removeChild( iframe ); -}); - -test("XSS via location.hash", function() { - expect(1); - - stop(); - jQuery._check9521 = function(x){ - ok( x, "script called from #id-like selector with inline handler" ); - jQuery("#check9521").remove(); - delete jQuery._check9521; - start(); - }; - try { - // This throws an error because it's processed like an id - jQuery( '#' ).appendTo("#qunit-fixture"); - } catch (err) { - jQuery._check9521(true); - }; -}); - -if ( !isLocal ) { -test("isXMLDoc - XML", function() { - expect(3); - stop(); - jQuery.get("data/dashboard.xml", function(xml) { - ok( jQuery.isXMLDoc( xml ), "XML document" ); - ok( jQuery.isXMLDoc( xml.documentElement ), "XML documentElement" ); - ok( jQuery.isXMLDoc( jQuery("tab", xml)[0] ), "XML Tab Element" ); - start(); - }); -}); -} - -test("isWindow", function() { - expect( 14 ); - - ok( jQuery.isWindow(window), "window" ); - ok( jQuery.isWindow(document.getElementsByTagName("iframe")[0].contentWindow), "iframe.contentWindow" ); - ok( !jQuery.isWindow(), "empty" ); - ok( !jQuery.isWindow(null), "null" ); - ok( !jQuery.isWindow(undefined), "undefined" ); - ok( !jQuery.isWindow(document), "document" ); - ok( !jQuery.isWindow(document.documentElement), "documentElement" ); - ok( !jQuery.isWindow(""), "string" ); - ok( !jQuery.isWindow(1), "number" ); - ok( !jQuery.isWindow(true), "boolean" ); - ok( !jQuery.isWindow({}), "object" ); - ok( !jQuery.isWindow({ setInterval: function(){} }), "fake window" ); - ok( !jQuery.isWindow(/window/), "regexp" ); - ok( !jQuery.isWindow(function(){}), "function" ); -}); - -test("jQuery('html')", function() { - expect(18); - - QUnit.reset(); - jQuery.foo = false; - var s = jQuery("")[0]; - ok( s, "Creating a script" ); - ok( !jQuery.foo, "Make sure the script wasn't executed prematurely" ); - jQuery("body").append(""); - ok( jQuery.foo, "Executing a scripts contents in the right context" ); - - // Test multi-line HTML - var div = jQuery("
                  \r\nsome text\n

                  some p

                  \nmore text\r\n
                  ")[0]; - equal( div.nodeName.toUpperCase(), "DIV", "Make sure we're getting a div." ); - equal( div.firstChild.nodeType, 3, "Text node." ); - equal( div.lastChild.nodeType, 3, "Text node." ); - equal( div.childNodes[1].nodeType, 1, "Paragraph." ); - equal( div.childNodes[1].firstChild.nodeType, 3, "Paragraph text." ); - - QUnit.reset(); - ok( jQuery("")[0], "Creating a link" ); - - ok( !jQuery(""); - equal(jQuery(".replacewith").length, 1, "Check number of elements in page."); - jQuery(".replacewith").remove(); - - QUnit.reset(); - - jQuery("#qunit-fixture").append("
                  "); - equal( jQuery("#qunit-fixture").find("div[id=replaceWith]").length, 1, "Make sure only one div exists." ); - - jQuery("#replaceWith").replaceWith( val("
                  ") ); - equal( jQuery("#qunit-fixture").find("div[id=replaceWith]").length, 1, "Make sure only one div exists." ); - - jQuery("#replaceWith").replaceWith( val("
                  ") ); - equal( jQuery("#qunit-fixture").find("div[id=replaceWith]").length, 1, "Make sure only one div exists." ); -} - -test("replaceWith(String|Element|Array<Element>|jQuery)", function() { - testReplaceWith(bareObj); -}); - -test("replaceWith(Function)", function() { - testReplaceWith(functionReturningObj); - - expect(22); - - var y = jQuery("#yahoo")[0]; - - jQuery(y).replaceWith(function(){ - equal( this, y, "Make sure the context is coming in correctly." ); - }); - - QUnit.reset(); -}); - -test("replaceWith(string) for more than one element", function(){ - expect(3); - - equal(jQuery("#foo p").length, 3, "ensuring that test data has not changed"); - - jQuery("#foo p").replaceWith("bar"); - equal(jQuery("#foo span").length, 3, "verify that all the three original element have been replaced"); - equal(jQuery("#foo p").length, 0, "verify that all the three original element have been replaced"); -}); - -test("replaceAll(String|Element|Array<Element>|jQuery)", function() { - expect(10); - jQuery("buga").replaceAll("#yahoo"); - ok( jQuery("#replace")[0], "Replace element with string" ); - ok( !jQuery("#yahoo")[0], "Verify that original element is gone, after string" ); - - QUnit.reset(); - jQuery(document.getElementById("first")).replaceAll("#yahoo"); - ok( jQuery("#first")[0], "Replace element with element" ); - ok( !jQuery("#yahoo")[0], "Verify that original element is gone, after element" ); - - QUnit.reset(); - jQuery([document.getElementById("first"), document.getElementById("mark")]).replaceAll("#yahoo"); - ok( jQuery("#first")[0], "Replace element with array of elements" ); - ok( jQuery("#mark")[0], "Replace element with array of elements" ); - ok( !jQuery("#yahoo")[0], "Verify that original element is gone, after array of elements" ); - - QUnit.reset(); - jQuery("#mark, #first").replaceAll("#yahoo"); - ok( jQuery("#first")[0], "Replace element with set of elements" ); - ok( jQuery("#mark")[0], "Replace element with set of elements" ); - ok( !jQuery("#yahoo")[0], "Verify that original element is gone, after set of elements" ); -}); - -test("jQuery.clone() (#8017)", function() { - - expect(2); - - ok( jQuery.clone && jQuery.isFunction( jQuery.clone ) , "jQuery.clone() utility exists and is a function."); - - var main = jQuery("#qunit-fixture")[0], - clone = jQuery.clone( main ); - - equal( main.childNodes.length, clone.childNodes.length, "Simple child length to ensure a large dom tree copies correctly" ); -}); - -test("clone() (#8070)", function () { - expect(2); - - jQuery("").appendTo("#qunit-fixture"); - var selects = jQuery(".test8070"); - selects.append(""); - - equal( selects[0].childNodes.length, 2, "First select got two nodes" ); - equal( selects[1].childNodes.length, 2, "Second select got two nodes" ); - - selects.remove(); -}); - -test("clone()", function() { - expect(39); - equal( "This is a normal link: Yahoo", jQuery("#en").text(), "Assert text for #en" ); - var clone = jQuery("#yahoo").clone(); - equal( "Try them out:Yahoo", jQuery("#first").append(clone).text(), "Check for clone" ); - equal( "This is a normal link: Yahoo", jQuery("#en").text(), "Reassert text for #en" ); - - var cloneTags = [ - "", "", ""); - jQuery(""); - jQuery("
                1. aaa
                2. "); - jQuery("
                  • ?
                  "); - jQuery("

                  arf

                  nnn
                  "); - jQuery("

                  dog

                  ?
                  "); - jQuery(""); - - equal( fragmentCacheSize(), 12, "12 entries exist in jQuery.fragments, 1" ); - - jQuery.each( [ - "", - "
                  • ?
                  ", - "

                  dog

                  ?
                  ", - "" - ], function( i, frag ) { - - jQuery( frag ); - - equal( jQuery.fragments[ frag ].nodeType, 11, "Second call with " + frag + " creates a cached DocumentFragment, has nodeType 11" ); - ok( jQuery.fragments[ frag ].childNodes.length, "Second call with " + frag + " creates a cached DocumentFragment, has childNodes with length" ); - }); - - equal( fragmentCacheSize(), 12, "12 entries exist in jQuery.fragments, 2" ); -}); - -test("Guard against exceptions when clearing safeChildNodes", function() { - expect( 1 ); - - var div; - - try { - div = jQuery("

                  "); - } catch(e) {} - - ok( div && div.jquery, "Created nodes safely, guarded against exceptions on safeChildNodes[ -1 ]" ); -}); \ No newline at end of file diff --git a/vendor/assets/components/jquery/test/unit/offset.js b/vendor/assets/components/jquery/test/unit/offset.js deleted file mode 100644 index 526b93775e..0000000000 --- a/vendor/assets/components/jquery/test/unit/offset.js +++ /dev/null @@ -1,468 +0,0 @@ -module("offset", { teardown: moduleTeardown }); - -test("disconnected node", function() { - expect(2); - - var result = jQuery( document.createElement("div") ).offset(); - - equal( result.top, 0, "Check top" ); - equal( result.left, 0, "Check left" ); -}); - -var supportsScroll = false; - -testIframe("offset/absolute", "absolute", function($, iframe) { - expect(4); - - var doc = iframe.document, tests; - - // force a scroll value on the main window - // this insures that the results will be wrong - // if the offset method is using the scroll offset - // of the parent window - var forceScroll = jQuery("
                  ", { width: 2000, height: 2000 }).appendTo("body"); - window.scrollTo(200, 200); - - if ( document.documentElement.scrollTop || document.body.scrollTop ) { - supportsScroll = true; - } - - window.scrollTo(1, 1); - - // get offset - tests = [ - { id: "#absolute-1", top: 1, left: 1 } - ]; - jQuery.each( tests, function() { - equal( jQuery( this.id, doc ).offset().top, this.top, "jQuery('" + this.id + "').offset().top" ); - equal( jQuery( this.id, doc ).offset().left, this.left, "jQuery('" + this.id + "').offset().left" ); - }); - - - // get position - tests = [ - { id: "#absolute-1", top: 0, left: 0 } - ]; - jQuery.each( tests, function() { - equal( jQuery( this.id, doc ).position().top, this.top, "jQuery('" + this.id + "').position().top" ); - equal( jQuery( this.id, doc ).position().left, this.left, "jQuery('" + this.id + "').position().left" ); - }); - - forceScroll.remove(); -}); - -testIframe("offset/absolute", "absolute", function( jQuery ) { - expect(178); - - // get offset tests - var tests = [ - { id: "#absolute-1", top: 1, left: 1 }, - { id: "#absolute-1-1", top: 5, left: 5 }, - { id: "#absolute-1-1-1", top: 9, left: 9 }, - { id: "#absolute-2", top: 20, left: 20 } - ]; - jQuery.each( tests, function() { - equal( jQuery( this.id ).offset().top, this.top, "jQuery('" + this.id + "').offset().top" ); - equal( jQuery( this.id ).offset().left, this.left, "jQuery('" + this.id + "').offset().left" ); - }); - - - // get position - tests = [ - { id: "#absolute-1", top: 0, left: 0 }, - { id: "#absolute-1-1", top: 1, left: 1 }, - { id: "#absolute-1-1-1", top: 1, left: 1 }, - { id: "#absolute-2", top: 19, left: 19 } - ]; - jQuery.each( tests, function() { - equal( jQuery( this.id ).position().top, this.top, "jQuery('" + this.id + "').position().top" ); - equal( jQuery( this.id ).position().left, this.left, "jQuery('" + this.id + "').position().left" ); - }); - - // test #5781 - var offset = jQuery( "#positionTest" ).offset({ top: 10, left: 10 }).offset(); - equal( offset.top, 10, "Setting offset on element with position absolute but 'auto' values." ) - equal( offset.left, 10, "Setting offset on element with position absolute but 'auto' values." ) - - - // set offset - tests = [ - { id: "#absolute-2", top: 30, left: 30 }, - { id: "#absolute-2", top: 10, left: 10 }, - { id: "#absolute-2", top: -1, left: -1 }, - { id: "#absolute-2", top: 19, left: 19 }, - { id: "#absolute-1-1-1", top: 15, left: 15 }, - { id: "#absolute-1-1-1", top: 5, left: 5 }, - { id: "#absolute-1-1-1", top: -1, left: -1 }, - { id: "#absolute-1-1-1", top: 9, left: 9 }, - { id: "#absolute-1-1", top: 10, left: 10 }, - { id: "#absolute-1-1", top: 0, left: 0 }, - { id: "#absolute-1-1", top: -1, left: -1 }, - { id: "#absolute-1-1", top: 5, left: 5 }, - { id: "#absolute-1", top: 2, left: 2 }, - { id: "#absolute-1", top: 0, left: 0 }, - { id: "#absolute-1", top: -1, left: -1 }, - { id: "#absolute-1", top: 1, left: 1 } - ]; - jQuery.each( tests, function() { - jQuery( this.id ).offset({ top: this.top, left: this.left }); - equal( jQuery( this.id ).offset().top, this.top, "jQuery('" + this.id + "').offset({ top: " + this.top + " })" ); - equal( jQuery( this.id ).offset().left, this.left, "jQuery('" + this.id + "').offset({ left: " + this.left + " })" ); - - var top = this.top, left = this.left; - - jQuery( this.id ).offset(function(i, val){ - equal( val.top, top, "Verify incoming top position." ); - equal( val.left, left, "Verify incoming top position." ); - return { top: top + 1, left: left + 1 }; - }); - equal( jQuery( this.id ).offset().top, this.top + 1, "jQuery('" + this.id + "').offset({ top: " + (this.top + 1) + " })" ); - equal( jQuery( this.id ).offset().left, this.left + 1, "jQuery('" + this.id + "').offset({ left: " + (this.left + 1) + " })" ); - - jQuery( this.id ) - .offset({ left: this.left + 2 }) - .offset({ top: this.top + 2 }); - equal( jQuery( this.id ).offset().top, this.top + 2, "Setting one property at a time." ); - equal( jQuery( this.id ).offset().left, this.left + 2, "Setting one property at a time." ); - - jQuery( this.id ).offset({ top: this.top, left: this.left, using: function( props ) { - jQuery( this ).css({ - top: props.top + 1, - left: props.left + 1 - }); - }}); - equal( jQuery( this.id ).offset().top, this.top + 1, "jQuery('" + this.id + "').offset({ top: " + (this.top + 1) + ", using: fn })" ); - equal( jQuery( this.id ).offset().left, this.left + 1, "jQuery('" + this.id + "').offset({ left: " + (this.left + 1) + ", using: fn })" ); - }); -}); - -testIframe("offset/relative", "relative", function( jQuery ) { - expect(60); - - // IE is collapsing the top margin of 1px - var ie = jQuery.browser.msie && parseInt( jQuery.browser.version, 10 ) < 8; - - // get offset - var tests = [ - { id: "#relative-1", top: ie ? 6 : 7, left: 7 }, - { id: "#relative-1-1", top: ie ? 13 : 15, left: 15 }, - { id: "#relative-2", top: ie ? 141 : 142, left: 27 } - ]; - jQuery.each( tests, function() { - equal( jQuery( this.id ).offset().top, this.top, "jQuery('" + this.id + "').offset().top" ); - equal( jQuery( this.id ).offset().left, this.left, "jQuery('" + this.id + "').offset().left" ); - }); - - - // get position - tests = [ - { id: "#relative-1", top: ie ? 5 : 6, left: 6 }, - { id: "#relative-1-1", top: ie ? 4 : 5, left: 5 }, - { id: "#relative-2", top: ie ? 140 : 141, left: 26 } - ]; - jQuery.each( tests, function() { - equal( jQuery( this.id ).position().top, this.top, "jQuery('" + this.id + "').position().top" ); - equal( jQuery( this.id ).position().left, this.left, "jQuery('" + this.id + "').position().left" ); - }); - - - // set offset - tests = [ - { id: "#relative-2", top: 200, left: 50 }, - { id: "#relative-2", top: 100, left: 10 }, - { id: "#relative-2", top: -5, left: -5 }, - { id: "#relative-2", top: 142, left: 27 }, - { id: "#relative-1-1", top: 100, left: 100 }, - { id: "#relative-1-1", top: 5, left: 5 }, - { id: "#relative-1-1", top: -1, left: -1 }, - { id: "#relative-1-1", top: 15, left: 15 }, - { id: "#relative-1", top: 100, left: 100 }, - { id: "#relative-1", top: 0, left: 0 }, - { id: "#relative-1", top: -1, left: -1 }, - { id: "#relative-1", top: 7, left: 7 } - ]; - jQuery.each( tests, function() { - jQuery( this.id ).offset({ top: this.top, left: this.left }); - equal( jQuery( this.id ).offset().top, this.top, "jQuery('" + this.id + "').offset({ top: " + this.top + " })" ); - equal( jQuery( this.id ).offset().left, this.left, "jQuery('" + this.id + "').offset({ left: " + this.left + " })" ); - - jQuery( this.id ).offset({ top: this.top, left: this.left, using: function( props ) { - jQuery( this ).css({ - top: props.top + 1, - left: props.left + 1 - }); - }}); - equal( jQuery( this.id ).offset().top, this.top + 1, "jQuery('" + this.id + "').offset({ top: " + (this.top + 1) + ", using: fn })" ); - equal( jQuery( this.id ).offset().left, this.left + 1, "jQuery('" + this.id + "').offset({ left: " + (this.left + 1) + ", using: fn })" ); - }); -}); - -testIframe("offset/static", "static", function( jQuery ) { - expect(80); - - // IE is collapsing the top margin of 1px - var ie = jQuery.browser.msie && parseInt( jQuery.browser.version, 10 ) < 8; - - // get offset - var tests = [ - { id: "#static-1", top: ie ? 6 : 7, left: 7 }, - { id: "#static-1-1", top: ie ? 13 : 15, left: 15 }, - { id: "#static-1-1-1", top: ie ? 20 : 23, left: 23 }, - { id: "#static-2", top: ie ? 121 : 122, left: 7 } - ]; - jQuery.each( tests, function() { - equal( jQuery( this.id ).offset().top, this.top, "jQuery('" + this.id + "').offset().top" ); - equal( jQuery( this.id ).offset().left, this.left, "jQuery('" + this.id + "').offset().left" ); - }); - - - // get position - tests = [ - { id: "#static-1", top: ie ? 5 : 6, left: 6 }, - { id: "#static-1-1", top: ie ? 12 : 14, left: 14 }, - { id: "#static-1-1-1", top: ie ? 19 : 22, left: 22 }, - { id: "#static-2", top: ie ? 120 : 121, left: 6 } - ]; - jQuery.each( tests, function() { - equal( jQuery( this.id ).position().top, this.top, "jQuery('" + this.top + "').position().top" ); - equal( jQuery( this.id ).position().left, this.left, "jQuery('" + this.left +"').position().left" ); - }); - - - // set offset - tests = [ - { id: "#static-2", top: 200, left: 200 }, - { id: "#static-2", top: 100, left: 100 }, - { id: "#static-2", top: -2, left: -2 }, - { id: "#static-2", top: 121, left: 6 }, - { id: "#static-1-1-1", top: 50, left: 50 }, - { id: "#static-1-1-1", top: 10, left: 10 }, - { id: "#static-1-1-1", top: -1, left: -1 }, - { id: "#static-1-1-1", top: 22, left: 22 }, - { id: "#static-1-1", top: 25, left: 25 }, - { id: "#static-1-1", top: 10, left: 10 }, - { id: "#static-1-1", top: -3, left: -3 }, - { id: "#static-1-1", top: 14, left: 14 }, - { id: "#static-1", top: 30, left: 30 }, - { id: "#static-1", top: 2, left: 2 }, - { id: "#static-1", top: -2, left: -2 }, - { id: "#static-1", top: 7, left: 7 } - ]; - jQuery.each( tests, function() { - jQuery( this.id ).offset({ top: this.top, left: this.left }); - equal( jQuery( this.id ).offset().top, this.top, "jQuery('" + this.id + "').offset({ top: " + this.top + " })" ); - equal( jQuery( this.id ).offset().left, this.left, "jQuery('" + this.id + "').offset({ left: " + this.left + " })" ); - - jQuery( this.id ).offset({ top: this.top, left: this.left, using: function( props ) { - jQuery( this ).css({ - top: props.top + 1, - left: props.left + 1 - }); - }}); - equal( jQuery( this.id ).offset().top, this.top + 1, "jQuery('" + this.id + "').offset({ top: " + (this.top + 1) + ", using: fn })" ); - equal( jQuery( this.id ).offset().left, this.left + 1, "jQuery('" + this.id + "').offset({ left: " + (this.left + 1) + ", using: fn })" ); - }); -}); - -testIframe("offset/fixed", "fixed", function( jQuery ) { - expect(30); - - var tests = [ - { id: "#fixed-1", top: 1001, left: 1001 }, - { id: "#fixed-2", top: 1021, left: 1021 } - ]; - - jQuery.each( tests, function() { - if ( !supportsScroll ) { - ok( true, "Browser doesn't support scroll position." ); - ok( true, "Browser doesn't support scroll position." ); - - } else if ( jQuery.offset.supportsFixedPosition ) { - equal( jQuery( this.id ).offset().top, this.top, "jQuery('" + this.id + "').offset().top" ); - equal( jQuery( this.id ).offset().left, this.left, "jQuery('" + this.id + "').offset().left" ); - } else { - // need to have same number of assertions - ok( true, "Fixed position is not supported" ); - ok( true, "Fixed position is not supported" ); - } - }); - - tests = [ - { id: "#fixed-1", top: 100, left: 100 }, - { id: "#fixed-1", top: 0, left: 0 }, - { id: "#fixed-1", top: -4, left: -4 }, - { id: "#fixed-2", top: 200, left: 200 }, - { id: "#fixed-2", top: 0, left: 0 }, - { id: "#fixed-2", top: -5, left: -5 } - ]; - - jQuery.each( tests, function() { - if ( jQuery.offset.supportsFixedPosition ) { - jQuery( this.id ).offset({ top: this.top, left: this.left }); - equal( jQuery( this.id ).offset().top, this.top, "jQuery('" + this.id + "').offset({ top: " + this.top + " })" ); - equal( jQuery( this.id ).offset().left, this.left, "jQuery('" + this.id + "').offset({ left: " + this.left + " })" ); - - jQuery( this.id ).offset({ top: this.top, left: this.left, using: function( props ) { - jQuery( this ).css({ - top: props.top + 1, - left: props.left + 1 - }); - }}); - equal( jQuery( this.id ).offset().top, this.top + 1, "jQuery('" + this.id + "').offset({ top: " + (this.top + 1) + ", using: fn })" ); - equal( jQuery( this.id ).offset().left, this.left + 1, "jQuery('" + this.id + "').offset({ left: " + (this.left + 1) + ", using: fn })" ); - } else { - // need to have same number of assertions - ok( true, "Fixed position is not supported" ); - ok( true, "Fixed position is not supported" ); - ok( true, "Fixed position is not supported" ); - ok( true, "Fixed position is not supported" ); - } - }); - - // Bug 8316 - var $noTopLeft = jQuery("#fixed-no-top-left"); - if ( jQuery.offset.supportsFixedPosition ) { - equal( $noTopLeft.offset().top, 1007, "Check offset top for fixed element with no top set" ); - equal( $noTopLeft.offset().left, 1007, "Check offset left for fixed element with no left set" ); - } else { - // need to have same number of assertions - ok( true, "Fixed position is not supported" ); - ok( true, "Fixed position is not supported" ); - } -}); - -testIframe("offset/table", "table", function( jQuery ) { - expect(4); - - equal( jQuery("#table-1").offset().top, 6, "jQuery('#table-1').offset().top" ); - equal( jQuery("#table-1").offset().left, 6, "jQuery('#table-1').offset().left" ); - - equal( jQuery("#th-1").offset().top, 10, "jQuery('#th-1').offset().top" ); - equal( jQuery("#th-1").offset().left, 10, "jQuery('#th-1').offset().left" ); -}); - -testIframe("offset/scroll", "scroll", function( jQuery, win ) { - expect(24); - - var ie = jQuery.browser.msie && parseInt( jQuery.browser.version, 10 ) < 8; - - // IE is collapsing the top margin of 1px - equal( jQuery("#scroll-1").offset().top, ie ? 6 : 7, "jQuery('#scroll-1').offset().top" ); - equal( jQuery("#scroll-1").offset().left, 7, "jQuery('#scroll-1').offset().left" ); - - // IE is collapsing the top margin of 1px - equal( jQuery("#scroll-1-1").offset().top, ie ? 9 : 11, "jQuery('#scroll-1-1').offset().top" ); - equal( jQuery("#scroll-1-1").offset().left, 11, "jQuery('#scroll-1-1').offset().left" ); - - - // scroll offset tests .scrollTop/Left - equal( jQuery("#scroll-1").scrollTop(), 5, "jQuery('#scroll-1').scrollTop()" ); - equal( jQuery("#scroll-1").scrollLeft(), 5, "jQuery('#scroll-1').scrollLeft()" ); - - equal( jQuery("#scroll-1-1").scrollTop(), 0, "jQuery('#scroll-1-1').scrollTop()" ); - equal( jQuery("#scroll-1-1").scrollLeft(), 0, "jQuery('#scroll-1-1').scrollLeft()" ); - - // scroll method chaining - equal( jQuery("#scroll-1").scrollTop(undefined).scrollTop(), 5, ".scrollTop(undefined) is chainable (#5571)" ); - equal( jQuery("#scroll-1").scrollLeft(undefined).scrollLeft(), 5, ".scrollLeft(undefined) is chainable (#5571)" ); - - win.name = "test"; - - if ( !supportsScroll ) { - ok( true, "Browser doesn't support scroll position." ); - ok( true, "Browser doesn't support scroll position." ); - - ok( true, "Browser doesn't support scroll position." ); - ok( true, "Browser doesn't support scroll position." ); - } else { - equal( jQuery(win).scrollTop(), 1000, "jQuery(window).scrollTop()" ); - equal( jQuery(win).scrollLeft(), 1000, "jQuery(window).scrollLeft()" ); - - equal( jQuery(win.document).scrollTop(), 1000, "jQuery(document).scrollTop()" ); - equal( jQuery(win.document).scrollLeft(), 1000, "jQuery(document).scrollLeft()" ); - } - - // test jQuery using parent window/document - // jQuery reference here is in the iframe - window.scrollTo(0,0); - equal( jQuery(window).scrollTop(), 0, "jQuery(window).scrollTop() other window" ); - equal( jQuery(window).scrollLeft(), 0, "jQuery(window).scrollLeft() other window" ); - equal( jQuery(document).scrollTop(), 0, "jQuery(window).scrollTop() other document" ); - equal( jQuery(document).scrollLeft(), 0, "jQuery(window).scrollLeft() other document" ); - - // Tests scrollTop/Left with empty jquery objects - notEqual( jQuery().scrollTop(100), null, "jQuery().scrollTop(100) testing setter on empty jquery object" ); - notEqual( jQuery().scrollLeft(100), null, "jQuery().scrollLeft(100) testing setter on empty jquery object" ); - notEqual( jQuery().scrollTop(null), null, "jQuery().scrollTop(null) testing setter on empty jquery object" ); - notEqual( jQuery().scrollLeft(null), null, "jQuery().scrollLeft(null) testing setter on empty jquery object" ); - strictEqual( jQuery().scrollTop(), null, "jQuery().scrollTop(100) testing setter on empty jquery object" ); - strictEqual( jQuery().scrollLeft(), null, "jQuery().scrollLeft(100) testing setter on empty jquery object" ); -}); - -testIframe("offset/body", "body", function( jQuery ) { - expect(2); - - equal( jQuery("body").offset().top, 1, "jQuery('#body').offset().top" ); - equal( jQuery("body").offset().left, 1, "jQuery('#body').offset().left" ); -}); - -test("chaining", function() { - expect(3); - var coords = { top: 1, left: 1 }; - equal( jQuery("#absolute-1").offset(coords).selector, "#absolute-1", "offset(coords) returns jQuery object" ); - equal( jQuery("#non-existent").offset(coords).selector, "#non-existent", "offset(coords) with empty jQuery set returns jQuery object" ); - equal( jQuery("#absolute-1").offset(undefined).selector, "#absolute-1", "offset(undefined) returns jQuery object (#5571)" ); -}); - -test("offsetParent", function(){ - expect(11); - - var body = jQuery("body").offsetParent(); - equal( body.length, 1, "Only one offsetParent found." ); - equal( body[0], document.body, "The body is its own offsetParent." ); - - var header = jQuery("#qunit-header").offsetParent(); - equal( header.length, 1, "Only one offsetParent found." ); - equal( header[0], document.body, "The body is the offsetParent." ); - - var div = jQuery("#nothiddendivchild").offsetParent(); - equal( div.length, 1, "Only one offsetParent found." ); - equal( div[0], document.body, "The body is the offsetParent." ); - - jQuery("#nothiddendiv").css("position", "relative"); - - div = jQuery("#nothiddendivchild").offsetParent(); - equal( div.length, 1, "Only one offsetParent found." ); - equal( div[0], jQuery("#nothiddendiv")[0], "The div is the offsetParent." ); - - div = jQuery("body, #nothiddendivchild").offsetParent(); - equal( div.length, 2, "Two offsetParent found." ); - equal( div[0], document.body, "The body is the offsetParent." ); - equal( div[1], jQuery("#nothiddendiv")[0], "The div is the offsetParent." ); -}); - -test("fractions (see #7730 and #7885)", function() { - expect(2); - - jQuery('body').append('
                  '); - - var expected = { top: 1000, left: 1000 }; - var div = jQuery('#fractions'); - - div.css({ - position: 'absolute', - left: '1000.7432222px', - top: '1000.532325px', - width: 100, - height: 100 - }); - - div.offset(expected); - - var result = div.offset(); - - equal( result.top, expected.top, "Check top" ); - equal( result.left, expected.left, "Check left" ); - - div.remove(); -}); diff --git a/vendor/assets/components/jquery/test/unit/queue.js b/vendor/assets/components/jquery/test/unit/queue.js deleted file mode 100644 index 6365df1903..0000000000 --- a/vendor/assets/components/jquery/test/unit/queue.js +++ /dev/null @@ -1,305 +0,0 @@ -module("queue", { teardown: moduleTeardown }); - -test("queue() with other types",function() { - expect(12); - var counter = 0; - - stop(); - - var $div = jQuery({}), - defer; - - $div.promise("foo").done(function() { - equal( counter, 0, "Deferred for collection with no queue is automatically resolved" ); - }); - - $div - .queue("foo",function(){ - equal( ++counter, 1, "Dequeuing" ); - jQuery.dequeue(this,"foo"); - }) - .queue("foo",function(){ - equal( ++counter, 2, "Dequeuing" ); - jQuery(this).dequeue("foo"); - }) - .queue("foo",function(){ - equal( ++counter, 3, "Dequeuing" ); - }) - .queue("foo",function(){ - equal( ++counter, 4, "Dequeuing" ); - }); - - defer = $div.promise("foo").done(function() { - equal( counter, 4, "Testing previous call to dequeue in deferred" ); - start(); - }); - - equal( $div.queue("foo").length, 4, "Testing queue length" ); - - equal( $div.queue("foo", undefined).queue("foo").length, 4, ".queue('name',undefined) does nothing but is chainable (#5571)"); - - $div.dequeue("foo"); - - equal( counter, 3, "Testing previous call to dequeue" ); - equal( $div.queue("foo").length, 1, "Testing queue length" ); - - $div.dequeue("foo"); - - equal( counter, 4, "Testing previous call to dequeue" ); - equal( $div.queue("foo").length, 0, "Testing queue length" ); -}); - -test("queue(name) passes in the next item in the queue as a parameter", function() { - expect(2); - - var div = jQuery({}); - var counter = 0; - - div.queue("foo", function(next) { - equal(++counter, 1, "Dequeueing"); - next(); - }).queue("foo", function(next) { - equal(++counter, 2, "Next was called"); - next(); - }).queue("bar", function() { - equal(++counter, 3, "Other queues are not triggered by next()") - }); - - div.dequeue("foo"); -}); - -test("queue() passes in the next item in the queue as a parameter to fx queues", function() { - expect(3); - stop(); - - var div = jQuery({}); - var counter = 0; - - div.queue(function(next) { - equal(++counter, 1, "Dequeueing"); - var self = this; - setTimeout(function() { next() }, 500); - }).queue(function(next) { - equal(++counter, 2, "Next was called"); - next(); - }).queue("bar", function() { - equal(++counter, 3, "Other queues are not triggered by next()") - }); - - jQuery.when( div.promise("fx"), div ).done(function() { - equal(counter, 2, "Deferreds resolved"); - start(); - }); -}); - -test("callbacks keep their place in the queue", function() { - expect(5); - stop(); - var div = jQuery("
                  "), - counter = 0; - - div.queue(function( next ) { - equal( ++counter, 1, "Queue/callback order: first called" ); - setTimeout( next, 200 ); - }).show(100, function() { - equal( ++counter, 2, "Queue/callback order: second called" ); - jQuery(this).hide(100, function() { - equal( ++counter, 4, "Queue/callback order: fourth called" ); - }); - }).queue(function( next ) { - equal( ++counter, 3, "Queue/callback order: third called" ); - next(); - }); - - div.promise("fx").done(function() { - equal(counter, 4, "Deferreds resolved"); - jQuery.removeData( div[0], "olddisplay", true ); - start(); - }); -}); - -test("delay()", function() { - expect(2); - stop(); - - var foo = jQuery({}), run = 0; - - foo.delay(100).queue(function(){ - run = 1; - ok( true, "The function was dequeued." ); - start(); - }); - - equal( run, 0, "The delay delayed the next function from running." ); -}); - -test("delay() can be stopped", function() { - expect( 3 ); - stop(); - - var foo = jQuery({}), run = 0; - - foo - .queue( "alternate", function( next ) { - run++; - ok( true, "This first function was dequeued" ); - next(); - }) - .delay( 1000, "alternate" ) - .queue( "alternate", function() { - run++; - ok( true, "The function was dequeued immediately, the delay was stopped" ); - }) - .dequeue( "alternate" ) - - // stop( "alternate", false ) will NOT clear the queue, so it should automatically dequeue the next - .stop( "alternate", false, false ) - - // this test - .delay( 1000 ) - .queue(function() { - run++; - ok( false, "This queue should never run" ); - }) - - // stop( clearQueue ) should clear the queue - .stop( true, false ); - - equal( run, 2, "Queue ran the proper functions" ); - - setTimeout( start, 2000 ); -}); - - -test("clearQueue(name) clears the queue", function() { - expect(2); - - stop() - - var div = jQuery({}); - var counter = 0; - - div.queue("foo", function(next) { - counter++; - jQuery(this).clearQueue("foo"); - next(); - }).queue("foo", function(next) { - counter++; - }); - - div.promise("foo").done(function() { - ok( true, "dequeue resolves the deferred" ); - start(); - }); - - div.dequeue("foo"); - - equal(counter, 1, "the queue was cleared"); -}); - -test("clearQueue() clears the fx queue", function() { - expect(1); - - var div = jQuery({}); - var counter = 0; - - div.queue(function(next) { - counter++; - var self = this; - setTimeout(function() { jQuery(self).clearQueue(); next(); }, 50); - }).queue(function(next) { - counter++; - }); - - equal(counter, 1, "the queue was cleared"); - - div.removeData(); -}); - -test("_mark() and _unmark()", function() { - expect(1); - - var div = {}, - $div = jQuery( div ); - - stop(); - - jQuery._mark( div, "foo" ); - jQuery._mark( div, "foo" ); - jQuery._unmark( div, "foo" ); - jQuery._unmark( div, "foo" ); - - $div.promise( "foo" ).done(function() { - ok( true, "No more marks" ); - start(); - }); -}); - -test("_mark() and _unmark() default to 'fx'", function() { - expect(1); - - var div = {}, - $div = jQuery( div ); - - stop(); - - jQuery._mark( div ); - jQuery._mark( div ); - jQuery._unmark( div, "fx" ); - jQuery._unmark( div ); - - $div.promise().done(function() { - ok( true, "No more marks" ); - start(); - }); -}); - -test("promise()", function() { - expect(1); - - stop(); - - var objects = []; - - jQuery.each( [{}, {}], function( i, div ) { - var $div = jQuery( div ); - $div.queue(function( next ) { - setTimeout( function() { - if ( i ) { - next(); - setTimeout( function() { - jQuery._unmark( div ); - }, 20 ); - } else { - jQuery._unmark( div ); - setTimeout( function() { - next(); - }, 20 ); - } - }, 50 ); - }).queue(function( next ) { - next(); - }); - jQuery._mark( div ); - objects.push( $div ); - }); - - jQuery.when.apply( jQuery, objects ).done(function() { - ok( true, "Deferred resolved" ); - start(); - }); - - jQuery.each( objects, function() { - this.dequeue(); - }); -}); - -test(".promise(obj)", function() { - expect(2); - - var obj = {}; - var promise = jQuery( "#foo" ).promise( "promise", obj ); - - ok( jQuery.isFunction( promise.promise ), ".promise(type, obj) returns a promise" ); - strictEqual( promise, obj, ".promise(type, obj) returns obj" ); -}); diff --git a/vendor/assets/components/jquery/test/unit/selector.js b/vendor/assets/components/jquery/test/unit/selector.js deleted file mode 100644 index a5758a1c79..0000000000 --- a/vendor/assets/components/jquery/test/unit/selector.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * This test page is for selector tests that address selector issues that have already been addressed in jQuery functions - * and which only work because jQuery has hooked into Sizzle. - * These tests may or may not fail in an independent Sizzle. - */ - -module("selector - jQuery only", { teardown: moduleTeardown }); - -testIframe("selector/html5_selector", "attributes - jQuery.attr", function( jQuery, window, document ) { - expect(34); - - /** - * Returns an array of elements with the given IDs, eg. - */ - function q() { - var r = [], - i = 0; - - for ( ; i < arguments.length; i++ ) { - r.push( document.getElementById( arguments[i] ) ); - } - return r; - } - - /** - * Asserts that a select matches the given IDs * @example t("Check for something", "//[a]", ["foo", "baar"]); - * @param {String} a - Assertion name - * @param {String} b - Sizzle selector - * @param {String} c - Array of ids to construct what is expected - */ - function t( a, b, c ) { - var f = jQuery(b).get(), - s = "", - i = 0; - - for ( ; i < f.length; i++ ) { - s += (s && ",") + '"' + f[i].id + '"'; - } - - deepEqual(f, q.apply( q, c ), a + " (" + b + ")"); - } - - // ====== All known boolean attributes, including html5 booleans ====== - // autobuffer, autofocus, autoplay, async, checked, - // compact, controls, declare, defer, disabled, - // formnovalidate, hidden, indeterminate (property only), - // ismap, itemscope, loop, multiple, muted, nohref, noresize, - // noshade, nowrap, novalidate, open, pubdate, readonly, required, - // reversed, scoped, seamless, selected, truespeed, visible (skipping visible attribute, which is on a barprop object) - - t( "Attribute Exists", "[autobuffer]", ["video1"]); - t( "Attribute Exists", "[autofocus]", ["text1"]); - t( "Attribute Exists", "[autoplay]", ["video1"]); - t( "Attribute Exists", "[async]", ["script1"]); - t( "Attribute Exists", "[checked]", ["check1"]); - t( "Attribute Exists", "[compact]", ["dl"]); - t( "Attribute Exists", "[controls]", ["video1"]); - t( "Attribute Exists", "[declare]", ["object1"]); - t( "Attribute Exists", "[defer]", ["script1"]); - t( "Attribute Exists", "[disabled]", ["check1"]); - t( "Attribute Exists", "[formnovalidate]", ["form1"]); - t( "Attribute Exists", "[hidden]", ["div1"]); - t( "Attribute Exists", "[indeterminate]", []); - t( "Attribute Exists", "[ismap]", ["img1"]); - t( "Attribute Exists", "[itemscope]", ["div1"]); - // t( "Attribute Exists", "[loop]", ["video1"]); // IE 6/7 cannot differentiate here. loop is also used on img, input, and marquee tags as well as video/audio. getAttributeNode unfortunately only retrieves the property value. - t( "Attribute Exists", "[multiple]", ["select1"]); - t( "Attribute Exists", "[muted]", ["audio1"]); - // t( "Attribute Exists", "[nohref]", ["area1"]); // IE 6/7 keep this set to false regardless of presence. The attribute node is not retrievable. - t( "Attribute Exists", "[noresize]", ["textarea1"]); - t( "Attribute Exists", "[noshade]", ["hr1"]); - t( "Attribute Exists", "[nowrap]", ["td1", "div1"]); - t( "Attribute Exists", "[novalidate]", ["form1"]); - t( "Attribute Exists", "[open]", ["details1"]); - t( "Attribute Exists", "[pubdate]", ["article1"]); - t( "Attribute Exists", "[readonly]", ["text1"]); - t( "Attribute Exists", "[required]", ["text1"]); - t( "Attribute Exists", "[reversed]", ["ol1"]); - t( "Attribute Exists", "[scoped]", ["style1"]); - t( "Attribute Exists", "[seamless]", ["iframe1"]); - // t( "Attribute Exists", "[selected]", ["option1"]); // IE8's querySelectorAll fails here. Redirecting to oldSizzle would work, but it would require an additional support test as well as a check for the selected attribute within the qsa logic - t( "Attribute Exists", "[truespeed]", ["marquee1"]); - - // Enumerated attributes (these are not boolean content attributes) - jQuery.each([ "draggable", "contenteditable", "aria-disabled" ], function( i, val ) { - t( "Enumerated attribute", "[" + val + "]", ["div1"]); - }); - t( "Enumerated attribute", "[spellcheck]", ["span1"]); - - // t( "tabindex selector does not retrieve all elements in IE6/7(#8473)", "form, [tabindex]", ["form1", "text1"]); // Uncomment this when the tabindex attrHook is deprecated - - t( "Improperly named form elements do not interfere with form selections (#9570)", "form[name='formName']", ["form1"]); -}); - -testIframe("selector/sizzle_cache", "Sizzle cache collides with multiple Sizzles on a page", function( jQuery, window, document ) { - var $cached = window.$cached; - - expect(3); - deepEqual( $cached('.test a').get(), [ document.getElementById('collision') ], "Select collision anchor with first sizzle" ); - equal( jQuery('.evil a').length, 0, "Select nothing with second sizzle" ); - equal( jQuery('.evil a').length, 0, "Select nothing again with second sizzle" ); -}); diff --git a/vendor/assets/components/jquery/test/unit/support.js b/vendor/assets/components/jquery/test/unit/support.js deleted file mode 100644 index b714a1cec8..0000000000 --- a/vendor/assets/components/jquery/test/unit/support.js +++ /dev/null @@ -1,326 +0,0 @@ -module("support", { teardown: moduleTeardown }); - -function supportIFrameTest( title, url, noDisplay, func ) { - - if ( noDisplay !== true ) { - func = noDisplay; - noDisplay = false; - } - - test( title, function() { - var iframe; - - stop(); - window.supportCallback = function() { - var self = this, - args = arguments; - setTimeout( function() { - window.supportCallback = undefined; - iframe.remove(); - func.apply( self, args ); - start(); - }, 0 ); - }; - iframe = jQuery( "
                  " ).css( "display", noDisplay ? "none" : "block" ).append( - jQuery( "
                  ", "
                  ", - "