diff --git a/client/app/ag-admin/scripts/controllers/plugins.js b/client/app/ag-admin/scripts/controllers/plugins.js index 462f333..f171565 100644 --- a/client/app/ag-admin/scripts/controllers/plugins.js +++ b/client/app/ag-admin/scripts/controllers/plugins.js @@ -30,7 +30,8 @@ angular.module('base') $cookies.put('enabled_plugins', JSON.stringify($scope.enabled_plugin), { path: '/' }); - }, function(error) {}); + }, function(error) { + }); } $scope.checkStatus = function(plugin, enabled_plugins) { if ($.inArray(plugin, enabled_plugins) > -1) { @@ -67,8 +68,13 @@ angular.module('base') addnCls: 'humane-flatty-success' }); getPluginDetails(); + }else if(response.error.code === 3){ + notification.log("We can't change default settings in demo mode.", { + addnCls: 'humane-flatty-error' + }); } - }, function(error) {}); + }, function(error) { + }); } }; $scope.fullRefresh = function() { diff --git a/client/app/ag-admin/scripts/controllers/transaction.js b/client/app/ag-admin/scripts/controllers/transaction.js index 5d11941..05c6434 100644 --- a/client/app/ag-admin/scripts/controllers/transaction.js +++ b/client/app/ag-admin/scripts/controllers/transaction.js @@ -110,6 +110,7 @@ angular.module('base') var project = {}; var job = {}; var subscription = {}; + var payment_gateway ={}; $scope.transaction_messages = $scope.TransactionAdminMessage[parseInt(trans)]; if (angular.isDefined(value.exam)) { exam = value.exam.title; @@ -123,6 +124,9 @@ angular.module('base') if (angular.isDefined(value.creditPurchasePlan)) { subscription = value.creditPurchasePlan.name; } + if (angular.isDefined(value.payment_gateway) && value.payment_gateway !== null) { + payment_gateway = value.payment_gateway.display_name; + } var name = { '##CONTEST##': value.foreign_transaction.name, '##CONTEST_AMOUNT##': $scope.settings.CURRENCY_SYMBOL + value.foreign_transaction.prize, diff --git a/client/app/images/Thumbs.db b/client/app/images/Thumbs.db new file mode 100644 index 0000000..76f99fb Binary files /dev/null and b/client/app/images/Thumbs.db differ diff --git a/client/app/images/cssilize.png b/client/app/images/cssilize.png index a2e4585..b206d02 100755 Binary files a/client/app/images/cssilize.png and b/client/app/images/cssilize.png differ diff --git a/client/app/images/email_templates/Thumbs.db b/client/app/images/email_templates/Thumbs.db new file mode 100644 index 0000000..0733b9f Binary files /dev/null and b/client/app/images/email_templates/Thumbs.db differ diff --git a/client/app/index.html b/client/app/index.html index 9e42b23..ce66b61 100755 --- a/client/app/index.html +++ b/client/app/index.html @@ -22,7 +22,7 @@ - + @@ -173,8 +173,6 @@

Sorry! - - @@ -185,6 +183,7 @@

Sorry! @@ -259,175 +258,6 @@

Sorry! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -439,44 +269,6 @@

Sorry! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -485,13 +277,6 @@

Sorry! - - - - - - - diff --git a/client/app/ng-admin/.bowerrc b/client/app/ng-admin/.bowerrc new file mode 100644 index 0000000..61eeaee --- /dev/null +++ b/client/app/ng-admin/.bowerrc @@ -0,0 +1,3 @@ +{ + "directory": "src/javascripts/bower_components" +} diff --git a/client/app/ng-admin/.gitignore b/client/app/ng-admin/.gitignore new file mode 100644 index 0000000..a0efd7c --- /dev/null +++ b/client/app/ng-admin/.gitignore @@ -0,0 +1,12 @@ +node_modules +dist +.tmp +.sass-cache +src/javascripts/bower_components +src/javascripts/config.js +src/javascripts/test/fixtures/examples/blog +src/styles/*.css +src/css +examples/blog/build +examples/blog/assets +npm-debug.log diff --git a/client/app/ng-admin/.jshintrc b/client/app/ng-admin/.jshintrc new file mode 100644 index 0000000..a9a9e7e --- /dev/null +++ b/client/app/ng-admin/.jshintrc @@ -0,0 +1,23 @@ +{ + "node": true, + "browser": true, + "esnext": true, + "bitwise": true, + "camelcase": true, + "curly": false, + "eqeqeq": true, + "immed": true, + "indent": 2, + "latedef": true, + "newcap": true, + "noarg": true, + "regexp": true, + "undef": true, + "unused": true, + "strict": false, + "trailing": true, + "smarttabs": true, + "globals": { + "angular": false + } +} diff --git a/client/app/ng-admin/.travis.yml b/client/app/ng-admin/.travis.yml new file mode 100644 index 0000000..683cd4a --- /dev/null +++ b/client/app/ng-admin/.travis.yml @@ -0,0 +1,32 @@ +env: + global: + - CXX=g++-4.8 + - secure: Yp3LrtligD2LVcYK7xep9vPbOV9kDFixeY/TySYZM62WikYrKNUg54MHXI0FsbJ29Ay62W40uC6gIkWMq1cO1Ensj2Y4PzlFSM042vB8axHwJV6oMCNy4vHv1plt7vTXIv8+JSN0x3gPO4hhD4K39liKC5eARZLe3ObbcSsAgbU= + - secure: dTO5DS3+XnjOub7MHyKeU6YdCIBEExOcaq57u3yx7JnLy9/eNrDXEe+oQUhRCb/w8egnqd8Nvmkq9095IQe8r+/zzR1AAE69affM1oPnP0n+LzvukjJDgm/ZYYLY9SY0EOZ4TNmKuT89gECYeCMp/dFAQdPNEBsmjtbk09/Kqyg= +addons: + sauce_connect: true + hosts: + - ngadmin + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-4.8 +sudo: false +cache: + directories: + - node_modules +language: node_js +node_js: + - "4" +before_install: + - "export TZ=Europe/Paris" # Change timezone to test Date function more accurately + - "export DISPLAY=:99.0" + - "sh -e /etc/init.d/xvfb start" + - gem update --system + - gem install compass +before_script: + - "./node_modules/protractor/bin/webdriver-manager update" +branches: + only: + - master diff --git a/client/app/ng-admin/CHANGELOG.md b/client/app/ng-admin/CHANGELOG.md new file mode 100644 index 0000000..8a80f00 --- /dev/null +++ b/client/app/ng-admin/CHANGELOG.md @@ -0,0 +1,314 @@ +CHANGELOG +========= + +v0.9.0 - 30 Oct. 2015 +--------------------- + +- Add Relationships documentation [\#753](https://github.com/marmelab/ng-admin/pull/753) ([fzaninotto](https://github.com/fzaninotto)) +- Fix JS error "values of undefined" on a missing reference in a column [\#751](https://github.com/marmelab/ng-admin/pull/751) ([kenegozi](https://github.com/kenegozi)) +- Fix checkbox field [\#744](https://github.com/marmelab/ng-admin/pull/744) ([fzaninotto](https://github.com/fzaninotto)) +- Fix UI select multi style [\#740](https://github.com/marmelab/ng-admin/pull/740) ([jeromemacias](https://github.com/jeromemacias)) +- Fix double call on reference fields [\#732](https://github.com/marmelab/ng-admin/pull/732) ([fzaninotto](https://github.com/fzaninotto)) +- Make `Field.transform()` work on filters [\#726](https://github.com/marmelab/ng-admin/pull/726) ([fzaninotto](https://github.com/fzaninotto)) +- Fix another broken link [\#724](https://github.com/marmelab/ng-admin/pull/724) ([daveshah](https://github.com/daveshah)) +- Fix typo in README [\#718](https://github.com/marmelab/ng-admin/pull/718) ([rndstr](https://github.com/rndstr)) +- Add new `embedded_list` field type [\#714](https://github.com/marmelab/ng-admin/pull/714) ([fzaninotto](https://github.com/fzaninotto)) +- Add ability to customize template for all fields [\#713](https://github.com/marmelab/ng-admin/pull/713) ([fzaninotto](https://github.com/fzaninotto)) +- Document the way to define nested entity urls for relationships [\#711](https://github.com/marmelab/ng-admin/pull/711) ([fzaninotto](https://github.com/fzaninotto)) +- Fix `infinitePagination` to resolve `reference` fields [\#709](https://github.com/marmelab/ng-admin/pull/709) ([djhi](https://github.com/djhi)) +- Fix invalid reference to entry in datagrid header [\#708](https://github.com/marmelab/ng-admin/pull/708) ([djhi](https://github.com/djhi)) +- Make required boolean fields render as a checkbox for edition instead of a dropdown [\#707](https://github.com/marmelab/ng-admin/pull/707) ([djhi](https://github.com/djhi)) +- Fixe Build & demo [\#706](https://github.com/marmelab/ng-admin/pull/706) ([djhi](https://github.com/djhi)) +- Fix bad method name `Reference:targetLabel` in documentation [\#704](https://github.com/marmelab/ng-admin/pull/704) ([SebLours](https://github.com/SebLours)) +- Document input date requirement for `format()` [\#702](https://github.com/marmelab/ng-admin/pull/702) ([jpetitcolas](https://github.com/jpetitcolas)) +- Fix spelling error in Configuration reference [\#697](https://github.com/marmelab/ng-admin/pull/697) ([VincentBel](https://github.com/VincentBel)) +- Add default value parameter for create view and `` directive [\#696](https://github.com/marmelab/ng-admin/pull/696) ([fzaninotto](https://github.com/fzaninotto)) +- Fix optimized queries [\#694](https://github.com/marmelab/ng-admin/pull/694) ([fzaninotto](https://github.com/fzaninotto)) +- Fix default filter glitch [\#691](https://github.com/marmelab/ng-admin/pull/691) ([fzaninotto](https://github.com/fzaninotto)) +- Preload references in `referenced_list` entries [\#688](https://github.com/marmelab/ng-admin/pull/688) ([fzaninotto](https://github.com/fzaninotto)) +- Fix link to Theming doc [\#686](https://github.com/marmelab/ng-admin/pull/686) ([AndreiRailean](https://github.com/AndreiRailean)) +- Fix bug with datastore when two references are on the same entity [\#677](https://github.com/marmelab/ng-admin/pull/677) ([fzaninotto](https://github.com/fzaninotto)) +- Fix field alignment for number fields in the datagrid [\#676](https://github.com/marmelab/ng-admin/pull/676) ([fzaninotto](https://github.com/fzaninotto)) +- Update CSS to make view actions more responsive [\#675](https://github.com/marmelab/ng-admin/pull/675) ([fzaninotto](https://github.com/fzaninotto)) +- Add cssClasses both to th and td in `listView` [\#674](https://github.com/marmelab/ng-admin/pull/674) ([fzaninotto](https://github.com/fzaninotto)) +- Fix date widget formatting [\#673](https://github.com/marmelab/ng-admin/pull/673) ([fzaninotto](https://github.com/fzaninotto)) +- Make dashboard responsive [\#672](https://github.com/marmelab/ng-admin/pull/672) ([fzaninotto](https://github.com/fzaninotto)) +- Fix link to the configuration reference API [\#669](https://github.com/marmelab/ng-admin/pull/669) ([JacoKoster](https://github.com/JacoKoster)) +- Add ability to disable Menu autoclose [\#667](https://github.com/marmelab/ng-admin/pull/667) ([ThieryMichel](https://github.com/ThieryMichel)) +- Fix filter conflict [\#663](https://github.com/marmelab/ng-admin/pull/663) ([ThieryMichel](https://github.com/ThieryMichel)) +- Fix ability to add filter when using custom actions [\#661](https://github.com/marmelab/ng-admin/pull/661) ([ThieryMichel](https://github.com/ThieryMichel)) +- Fix inconsistency in remote reference map [\#659](https://github.com/marmelab/ng-admin/pull/659) ([fzaninotto](https://github.com/fzaninotto)) +- Fix (re-add) listActions support on referencedList [\#655](https://github.com/marmelab/ng-admin/pull/655) ([fzaninotto](https://github.com/fzaninotto)) +- Fix `referenced_list` loses `detailLink` when using new entity [\#654](https://github.com/marmelab/ng-admin/pull/654) ([fzaninotto](https://github.com/fzaninotto)) +- Add access to field constructors to avoid Webpack/Babel fuss for custom types [\#653](https://github.com/marmelab/ng-admin/pull/653) ([fzaninotto](https://github.com/fzaninotto)) +- Fix bug where filters are freezed when url changes [\#651](https://github.com/marmelab/ng-admin/pull/651) ([fzaninotto](https://github.com/fzaninotto)) +- Fix flickering when using custom menu link [\#650](https://github.com/marmelab/ng-admin/pull/650) ([fzaninotto](https://github.com/fzaninotto)) +- Update Configuration reference [\#645](https://github.com/marmelab/ng-admin/pull/645) ([powize](https://github.com/powize)) +- Allow the main menu to use a custom template [\#644](https://github.com/marmelab/ng-admin/pull/644) ([fzaninotto](https://github.com/fzaninotto)) +- Improve the custom types documentation [\#643](https://github.com/marmelab/ng-admin/pull/643) ([fzaninotto](https://github.com/fzaninotto)) +- Fix return to list view when deleting a record [\#642](https://github.com/marmelab/ng-admin/pull/642) ([jpetitcolas](https://github.com/jpetitcolas)) +- Use local grunt instead of global [\#640](https://github.com/marmelab/ng-admin/pull/640) ([fzaninotto](https://github.com/fzaninotto)) +- Add default value support for filters [\#639](https://github.com/marmelab/ng-admin/pull/639) ([fzaninotto](https://github.com/fzaninotto)) +- Fix typo in template definition [\#630](https://github.com/marmelab/ng-admin/pull/630) ([Benew](https://github.com/Benew)) +- Fix boolean type to make it handle null values [\#629](https://github.com/marmelab/ng-admin/pull/629) ([fzaninotto](https://github.com/fzaninotto)) +- Allow to customize multiple choices placeholder [\#628](https://github.com/marmelab/ng-admin/pull/628) ([jpetitcolas](https://github.com/jpetitcolas)) +- Use fakerest and webpack-dev-server instead of json-server and grunt-connect [\#625](https://github.com/marmelab/ng-admin/pull/625) ([jeromemacias](https://github.com/jeromemacias)) +- Fix file field [\#621](https://github.com/marmelab/ng-admin/pull/621) ([jeromemacias](https://github.com/jeromemacias)) + +v0.8.0 - 26 Aug. 2015 +--------------------- + +* Add sourcemaps to the build process to ease debugging [\#619](https://github.com/marmelab/ng-admin/pull/619) ([fzaninotto](https://github.com/fzaninotto)) +* Add a Frequently Asked Question page [\#618](https://github.com/marmelab/ng-admin/pull/618) ([fzaninotto](https://github.com/fzaninotto)) +* Fix skeleton code in README [\#613](https://github.com/marmelab/ng-admin/pull/613) ([Benew](https://github.com/Benew)) +* Allow deselection to send null value in choice field [\#612](https://github.com/marmelab/ng-admin/pull/612) ([fzaninotto](https://github.com/fzaninotto)) +* Allow placeholder to be overridden on choice fields [\#611](https://github.com/marmelab/ng-admin/pull/611) ([fzaninotto](https://github.com/fzaninotto)) +* Improve documentation, add a "Getting Started" tutorial [\#607](https://github.com/marmelab/ng-admin/pull/607) ([fzaninotto](https://github.com/fzaninotto)) +* Add support for pattern validation [\#606](https://github.com/marmelab/ng-admin/pull/606) ([fzaninotto](https://github.com/fzaninotto)) +* Clarify and fix the detailLink logic [\#605](https://github.com/marmelab/ng-admin/pull/605) ([fzaninotto](https://github.com/fzaninotto)) +* Add debounce to the filters [\#604](https://github.com/marmelab/ng-admin/pull/604) ([fzaninotto](https://github.com/fzaninotto)) +* Fix custom attributes on fields [\#593](https://github.com/marmelab/ng-admin/pull/593) ([fzaninotto](https://github.com/fzaninotto)) +* Update remoteComplete API for better configurability [\#592](https://github.com/marmelab/ng-admin/pull/592) ([fzaninotto](https://github.com/fzaninotto)) +* Fix problem with multiple references on same entity [\#590](https://github.com/marmelab/ng-admin/pull/590) ([fzaninotto](https://github.com/fzaninotto)) +* Fix reference list order [\#589](https://github.com/marmelab/ng-admin/pull/589) ([fzaninotto](https://github.com/fzaninotto)) +* Add permanent filters [\#588](https://github.com/marmelab/ng-admin/pull/588) ([fzaninotto](https://github.com/fzaninotto)) +* Bower is no longer necessary to the build [\#587](https://github.com/marmelab/ng-admin/pull/587) ([fzaninotto](https://github.com/fzaninotto)) +* Fix typo in infinite pagination controller [\#586](https://github.com/marmelab/ng-admin/pull/586) ([fzaninotto](https://github.com/fzaninotto)) +* Format number for export [\#577](https://github.com/marmelab/ng-admin/pull/577) ([ThieryMichel](https://github.com/ThieryMichel)) +* Harmonize fieldview syntax using fat arrows [\#575](https://github.com/marmelab/ng-admin/pull/575) ([fzaninotto](https://github.com/fzaninotto)) +* Fix tests [\#570](https://github.com/marmelab/ng-admin/pull/570) ([jpetitcolas](https://github.com/jpetitcolas)) +* Fix `reference_many` field when value is `[]` [\#568](https://github.com/marmelab/ng-admin/pull/568) ([jpetitcolas](https://github.com/jpetitcolas)) +* Do not deduplicate single choice remote complete fields [\#566](https://github.com/marmelab/ng-admin/pull/566) ([jpetitcolas](https://github.com/jpetitcolas)) +* Webpack: be more quiet please [\#565](https://github.com/marmelab/ng-admin/pull/565) ([jpetitcolas](https://github.com/jpetitcolas)) +* Fix isDetailView doesn't work on `referenced_list` entity id-field [\#560](https://github.com/marmelab/ng-admin/pull/560) ([vasiakorobkin](https://github.com/vasiakorobkin)) +* Fix menu collapse on second click [\#556](https://github.com/marmelab/ng-admin/pull/556) ([fzaninotto](https://github.com/fzaninotto)) +* Add space between view action buttons [\#554](https://github.com/marmelab/ng-admin/pull/554) ([fzaninotto](https://github.com/fzaninotto)) +* Clarify Map logic, allow nested fields [\#549](https://github.com/marmelab/ng-admin/pull/549) ([fzaninotto](https://github.com/fzaninotto)) +* Delete view: back to previous state, not edit or list view [\#538](https://github.com/marmelab/ng-admin/pull/538) ([vasiakorobkin](https://github.com/vasiakorobkin)) +* Fix default date format in date field [\#528](https://github.com/marmelab/ng-admin/pull/528) ([jpetitcolas](https://github.com/jpetitcolas)) +* Revamp Filter UX [\#522](https://github.com/marmelab/ng-admin/pull/522) ([fzaninotto](https://github.com/fzaninotto)) +* Add promise shim for some browsers \(IE11, I'm watching you!\) [\#519](https://github.com/marmelab/ng-admin/pull/519) ([jpetitcolas](https://github.com/jpetitcolas)) +* Update build to fix issues on MacOS \(fixes \#515\) [\#516](https://github.com/marmelab/ng-admin/pull/516) ([jpetitcolas](https://github.com/jpetitcolas)) +* Set default format in date fields [\#511](https://github.com/marmelab/ng-admin/pull/511) ([manuquentin](https://github.com/manuquentin)) +* Introduce new way to define dashboard datasources [\#509](https://github.com/marmelab/ng-admin/pull/509) ([fzaninotto](https://github.com/fzaninotto)) +* Send API request on reference auto-complete [\#508](https://github.com/marmelab/ng-admin/pull/508) ([jpetitcolas](https://github.com/jpetitcolas)) +* Remove moot `version` property from bower.json [\#507](https://github.com/marmelab/ng-admin/pull/507) ([kkirsche](https://github.com/kkirsche)) +* Use UI-Select for Choice and Choices fields [\#505](https://github.com/marmelab/ng-admin/pull/505) ([jpetitcolas](https://github.com/jpetitcolas)) +* fix back method on batchDeleteController [\#503](https://github.com/marmelab/ng-admin/pull/503) ([ThieryMichel](https://github.com/ThieryMichel)) +* add new field in entryFormatter [\#502](https://github.com/marmelab/ng-admin/pull/502) ([ThieryMichel](https://github.com/ThieryMichel)) +* Fix maFileField and use latest version of ng-file-upload [\#501](https://github.com/marmelab/ng-admin/pull/501) ([jeromemacias](https://github.com/jeromemacias)) +* Fix BC issue with step attribute [\#494](https://github.com/marmelab/ng-admin/pull/494) ([jpetitcolas](https://github.com/jpetitcolas)) +* added userdefined create and update HTTP Method [\#491](https://github.com/marmelab/ng-admin/pull/491) ([matsluni](https://github.com/matsluni)) +* Fix `gotoDetail()` should remember list filter and replace some `$location.path()` by `$state.go()` [\#489](https://github.com/marmelab/ng-admin/pull/489) ([jeromemacias](https://github.com/jeromemacias)) +* Fix dashboard does not retrieve entity references [\#488](https://github.com/marmelab/ng-admin/pull/488) ([jeromemacias](https://github.com/jeromemacias)) +* Improve first contact: add invite after setup [\#487](https://github.com/marmelab/ng-admin/pull/487) ([fzaninotto](https://github.com/fzaninotto)) +* Fix delete title [\#486](https://github.com/marmelab/ng-admin/pull/486) ([fzaninotto](https://github.com/fzaninotto)) +* Accept false value in filter [\#484](https://github.com/marmelab/ng-admin/pull/484) ([ThieryMichel](https://github.com/ThieryMichel)) +* Stay on Angularjs 1.3 version [\#483](https://github.com/marmelab/ng-admin/pull/483) ([jeromemacias](https://github.com/jeromemacias)) +* Fix sort for ReferenceListField and dashboard [\#482](https://github.com/marmelab/ng-admin/pull/482) ([jeromemacias](https://github.com/jeromemacias)) +* Fix pagination [\#480](https://github.com/marmelab/ng-admin/pull/480) ([ThieryMichel](https://github.com/ThieryMichel)) +* Optimize build process [\#477](https://github.com/marmelab/ng-admin/pull/477) ([jpetitcolas](https://github.com/jpetitcolas)) +* Fix outdated method name in doc [\#471](https://github.com/marmelab/ng-admin/pull/471) ([jpetitcolas](https://github.com/jpetitcolas)) +* Fix top margin regressions [\#468](https://github.com/marmelab/ng-admin/pull/468) ([jpetitcolas](https://github.com/jpetitcolas)) +* Fix export CSV in firefox [\#467](https://github.com/marmelab/ng-admin/pull/467) ([manuquentin](https://github.com/manuquentin)) +* Rename lib files to keep BC [\#466](https://github.com/marmelab/ng-admin/pull/466) ([jpetitcolas](https://github.com/jpetitcolas)) +* Fix `maExportToCsvButton` does not return entries references and empty data when filters contains boolean field [\#461](https://github.com/marmelab/ng-admin/pull/461) ([jeromemacias](https://github.com/jeromemacias)) +* Fix several bugs [\#460](https://github.com/marmelab/ng-admin/pull/460) ([jeromemacias](https://github.com/jeromemacias)) +* Use `admin-config` files [\#457](https://github.com/marmelab/ng-admin/pull/457) ([manuquentin](https://github.com/manuquentin)) +* Update README for Webpack [\#456](https://github.com/marmelab/ng-admin/pull/456) ([jpetitcolas](https://github.com/jpetitcolas)) +* Fix button display when a view is disabled [\#449](https://github.com/marmelab/ng-admin/pull/449) ([manuquentin](https://github.com/manuquentin)) +* Fix ListView e2e tests [\#445](https://github.com/marmelab/ng-admin/pull/445) ([jeromemacias](https://github.com/jeromemacias)) +* Refactor referenced data [\#444](https://github.com/marmelab/ng-admin/pull/444) ([manuquentin](https://github.com/manuquentin)) +* Move PromisesResolver to ES6 [\#442](https://github.com/marmelab/ng-admin/pull/442) ([manuquentin](https://github.com/manuquentin)) +* Fix empty list actions column [\#441](https://github.com/marmelab/ng-admin/pull/441) ([manuquentin](https://github.com/manuquentin)) +* Fix edit & show links [\#440](https://github.com/marmelab/ng-admin/pull/440) ([manuquentin](https://github.com/manuquentin)) +* Update protractor to 1.8 version [\#437](https://github.com/marmelab/ng-admin/pull/437) ([jeromemacias](https://github.com/jeromemacias)) +* Make choice field required works and fix angular add empty first option [\#435](https://github.com/marmelab/ng-admin/pull/435) ([jeromemacias](https://github.com/jeromemacias)) +* Fix dashboard panel heading link [\#434](https://github.com/marmelab/ng-admin/pull/434) ([jeromemacias](https://github.com/jeromemacias)) +* Boost Angular app performance [\#433](https://github.com/marmelab/ng-admin/pull/433) ([jeromemacias](https://github.com/jeromemacias)) +* Move orderElement angular filter to es6 class and remove angular enabled filter [\#431](https://github.com/marmelab/ng-admin/pull/431) ([jeromemacias](https://github.com/jeromemacias)) +* Move Validator service to view.validate\(\) method [\#430](https://github.com/marmelab/ng-admin/pull/430) ([jeromemacias](https://github.com/jeromemacias)) +* \[BC-BREAK\] Remove referencedView created by code for ReferenceField [\#429](https://github.com/marmelab/ng-admin/pull/429) ([jeromemacias](https://github.com/jeromemacias)) +* Migrate from require to Webpack [\#428](https://github.com/marmelab/ng-admin/pull/428) ([jpetitcolas](https://github.com/jpetitcolas)) +* Move `*Queries` into separate files [\#427](https://github.com/marmelab/ng-admin/pull/427) ([manuquentin](https://github.com/manuquentin)) +* Introduce float type [\#426](https://github.com/marmelab/ng-admin/pull/426) ([jpetitcolas](https://github.com/jpetitcolas)) +* Remove ui bootstrap monkeypatch [\#425](https://github.com/marmelab/ng-admin/pull/425) ([manuquentin](https://github.com/manuquentin)) +* Fix typo in README [\#422](https://github.com/marmelab/ng-admin/pull/422) ([jpetitcolas](https://github.com/jpetitcolas)) +* Remember list filter when navigating on same entity [\#418](https://github.com/marmelab/ng-admin/pull/418) ([ThieryMichel](https://github.com/ThieryMichel)) +* Introduce DataStore and remove entries for ReferenceField [\#410](https://github.com/marmelab/ng-admin/pull/410) ([jeromemacias](https://github.com/jeromemacias)) + +v0.7.0 - 6 Apr. 2015 +-------------------- + +* Hide empty option in choice field [\#416](https://github.com/marmelab/ng-admin/pull/416) ([fzaninotto](https://github.com/fzaninotto)) +* Fix relative baseApiUrl gets doubled in the URL [\#415](https://github.com/marmelab/ng-admin/pull/415) ([fzaninotto](https://github.com/fzaninotto)) +* Fix accept type in file field [\#413](https://github.com/marmelab/ng-admin/pull/413) ([fzaninotto](https://github.com/fzaninotto)) +* Fix accordion effect on sidebar menu [\#412](https://github.com/marmelab/ng-admin/pull/412) ([fzaninotto](https://github.com/fzaninotto)) +* Add label attribute on button directives [\#407](https://github.com/marmelab/ng-admin/pull/407) ([RobinBressan](https://github.com/RobinBressan)) +* Fix rendering on datagrid by using entry.identifierValue as $$hashKey [\#401](https://github.com/marmelab/ng-admin/pull/401) ([RobinBressan](https://github.com/RobinBressan)) +* Improve Disabled View Handling [\#400](https://github.com/marmelab/ng-admin/pull/400) ([fzaninotto](https://github.com/fzaninotto)) +* Improve error handling [\#399](https://github.com/marmelab/ng-admin/pull/399) ([fzaninotto](https://github.com/fzaninotto)) +* Dependent choice lists [\#398](https://github.com/marmelab/ng-admin/pull/398) ([fzaninotto](https://github.com/fzaninotto)) +* Add ability to customize the admin header [\#397](https://github.com/marmelab/ng-admin/pull/397) ([fzaninotto](https://github.com/fzaninotto)) +* Export format date [\#396](https://github.com/marmelab/ng-admin/pull/396) ([ThieryMichel](https://github.com/ThieryMichel)) +* fix ordering when more than 10 fields [\#394](https://github.com/marmelab/ng-admin/pull/394) ([ThieryMichel](https://github.com/ThieryMichel)) +* Fix e2e tests [\#391](https://github.com/marmelab/ng-admin/pull/391) ([fzaninotto](https://github.com/fzaninotto)) +* Re-add `listView.exportFields()` to configure export button [\#389](https://github.com/marmelab/ng-admin/pull/389) ([fzaninotto](https://github.com/fzaninotto)) +* Add default admin title [\#388](https://github.com/marmelab/ng-admin/pull/388) ([fzaninotto](https://github.com/fzaninotto)) +* Add missing notifications, make notifications last longer [\#387](https://github.com/marmelab/ng-admin/pull/387) ([fzaninotto](https://github.com/fzaninotto)) +* Export view [\#386](https://github.com/marmelab/ng-admin/pull/386) ([ThieryMichel](https://github.com/ThieryMichel)) +* Refactor View.fields [\#384](https://github.com/marmelab/ng-admin/pull/384) ([ThieryMichel](https://github.com/ThieryMichel)) +* Fix exportfields config [\#381](https://github.com/marmelab/ng-admin/pull/381) ([ThieryMichel](https://github.com/ThieryMichel)) +* Batch actions config [\#380](https://github.com/marmelab/ng-admin/pull/380) ([ThieryMichel](https://github.com/ThieryMichel)) +* Custom menu [\#376](https://github.com/marmelab/ng-admin/pull/376) ([fzaninotto](https://github.com/fzaninotto)) +* Add optional selection column to list [\#374](https://github.com/marmelab/ng-admin/pull/374) ([ThieryMichel](https://github.com/ThieryMichel)) +* WYSIWYG field sanitization enableable [\#370](https://github.com/marmelab/ng-admin/pull/370) ([ihrigb](https://github.com/ihrigb)) +* Allow `referenced_list` to be orderd by configuration [\#367](https://github.com/marmelab/ng-admin/pull/367) ([fzaninotto](https://github.com/fzaninotto)) +* Fix Karma tests [\#361](https://github.com/marmelab/ng-admin/pull/361) ([jpetitcolas](https://github.com/jpetitcolas)) +* Better clean of ng-admin build [\#360](https://github.com/marmelab/ng-admin/pull/360) ([jpetitcolas](https://github.com/jpetitcolas)) +* Add `NumberField.format()`, relying on numeraljs [\#359](https://github.com/marmelab/ng-admin/pull/359) ([fzaninotto](https://github.com/fzaninotto)) +* add an option on maFileField to recover the serverside filename [\#357](https://github.com/marmelab/ng-admin/pull/357) ([alexisjanvier](https://github.com/alexisjanvier)) +* Backward compatibility [\#356](https://github.com/marmelab/ng-admin/pull/356) ([jpetitcolas](https://github.com/jpetitcolas)) +* Change Travis timezone [\#355](https://github.com/marmelab/ng-admin/pull/355) ([jpetitcolas](https://github.com/jpetitcolas)) +* Cleanup after ES6 refactoring [\#354](https://github.com/marmelab/ng-admin/pull/354) ([fzaninotto](https://github.com/fzaninotto)) +* Add a Gitter chat badge to README.md [\#353](https://github.com/marmelab/ng-admin/pull/353) ([gitter-badger](https://github.com/gitter-badger)) +* Number field can now set fractionSize [\#351](https://github.com/marmelab/ng-admin/pull/351) ([fzaninotto](https://github.com/fzaninotto)) +* Allow to display the listView even with missing references [\#349](https://github.com/marmelab/ng-admin/pull/349) ([fzaninotto](https://github.com/fzaninotto)) +* Introducing datetime field [\#348](https://github.com/marmelab/ng-admin/pull/348) ([fzaninotto](https://github.com/fzaninotto)) +* Fix date sent to json_server in blog example [\#347](https://github.com/marmelab/ng-admin/pull/347) ([fzaninotto](https://github.com/fzaninotto)) +* Fix `.editable(false)` on "reference" type field in EditView [\#342](https://github.com/marmelab/ng-admin/pull/342) ([vasiakorobkin](https://github.com/vasiakorobkin)) +* Fix 404 error for fontawesome-webfont on local example server [\#340](https://github.com/marmelab/ng-admin/pull/340) ([vasiakorobkin](https://github.com/vasiakorobkin)) +* Add `` directive [\#339](https://github.com/marmelab/ng-admin/pull/339) ([fzaninotto](https://github.com/fzaninotto)) +* Add missing require parameters [\#336](https://github.com/marmelab/ng-admin/pull/336) ([easel](https://github.com/easel)) +* Fix edit identity (primary key) field [\#334](https://github.com/marmelab/ng-admin/pull/334) ([vasiakorobkin](https://github.com/vasiakorobkin)) +* Start migration to ES6 [\#330](https://github.com/marmelab/ng-admin/pull/330) ([jpetitcolas](https://github.com/jpetitcolas)) +* [BC Break] Specialize Configuration Field Classes [\#327](https://github.com/marmelab/ng-admin/pull/327) ([fzaninotto](https://github.com/fzaninotto)) +* Integrate export-to-csv directive into ng-admin [\#316](https://github.com/marmelab/ng-admin/pull/316) ([ThieryMichel](https://github.com/ThieryMichel)) +* Refactor datagrid pagination [\#298](https://github.com/marmelab/ng-admin/pull/298) ([jpetitcolas](https://github.com/jpetitcolas)) + +v0.6.0 - 25 Feb. 2015 +--------------------- + +* Add documentation about custom types (fzaninotto) +* Add Factory for field Views (fzaninotto) +* Add support for template items in `actions()` and `listActions()` when called with an array parameter (ThieryMichel) +* Add ability to filter references results (jeromemacias) +* Add ability to format Date fields before they are sent (ThieryMichel) +* Fix missing require parameter in NgAdminConfiguration (easel) +* Fix missing dashboard panel title, falling back to entity label (jpetitcolas) +* Add listActions in ReferenceList in editionView (fzaninotto) +* Add Factory methods (`nga.*`) to the configuration API (fzaninotto) +* Add link to dashboard panel views (fzaninotto) +* Add ability to use templates in view description (Xennis) +* Update file field: Remove file field requirement on edition and remove file upload progress bar on end (jeromemacias) +* Fix listActions buttons attributes binding (ThieryMichel) + +v0.5.0 - 2 Feb. 2015 +-------------------- + +* Dashboard panel titles now link to list view (fzaninotto) +* Allow listActions on ReferencedList (fzaninotto) +* Add Custom pages documentation (fzaninotto) +* Filter form now reset page number on submit (jeromemacias) +* Allow isEditLink to disable links on references (fzaninotto) +* Fallback to column for non-editable fields in form (fzaninotto) +* Fix map() being called twice on the listView (fzaninotto) +* Fix Reference identifiers (manuquentin) +* Fix the sorting of ReferencedList fields in the showView (Xennis) +* Cleanup markup to adhere to the sb-admin standard (fzaninotto) +* Add option to define the route on a `isDetailLink` field (Xennis) +* Fix ordering problems in ReferenceFields (fzaninotto) +* Add JSON field (jeromemacias) +* Fixed a typo in README (megazoll) +* Add per-field classes in the markup to allow fine selection in tests (and in CSS) (fzaninotto) +* Allow Embedded datagrids to be limited (fzaninotto) +* Fix datagrid in show view (jeromemacias) +* Allow ListView filters on references (jeromemacias) +* Avoid using filter on ng-repeat (jeromemacias) +* Allow overriding the main layout (fzaninotto) +* Update dashboardView section in the README (Xennis) +* Allows to customize error messages (manuquentin) +* Remove scroll listener on infinite pagination destroy (fzaninotto) +* Move example to example directory (fzaninotto) +* Move filters from filterView to `listView.filters()` (fzaninotto) +* Move `listView.addQuickFilters()` feature to regular filters (fzaninotto) +* Remove notion of "hidden" fields (fzaninotto) +* Strip tags in list wysiwyg fields (jpetitcolas) +* Fix and refactor `dashboardView.disable()` (fzaninotto) +* Improve the complexity and test data of the bundled blog example +* Introduce and document `View.fields()` to allow fields reusability (fzaninotto) +* Don't transit pagination through datagrid (fzaninotto) +* [BC Break] Offload all REST mapping tasks to Restangular (fzaninotto) +* Isolate datagrid-pagination directive & fix direction arrows (manuquentin) +* Fix call to entire API collection for References in show view (manuquentin) +* Use Bootstrap's built-in form-control-static to style text in forms (fzaninotto) +* Update example from README (fzaninotto) +* Add theming support and documentation (fzaninotto) +* Make validation behave the same in creation and edition forms (fzaninotto) +* Tweak filters look and feel (fzaninotto) +* Add example of custom page handling (manuquentin) +* Add doc about API mapping assumptions (manuquentin) +* Introduce `singleAPICall` to reduce the query count on reference fethcing (manuquentin) +* Add filters in the listView (manuquentin) +* Fix null rawEntry mapping bug in Edit form (manuquentin) +* Improve development automation by embedding the demo (fzaninotto) +* Add multi-endpoint support at the entity and view levels (manuquentin) +* Fix home link (manuquentin) +* Add HTTP error handling (manuquentin) +* Isolate directive scope to make them more testable (fzaninotto) +* Improve test automation and bootstrap protractor tests (jeromemacias) +* Add MenuView to customize menu icon and order (fzaninotto) +* Split and rename Repository files into Queries (manuquentin) + +v0.4.0 - 4 Dec 2014 +------------------- + +* Refine graphical user interface +* Streamline configuration API +* Add Configurable buttons for views and rows +* Make view title configurable +* Add a new show view +* Add ready-only view +* Views are now already added by default +* Heavy refactoring for better maintainability + +v0.3.4 - 2 Dec 2014 +------------------- + +* Configuration actions & show views + +v0.3.3 - 23 Nov 2014 +-------------------- + +* Minor improvements + +v0.3.2 - 14 Nov 2014 +-------------------- + +* Fix string validation + +v0.3.1 - 13 Nov 2014 +-------------------- + +* Fix validation issue introduced in 0.3.0 + +v0.3.0 - 13 Nov 2014 +-------------------- + +* Major change in Configuration API: Introducing Views +* Add PasswordField and PasswordColumn +* Fix infinite pagination & entity creation +* Add PasswordField and PasswordColumn +* Add PasswordField and PasswordColumn +* Add PasswordField and PasswordColumn + +v0.2.0 - 26 Sept 2014 +--------------------- + +* Add PasswordField and PasswordColumn +* Add quick filters, wysiwyg & callback field types + +v0.1.0 - 23 Sept 2014 +--------------------- + +* Initial release diff --git a/client/app/ng-admin/LICENSE b/client/app/ng-admin/LICENSE new file mode 100644 index 0000000..332bdb3 --- /dev/null +++ b/client/app/ng-admin/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2014 marmelab + +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/client/app/ng-admin/Makefile b/client/app/ng-admin/Makefile new file mode 100644 index 0000000..1cc484c --- /dev/null +++ b/client/app/ng-admin/Makefile @@ -0,0 +1,35 @@ +.PHONY: build + +install: + npm install + ./node_modules/protractor/bin/webdriver-manager update + +run: examples/blog/build + @cp node_modules/fakerest/dist/FakeRest.min.js examples/blog/build/fakerest.js + @cp node_modules/sinon/pkg/sinon-server-1.14.1.js examples/blog/build/sinon-server.js + @./node_modules/webpack-dev-server/bin/webpack-dev-server.js --colors --devtool cheap-module-inline-source-map --content-base examples/blog --port 8000 + +examples/blog/build: + @mkdir examples/blog/build + +build: + @NODE_ENV=production ./node_modules/webpack/bin/webpack.js -p --optimize-minimize --optimize-occurence-order --optimize-dedupe --progress --devtool source-map + @cp -Rf build examples/blog/ + @echo "Files build/ng-admin.min.css and build/ng-admin.min.js updated (with minification)" + +test: test-unit test-e2e + +test-unit: + @./node_modules/.bin/karma start src/javascripts/test/karma.conf.js --single-run + +test-e2e: prepare-test-e2e + @./node_modules/.bin/protractor src/javascripts/test/protractor.conf.js + +prepare-test-e2e: + @echo "Preparing files for e2e tests" + @NODE_ENV=test ./node_modules/webpack/bin/webpack.js -p --optimize-minimize --optimize-occurence-order --optimize-dedupe + @cp examples/blog/*.js src/javascripts/test/fixtures/examples/blog + @cp examples/blog/*.html src/javascripts/test/fixtures/examples/blog + @sed -i.bak 's|http://localhost:8000/|/|g' src/javascripts/test/fixtures/examples/blog/index.html + @cp node_modules/fakerest/dist/FakeRest.min.js src/javascripts/test/fixtures/examples/blog/build/fakerest.js + @cp node_modules/sinon/pkg/sinon-server-1.14.1.js src/javascripts/test/fixtures/examples/blog/build/sinon-server.js diff --git a/client/app/ng-admin/README.md b/client/app/ng-admin/README.md new file mode 100644 index 0000000..0f1d04a --- /dev/null +++ b/client/app/ng-admin/README.md @@ -0,0 +1,217 @@ +ng-admin [![Build Status](https://travis-ci.org/marmelab/ng-admin.svg?branch=master)](https://travis-ci.org/marmelab/ng-admin) +======== + +[![Join the chat at https://gitter.im/marmelab/ng-admin](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/marmelab/ng-admin?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) + +Plug me to your RESTFul API to get a complete administration interface (datagrid, filters, complex form widgets, multi-model relationships, dashboard) in no time! Beyond simple CRUD, ng-admin lets you build sophisticated GUIs without getting in your way. + +[![Screencast](http://static.marmelab.com/ng-admin-09-video-thumbnail.png)](https://vimeo.com/143909685) + +* [Online demo](http://marmelab.com/ng-admin-demo/) ([source](https://github.com/marmelab/ng-admin-demo)) +* [Documentation](http://ng-admin-book.marmelab.com/) + +## Installation + +The current ng-admin version (master) depends on Angular.js 1.4. If you need compatibility with Angular 1.3, use [ng-admin 0.9](https://github.com/marmelab/ng-admin/releases/tag/v0.9.1). + +Grab ng-admin from your favorite package manager, `npm` or `bower`: + +```sh +npm install ng-admin --save +# or +bower install ng-admin --save +``` + +Add the `ng-admin.min.css` and `ng-admin.min.js` to the HTML, add a `
`, and configure the admin: + +```html + + + + My First Admin + + + +
+ + + + +``` + +## Getting Started + +See the [Getting Started](doc/Getting-started.md) dedicated chapter for a step-by-step tutorial aimed at beginners. + +## Usage Examples + +* You can find a simple configuration in the [blog admin demo](http://ng-admin.marmelab.com/#/dashboard) ([source](examples/blog/config.js)), where the entities are posts, comments, and tags. The remote REST API is simulated in the browser, using [FakeRest](https://github.com/marmelab/FakeRest). +* The [Posters Galore demo](http://marmelab.com/ng-admin-demo/) ([source](https://github.com/marmelab/ng-admin-demo)) is a more complete example of an e-commerce administration, with custom authentication, pages, directives and modules, all well organized via WebPack. The remote REST API is also simulated in the browser, using [FakeRest](https://github.com/marmelab/FakeRest). + +## Configuration Reference + +An administration in ng-admin is made of one *application* containing several *entities*. Each entity has up to 5 *views*, and each view has many *fields*. + +``` +application + |-header + |-menu + |-dashboard + |-entity[] + |-creationView + |-editionView + |-deletionView + |-showView + |-listView + |-field[] + |-name + |-type +``` + +See [Configuration API Reference](doc/Configuration-reference.md) dedicated chapter for more details. + +**Tip**: You won't find the related classes in the ng-admin project. In fact, the admin configuration API exists as a standalone, framework-agnostic library, called [admin-config](https://github.com/marmelab/admin-config). Don't hesitate to browse the source of that library to learn more. + +## Relationships + +Ng-admin supports relationships between entities in read and write views, and provides specialized field types for that: `reference`, `referenced_list`, `reference_many`, and `embedded_list`. The [Relationships Reference chapter](doc/Relationships.md) describes in more details which field type to use for which case. + +Also, the Fields section of the [Configuration API Reference chapter](doc/Configuration-reference.md) has a list of all settings for each of these field types. + +## Menu Configuration + +By default, ng-admin creates a sidebar menu with one entry per entity. If you want to customize this sidebar (labels, icons, order, adding submenus, etc), you have to define menus manually. + +See [Menus Configuration](doc/Menus.md) dedicated chapter. + +## Dashboard Configuration + +The home page of a ng-admin application is called the Dashboard. Use it to show important pieces of information to the end user, such as latest entries, or charts. + +See [Dashboard Configuration](doc/Dashboard.md) dedicated chapter. + +## Customizing the API Mapping + +All HTTP requests made by ng-admin to your REST API are carried out by [Restangular](https://github.com/mgonto/restangular), which is like `$resource` on steroids. + +The REST specification doesn't provide enough detail to cover all requirements of an administration GUI. ng-admin makes some assumptions about how your API is designed. All of these assumptions can be overridden by way of [Restangular's request and response interceptors](https://github.com/mgonto/restangular#addresponseinterceptor). + +That means you don't need to adapt your API to ng-admin; ng-admin can adapt to any REST API, thanks to the flexibility of Restangular. + +See the [Customizing the API Mapping](doc/API-mapping.md) dedicated chapter. + +## Theming + +You can override pretty much all the HTML generated by ng-admin, at different levels. + +See the [Theming](doc/Theming.md) dedicated chapter. + +## Translation + +The ng-admin interface uses English as the default language, but supports switching to another language, thanks to [angular-translate](https://angular-translate.github.io/). + +See the [Translation](doc/Translation.md) dedicated chapter. + +## Adding Custom Pages + +For each entity, ng-admin creates the necessary pages for Creating, Retrieving, Updating, and Deleting (CRUD) this entity. When you need to achieve more specific actions on an entity, you have to add a custom page - for instance a page asking for an email address to send a message to. How can you route to a specific page and display it in the ng-admin layout? + +See the [Adding Custom Pages](doc/Custom-pages.md) dedicated chapter. + +## Adding Custom Types + +When you map a field between a REST API response and ng-admin, you give it a type. This type determines how the data is displayed and edited. It is very easy to customize existing ng-admin types and add new ones. + +See the [Adding Custom Types](doc/Custom-types.md) dedicated chapter. + +## Getting Ready For Production + +To build the ng-admin source with the dependencies you need, and to get hints about performance boosters, head to the [Getting Ready For Production](doc/Production.md) dedicated chapter. + +## News + +Follow the [marmelab blog](http://marmelab.com/blog/) for news about ng-admin (tutorials, plugins, new releases, etc). + +You should also watch the [ng-admin release page on GitHub](https://github.com/marmelab/ng-admin/releases) for announcements on new releases, and complete changelog. + +## Support + +Ng-admin is an open-source project, with a community getting larger every day. You will get help by asking politely in any the following channels: + +* [StackOverflow](http://stackoverflow.com/questions/tagged/ng-admin) +* [Gitter (live chat)](https://gitter.im/marmelab/ng-admin) [![Join the chat at https://gitter.im/marmelab/ng-admin](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/marmelab/ng-admin?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) + +Please give as much context as possible, including and admin configuration snippet, and the response from the API you're mapping. + +## Contributing + +Your feedback about the usage of ng-admin in your specific context is valuable, don't hesitate to [open GitHub Issues](https://github.com/marmelab/ng-admin/issues) for any problem or question you may have. + +All contributions are welcome: please send us a Pull Request for any new feature / bug fix in your fork that you consider worth giving back. + +Also, if you have some experience with ng-admin, please answer questions from newcomers in any of the support channels (see above). + +### Installing Dependencies + +Install npm dependencies (for tests) by calling the `install` target: + +```sh +make install +``` + +### Running the example app + +To test your changes, run the example app, which is bundled with a sample REST api, by calling: + +```sh +make run +``` + +Then, connect to `http://localhost:8000/` to browse the admin app. This task uses webpack-dev-server, which means that the browser will reload the page as soon as one file in the source is updated. This makes the blog app our preferred live testing environment. + +### Testing + +ng-admin has unit tests (powered by karma) and end to end tests (powered by protractor). Launch the entire tests suite by calling: + +```sh +make test +``` + +**Tip:** If you are working on Karma tests, you can prevent from relaunching the whole process by disabling single-run: + +``` +KARMA_SINGLE_RUN=false ./node_modules/.bin/grunt karma:unit +``` + +### Releasing + +Before releasing a new version, concatenate and minify the JS and CSS sources into minified scripts with: + +```sh +make build +git add build +git commit -m 'update built files' +git push origin master +git tag vx.x.x +# publish to bower +git push origin --tags +# publish to npm +npm publish +``` + +**Tip**: Don't commit built files in Pull Requests, it forces rebases on other PRs. The core team will take care of regularily updating these built files. + +## License + +ng-admin is licensed under the [MIT Licence](LICENSE), and sponsored by [marmelab](http://marmelab.com). diff --git a/client/app/ng-admin/SUMMARY.md b/client/app/ng-admin/SUMMARY.md new file mode 100644 index 0000000..16c7c9b --- /dev/null +++ b/client/app/ng-admin/SUMMARY.md @@ -0,0 +1,22 @@ +# Summary + +* [Introduction](README.md) +* [Installation](doc/Installation.md) +* [Getting Started](doc/Getting-started.md) +* [Customizing the API Mapping](doc/API-mapping.md) +* [Usage Example](doc/Usage-example.md) +* [Relationships](doc/Relationships.md) +* [Menu Configuration](doc/Menus.md) +* [Dashboard Configuration](doc/Dashboard.md) +* [Theming](doc/Theming.md) +* [Translation](doc/Translation.md) +* [Adding Custom Pages](doc/Custom-pages.md) +* [Adding Custom Types](doc/Custom-types.md) +* [Configuration Reference](doc/Configuration-reference.md) + * [ngAdminConfigurationProvider](doc/reference/ngAdminConfigurationProvider.md) + * [Application Configuration](doc/reference/Application.md) + * [Entity Configuration](doc/reference/Entity.md) + * [View Configuration](doc/reference/View.md) + * [Field Configuration](doc/reference/Field.md) +* [Getting Ready For Production](doc/Production.md) +* [Frequently Asked Questions](doc/FAQ.md) diff --git a/client/app/ng-admin/UPGRADE-0.3.md b/client/app/ng-admin/UPGRADE-0.3.md new file mode 100644 index 0000000..735176d --- /dev/null +++ b/client/app/ng-admin/UPGRADE-0.3.md @@ -0,0 +1,127 @@ +# Upgrade to 0.3 + +0.3 is a major version, and introduces a few BC breaks. + +## Views + +In order to allow deeper customization, ng-admin 0.3 introduces the concept of "views". An entity can have up to 5 views (`DashboardView`, `ListView`, `CreateView`, `EditView`, `DeleteView`). Each view can have its on set of fields, independently of the other. That way, it's easier to expose some fields in the EditView but not in the ListView, or to use different field types for the CreateView and the EditView. + +The direct consequence is in the configuration: instead of being directly attached to entities, fields are defined on views. For instance, consider the following `tag` entity defined in the old syntax: + +```js +var tag = new Entity('tags') + .label('Tags') + .dashboard(10) + .pagination(function(page, maxPerPage) { + return { + offset: (page - 1) * maxPerPage, + limit: maxPerPage + } + }) + .infinitePagination(true) + .filterQuery(function(query) { + return { + filter: query + }; + }) + .addField(new Field('id') + .order(1) + .label('ID') + .type('number') + .identifier(true) + .edition('read-only') + ).addField(new Field('name') + .order(2) + .label('Name') + .edition('editable') + .validation({ + "required": true, + "maxlength" : 150 + }) + ); +``` + +Now the `Entity` definition should be splitted into views: + +```js + var tag = new Entity('tags') + .label('Tags') + .identifier(new Field('id')) + .addView(new DashboardView('tag-dashboard') + .label('Recent tags') + .order(3) + .limit(10) + .pagination(function(page, maxPerPage) { + return { + offset: (page - 1) * maxPerPage, + limit: maxPerPage + } + }) + .addField(new Field('id').label('ID')) + .addField(new Field('name').label('Name').type('string')) + ) + .addView(new ListView('tags-list') + .title('List of all tags') + .infinitePagination(false) + .pagination(pagination) + .addField(new Field('id').label('ID')) + .addField(new Field('name').label('Name').type('string')) + ) + .addView(new CreateView('tags-create') + .addField(new Field('name') + .label('Name') + .type('string') + .validation({ + "required": true, + "maxlength" : 150 + }) + ) + ) + .addView(new EditView('tags_edit') + .listView('tags-list') + .addField(new Field('name').label('Name') + .type('string') + .validation({ + "required": true, + "maxlength" : 150 + }) + ) + ) + .addView(new DeleteView('tags-delete') + .title('Delete a tag') + ); +``` + +These options have moved to the `DashboardView` & `ListView`: +* `pagination` +* `perPage` +* `infinitePagination` +* `limit` +* `order` +* `sortParams` +* `filterQuery` +* `filterParams` +* `totalItems` +* `headers` +* `quickFilters` + +## Angularjs requirement + +`ng-admin` does not include `angularjs` anymore. + +You must include the angular source before including ng-admin: + +```html + +``` + +## Minor changes + + - `value` is now a function so the value of a field should be retrieved with `views.getField('fieldName').value()` instead of `views.getField('fieldName').value`. + - `callback` field type & method are now called `template`. + - `targetField` of a `ReferencedList` is now called a `targetReferenceField`. + - `targetFields` of a `ReferencedList` & `targetField` for a `ReferenceMany` or a `ReferenceMany` should not be necessary the same field used in the description of the targeted entity. + - `valueTransformer` and `truncateList` are now renamed to `map` + - `label` is now optional; by default, the label of a field is the CamelCase version of the field name + +Check the [example configuration](src/javascripts/config-dist.js) for an overview of the new syntax. diff --git a/client/app/ng-admin/UPGRADE-0.4.md b/client/app/ng-admin/UPGRADE-0.4.md new file mode 100644 index 0000000..6b6181e --- /dev/null +++ b/client/app/ng-admin/UPGRADE-0.4.md @@ -0,0 +1,54 @@ +# Upgrade to 0.4 + +0.4 adds many new features, and deprecates a few APIs. The 0.3 syntax is still supported, but will log a warning urging you to upgrade before we remove these calls in 0.5 + +## New Features : see announcement blog post + +We've described what's new in a [blog post](http://marmelab.com/blog/2014/12/05/ngadmin-04-eating-our-own-dog-food.html), make sure you read it to use the latest features. + +Check the [example configuration](src/javascripts/config-dist.js) for an overview of the updated syntax. + +## Deprecated: `Entity.addView()` + +All views are now added by default. Access a view using one of the view names, and add fields to if the old way. + +```js +// ng-admin 0.3 style +entity.addView(new EditView() + .addField(...) + .addField(...) +); +// replace by the following in 0.4 +entity.editionView() + .addField(...) + .addField(...); +``` + +The available view names are: +* `dashboardView()` +* `listView()` +* `showView()` +* `creationView()` +* `editionView()` +* `deletionView()` + +## Deprecated: `Field.isEditLink()` + +Since a field can be a link to the Edit view or the Show view (for read-only entities), we've renamed `isEditLink()` to `isDetailLink()`: + +```js +entity.addField(new Field('title').isDetailLink(true)); +``` + +## Deprecated: `Entity.addMappedField()` + +A call to `Entity.addMappedField()` was necessary when you referenced a fied in a template that was not directly mapped as a field name. This is not necessary anymore. + +```js +entity.addField(new Field('custom') + .label('Contents') + .type('template') + .template('{{ entry.values.body | trim }}') +); +// no need to declare `body` as a mapped field. +``` diff --git a/client/app/ng-admin/UPGRADE-0.5.md b/client/app/ng-admin/UPGRADE-0.5.md new file mode 100644 index 0000000..4f8feef --- /dev/null +++ b/client/app/ng-admin/UPGRADE-0.5.md @@ -0,0 +1,149 @@ +# Upgrade to 0.5 + +ng-admin v0.5 breaks compatibility with v0.4. You will need to update your configuration to be able to use this new version. + +Breaking compatibility allows us to make ng-admin compatible with much more types of REST APIs. + +## Query parameters were renamed + +The list query parameters were renamed, as follows: + +* `page => _page` +* `per_page => _perPage` +* `_sort => _sortField` +* `_sortDir => _sortDir` (unchanged) + +In addition, filters and quickfilters are not directly appended as query parameters, but as the value of the `_filters` parameter. + +That means that all params added by ng-admin are now prefixed by an underscore, and in camelCase. + +Here is how a typical HTTP call from ng-admin to a backend API looks like: + +http://my.api.backend/posts?_filters=%7B%22created_at%22:%222015-01-13%22%7D&_page=1&_perPage=30&_sortDir=ASC&_sortField=author_id + +You can use Restangular's `addFullRequestInterceptor` to transform these into params that your API can understand (see example below). + +## HTTP query manipulation methods are removed + +To transform parameters on outgoing requests, ng-admin no longer offers any built-in hook. But you have the full power of [Restangular's request interceptors](https://github.com/mgonto/restangular#addrequestinterceptor), which allow you to customize pretty much everything about outgoing requests. +Therefore the following methods are now removed: + +* `view.extraParams(function|Object)` +* `view.headers(function|Object)` +* `view.interceptor(function)` +* `listView.pagination()` +* `listView.sortParams()` +* `listView.filterQuery()` +* `listView.filterParams()` +* `listView.totalItems()` + +Here is an example of using Restangular built-in capabilities in order to manipulate the request before it is sent: + +```js +// replace +var Book = new Entity('books') +Book.listView().pagination(function(page, maxPerPage) { + return { + begin: (page - 1) * maxPerPage, + end: page * maxPerPage + }; +}); +// with +RestangularProvider.addFullRequestInterceptor(function(element, operation, what, url, headers, params, httpConfig) { + if (operation == 'getList' && what == 'books') { + params.begin = (params._page - 1) * params._perPage; + params.end = params._page * params._perPage; + delete params._page; + delete params._perPage; + } + return { params: params }; +}); + +// replace +Book.listView().sortParams(function(field, dir) { + return { + params: { sort: field || 'id', sortDir: dir || 'DESC' }, + headers: {} + }; +}); +// with +RestangularProvider.addFullRequestInterceptor(function(element, operation, what, url, headers, params, httpConfig) { + if (operation == 'getList' && what == 'books') { + params.sort = params._sortField || 'id'; + params.sortDir = params._sortDir || 'DESC'; + delete params._sortField; + delete params._sortDir; + } + return { params: params }; +}); +``` + +The advantage of request interceptors is that they can run on several entities, or on several verbs. + +The same method can be used to add response interceptors. + +## Filters are now off by default + +Up to 0.4, ng-admin included a full-text search input on the list view by default. Now that ng-admin has the ability to define custom filters, the default full-text search has been removed. + +If you need it, it's easy to re-add: + +``` +myEntity.listView() + .filters([ + new Field('q').label('').attributes({ placeholder: 'search' }) + ]); +``` + +The resulting API call will be the same: + +``` +GET http://myapi.com/my_entity?q=foo +``` + +## `listView.addQuickFilter()` has been removed + +Quick Filters are now filters like others. The same feature can be achieved with classical filters. + +```js +// replace +myEntity.listView() + .addQuickFilter('Today', function () { + var now = new Date(), + year = now.getFullYear(), + month = now.getMonth() + 1, + day = now.getDate(); + month = month < 10 ? '0' + month : month; + day = day < 10 ? '0' + day : day; + return { + created_at: [year, month, day].join('-') // ?created_at=... will be appended to the API call + }; + }) +// with +myEntity.listView() + .filters([ + new Field('today').type('boolean').map(function() { + var now = new Date(), + year = now.getFullYear(), + month = now.getMonth() + 1, + day = now.getDate(); + month = month < 10 ? '0' + month : month; + day = day < 10 ? '0' + day : day; + return { + created_at: [year, month, day].join('-') // ?created_at=... will be appended to the API call + }; + }) + ]) +``` + +## `Field.displayed()` has been removed + +`Field.displayed()` wasn't used and has been removed. + +## Reusable directives are now prefixed with 'ma-' + +All directives created by ng-admin have nowe been prefixed with 'ma-'. If you use any of the reusable directives (like ``), you must switch to the prefixed version (like ``). + +## Tons of new features + +In addition to these changes, ng-admin 0.5 comes with a huge list of new features: Theming, filters, fields reusability, API mapping, Menu icons, JSON field, Error message customization... Check the [changelog](CHANGELOG.md) for a complete list of changes. diff --git a/client/app/ng-admin/UPGRADE-0.6.md b/client/app/ng-admin/UPGRADE-0.6.md new file mode 100644 index 0000000..d8a5abb --- /dev/null +++ b/client/app/ng-admin/UPGRADE-0.6.md @@ -0,0 +1,66 @@ +# Upgrade to 0.6 + +ng-admin 0.6 is a backwards-compatible release with 0.5. However, the change in the configuration API ('Factories' below) will become compulsory in 0.7. Update your configurations right away to be sure to be ready when 0.7 comes out! + +## Factories + +The configuration API doesn't allow direct instanciation of entity or fields via `new` anymore. Instead, you have to use the factory functions provided by `NgAdminConfigurationProvider`: + +```js +// replace +app.config(function (NgAdminConfigurationProvider, Application, Entity, Field) { + var admin = new Application('my admin'); + var post = new Entity('posts'); + post.listView().fields([ + new Field('title'), + new Field('published_at').type('date'), + new Field('body').type('wysiwyg') + ]); +} + +// by +app.config(function (NgAdminConfigurationProvider) { + var nga = NgAdminConfigurationProvider; + var admin = nga.application('my admin'); + var post = nga.entity('posts'); + post.listView().fields([ + nga.field('title'), + nga.field('published_at', 'date'), + nga.field('body', 'wysiwyg') + ]); +} +``` + +`nga.field()` takes two parameters (name and type); calling `.type()` on an existing field isn't supported anymore. + +And references are fields, too. Instead of `new Reference()`, `new ReferenceMany()`, and `new ReferencedList()`, use `nga.field(name, type)` with the type `reference`, `reference_many`, and `referenced_list`: + +```js +// replace +post.listView().fields([ + new ReferenceMany('tags') + .targetEntity(tag) // the tag entity is defined later in this file + .targetField(nga.field('name')) +]); +comment.listView().fields([ + new Reference('post_id') + .label('Post') + .targetEntity(post) + .targetField(nga.field('title').map(truncate)) +]) + +// by +post.listView().fields([ + nga.field('tags', 'reference_many') + .targetEntity(tag) // the tag entity is defined later in this file + .targetField(nga.field('name')) +]); +comment.listView().fields([ + nga.field('post_id', 'reference') + .label('Post') + .targetEntity(post) + .targetField(nga.field('title').map(truncate)) +]) +``` + +Usage of the old configuration API (with direct calls to `new Field()`, `new Reference()`, `new ReferenceMany()`, and `new ReferencedList()`) is deprecated. Support for this old syntax will be removed in 0.7. diff --git a/client/app/ng-admin/UPGRADE-0.7.md b/client/app/ng-admin/UPGRADE-0.7.md new file mode 100644 index 0000000..f4e16b8 --- /dev/null +++ b/client/app/ng-admin/UPGRADE-0.7.md @@ -0,0 +1,89 @@ +# Upgrade to 0.7 + +## Field factory + +ng-admin 0.7 breaks compatibility with 0.5 and makes the "factories" configuration API compulsory. If your configuration uses `nga.field()`, it will still work woth 0.7. If it uses `new Field()`, you'll need to follow [the 0.6 upgrade guide](https://github.com/marmelab/ng-admin/blob/b3c7b1afc6a52651df6ba4454d8461620339b4da/UPGRADE-0.6.md). + +## Field type + +The `Field.type(type)` method is no longer supported as a setter. Instead, you should specify the type as the second argument in the `nga.field()` factory. + +``` diff +- nga.field('created_at').type('date') ++ nga.field('created_at', 'date') +``` + +## perPage instead of limit + +Dashboard view `limit()` method has been deprecated. Please use the `perPage` method instead. + +## Internal Routing Pattern Was Changed + +You may have noticed the ng-admin used an internal URL scheme looking like the following: + +``` +#/list/posts/ +#/create/posts/ +#/edit/posts/12 +#/delete/posts/12 +``` + +In 0.7, the internal URL scheme is more natural: + +``` +#/posts/list +#/posts/create +#/posts/edit/12 +#/posts/delete/12 +``` + +If you have set custom directives linking to existing ng-admin internal URLs ("states"), you must update them to use the new syntax. + +## menuView() Is Deprecated + +Prior to 0.7, you would customize the appearance of an entity in the menu sidebar using `entity.menuView()` methods. + +```js +post.menuView() + .order(1) + .icon(''); +``` + +This `menuView()` is deprecated in 0.7. + +By default, the sidebar menu is still built automatically based on the entities added to the application. But to change the menu, you have to manipulate the main `Menu` instance. `Menu` is a new class, with a simple structure, allowing to setup menus and submenus ("child" menus), independently of entities. For instance, you can customize the title and icon of a single menu using the following syntax: + +```js +admin.addEntity(post) +admin.menu().getChildByTitle('Post') + .title('Posts') + .icon(''); +``` + +However, if the default menu doesn't suit you, it is recommended to build the menu from scratch, as follows: + +```js +admin.menu(nga.menu() + .addChild(nga.menu(post)) + .addChild(nga.menu(comment).title('Comments')) + .addChild(nga.menu(tag).icon('')) +); +``` + +Adding menu children by hand is also the only way to determine the menu order. + +The `menuView()` syntax will still be supported in this version, but removed in the next one. + +## Passing Object Literal to `View.fields()` and Using `field.order` Are Deprecated + +Calling `view.fields()` as a getter (with no argument) used to return an object literal ; starting with 0.7, it now returns an array. +Symmetrically, passing an object litteral as argument to the setter methor `view.fields(fields)` is deprecated ; only arrays are now officially supported. + +Additionaly, the `order()` method, which served to order fields passed in object literal form, is also deprecated. + +The proper way to use `fields()` is to pass an array of fields. + +```js +fields([field1, field2]) +fields([field1, [field2, field3]]) +``` diff --git a/client/app/ng-admin/UPGRADE-0.8.md b/client/app/ng-admin/UPGRADE-0.8.md new file mode 100644 index 0000000..042b4ab --- /dev/null +++ b/client/app/ng-admin/UPGRADE-0.8.md @@ -0,0 +1,128 @@ +# Upgrade to 0.8 + +## View and Entity URL customization + +Arguments for the anonymous function of the entity url customisation were changed. + +``` diff +- nga.entity('comments').url(function(view, entityId) { +- return '/comments/' + view.name() + '/' + entityId; ++ nga.entity('comments').url(function(entityName, viewType, identifierValue, identifierName) { ++ return '/comments/' + entityName + '_' + viewType + '/' + identifierValue; +``` + +## Field Identifier + +The `Field.identifier(true)` does not exist anymore. Instead, you must specify the identifier in the associated entity. + +``` diff +- nga.field('id').identifier(true) ++ entity.identifier(nga.field('id')) +``` + +## `dashboardView()` is deprecated, use `admin.dashboard()` instead + +To let developers customize the admin dashboard at will, ng-admin 0.8 decouples the dashboard data and presentation. You can setup the dashboard datasources and template on a new member of the admin class, `dashboard()`: + +```js +admin.dashboard(nga.dashboard() + .addCollection(name, collection) + .addCollection(name, collection) + .addCollection(name, collection) + .template(templateString) +); +``` + +This is the preferred way to customize dashboard panel position, title, and to customize the fields displayed in each panel. Configure a collection just like you would like to configure a `listView`. For instance: + +```js +admin.dashboard(nga.dashboard() + .addCollection('posts', nga.collection(post) + .title('Recent posts') + .perPage(5) // limit the panel to the 5 latest posts + .fields([ + nga.field('title').isDetailLink(true).map(truncate) + ]) + .sortField('id') + .sortOrder('DESC') + .order(1) + ) + .addCollection('comments', nga.collection(comment) + .title('Last comments') + .perPage(5) + .fields([ + nga.field('id'), + nga.field('body', 'wysiwyg').label('Comment').stripTags(true).map(truncate), + nga.field(null, 'template').label('').template('') // you can use custom directives, too + ]) + .order(2) + ) + .addCollection('tags', nga.collection(tag) + .title('Recent tags') + .perPage(10) + .fields([ + nga.field('id'), + nga.field('name'), + nga.field('published', 'boolean').label('Is published ?') + ]) + .order(3) + ) +); +``` + +See the [Dashboard Configuration](doc/Dashboard.md) dedicated chapter for more details. + +Calls to `dashboardView()` are still supported in ng-admin 0.8, but will raise an error in future versions. + +## `field.map()` callbacks no longer apply to POST and PUT queries + +Registering a transformation callback using `field.map()` used to be applied both ways: from the REST response to the Entry object used by ng-admin (in read queries using GET), and from the Entry object to the body of the REST requests (for write queries using POST and PUT). This didn't make sense, and prevented a proper use of this `map()` feature in the edition and creation view. + +Now `map()` only applies to read queries, and a symmetric feature called `transform()` was added to handle the transformation of ng-admin values from forms to REST requests. + +```js +// API +// map() v ^ tranform() +// Entry︎ +// +// The API provides and expects last names in all caps, e.g. 'DOE' +// The admin should display them with capitalized last names, e.g 'Doe' +nga.field('last_name') + .map(function capitalize(value, entry) { + return value.substr(0,1).toUpperCase() + value.substr(1).toLowerCase() + }) + .transform(function allCaps(value, entry) { + // the API expects upper case last names + return value.toUpperCase(); + }); +``` + +## `ReferenceField.filters()` has been renamed to `ReferenceField.permanentFilters()` + +When displaying a reference widget in the edition view, you can filter the list of possible values displayed in the dropdown using the `filters()` function. In 0.8, this function has been renamed to `permanentFilters()`: + +``` diff +nga.entity('comments').fields([ + nga.field('id'), + nga.field('post_id', 'reference') +- .filters({ published: true }) ++ .permanentFilters({ published: true }) +]); +``` + +Just like the previous `filters()` feature, `permanentFilters()` also accepts a function, receiving the string typed by the user in the autocomplete field: + +``` diff +nga.entity('comments').fields([ + nga.field('id'), + nga.field('post_id', 'reference') +- .filters(function(search) { ++ .permanentFilters(function(search) { + return search ? { q: search } : null; + }); +]); +``` + +`filters()` will remain available until the next version, although it logs a deprecation warning in the console. + +**Tip**: `permanentFilters()` now also works on the `listView`, which allows you to define a pre-filtered datagrid. diff --git a/client/app/ng-admin/UPGRADE-0.9.md b/client/app/ng-admin/UPGRADE-0.9.md new file mode 100644 index 0000000..83b2555 --- /dev/null +++ b/client/app/ng-admin/UPGRADE-0.9.md @@ -0,0 +1,26 @@ +# Upgrade to 0.9 + +## All fields have `.template()` + +All field types now support the `template()` method, which makes it easy to customize the look and feel of a particular field, without sacrificing the native features. + +For instance, if you want to customize the appearance of a `NumberField` according to its value: + +```js +listview.fields([ + nga.field('amount', 'number') + .format('$0,000.00') + .template('') +]); +``` + +This removes the need for [custom types](doc/Custom-types.md) in a vast majority of cases. + +The `template` *field type* is deprecated and will be removed in future versions. Simply use the default field type together with the `template()` method instead: + +```js +// before +nga.field('name', 'template').template('{{ entry.values.name }}') +// now +nga.field('name').template('{{ entry.values.name }}') +``` diff --git a/client/app/ng-admin/UPGRADE-1.0.md b/client/app/ng-admin/UPGRADE-1.0.md new file mode 100644 index 0000000..280dd5d --- /dev/null +++ b/client/app/ng-admin/UPGRADE-1.0.md @@ -0,0 +1,41 @@ +# Upgrade to 1.0 + +## Angular 1.4 + +Previous versions of ng-admin relied on Angular 1.3. Version 1.0 bumps the angular version requirement to 1.4. + +You must be careful if you use some additional angular plugins in your code, Angular 1.4 causing some BC Breaks. For example it's the case for [angular-cookies](https://code.angularjs.org/1.4.9/docs/api/ngCookies/service/$cookies). + +## No more `gotoDetails() and `gotoReference()` in column scope + +If you wrote a custom FieldView, you probably based the Link widget on the ones bundled by ng-admin: + +```js +// in MyCustomFieldView.js +export default { + ... + getLinkWidget: () => '' + module.exports.getReadWidget() + '', + ... +}; +``` + +The `gotoDetail()` method is no longer in the execution scope of `maColumn`, the directive which includes the link widget. Instead, it uses the `ui-sref` directive (from ui-router) to make the link visible and right-clickable: + +```js +// in MyCustomFieldView.js +export default { + ... + getLinkWidget: () => '' + module.exports.getReadWidget() + '' + ... +}; +``` + +You should upgrade your existing FieldViewConfigurations to reflect that change. + +## Redirections After Edition / Creation + +After editing an entity, ng-admin now redirects to the previous page (e.g. list view) instead of staying on the edition view. + +Similarly, after creating an entity, ng-admin now redirects to the show view if it's enabled, or to the list view if it's not. + +If you want to reverse to the pre-1.0 behavior, override `CreationView.onSubmitSuccess()` and `EditionView.onSubmitSuccess()` (cf [doc/reference/View](doc/reference/View.md)). diff --git a/client/app/ng-admin/book.json b/client/app/ng-admin/book.json new file mode 100644 index 0000000..4d4be3b --- /dev/null +++ b/client/app/ng-admin/book.json @@ -0,0 +1,18 @@ +{ + "gitbook": "2.4.3", + "plugins": [ + "prism", + "-highlight", + "github", + "edit-link" + ], + "pluginsConfig": { + "edit-link": { + "base": "https://github.com/marmelab/ng-admin/tree/master", + "label": "Edit This Page" + }, + "github": { + "url": "https://github.com/marmelab/ng-admin" + } + } +} \ No newline at end of file diff --git a/client/app/ng-admin/bower.json b/client/app/ng-admin/bower.json new file mode 100644 index 0000000..ff011af --- /dev/null +++ b/client/app/ng-admin/bower.json @@ -0,0 +1,17 @@ +{ + "name": "ng-admin", + "main": [ + "build/ng-admin.min.css", + "build/ng-admin.min.js" + ], + "ignore": [ + "examples", + "src", + ".*", + "Gruntfile.js", + "*.html", + "Makefile", + "*.json", + "UPGRADE-*" + ] +} diff --git a/client/app/ng-admin/build/ng-admin-only.min.css b/client/app/ng-admin/build/ng-admin-only.min.css new file mode 100644 index 0000000..7597315 --- /dev/null +++ b/client/app/ng-admin/build/ng-admin-only.min.css @@ -0,0 +1,6 @@ +/*! + * Start Bootstrap - SB Admin 2 Bootstrap Admin Theme (http://startbootstrap.com) + * Code licensed under the Apache License v2.0. + * For details, see http://www.apache.org/licenses/LICENSE-2.0. + */.grid .label-default,.grid td a.multiple:hover{text-decoration:none}body{background-color:#f8f8f8}#wrapper{width:100%}#page-wrapper{padding:0 15px;min-height:568px;background-color:#fff}@media (min-width:768px){#page-wrapper{position:inherit;margin:0 0 0 250px;padding:0 30px;border-left:1px solid #e7e7e7}}.navbar-top-links{margin-right:0}.navbar-top-links li{display:inline-block}.flot-chart,.navbar-top-links .dropdown-menu li{display:block}.navbar-top-links li:last-child{margin-right:15px}.navbar-top-links li a{padding:15px;min-height:50px}.navbar-top-links .dropdown-menu li:last-child{margin-right:0}.navbar-top-links .dropdown-menu li a{padding:3px 20px;min-height:0}.navbar-top-links .dropdown-menu li a div{white-space:normal}.navbar-top-links .dropdown-alerts,.navbar-top-links .dropdown-messages,.navbar-top-links .dropdown-tasks{width:310px;min-width:0}.navbar-top-links .dropdown-messages{margin-left:5px}.navbar-top-links .dropdown-tasks{margin-left:-59px}.navbar-top-links .dropdown-alerts{margin-left:-123px}.navbar-top-links .dropdown-user{right:0;left:auto}.sidebar .sidebar-nav.navbar-collapse{padding-right:0;padding-left:0}.sidebar .sidebar-search{padding:15px}.sidebar ul li{border-bottom:1px solid #e7e7e7}.sidebar ul li a.active{background-color:#eee}.sidebar .arrow{float:right}.sidebar .fa.arrow:before{content:"\f104"}.sidebar .active>a>.fa.arrow:before{content:"\f107"}.sidebar .nav-second-level li,.sidebar .nav-third-level li{border-bottom:0!important}.sidebar .nav-second-level li a{padding-left:37px}.sidebar .nav-third-level li a{padding-left:52px}@media (min-width:768px){.sidebar{z-index:1;position:absolute;width:250px;margin-top:51px}.navbar-top-links .dropdown-alerts,.navbar-top-links .dropdown-messages,.navbar-top-links .dropdown-tasks{margin-left:auto}}.btn-outline{color:inherit;background-color:transparent;transition:all .5s}.btn-primary.btn-outline{color:#428bca}.btn-success.btn-outline{color:#5cb85c}.btn-info.btn-outline{color:#5bc0de}.btn-warning.btn-outline{color:#f0ad4e}.btn-danger.btn-outline{color:#d9534f}.btn-danger.btn-outline:hover,.btn-info.btn-outline:hover,.btn-primary.btn-outline:hover,.btn-success.btn-outline:hover,.btn-warning.btn-outline:hover{color:#fff}.chat{margin:0;padding:0;list-style:none}.chat li{margin-bottom:10px;padding-bottom:5px;border-bottom:1px dotted #999}.chat li.left .chat-body{margin-left:60px}.chat li.right .chat-body{margin-right:60px}.chat li .chat-body p{margin:0}.chat .glyphicon,.panel .slidedown .glyphicon{margin-right:5px}.chat-panel .panel-body{height:350px;overflow-y:scroll}.login-panel{margin-top:25%}.flot-chart{height:400px}.flot-chart-content{width:100%;height:100%}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_desc_disabled{background:0 0}table.dataTable thead .sorting_asc:after{content:"\f0de";float:right;font-family:fontawesome}table.dataTable thead .sorting_desc:after{content:"\f0dd";float:right;font-family:fontawesome}table.dataTable thead .sorting:after{content:"\f0dc";float:right;font-family:fontawesome;color:rgba(50,50,50,.5)}.btn-circle{width:30px;height:30px;padding:6px 0;border-radius:15px;text-align:center;font-size:12px;line-height:1.428571429}.btn-circle.btn-lg{width:50px;height:50px;padding:10px 16px;border-radius:25px;font-size:18px;line-height:1.33}.btn-circle.btn-xl{width:70px;height:70px;padding:10px 16px;border-radius:35px;font-size:24px;line-height:1.33}.show-grid [class^=col-]{padding-top:10px;padding-bottom:10px;border:1px solid #ddd;background-color:#eee!important}.show-grid{margin:15px 0}.huge{font-size:40px}.panel-green{border-color:#5cb85c}.panel-green .panel-heading{border-color:#5cb85c;color:#fff;background-color:#5cb85c}.panel-green a{color:#5cb85c}.panel-green a:hover{color:#3d8b3d}.panel-red{border-color:#d9534f}.panel-red .panel-heading{border-color:#d9534f;color:#fff;background-color:#d9534f}.panel-red a{color:#d9534f}.panel-red a:hover{color:#b52b27}.panel-yellow{border-color:#f0ad4e}.panel-yellow .panel-heading{border-color:#f0ad4e;color:#fff;background-color:#f0ad4e}.panel-yellow a{color:#f0ad4e}.panel-yellow a:hover{color:#df8a13}#nprogress div.spinner{width:18px;margin-left:-9px;left:50%}#wrapper .navbar-static-top{margin-bottom:0}#wrapper .navbar-static-top .navbar-right{margin-right:15px}pre.ascii{border:none;background:0 0}menu{margin:0;padding:0}ul.collapsible.collapsed{max-height:0;transition:max-height .15s ease-out}ul.collapsible{max-height:500px;transition:max-height .25s ease-in;overflow-y:hidden}[data-ng-click],[ng-click],[x-ng-click]{cursor:pointer}.dashboard-starter{margin-bottom:30px}.dashboard-content .panel table{margin-bottom:0}.dashboard-content .panel-default .panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.dashboard-content .panel-green a,.dashboard-content .panel-red a,.dashboard-content .panel-yellow a{color:#337AB7}.dashboard-content .panel-green a.btn-default,.dashboard-content .panel-red a.btn-default,.dashboard-content .panel-yellow a.btn-default{color:#333}.dashboard-content .panel-green .panel-heading a,.dashboard-content .panel-red .panel-heading a,.dashboard-content .panel-yellow .panel-heading a{color:#fff}.dashboard-content .grid{border:none}.dashboard-invite{margin:3em;padding:1em;text-align:center;background-color:#DFF0D8}.dashboard-invite p{padding:.5em;margin:0}#page-wrapper .page-header{margin:10px 0 15px}#page-wrapper .page-header .lead{margin-bottom:0}ma-view-actions{margin:3px 0 0;float:right}@media (min-width:768px){.list-header .filters .filter .remove_filter{padding-top:8px}}.list-header .filters .datepicker .form-control{border-top-left-radius:0;border-bottom-left-radius:0}.list-header .filters .datepicker .btn-default{height:34px}.list-header .filters .input-reference .form-control{float:none}.list-header .filters .input-reference .form-control .ui-select-match-text,.list-header .filters .input-reference .form-control .ui-select-placeholder{padding-right:20px}.grid{background-color:#fff}.grid .ng-admin-type-float,.grid .ng-admin-type-number{text-align:right;padding-right:1em}.grid .label-default{margin-right:5px;font-weight:400;font-size:12px;padding-top:4px}.grid thead tr .glyphicon{font-size:13px;color:#aaa}div.bottom-loader{margin-top:40px;position:inherit;width:auto;height:auto}div.bottom-loader:after{position:relative;display:inherit;margin:0 auto}div.bottom-loader:before{display:none}.pagination-bar{text-align:right;margin:20px 0}.pagination-bar .pagination{margin:0 0 0 20px}.pagination-bar .total{display:inline-block;padding:5px}.form-horizontal .has-feedback .datepicker .form-control,.form-horizontal .has-feedback .form-control.ui-select-toggle{padding-right:12px}.form-horizontal textarea{height:150px}.form-horizontal input[type=checkbox],.form-horizontal input[type=radio]{max-width:16px;box-shadow:none;cursor:pointer;margin:0}.form-horizontal .border-around{margin-top:2px;background-color:#FFF;background-image:none;border:1px solid #CCC;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;width:100%}.form-horizontal .date_widget{width:10em}@media (max-width:768px){.form-horizontal .date_widget{width:100%}}.form-horizontal .datetime_widget{width:15em}@media (max-width:768px){.form-horizontal .datetime_widget{width:100%}}.form-horizontal .remove_button_container{position:absolute;right:-7em;z-index:2}@media (max-width:992px){.form-horizontal .remove_button_container{position:relative;right:0;display:block;text-align:right}}.form-horizontal .ta-toolbar button{font-size:12px;padding:5px 8px}.form-horizontal .ta-toolbar button.active{z-index:1}.form-horizontal .ng-admin-type-embedded_list .ng-admin-type-boolean ma-choice-field{min-width:12em}.form-horizontal#show-view .label-default{margin-right:5px;font-weight:400;font-size:12px;padding-top:4px}.form-horizontal#show-view .control-label,.form-horizontal#show-view .ng-admin-type-embedded_list .table-condensed>thead>tr>th,.form-horizontal#show-view .ng-admin-type-referenced_list .table-condensed>thead>tr>th{padding-top:0}.form-horizontal#show-view .show-value .table{margin:0}.form-horizontal#show-view .show-value .table td{border-top:0}.form-horizontal .CodeMirror{border:1px solid #CCC;border-radius:4px}.form-horizontal .ui-select-multiple.ui-select-bootstrap input.ui-select-search{height:29px;box-shadow:none;padding:0 6px 2px 10px;margin-bottom:0}.active{background-color:#209e91} +/*# sourceMappingURL=ng-admin-only.min.css.map*/ \ No newline at end of file diff --git a/client/app/ng-admin/build/ng-admin-only.min.css.map b/client/app/ng-admin/build/ng-admin-only.min.css.map new file mode 100644 index 0000000..dbb2eb4 --- /dev/null +++ b/client/app/ng-admin/build/ng-admin-only.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":[],"names":[],"mappings":"","file":"build/ng-admin-only.min.css","sourceRoot":""} \ No newline at end of file diff --git a/client/app/ng-admin/build/ng-admin-only.min.js b/client/app/ng-admin/build/ng-admin-only.min.js new file mode 100644 index 0000000..01c00fe --- /dev/null +++ b/client/app/ng-admin/build/ng-admin-only.min.js @@ -0,0 +1,27657 @@ +! function(e) { + function t(r) { + if (n[r]) return n[r].exports; + var i = n[r] = { + exports: {}, + id: r, + loaded: !1 + }; + return e[r].call(i.exports, i, i.exports, t), i.loaded = !0, i.exports + } + var n = {}; + return t.m = e, t.c = n, t.p = "http://localhost:8000/", t(0) +}([function(e, t, n) { + n(50), e.exports = n(156) +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var o = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + a = n(21), + s = r(a), + l = function() { + function e(t) { + i(this, e), this._name = t || Math.random() + .toString(36) + .substring(7), this._detailLink = "id" === t, this._type = "string", this._order = null, this._label = null, this._maps = [], this._transforms = [], this._attributes = {}, this._cssClasses = null, this._validation = { + required: !1, + minlength: 0, + maxlength: 99999 + }, this._defaultValue = null, this._editable = !0, this._sortable = !0, this._detailLinkRoute = "edit", this._pinned = !1, this._flattenable = !0, this.dashboard = !0, this.list = !0, this._template = function() { + return "" + }, this._templateIncludesLabel = !1 + } + return o(e, [{ + key: "label", + value: function() { + return arguments.length ? (this._label = arguments[0], this) : null === this._label ? s.default.camelCase(this._name) : this._label + } + }, { + key: "type", + value: function() { + return this._type + } + }, { + key: "name", + value: function() { + return arguments.length ? (this._name = arguments[0], this) : this._name + } + }, { + key: "order", + value: function() { + return arguments.length ? (arguments[1] !== !0 && console.warn("Setting order with Field.order is deprecated, order directly in fields array"), this._order = arguments[0], this) : this._order + } + }, { + key: "isDetailLink", + value: function(e) { + return arguments.length ? (this._detailLink = arguments[0], this) : null === this._detailLink ? "id" === this._name : this._detailLink + } + }, { + key: "map", + value: function(e) { + if (!e) return this._maps; + if ("function" != typeof e) { + var t = typeof e; + throw new Error("Map argument should be a function, " + t + " given.") + } + return this._maps.push(e), this + } + }, { + key: "hasMaps", + value: function() { + return !!this._maps.length + } + }, { + key: "getMappedValue", + value: function(e, t) { + for (var n in this._maps) e = this._maps[n](e, t); + return e + } + }, { + key: "transform", + value: function(e) { + if (!e) return this._transforms; + if ("function" != typeof e) { + var t = typeof e; + throw new Error("transform argument should be a function, " + t + " given.") + } + return this._transforms.push(e), this + } + }, { + key: "hasTranforms", + value: function() { + return !!this._transforms.length + } + }, { + key: "getTransformedValue", + value: function(e, t) { + for (var n in this._transforms) e = this._transforms[n](e, t); + return e + } + }, { + key: "attributes", + value: function(e) { + return arguments.length ? (this._attributes = e, this) : this._attributes + } + }, { + key: "cssClasses", + value: function(e) { + return arguments.length ? (this._cssClasses = e, this) : this._cssClasses + } + }, { + key: "getCssClasses", + value: function(e) { + return this._cssClasses ? this._cssClasses.constructor === Array ? this._cssClasses.join(" ") : "function" == typeof this._cssClasses ? this._cssClasses(e) : this._cssClasses : "" + } + }, { + key: "validation", + value: function(e) { + if (!arguments.length) return this._validation; + for (var t in e) e.hasOwnProperty(t) && (null === e[t] ? delete this._validation[t] : this._validation[t] = e[t]); + return this + } + }, { + key: "defaultValue", + value: function(e) { + return arguments.length ? (this._defaultValue = e, this) : this._defaultValue + } + }, { + key: "editable", + value: function(e) { + return arguments.length ? (this._editable = e, this) : this._editable + } + }, { + key: "sortable", + value: function(e) { + return arguments.length ? (this._sortable = e, this) : this._sortable + } + }, { + key: "detailLinkRoute", + value: function(e) { + return arguments.length ? (this._detailLinkRoute = e, this) : this._detailLinkRoute + } + }, { + key: "pinned", + value: function(e) { + return arguments.length ? (this._pinned = e, this) : this._pinned + } + }, { + key: "flattenable", + value: function() { + return this._flattenable + } + }, { + key: "getTemplateValue", + value: function(e) { + return "function" == typeof this._template ? this._template(e) : this._template + } + }, { + key: "getTemplateValueWithLabel", + value: function(e) { + return !!this._templateIncludesLabel && this.getTemplateValue(e) + } + }, { + key: "templateIncludesLabel", + value: function(e) { + return arguments.length ? (this._templateIncludesLabel = e, this) : this._templateIncludesLabel + } + }, { + key: "template", + value: function(e) { + var t = !(arguments.length <= 1 || void 0 === arguments[1]) && arguments[1]; + return arguments.length ? (this._template = e, this._templateIncludesLabel = t, this) : this._template + } + }, { + key: "detailLink", + set: function(e) { + return this._detailLink = e + } + }]), e + }(); + t.default = l, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var i = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + o = n(19), + a = function() { + function e(t, n, i) { + r(this, e), this._entityName = t, this.values = n || {}, this._identifierValue = i, this.listValues = {} + } + return i(e, [{ + key: "transformToRest", + value: function(e) { + var t = (0, o.clone)(this.values); + return e.forEach(function(e) { + var n = e.name(); + n in t && (t[n] = e.getTransformedValue(t[n], t)) + }), (0, o.cloneAndNest)(t) + } + }, { + key: "entityName", + get: function() { + return this._entityName + } + }, { + key: "identifierValue", + get: function() { + return this._identifierValue + } + }], [{ + key: "createForFields", + value: function(t, n) { + var r = new e(n); + return t.forEach(function(e) { + r.values[e.name()] = e.defaultValue() + }), r + } + }, { + key: "createFromRest", + value: function(t) { + var n = arguments.length <= 1 || void 0 === arguments[1] ? [] : arguments[1], + r = arguments.length <= 2 || void 0 === arguments[2] ? "" : arguments[2], + i = arguments.length <= 3 || void 0 === arguments[3] ? "id" : arguments[3]; + if (!t || 0 == Object.keys(t) + .length) return e.createForFields(n, r); + var a = n.filter(function(e) { + return !e.flattenable() + }) + .map(function(e) { + return e.name() + }), + s = (0, o.cloneAndFlatten)(t, a); + return n.forEach(function(e) { + var t = e.name(); + s[t] = e.getMappedValue(s[t], s) + }), new e(r, s, s[i]) + } + }, { + key: "createArrayFromRest", + value: function(t, n, r, i) { + return t.map(function(t) { + return e.createFromRest(t, n, r, i) + }) + } + }]), e + }(); + t.default = a, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var o = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + a = n(2), + s = r(a), + l = n(10), + u = r(l), + c = (n(19), function() { + function e(t) { + i(this, e), this.entity = null, this._actions = null, this._title = !1, this._description = "", this._template = null, this._enabled = !1, this._fields = [], this._type = null, this._name = t, this._order = 0, this._errorMessage = null, this._url = null, this._prepare = null + } + return o(e, [{ + key: "title", + value: function(e) { + return arguments.length ? (this._title = e, this) : this._title + } + }, { + key: "description", + value: function() { + return arguments.length ? (this._description = arguments[0], this) : this._description + } + }, { + key: "name", + value: function(e) { + return arguments.length ? (this._name = e, this) : this._name || this.entity.name() + "_" + this._type + } + }, { + key: "disable", + value: function() { + return this._enabled = !1, this + } + }, { + key: "enable", + value: function() { + return this._enabled = !0, this + } + }, { + key: "isEnabled", + value: function() { + return this.enabled + } + }, { + key: "getEntity", + value: function() { + return this.entity + } + }, { + key: "setEntity", + value: function(e) { + return this.entity = e, this._name || (this._name = e.name() + "_" + this._type), this + } + }, { + key: "fields", + value: function() { + return arguments.length ? ([].slice.call(arguments) + .map(function(t) { + var n = this; + e.flatten(t) + .map(function(e) { + return n.addField(e) + }) + }, this), this) : this._fields + } + }, { + key: "hasFields", + value: function() { + return this.fields.length > 0 + } + }, { + key: "removeFields", + value: function() { + return this._fields = [], this + } + }, { + key: "getFields", + value: function() { + return this._fields + } + }, { + key: "getField", + value: function(e) { + return this._fields.filter(function(t) { + return t.name() === e + })[0] + } + }, { + key: "getFieldsOfType", + value: function(e) { + return this._fields.filter(function(t) { + return t.type() === e + }) + } + }, { + key: "addField", + value: function(e) { + return null === e.order() && e.order(this._fields.length, !0), this._fields.push(e), this._fields = this._fields.sort(function(e, t) { + return e.order() - t.order() + }), this + } + }, { + key: "order", + value: function(e) { + return arguments.length ? (this._order = e, this) : this._order + } + }, { + key: "getReferences", + value: function(e) { + return u.default.getReferences(this._fields, e) + } + }, { + key: "getNonOptimizedReferences", + value: function(e) { + return u.default.getNonOptimizedReferences(this._fields, e) + } + }, { + key: "getOptimizedReferences", + value: function(e) { + return u.default.getOptimizedReferences(this._fields, e) + } + }, { + key: "getReferencedLists", + value: function() { + return u.default.getReferencedLists(this._fields) + } + }, { + key: "template", + value: function(e) { + return arguments.length ? (this._template = e, this) : this._template + } + }, { + key: "identifier", + value: function() { + return this.entity.identifier() + } + }, { + key: "actions", + value: function(e) { + return arguments.length ? (this._actions = e, this) : this._actions + } + }, { + key: "getErrorMessage", + value: function(e) { + return "function" == typeof this._errorMessage ? this._errorMessage(e) : this._errorMessage + } + }, { + key: "errorMessage", + value: function(e) { + return arguments.length ? (this._errorMessage = e, this) : this._errorMessage + } + }, { + key: "url", + value: function(e) { + return arguments.length ? (this._url = e, this) : this._url + } + }, { + key: "getUrl", + value: function(e) { + return "function" == typeof this._url ? this._url(e) : this._url + } + }, { + key: "validate", + value: function(e) { + this._fields.map(function(t) { + var n = t.validation(); + "function" == typeof n.validator && n.validator(e.values[t.name()], e.values) + }) + } + }, { + key: "mapEntry", + value: function(e) { + return s.default.createFromRest(e, this._fields, this.entity.name(), this.entity.identifier() + .name()) + } + }, { + key: "mapEntries", + value: function(e) { + return s.default.createArrayFromRest(e, this._fields, this.entity.name(), this.entity.identifier() + .name()) + } + }, { + key: "transformEntry", + value: function(e) { + return e.transformToRest(this._fields) + } + }, { + key: "prepare", + value: function(e) { + return arguments.length ? (this._prepare = e, this) : this._prepare + } + }, { + key: "doPrepare", + value: function() { + return this._prepare.apply(this, arguments) + } + }, { + key: "enabled", + get: function() { + return this._enabled || !!this._fields.length + } + }, { + key: "type", + get: function() { + return this._type + } + }], [{ + key: "flatten", + value: function(t) { + if ("Object" === t.constructor.name) { + console.warn("Passing literal of Field to fields method is deprecated use array instead"); + var n = []; + for (var r in t) n = n.concat(e.flatten(t[r])); + return n + } + return Array.isArray(t) ? t.reduce(function(t, n) { + return t.concat(e.flatten(n)) + }, []) : [t] + } + }]), e + }()); + t.default = c, e.exports = t.default +}, function(e, t, n) { + ! function(t, n) { + e.exports = n() + }(this, function() { + "use strict"; + + function e(e) { + return new RegExp("(^|\\s)" + e + "(?:$|\\s)\\s*") + } + + function t(e) { + for (var t = e.childNodes.length; t > 0; --t) e.removeChild(e.firstChild); + return e + } + + function n(e, n) { + return t(e) + .appendChild(n) + } + + function r(e, t, n, r) { + var i = document.createElement(e); + if (n && (i.className = n), r && (i.style.cssText = r), "string" == typeof t) i.appendChild(document.createTextNode(t)); + else if (t) + for (var o = 0; o < t.length; ++o) i.appendChild(t[o]); + return i + } + + function i(e, t, n, i) { + var o = r(e, t, n, i); + return o.setAttribute("role", "presentation"), o + } + + function o(e, t) { + if (3 == t.nodeType && (t = t.parentNode), e.contains) return e.contains(t); + do + if (11 == t.nodeType && (t = t.host), t == e) return !0; while (t = t.parentNode) + } + + function a() { + var e; + try { + e = document.activeElement + } catch (t) { + e = document.body || null + } + for (; e && e.shadowRoot && e.shadowRoot.activeElement;) e = e.shadowRoot.activeElement; + return e + } + + function s(t, n) { + var r = t.className; + e(n) + .test(r) || (t.className += (r ? " " : "") + n) + } + + function l(t, n) { + for (var r = t.split(" "), i = 0; i < r.length; i++) r[i] && !e(r[i]) + .test(n) && (n += " " + r[i]); + return n + } + + function u(e) { + var t = Array.prototype.slice.call(arguments, 1); + return function() { + return e.apply(null, t) + } + } + + function c(e, t, n) { + t || (t = {}); + for (var r in e) !e.hasOwnProperty(r) || n === !1 && t.hasOwnProperty(r) || (t[r] = e[r]); + return t + } + + function f(e, t, n, r, i) { + null == t && (t = e.search(/[^\s\u00a0]/), t == -1 && (t = e.length)); + for (var o = r || 0, a = i || 0;;) { + var s = e.indexOf("\t", o); + if (s < 0 || s >= t) return a + (t - o); + a += s - o, a += n - a % n, o = s + 1 + } + } + + function d(e, t) { + for (var n = 0; n < e.length; ++n) + if (e[n] == t) return n; + return -1 + } + + function h(e, t, n) { + for (var r = 0, i = 0;;) { + var o = e.indexOf("\t", r); + o == -1 && (o = e.length); + var a = o - r; + if (o == e.length || i + a >= t) return r + Math.min(a, t - i); + if (i += o - r, i += n - i % n, r = o + 1, i >= t) return r + } + } + + function p(e) { + for (; Oa.length <= e;) Oa.push(v(Oa) + " "); + return Oa[e] + } + + function v(e) { + return e[e.length - 1] + } + + function m(e, t) { + for (var n = [], r = 0; r < e.length; r++) n[r] = t(e[r], r); + return n + } + + function g(e, t, n) { + for (var r = 0, i = n(t); r < e.length && n(e[r]) <= i;) r++; + e.splice(r, 0, t) + } + + function y() {} + + function b(e, t) { + var n; + return Object.create ? n = Object.create(e) : (y.prototype = e, n = new y), t && c(t, n), n + } + + function $(e) { + return /\w/.test(e) || e > "€" && (e.toUpperCase() != e.toLowerCase() || Ma.test(e)) + } + + function w(e, t) { + return t ? !!(t.source.indexOf("\\w") > -1 && $(e)) || t.test(e) : $(e) + } + + function x(e) { + for (var t in e) + if (e.hasOwnProperty(t) && e[t]) return !1; + return !0 + } + + function _(e) { + return e.charCodeAt(0) >= 768 && Ta.test(e) + } + + function C(e, t, n) { + for (; + (n < 0 ? t > 0 : t < e.length) && _(e.charAt(t));) t += n; + return t + } + + function k(e, t, n) { + for (;;) { + if (Math.abs(t - n) <= 1) return e(t) ? t : n; + var r = Math.floor((t + n) / 2); + e(r) ? n = r : t = r + } + } + + function E(e, t, n) { + var o = this; + this.input = n, o.scrollbarFiller = r("div", null, "CodeMirror-scrollbar-filler"), o.scrollbarFiller.setAttribute("cm-not-content", "true"), o.gutterFiller = r("div", null, "CodeMirror-gutter-filler"), o.gutterFiller.setAttribute("cm-not-content", "true"), o.lineDiv = i("div", null, "CodeMirror-code"), o.selectionDiv = r("div", null, null, "position: relative; z-index: 1"), o.cursorDiv = r("div", null, "CodeMirror-cursors"), o.measure = r("div", null, "CodeMirror-measure"), o.lineMeasure = r("div", null, "CodeMirror-measure"), o.lineSpace = i("div", [o.measure, o.lineMeasure, o.selectionDiv, o.cursorDiv, o.lineDiv], null, "position: relative; outline: none"); + var a = i("div", [o.lineSpace], "CodeMirror-lines"); + o.mover = r("div", [a], null, "position: relative"), o.sizer = r("div", [o.mover], "CodeMirror-sizer"), o.sizerWidth = null, o.heightForcer = r("div", null, null, "position: absolute; height: " + _a + "px; width: 1px;"), o.gutters = r("div", null, "CodeMirror-gutters"), o.lineGutter = null, o.scroller = r("div", [o.sizer, o.heightForcer, o.gutters], "CodeMirror-scroll"), o.scroller.setAttribute("tabIndex", "-1"), o.wrapper = r("div", [o.scrollbarFiller, o.gutterFiller, o.scroller], "CodeMirror"), Zo && ea < 8 && (o.gutters.style.zIndex = -1, o.scroller.style.paddingRight = 0), ta || Yo && ca || (o.scroller.draggable = !0), e && (e.appendChild ? e.appendChild(o.wrapper) : e(o.wrapper)), o.viewFrom = o.viewTo = t.first, o.reportedViewFrom = o.reportedViewTo = t.first, o.view = [], o.renderedView = null, o.externalMeasured = null, o.viewOffset = 0, o.lastWrapHeight = o.lastWrapWidth = 0, o.updateLineNumbers = null, o.nativeBarWidth = o.barHeight = o.barWidth = 0, o.scrollbarsClipped = !1, o.lineNumWidth = o.lineNumInnerWidth = o.lineNumChars = null, o.alignWidgets = !1, o.cachedCharWidth = o.cachedTextHeight = o.cachedPaddingH = null, o.maxLine = null, o.maxLineLength = 0, o.maxLineChanged = !1, o.wheelDX = o.wheelDY = o.wheelStartX = o.wheelStartY = null, o.shift = !1, o.selForContextMenu = null, o.activeTouch = null, n.init(o) + } + + function S(e, t) { + if (t -= e.first, t < 0 || t >= e.size) throw new Error("There is no line " + (t + e.first) + " in the document."); + for (var n = e; !n.lines;) + for (var r = 0;; ++r) { + var i = n.children[r], + o = i.chunkSize(); + if (t < o) { + n = i; + break + } + t -= o + } + return n.lines[t] + } + + function O(e, t, n) { + var r = [], + i = t.line; + return e.iter(t.line, n.line + 1, function(e) { + var o = e.text; + i == n.line && (o = o.slice(0, n.ch)), i == t.line && (o = o.slice(t.ch)), r.push(o), ++i + }), r + } + + function M(e, t, n) { + var r = []; + return e.iter(t, n, function(e) { + r.push(e.text) + }), r + } + + function T(e, t) { + var n = t - e.height; + if (n) + for (var r = e; r; r = r.parent) r.height += n + } + + function P(e) { + if (null == e.parent) return null; + for (var t = e.parent, n = d(t.lines, e), r = t.parent; r; t = r, r = r.parent) + for (var i = 0; r.children[i] != t; ++i) n += r.children[i].chunkSize(); + return n + t.first + } + + function A(e, t) { + var n = e.first; + e: do { + for (var r = 0; r < e.children.length; ++r) { + var i = e.children[r], + o = i.height; + if (t < o) { + e = i; + continue e + } + t -= o, n += i.chunkSize() + } + return n + } while (!e.lines); + for (var a = 0; a < e.lines.length; ++a) { + var s = e.lines[a], + l = s.height; + if (t < l) break; + t -= l + } + return n + a + } + + function j(e, t) { + return t >= e.first && t < e.first + e.size + } + + function F(e, t) { + return String(e.lineNumberFormatter(t + e.firstLineNumber)) + } + + function L(e, t, n) { + return void 0 === n && (n = null), this instanceof L ? (this.line = e, this.ch = t, void(this.sticky = n)) : new L(e, t, n) + } + + function R(e, t) { + return e.line - t.line || e.ch - t.ch + } + + function D(e, t) { + return e.sticky == t.sticky && 0 == R(e, t) + } + + function N(e) { + return L(e.line, e.ch) + } + + function I(e, t) { + return R(e, t) < 0 ? t : e + } + + function V(e, t) { + return R(e, t) < 0 ? e : t + } + + function W(e, t) { + return Math.max(e.first, Math.min(t, e.first + e.size - 1)) + } + + function H(e, t) { + if (t.line < e.first) return L(e.first, 0); + var n = e.first + e.size - 1; + return t.line > n ? L(n, S(e, n) + .text.length) : U(t, S(e, t.line) + .text.length) + } + + function U(e, t) { + var n = e.ch; + return null == n || n > t ? L(e.line, t) : n < 0 ? L(e.line, 0) : e + } + + function z(e, t) { + for (var n = [], r = 0; r < t.length; r++) n[r] = H(e, t[r]); + return n + } + + function q() { + Pa = !0 + } + + function B() { + Aa = !0 + } + + function G(e, t, n) { + this.marker = e, this.from = t, this.to = n + } + + function K(e, t) { + if (e) + for (var n = 0; n < e.length; ++n) { + var r = e[n]; + if (r.marker == t) return r + } + } + + function Y(e, t) { + for (var n, r = 0; r < e.length; ++r) e[r] != t && (n || (n = [])) + .push(e[r]); + return n + } + + function Q(e, t) { + e.markedSpans = e.markedSpans ? e.markedSpans.concat([t]) : [t], t.marker.attachLine(e) + } + + function J(e, t, n) { + var r; + if (e) + for (var i = 0; i < e.length; ++i) { + var o = e[i], + a = o.marker, + s = null == o.from || (a.inclusiveLeft ? o.from <= t : o.from < t); + if (s || o.from == t && "bookmark" == a.type && (!n || !o.marker.insertLeft)) { + var l = null == o.to || (a.inclusiveRight ? o.to >= t : o.to > t); + (r || (r = [])) + .push(new G(a, o.from, l ? null : o.to)) + } + } + return r + } + + function X(e, t, n) { + var r; + if (e) + for (var i = 0; i < e.length; ++i) { + var o = e[i], + a = o.marker, + s = null == o.to || (a.inclusiveRight ? o.to >= t : o.to > t); + if (s || o.from == t && "bookmark" == a.type && (!n || o.marker.insertLeft)) { + var l = null == o.from || (a.inclusiveLeft ? o.from <= t : o.from < t); + (r || (r = [])) + .push(new G(a, l ? null : o.from - t, null == o.to ? null : o.to - t)) + } + } + return r + } + + function Z(e, t) { + if (t.full) return null; + var n = j(e, t.from.line) && S(e, t.from.line) + .markedSpans, + r = j(e, t.to.line) && S(e, t.to.line) + .markedSpans; + if (!n && !r) return null; + var i = t.from.ch, + o = t.to.ch, + a = 0 == R(t.from, t.to), + s = J(n, i, a), + l = X(r, o, a), + u = 1 == t.text.length, + c = v(t.text) + .length + (u ? i : 0); + if (s) + for (var f = 0; f < s.length; ++f) { + var d = s[f]; + if (null == d.to) { + var h = K(l, d.marker); + h ? u && (d.to = null == h.to ? null : h.to + c) : d.to = i + } + } + if (l) + for (var p = 0; p < l.length; ++p) { + var m = l[p]; + if (null != m.to && (m.to += c), null == m.from) { + var g = K(s, m.marker); + g || (m.from = c, u && (s || (s = [])) + .push(m)) + } else m.from += c, u && (s || (s = [])) + .push(m) + } + s && (s = ee(s)), l && l != s && (l = ee(l)); + var y = [s]; + if (!u) { + var b, $ = t.text.length - 2; + if ($ > 0 && s) + for (var w = 0; w < s.length; ++w) null == s[w].to && (b || (b = [])) + .push(new G(s[w].marker, null, null)); + for (var x = 0; x < $; ++x) y.push(b); + y.push(l) + } + return y + } + + function ee(e) { + for (var t = 0; t < e.length; ++t) { + var n = e[t]; + null != n.from && n.from == n.to && n.marker.clearWhenEmpty !== !1 && e.splice(t--, 1) + } + return e.length ? e : null + } + + function te(e, t, n) { + var r = null; + if (e.iter(t.line, n.line + 1, function(e) { + if (e.markedSpans) + for (var t = 0; t < e.markedSpans.length; ++t) { + var n = e.markedSpans[t].marker; + !n.readOnly || r && d(r, n) != -1 || (r || (r = [])) + .push(n) + } + }), !r) return null; + for (var i = [{ + from: t, + to: n + }], o = 0; o < r.length; ++o) + for (var a = r[o], s = a.find(0), l = 0; l < i.length; ++l) { + var u = i[l]; + if (!(R(u.to, s.from) < 0 || R(u.from, s.to) > 0)) { + var c = [l, 1], + f = R(u.from, s.from), + h = R(u.to, s.to); + (f < 0 || !a.inclusiveLeft && !f) && c.push({ + from: u.from, + to: s.from + }), (h > 0 || !a.inclusiveRight && !h) && c.push({ + from: s.to, + to: u.to + }), i.splice.apply(i, c), l += c.length - 3 + } + } + return i + } + + function ne(e) { + var t = e.markedSpans; + if (t) { + for (var n = 0; n < t.length; ++n) t[n].marker.detachLine(e); + e.markedSpans = null + } + } + + function re(e, t) { + if (t) { + for (var n = 0; n < t.length; ++n) t[n].marker.attachLine(e); + e.markedSpans = t + } + } + + function ie(e) { + return e.inclusiveLeft ? -1 : 0 + } + + function oe(e) { + return e.inclusiveRight ? 1 : 0 + } + + function ae(e, t) { + var n = e.lines.length - t.lines.length; + if (0 != n) return n; + var r = e.find(), + i = t.find(), + o = R(r.from, i.from) || ie(e) - ie(t); + if (o) return -o; + var a = R(r.to, i.to) || oe(e) - oe(t); + return a ? a : t.id - e.id + } + + function se(e, t) { + var n, r = Aa && e.markedSpans; + if (r) + for (var i = void 0, o = 0; o < r.length; ++o) i = r[o], i.marker.collapsed && null == (t ? i.from : i.to) && (!n || ae(n, i.marker) < 0) && (n = i.marker); + return n + } + + function le(e) { + return se(e, !0) + } + + function ue(e) { + return se(e, !1) + } + + function ce(e, t, n, r, i) { + var o = S(e, t), + a = Aa && o.markedSpans; + if (a) + for (var s = 0; s < a.length; ++s) { + var l = a[s]; + if (l.marker.collapsed) { + var u = l.marker.find(0), + c = R(u.from, n) || ie(l.marker) - ie(i), + f = R(u.to, r) || oe(l.marker) - oe(i); + if (!(c >= 0 && f <= 0 || c <= 0 && f >= 0) && (c <= 0 && (l.marker.inclusiveRight && i.inclusiveLeft ? R(u.to, n) >= 0 : R(u.to, n) > 0) || c >= 0 && (l.marker.inclusiveRight && i.inclusiveLeft ? R(u.from, r) <= 0 : R(u.from, r) < 0))) return !0 + } + } + } + + function fe(e) { + for (var t; t = le(e);) e = t.find(-1, !0) + .line; + return e + } + + function de(e) { + for (var t; t = ue(e);) e = t.find(1, !0) + .line; + return e + } + + function he(e) { + for (var t, n; t = ue(e);) e = t.find(1, !0) + .line, (n || (n = [])) + .push(e); + return n + } + + function pe(e, t) { + var n = S(e, t), + r = fe(n); + return n == r ? t : P(r) + } + + function ve(e, t) { + if (t > e.lastLine()) return t; + var n, r = S(e, t); + if (!me(e, r)) return t; + for (; n = ue(r);) r = n.find(1, !0) + .line; + return P(r) + 1 + } + + function me(e, t) { + var n = Aa && t.markedSpans; + if (n) + for (var r = void 0, i = 0; i < n.length; ++i) + if (r = n[i], r.marker.collapsed) { + if (null == r.from) return !0; + if (!r.marker.widgetNode && 0 == r.from && r.marker.inclusiveLeft && ge(e, t, r)) return !0 + } + } + + function ge(e, t, n) { + if (null == n.to) { + var r = n.marker.find(1, !0); + return ge(e, r.line, K(r.line.markedSpans, n.marker)) + } + if (n.marker.inclusiveRight && n.to == t.text.length) return !0; + for (var i = void 0, o = 0; o < t.markedSpans.length; ++o) + if (i = t.markedSpans[o], i.marker.collapsed && !i.marker.widgetNode && i.from == n.to && (null == i.to || i.to != n.from) && (i.marker.inclusiveLeft || n.marker.inclusiveRight) && ge(e, t, i)) return !0 + } + + function ye(e) { + e = fe(e); + for (var t = 0, n = e.parent, r = 0; r < n.lines.length; ++r) { + var i = n.lines[r]; + if (i == e) break; + t += i.height + } + for (var o = n.parent; o; n = o, o = n.parent) + for (var a = 0; a < o.children.length; ++a) { + var s = o.children[a]; + if (s == n) break; + t += s.height + } + return t + } + + function be(e) { + if (0 == e.height) return 0; + for (var t, n = e.text.length, r = e; t = le(r);) { + var i = t.find(0, !0); + r = i.from.line, n += i.from.ch - i.to.ch + } + for (r = e; t = ue(r);) { + var o = t.find(0, !0); + n -= r.text.length - o.from.ch, r = o.to.line, n += r.text.length - o.to.ch + } + return n + } + + function $e(e) { + var t = e.display, + n = e.doc; + t.maxLine = S(n, n.first), t.maxLineLength = be(t.maxLine), t.maxLineChanged = !0, n.iter(function(e) { + var n = be(e); + n > t.maxLineLength && (t.maxLineLength = n, t.maxLine = e) + }) + } + + function we(e, t, n, r) { + if (!e) return r(t, n, "ltr"); + for (var i = !1, o = 0; o < e.length; ++o) { + var a = e[o]; + (a.from < n && a.to > t || t == n && a.to == t) && (r(Math.max(a.from, t), Math.min(a.to, n), 1 == a.level ? "rtl" : "ltr"), i = !0) + } + i || r(t, n, "ltr") + } + + function xe(e, t, n) { + var r; + ja = null; + for (var i = 0; i < e.length; ++i) { + var o = e[i]; + if (o.from < t && o.to > t) return i; + o.to == t && (o.from != o.to && "before" == n ? r = i : ja = i), o.from == t && (o.from != o.to && "before" != n ? r = i : ja = i) + } + return null != r ? r : ja + } + + function _e(e, t) { + var n = e.order; + return null == n && (n = e.order = Fa(e.text, t)), n + } + + function Ce(e, t, n) { + var r = C(e.text, t + n, n); + return r < 0 || r > e.text.length ? null : r + } + + function ke(e, t, n) { + var r = Ce(e, t.ch, n); + return null == r ? null : new L(t.line, r, n < 0 ? "after" : "before") + } + + function Ee(e, t, n, r, i) { + if (e) { + var o = _e(n, t.doc.direction); + if (o) { + var a, s = i < 0 ? v(o) : o[0], + l = i < 0 == (1 == s.level), + u = l ? "after" : "before"; + if (s.level > 0) { + var c = Qt(t, n); + a = i < 0 ? n.text.length - 1 : 0; + var f = Jt(t, c, a) + .top; + a = k(function(e) { + return Jt(t, c, e) + .top == f + }, i < 0 == (1 == s.level) ? s.from : s.to - 1, a), "before" == u && (a = Ce(n, a, 1, !0)) + } else a = i < 0 ? s.to : s.from; + return new L(r, a, u) + } + } + return new L(r, i < 0 ? n.text.length : 0, i < 0 ? "before" : "after") + } + + function Se(e, t, n, r) { + var i = _e(t, e.doc.direction); + if (!i) return ke(t, n, r); + n.ch >= t.text.length ? (n.ch = t.text.length, n.sticky = "before") : n.ch <= 0 && (n.ch = 0, n.sticky = "after"); + var o = xe(i, n.ch, n.sticky), + a = i[o]; + if ("ltr" == e.doc.direction && a.level % 2 == 0 && (r > 0 ? a.to > n.ch : a.from < n.ch)) return ke(t, n, r); + var s, l = function(e, n) { + return Ce(t, e instanceof L ? e.ch : e, n) + }, + u = function(n) { + return e.options.lineWrapping ? (s = s || Qt(e, t), mn(e, t, s, n)) : { + begin: 0, + end: t.text.length + } + }, + c = u("before" == n.sticky ? l(n, -1) : n.ch); + if ("rtl" == e.doc.direction || 1 == a.level) { + var f = 1 == a.level == r < 0, + d = l(n, f ? 1 : -1); + if (null != d && (f ? d <= a.to && d <= c.end : d >= a.from && d >= c.begin)) { + var h = f ? "before" : "after"; + return new L(n.line, d, h) + } + } + var p = function(e, t, r) { + for (var o = function(e, t) { + return t ? new L(n.line, l(e, 1), "before") : new L(n.line, e, "after") + }; e >= 0 && e < i.length; e += t) { + var a = i[e], + s = t > 0 == (1 != a.level), + u = s ? r.begin : l(r.end, -1); + if (a.from <= u && u < a.to) return o(u, s); + if (u = s ? a.from : l(a.to, -1), r.begin <= u && u < r.end) return o(u, s) + } + }, + v = p(o + r, r, c); + if (v) return v; + var m = r > 0 ? c.end : l(c.begin, -1); + return null == m || r > 0 && m == t.text.length || !(v = p(r > 0 ? 0 : i.length - 1, r, u(m))) ? null : v + } + + function Oe(e, t) { + return e._handlers && e._handlers[t] || La + } + + function Me(e, t, n) { + if (e.removeEventListener) e.removeEventListener(t, n, !1); + else if (e.detachEvent) e.detachEvent("on" + t, n); + else { + var r = e._handlers, + i = r && r[t]; + if (i) { + var o = d(i, n); + o > -1 && (r[t] = i.slice(0, o) + .concat(i.slice(o + 1))) + } + } + } + + function Te(e, t) { + var n = Oe(e, t); + if (n.length) + for (var r = Array.prototype.slice.call(arguments, 2), i = 0; i < n.length; ++i) n[i].apply(null, r) + } + + function Pe(e, t, n) { + return "string" == typeof t && (t = { + type: t, + preventDefault: function() { + this.defaultPrevented = !0 + } + }), Te(e, n || t.type, e, t), De(t) || t.codemirrorIgnore + } + + function Ae(e) { + var t = e._handlers && e._handlers.cursorActivity; + if (t) + for (var n = e.curOp.cursorActivityHandlers || (e.curOp.cursorActivityHandlers = []), r = 0; r < t.length; ++r) d(n, t[r]) == -1 && n.push(t[r]) + } + + function je(e, t) { + return Oe(e, t) + .length > 0 + } + + function Fe(e) { + e.prototype.on = function(e, t) { + Ra(this, e, t) + }, e.prototype.off = function(e, t) { + Me(this, e, t) + } + } + + function Le(e) { + e.preventDefault ? e.preventDefault() : e.returnValue = !1 + } + + function Re(e) { + e.stopPropagation ? e.stopPropagation() : e.cancelBubble = !0 + } + + function De(e) { + return null != e.defaultPrevented ? e.defaultPrevented : 0 == e.returnValue + } + + function Ne(e) { + Le(e), Re(e) + } + + function Ie(e) { + return e.target || e.srcElement + } + + function Ve(e) { + var t = e.which; + return null == t && (1 & e.button ? t = 1 : 2 & e.button ? t = 3 : 4 & e.button && (t = 2)), fa && e.ctrlKey && 1 == t && (t = 3), t + } + + function We(e) { + if (null == wa) { + var t = r("span", "​"); + n(e, r("span", [t, document.createTextNode("x")])), 0 != e.firstChild.offsetHeight && (wa = t.offsetWidth <= 1 && t.offsetHeight > 2 && !(Zo && ea < 8)) + } + var i = wa ? r("span", "​") : r("span", " ", null, "display: inline-block; width: 1px; margin-right: -1px"); + return i.setAttribute("cm-text", ""), i + } + + function He(e) { + if (null != xa) return xa; + var r = n(e, document.createTextNode("AØ®A")), + i = va(r, 0, 1) + .getBoundingClientRect(), + o = va(r, 1, 2) + .getBoundingClientRect(); + return t(e), !(!i || i.left == i.right) && (xa = o.right - i.right < 3) + } + + function Ue(e) { + if (null != Wa) return Wa; + var t = n(e, r("span", "x")), + i = t.getBoundingClientRect(), + o = va(t, 0, 1) + .getBoundingClientRect(); + return Wa = Math.abs(i.left - o.left) > 1 + } + + function ze(e, t) { + arguments.length > 2 && (t.dependencies = Array.prototype.slice.call(arguments, 2)), Ha[e] = t + } + + function qe(e, t) { + Ua[e] = t + } + + function Be(e) { + if ("string" == typeof e && Ua.hasOwnProperty(e)) e = Ua[e]; + else if (e && "string" == typeof e.name && Ua.hasOwnProperty(e.name)) { + var t = Ua[e.name]; + "string" == typeof t && (t = { + name: t + }), e = b(t, e), e.name = t.name + } else { + if ("string" == typeof e && /^[\w\-]+\/[\w\-]+\+xml$/.test(e)) return Be("application/xml"); + if ("string" == typeof e && /^[\w\-]+\/[\w\-]+\+json$/.test(e)) return Be("application/json") + } + return "string" == typeof e ? { + name: e + } : e || { + name: "null" + } + } + + function Ge(e, t) { + t = Be(t); + var n = Ha[t.name]; + if (!n) return Ge(e, "text/plain"); + var r = n(e, t); + if (za.hasOwnProperty(t.name)) { + var i = za[t.name]; + for (var o in i) i.hasOwnProperty(o) && (r.hasOwnProperty(o) && (r["_" + o] = r[o]), r[o] = i[o]) + } + if (r.name = t.name, t.helperType && (r.helperType = t.helperType), t.modeProps) + for (var a in t.modeProps) r[a] = t.modeProps[a]; + return r + } + + function Ke(e, t) { + var n = za.hasOwnProperty(e) ? za[e] : za[e] = {}; + c(t, n) + } + + function Ye(e, t) { + if (t === !0) return t; + if (e.copyState) return e.copyState(t); + var n = {}; + for (var r in t) { + var i = t[r]; + i instanceof Array && (i = i.concat([])), n[r] = i + } + return n + } + + function Qe(e, t) { + for (var n; e.innerMode && (n = e.innerMode(t), n && n.mode != e);) t = n.state, e = n.mode; + return n || { + mode: e, + state: t + } + } + + function Je(e, t, n) { + return !e.startState || e.startState(t, n) + } + + function Xe(e, t, n, r) { + var i = [e.state.modeGen], + o = {}; + at(e, t.text, e.doc.mode, n, function(e, t) { + return i.push(e, t) + }, o, r); + for (var a = function(n) { + var r = e.state.overlays[n], + a = 1, + s = 0; + at(e, t.text, r.mode, !0, function(e, t) { + for (var n = a; s < e;) { + var o = i[a]; + o > e && i.splice(a, 1, e, i[a + 1], o), a += 2, s = Math.min(e, o) + } + if (t) + if (r.opaque) i.splice(n, a - n, e, "overlay " + t), a = n + 2; + else + for (; n < a; n += 2) { + var l = i[n + 1]; + i[n + 1] = (l ? l + " " : "") + "overlay " + t + } + }, o) + }, s = 0; s < e.state.overlays.length; ++s) a(s); + return { + styles: i, + classes: o.bgClass || o.textClass ? o : null + } + } + + function Ze(e, t, n) { + if (!t.styles || t.styles[0] != e.state.modeGen) { + var r = et(e, P(t)), + i = Xe(e, t, t.text.length > e.options.maxHighlightLength ? Ye(e.doc.mode, r) : r); + t.stateAfter = r, t.styles = i.styles, i.classes ? t.styleClasses = i.classes : t.styleClasses && (t.styleClasses = null), n === e.doc.frontier && e.doc.frontier++ + } + return t.styles + } + + function et(e, t, n) { + var r = e.doc, + i = e.display; + if (!r.mode.startState) return !0; + var o = st(e, t, n), + a = o > r.first && S(r, o - 1) + .stateAfter; + return a = a ? Ye(r.mode, a) : Je(r.mode), r.iter(o, t, function(n) { + tt(e, n.text, a); + var s = o == t - 1 || o % 5 == 0 || o >= i.viewFrom && o < i.viewTo; + n.stateAfter = s ? Ye(r.mode, a) : null, ++o + }), n && (r.frontier = o), a + } + + function tt(e, t, n, r) { + var i = e.doc.mode, + o = new qa(t, e.options.tabSize); + for (o.start = o.pos = r || 0, "" == t && nt(i, n); !o.eol();) rt(i, o, n), o.start = o.pos + } + + function nt(e, t) { + if (e.blankLine) return e.blankLine(t); + if (e.innerMode) { + var n = Qe(e, t); + return n.mode.blankLine ? n.mode.blankLine(n.state) : void 0 + } + } + + function rt(e, t, n, r) { + for (var i = 0; i < 10; i++) { + r && (r[0] = Qe(e, n) + .mode); + var o = e.token(t, n); + if (t.pos > t.start) return o + } + throw new Error("Mode " + e.name + " failed to advance stream.") + } + + function it(e, t, n, r) { + var i, o = function(e) { + return { + start: f.start, + end: f.pos, + string: f.current(), + type: i || null, + state: e ? Ye(a.mode, c) : c + } + }, + a = e.doc, + s = a.mode; + t = H(a, t); + var l, u = S(a, t.line), + c = et(e, t.line, n), + f = new qa(u.text, e.options.tabSize); + for (r && (l = []); + (r || f.pos < t.ch) && !f.eol();) f.start = f.pos, i = rt(s, f, c), r && l.push(o(!0)); + return r ? l : o() + } + + function ot(e, t) { + if (e) + for (;;) { + var n = e.match(/(?:^|\s+)line-(background-)?(\S+)/); + if (!n) break; + e = e.slice(0, n.index) + e.slice(n.index + n[0].length); + var r = n[1] ? "bgClass" : "textClass"; + null == t[r] ? t[r] = n[2] : new RegExp("(?:^|s)" + n[2] + "(?:$|s)") + .test(t[r]) || (t[r] += " " + n[2]) + } + return e + } + + function at(e, t, n, r, i, o, a) { + var s = n.flattenSpans; + null == s && (s = e.options.flattenSpans); + var l, u = 0, + c = null, + f = new qa(t, e.options.tabSize), + d = e.options.addModeClass && [null]; + for ("" == t && ot(nt(n, r), o); !f.eol();) { + if (f.pos > e.options.maxHighlightLength ? (s = !1, a && tt(e, t, r, f.pos), f.pos = t.length, l = null) : l = ot(rt(n, f, r, d), o), d) { + var h = d[0].name; + h && (l = "m-" + (l ? h + " " + l : h)) + } + if (!s || c != l) { + for (; u < f.start;) u = Math.min(f.start, u + 5e3), i(u, c); + c = l + } + f.start = f.pos + } + for (; u < f.pos;) { + var p = Math.min(f.pos, u + 5e3); + i(p, c), u = p + } + } + + function st(e, t, n) { + for (var r, i, o = e.doc, a = n ? -1 : t - (e.doc.mode.innerMode ? 1e3 : 100), s = t; s > a; --s) { + if (s <= o.first) return o.first; + var l = S(o, s - 1); + if (l.stateAfter && (!n || s <= o.frontier)) return s; + var u = f(l.text, null, e.options.tabSize); + (null == i || r > u) && (i = s - 1, r = u) + } + return i + } + + function lt(e, t, n, r) { + e.text = t, e.stateAfter && (e.stateAfter = null), e.styles && (e.styles = null), null != e.order && (e.order = null), ne(e), re(e, n); + var i = r ? r(e) : 1; + i != e.height && T(e, i) + } + + function ut(e) { + e.parent = null, ne(e) + } + + function ct(e, t) { + if (!e || /^\s*$/.test(e)) return null; + var n = t.addModeClass ? Ya : Ka; + return n[e] || (n[e] = e.replace(/\S+/g, "cm-$&")) + } + + function ft(e, t) { + var n = i("span", null, null, ta ? "padding-right: .1px" : null), + r = { + pre: i("pre", [n], "CodeMirror-line"), + content: n, + col: 0, + pos: 0, + cm: e, + trailingSpace: !1, + splitSpaces: (Zo || ta) && e.getOption("lineWrapping") + }; + t.measure = {}; + for (var o = 0; o <= (t.rest ? t.rest.length : 0); o++) { + var a = o ? t.rest[o - 1] : t.line, + s = void 0; + r.pos = 0, r.addToken = ht, He(e.display.measure) && (s = _e(a, e.doc.direction)) && (r.addToken = vt(r.addToken, s)), r.map = []; + var u = t != e.display.externalMeasured && P(a); + gt(a, r, Ze(e, a, u)), a.styleClasses && (a.styleClasses.bgClass && (r.bgClass = l(a.styleClasses.bgClass, r.bgClass || "")), a.styleClasses.textClass && (r.textClass = l(a.styleClasses.textClass, r.textClass || ""))), 0 == r.map.length && r.map.push(0, 0, r.content.appendChild(We(e.display.measure))), 0 == o ? (t.measure.map = r.map, t.measure.cache = {}) : ((t.measure.maps || (t.measure.maps = [])) + .push(r.map), (t.measure.caches || (t.measure.caches = [])) + .push({})) + } + if (ta) { + var c = r.content.lastChild; + (/\bcm-tab\b/.test(c.className) || c.querySelector && c.querySelector(".cm-tab")) && (r.content.className = "cm-tab-wrap-hack") + } + return Te(e, "renderLine", e, t.line, r.pre), r.pre.className && (r.textClass = l(r.pre.className, r.textClass || "")), r + } + + function dt(e) { + var t = r("span", "•", "cm-invalidchar"); + return t.title = "\\u" + e.charCodeAt(0) + .toString(16), t.setAttribute("aria-label", t.title), t + } + + function ht(e, t, n, i, o, a, s) { + if (t) { + var l, u = e.splitSpaces ? pt(t, e.trailingSpace) : t, + c = e.cm.state.specialChars, + f = !1; + if (c.test(t)) { + l = document.createDocumentFragment(); + for (var d = 0;;) { + c.lastIndex = d; + var h = c.exec(t), + v = h ? h.index - d : t.length - d; + if (v) { + var m = document.createTextNode(u.slice(d, d + v)); + Zo && ea < 9 ? l.appendChild(r("span", [m])) : l.appendChild(m), e.map.push(e.pos, e.pos + v, m), e.col += v, e.pos += v + } + if (!h) break; + d += v + 1; + var g = void 0; + if ("\t" == h[0]) { + var y = e.cm.options.tabSize, + b = y - e.col % y; + g = l.appendChild(r("span", p(b), "cm-tab")), g.setAttribute("role", "presentation"), g.setAttribute("cm-text", "\t"), e.col += b + } else "\r" == h[0] || "\n" == h[0] ? (g = l.appendChild(r("span", "\r" == h[0] ? "â" : "â¤", "cm-invalidchar")), g.setAttribute("cm-text", h[0]), e.col += 1) : (g = e.cm.options.specialCharPlaceholder(h[0]), g.setAttribute("cm-text", h[0]), Zo && ea < 9 ? l.appendChild(r("span", [g])) : l.appendChild(g), e.col += 1); + e.map.push(e.pos, e.pos + 1, g), e.pos++ + } + } else e.col += t.length, l = document.createTextNode(u), e.map.push(e.pos, e.pos + t.length, l), Zo && ea < 9 && (f = !0), e.pos += t.length; + if (e.trailingSpace = 32 == u.charCodeAt(t.length - 1), n || i || o || f || s) { + var $ = n || ""; + i && ($ += i), o && ($ += o); + var w = r("span", [l], $, s); + return a && (w.title = a), e.content.appendChild(w) + } + e.content.appendChild(l) + } + } + + function pt(e, t) { + if (e.length > 1 && !/ /.test(e)) return e; + for (var n = t, r = "", i = 0; i < e.length; i++) { + var o = e.charAt(i); + " " != o || !n || i != e.length - 1 && 32 != e.charCodeAt(i + 1) || (o = " "), r += o, n = " " == o + } + return r + } + + function vt(e, t) { + return function(n, r, i, o, a, s, l) { + i = i ? i + " cm-force-border" : "cm-force-border"; + for (var u = n.pos, c = u + r.length;;) { + for (var f = void 0, d = 0; d < t.length && (f = t[d], !(f.to > u && f.from <= u)); d++); + if (f.to >= c) return e(n, r, i, o, a, s, l); + e(n, r.slice(0, f.to - u), i, o, null, s, l), o = null, r = r.slice(f.to - u), u = f.to + } + } + } + + function mt(e, t, n, r) { + var i = !r && n.widgetNode; + i && e.map.push(e.pos, e.pos + t, i), !r && e.cm.display.input.needsContentAttribute && (i || (i = e.content.appendChild(document.createElement("span"))), i.setAttribute("cm-marker", n.id)), i && (e.cm.display.input.setUneditable(i), e.content.appendChild(i)), e.pos += t, e.trailingSpace = !1 + } + + function gt(e, t, n) { + var r = e.markedSpans, + i = e.text, + o = 0; + if (r) + for (var a, s, l, u, c, f, d, h = i.length, p = 0, v = 1, m = "", g = 0;;) { + if (g == p) { + l = u = c = f = s = "", d = null, g = 1 / 0; + for (var y = [], b = void 0, $ = 0; $ < r.length; ++$) { + var w = r[$], + x = w.marker; + "bookmark" == x.type && w.from == p && x.widgetNode ? y.push(x) : w.from <= p && (null == w.to || w.to > p || x.collapsed && w.to == p && w.from == p) ? (null != w.to && w.to != p && g > w.to && (g = w.to, u = ""), x.className && (l += " " + x.className), x.css && (s = (s ? s + ";" : "") + x.css), x.startStyle && w.from == p && (c += " " + x.startStyle), x.endStyle && w.to == g && (b || (b = [])) + .push(x.endStyle, w.to), x.title && !f && (f = x.title), x.collapsed && (!d || ae(d.marker, x) < 0) && (d = w)) : w.from > p && g > w.from && (g = w.from) + } + if (b) + for (var _ = 0; _ < b.length; _ += 2) b[_ + 1] == g && (u += " " + b[_]); + if (!d || d.from == p) + for (var C = 0; C < y.length; ++C) mt(t, 0, y[C]); + if (d && (d.from || 0) == p) { + if (mt(t, (null == d.to ? h + 1 : d.to) - p, d.marker, null == d.from), null == d.to) return; + d.to == p && (d = !1) + } + } + if (p >= h) break; + for (var k = Math.min(h, g);;) { + if (m) { + var E = p + m.length; + if (!d) { + var S = E > k ? m.slice(0, k - p) : m; + t.addToken(t, S, a ? a + l : l, c, p + S.length == g ? u : "", f, s) + } + if (E >= k) { + m = m.slice(k - p), p = k; + break + } + p = E, c = "" + } + m = i.slice(o, o = n[v++]), a = ct(n[v++], t.cm.options) + } + } else + for (var O = 1; O < n.length; O += 2) t.addToken(t, i.slice(o, o = n[O]), ct(n[O + 1], t.cm.options)) + } + + function yt(e, t, n) { + this.line = t, this.rest = he(t), this.size = this.rest ? P(v(this.rest)) - n + 1 : 1, this.node = this.text = null, this.hidden = me(e, t) + } + + function bt(e, t, n) { + for (var r, i = [], o = t; o < n; o = r) { + var a = new yt(e.doc, S(e.doc, o), o); + r = o + a.size, i.push(a) + } + return i + } + + function $t(e) { + Qa ? Qa.ops.push(e) : e.ownsGroup = Qa = { + ops: [e], + delayedCallbacks: [] + } + } + + function wt(e) { + var t = e.delayedCallbacks, + n = 0; + do { + for (; n < t.length; n++) t[n].call(null); + for (var r = 0; r < e.ops.length; r++) { + var i = e.ops[r]; + if (i.cursorActivityHandlers) + for (; i.cursorActivityCalled < i.cursorActivityHandlers.length;) i.cursorActivityHandlers[i.cursorActivityCalled++].call(null, i.cm) + } + } while (n < t.length) + } + + function xt(e, t) { + var n = e.ownsGroup; + if (n) try { + wt(n) + } finally { + Qa = null, t(n) + } + } + + function _t(e, t) { + var n = Oe(e, t); + if (n.length) { + var r, i = Array.prototype.slice.call(arguments, 2); + Qa ? r = Qa.delayedCallbacks : Ja ? r = Ja : (r = Ja = [], setTimeout(Ct, 0)); + for (var o = function(e) { + r.push(function() { + return n[e].apply(null, i) + }) + }, a = 0; a < n.length; ++a) o(a) + } + } + + function Ct() { + var e = Ja; + Ja = null; + for (var t = 0; t < e.length; ++t) e[t]() + } + + function kt(e, t, n, r) { + for (var i = 0; i < t.changes.length; i++) { + var o = t.changes[i]; + "text" == o ? Mt(e, t) : "gutter" == o ? Pt(e, t, n, r) : "class" == o ? Tt(e, t) : "widget" == o && At(e, t, r) + } + t.changes = null + } + + function Et(e) { + return e.node == e.text && (e.node = r("div", null, null, "position: relative"), e.text.parentNode && e.text.parentNode.replaceChild(e.node, e.text), e.node.appendChild(e.text), Zo && ea < 8 && (e.node.style.zIndex = 2)), e.node + } + + function St(e, t) { + var n = t.bgClass ? t.bgClass + " " + (t.line.bgClass || "") : t.line.bgClass; + if (n && (n += " CodeMirror-linebackground"), t.background) n ? t.background.className = n : (t.background.parentNode.removeChild(t.background), t.background = null); + else if (n) { + var i = Et(t); + t.background = i.insertBefore(r("div", null, n), i.firstChild), e.display.input.setUneditable(t.background) + } + } + + function Ot(e, t) { + var n = e.display.externalMeasured; + return n && n.line == t.line ? (e.display.externalMeasured = null, t.measure = n.measure, n.built) : ft(e, t) + } + + function Mt(e, t) { + var n = t.text.className, + r = Ot(e, t); + t.text == t.node && (t.node = r.pre), t.text.parentNode.replaceChild(r.pre, t.text), t.text = r.pre, r.bgClass != t.bgClass || r.textClass != t.textClass ? (t.bgClass = r.bgClass, t.textClass = r.textClass, Tt(e, t)) : n && (t.text.className = n) + } + + function Tt(e, t) { + St(e, t), t.line.wrapClass ? Et(t) + .className = t.line.wrapClass : t.node != t.text && (t.node.className = ""); + var n = t.textClass ? t.textClass + " " + (t.line.textClass || "") : t.line.textClass; + t.text.className = n || "" + } + + function Pt(e, t, n, i) { + if (t.gutter && (t.node.removeChild(t.gutter), t.gutter = null), t.gutterBackground && (t.node.removeChild(t.gutterBackground), t.gutterBackground = null), t.line.gutterClass) { + var o = Et(t); + t.gutterBackground = r("div", null, "CodeMirror-gutter-background " + t.line.gutterClass, "left: " + (e.options.fixedGutter ? i.fixedPos : -i.gutterTotalWidth) + "px; width: " + i.gutterTotalWidth + "px"), e.display.input.setUneditable(t.gutterBackground), o.insertBefore(t.gutterBackground, t.text) + } + var a = t.line.gutterMarkers; + if (e.options.lineNumbers || a) { + var s = Et(t), + l = t.gutter = r("div", null, "CodeMirror-gutter-wrapper", "left: " + (e.options.fixedGutter ? i.fixedPos : -i.gutterTotalWidth) + "px"); + if (e.display.input.setUneditable(l), s.insertBefore(l, t.text), t.line.gutterClass && (l.className += " " + t.line.gutterClass), !e.options.lineNumbers || a && a["CodeMirror-linenumbers"] || (t.lineNumber = l.appendChild(r("div", F(e.options, n), "CodeMirror-linenumber CodeMirror-gutter-elt", "left: " + i.gutterLeft["CodeMirror-linenumbers"] + "px; width: " + e.display.lineNumInnerWidth + "px"))), a) + for (var u = 0; u < e.options.gutters.length; ++u) { + var c = e.options.gutters[u], + f = a.hasOwnProperty(c) && a[c]; + f && l.appendChild(r("div", [f], "CodeMirror-gutter-elt", "left: " + i.gutterLeft[c] + "px; width: " + i.gutterWidth[c] + "px")) + } + } + } + + function At(e, t, n) { + t.alignable && (t.alignable = null); + for (var r = t.node.firstChild, i = void 0; r; r = i) i = r.nextSibling, "CodeMirror-linewidget" == r.className && t.node.removeChild(r); + Ft(e, t, n) + } + + function jt(e, t, n, r) { + var i = Ot(e, t); + return t.text = t.node = i.pre, i.bgClass && (t.bgClass = i.bgClass), i.textClass && (t.textClass = i.textClass), Tt(e, t), Pt(e, t, n, r), Ft(e, t, r), t.node + } + + function Ft(e, t, n) { + if (Lt(e, t.line, t, n, !0), t.rest) + for (var r = 0; r < t.rest.length; r++) Lt(e, t.rest[r], t, n, !1) + } + + function Lt(e, t, n, i, o) { + if (t.widgets) + for (var a = Et(n), s = 0, l = t.widgets; s < l.length; ++s) { + var u = l[s], + c = r("div", [u.node], "CodeMirror-linewidget"); + u.handleMouseEvents || c.setAttribute("cm-ignore-events", "true"), Rt(u, c, n, i), e.display.input.setUneditable(c), o && u.above ? a.insertBefore(c, n.gutter || n.text) : a.appendChild(c), _t(u, "redraw") + } + } + + function Rt(e, t, n, r) { + if (e.noHScroll) { + (n.alignable || (n.alignable = [])) + .push(t); + var i = r.wrapperWidth; + t.style.left = r.fixedPos + "px", e.coverGutter || (i -= r.gutterTotalWidth, t.style.paddingLeft = r.gutterTotalWidth + "px"), t.style.width = i + "px" + } + e.coverGutter && (t.style.zIndex = 5, t.style.position = "relative", e.noHScroll || (t.style.marginLeft = -r.gutterTotalWidth + "px")) + } + + function Dt(e) { + if (null != e.height) return e.height; + var t = e.doc.cm; + if (!t) return 0; + if (!o(document.body, e.node)) { + var i = "position: relative;"; + e.coverGutter && (i += "margin-left: -" + t.display.gutters.offsetWidth + "px;"), e.noHScroll && (i += "width: " + t.display.wrapper.clientWidth + "px;"), n(t.display.measure, r("div", [e.node], null, i)) + } + return e.height = e.node.parentNode.offsetHeight + } + + function Nt(e, t) { + for (var n = Ie(t); n != e.wrapper; n = n.parentNode) + if (!n || 1 == n.nodeType && "true" == n.getAttribute("cm-ignore-events") || n.parentNode == e.sizer && n != e.mover) return !0 + } + + function It(e) { + return e.lineSpace.offsetTop + } + + function Vt(e) { + return e.mover.offsetHeight - e.lineSpace.offsetHeight + } + + function Wt(e) { + if (e.cachedPaddingH) return e.cachedPaddingH; + var t = n(e.measure, r("pre", "x")), + i = window.getComputedStyle ? window.getComputedStyle(t) : t.currentStyle, + o = { + left: parseInt(i.paddingLeft), + right: parseInt(i.paddingRight) + }; + return isNaN(o.left) || isNaN(o.right) || (e.cachedPaddingH = o), o + } + + function Ht(e) { + return _a - e.display.nativeBarWidth + } + + function Ut(e) { + return e.display.scroller.clientWidth - Ht(e) - e.display.barWidth + } + + function zt(e) { + return e.display.scroller.clientHeight - Ht(e) - e.display.barHeight + } + + function qt(e, t, n) { + var r = e.options.lineWrapping, + i = r && Ut(e); + if (!t.measure.heights || r && t.measure.width != i) { + var o = t.measure.heights = []; + if (r) { + t.measure.width = i; + for (var a = t.text.firstChild.getClientRects(), s = 0; s < a.length - 1; s++) { + var l = a[s], + u = a[s + 1]; + Math.abs(l.bottom - u.bottom) > 2 && o.push((l.bottom + u.top) / 2 - n.top) + } + } + o.push(n.bottom - n.top) + } + } + + function Bt(e, t, n) { + if (e.line == t) return { + map: e.measure.map, + cache: e.measure.cache + }; + for (var r = 0; r < e.rest.length; r++) + if (e.rest[r] == t) return { + map: e.measure.maps[r], + cache: e.measure.caches[r] + }; + for (var i = 0; i < e.rest.length; i++) + if (P(e.rest[i]) > n) return { + map: e.measure.maps[i], + cache: e.measure.caches[i], + before: !0 + } + } + + function Gt(e, t) { + t = fe(t); + var r = P(t), + i = e.display.externalMeasured = new yt(e.doc, t, r); + i.lineN = r; + var o = i.built = ft(e, i); + return i.text = o.pre, n(e.display.lineMeasure, o.pre), i + } + + function Kt(e, t, n, r) { + return Jt(e, Qt(e, t), n, r) + } + + function Yt(e, t) { + if (t >= e.display.viewFrom && t < e.display.viewTo) return e.display.view[kn(e, t)]; + var n = e.display.externalMeasured; + return n && t >= n.lineN && t < n.lineN + n.size ? n : void 0 + } + + function Qt(e, t) { + var n = P(t), + r = Yt(e, n); + r && !r.text ? r = null : r && r.changes && (kt(e, r, n, $n(e)), e.curOp.forceUpdate = !0), r || (r = Gt(e, t)); + var i = Bt(r, t, n); + return { + line: t, + view: r, + rect: null, + map: i.map, + cache: i.cache, + before: i.before, + hasHeights: !1 + } + } + + function Jt(e, t, n, r, i) { + t.before && (n = -1); + var o, a = n + (r || ""); + return t.cache.hasOwnProperty(a) ? o = t.cache[a] : (t.rect || (t.rect = t.view.text.getBoundingClientRect()), t.hasHeights || (qt(e, t.view, t.rect), t.hasHeights = !0), o = en(e, t, n, r), o.bogus || (t.cache[a] = o)), { + left: o.left, + right: o.right, + top: i ? o.rtop : o.top, + bottom: i ? o.rbottom : o.bottom + } + } + + function Xt(e, t, n) { + for (var r, i, o, a, s, l, u = 0; u < e.length; u += 3) + if (s = e[u], l = e[u + 1], t < s ? (i = 0, o = 1, a = "left") : t < l ? (i = t - s, o = i + 1) : (u == e.length - 3 || t == l && e[u + 3] > t) && (o = l - s, i = o - 1, t >= l && (a = "right")), null != i) { + if (r = e[u + 2], s == l && n == (r.insertLeft ? "left" : "right") && (a = n), "left" == n && 0 == i) + for (; u && e[u - 2] == e[u - 3] && e[u - 1].insertLeft;) r = e[(u -= 3) + 2], a = "left"; + if ("right" == n && i == l - s) + for (; u < e.length - 3 && e[u + 3] == e[u + 4] && !e[u + 5].insertLeft;) r = e[(u += 3) + 2], a = "right"; + break + } + return { + node: r, + start: i, + end: o, + collapse: a, + coverStart: s, + coverEnd: l + } + } + + function Zt(e, t) { + var n = Xa; + if ("left" == t) + for (var r = 0; r < e.length && (n = e[r]) + .left == n.right; r++); + else + for (var i = e.length - 1; i >= 0 && (n = e[i]) + .left == n.right; i--); + return n + } + + function en(e, t, n, r) { + var i, o = Xt(t.map, n, r), + a = o.node, + s = o.start, + l = o.end, + u = o.collapse; + if (3 == a.nodeType) { + for (var c = 0; c < 4; c++) { + for (; s && _(t.line.text.charAt(o.coverStart + s));) --s; + for (; o.coverStart + l < o.coverEnd && _(t.line.text.charAt(o.coverStart + l));) ++l; + if (i = Zo && ea < 9 && 0 == s && l == o.coverEnd - o.coverStart ? a.parentNode.getBoundingClientRect() : Zt(va(a, s, l) + .getClientRects(), r), i.left || i.right || 0 == s) break; + l = s, s -= 1, u = "right" + } + Zo && ea < 11 && (i = tn(e.display.measure, i)) + } else { + s > 0 && (u = r = "right"); + var f; + i = e.options.lineWrapping && (f = a.getClientRects()) + .length > 1 ? f["right" == r ? f.length - 1 : 0] : a.getBoundingClientRect() + } + if (Zo && ea < 9 && !s && (!i || !i.left && !i.right)) { + var d = a.parentNode.getClientRects()[0]; + i = d ? { + left: d.left, + right: d.left + bn(e.display), + top: d.top, + bottom: d.bottom + } : Xa + } + for (var h = i.top - t.rect.top, p = i.bottom - t.rect.top, v = (h + p) / 2, m = t.view.measure.heights, g = 0; g < m.length - 1 && !(v < m[g]); g++); + var y = g ? m[g - 1] : 0, + b = m[g], + $ = { + left: ("right" == u ? i.right : i.left) - t.rect.left, + right: ("left" == u ? i.left : i.right) - t.rect.left, + top: y, + bottom: b + }; + return i.left || i.right || ($.bogus = !0), e.options.singleCursorHeightPerLine || ($.rtop = h, $.rbottom = p), $ + } + + function tn(e, t) { + if (!window.screen || null == screen.logicalXDPI || screen.logicalXDPI == screen.deviceXDPI || !Ue(e)) return t; + var n = screen.logicalXDPI / screen.deviceXDPI, + r = screen.logicalYDPI / screen.deviceYDPI; + return { + left: t.left * n, + right: t.right * n, + top: t.top * r, + bottom: t.bottom * r + } + } + + function nn(e) { + if (e.measure && (e.measure.cache = {}, e.measure.heights = null, e.rest)) + for (var t = 0; t < e.rest.length; t++) e.measure.caches[t] = {} + } + + function rn(e) { + e.display.externalMeasure = null, t(e.display.lineMeasure); + for (var n = 0; n < e.display.view.length; n++) nn(e.display.view[n]) + } + + function on(e) { + rn(e), e.display.cachedCharWidth = e.display.cachedTextHeight = e.display.cachedPaddingH = null, e.options.lineWrapping || (e.display.maxLineChanged = !0), e.display.lineNumChars = null + } + + function an() { + return window.pageXOffset || (document.documentElement || document.body) + .scrollLeft + } + + function sn() { + return window.pageYOffset || (document.documentElement || document.body) + .scrollTop + } + + function ln(e, t, n, r, i) { + if (!i && t.widgets) + for (var o = 0; o < t.widgets.length; ++o) + if (t.widgets[o].above) { + var a = Dt(t.widgets[o]); + n.top += a, n.bottom += a + } + if ("line" == r) return n; + r || (r = "local"); + var s = ye(t); + if ("local" == r ? s += It(e.display) : s -= e.display.viewOffset, "page" == r || "window" == r) { + var l = e.display.lineSpace.getBoundingClientRect(); + s += l.top + ("window" == r ? 0 : sn()); + var u = l.left + ("window" == r ? 0 : an()); + n.left += u, n.right += u + } + return n.top += s, n.bottom += s, n + } + + function un(e, t, n) { + if ("div" == n) return t; + var r = t.left, + i = t.top; + if ("page" == n) r -= an(), i -= sn(); + else if ("local" == n || !n) { + var o = e.display.sizer.getBoundingClientRect(); + r += o.left, i += o.top + } + var a = e.display.lineSpace.getBoundingClientRect(); + return { + left: r - a.left, + top: i - a.top + } + } + + function cn(e, t, n, r, i) { + return r || (r = S(e.doc, t.line)), ln(e, r, Kt(e, r, t.ch, i), n) + } + + function fn(e, t, n, r, i, o) { + function a(t, a) { + var s = Jt(e, i, t, a ? "right" : "left", o); + return a ? s.left = s.right : s.right = s.left, ln(e, r, s, n) + } + + function s(e, t, n) { + var r = l[t], + i = r.level % 2 != 0; + return a(n ? e - 1 : e, i != n) + } + r = r || S(e.doc, t.line), i || (i = Qt(e, r)); + var l = _e(r, e.doc.direction), + u = t.ch, + c = t.sticky; + if (u >= r.text.length ? (u = r.text.length, c = "before") : u <= 0 && (u = 0, c = "after"), !l) return a("before" == c ? u - 1 : u, "before" == c); + var f = xe(l, u, c), + d = ja, + h = s(u, f, "before" == c); + return null != d && (h.other = s(u, d, "before" != c)), h + } + + function dn(e, t) { + var n = 0; + t = H(e.doc, t), e.options.lineWrapping || (n = bn(e.display) * t.ch); + var r = S(e.doc, t.line), + i = ye(r) + It(e.display); + return { + left: n, + right: n, + top: i, + bottom: i + r.height + } + } + + function hn(e, t, n, r, i) { + var o = L(e, t, n); + return o.xRel = i, r && (o.outside = !0), o + } + + function pn(e, t, n) { + var r = e.doc; + if (n += e.display.viewOffset, n < 0) return hn(r.first, 0, null, !0, -1); + var i = A(r, n), + o = r.first + r.size - 1; + if (i > o) return hn(r.first + r.size - 1, S(r, o) + .text.length, null, !0, 1); + t < 0 && (t = 0); + for (var a = S(r, i);;) { + var s = gn(e, a, i, t, n), + l = ue(a), + u = l && l.find(0, !0); + if (!l || !(s.ch > u.from.ch || s.ch == u.from.ch && s.xRel > 0)) return s; + i = P(a = u.to.line) + } + } + + function vn(e, t, n, r) { + var i = function(r) { + return ln(e, t, Jt(e, n, r), "line") + }, + o = t.text.length, + a = k(function(e) { + return i(e - 1) + .bottom <= r + }, o, 0); + return o = k(function(e) { + return i(e) + .top > r + }, a, o), { + begin: a, + end: o + } + } + + function mn(e, t, n, r) { + var i = ln(e, t, Jt(e, n, r), "line") + .top; + return vn(e, t, n, i) + } + + function gn(e, t, n, r, i) { + i -= ye(t); + var o, a = 0, + s = t.text.length, + l = Qt(e, t), + u = _e(t, e.doc.direction); + if (u) { + if (e.options.lineWrapping) { + var c; + c = vn(e, t, l, i), a = c.begin, s = c.end, c + } + o = new L(n, a); + var f, d, h = fn(e, o, "line", t, l) + .left, + p = h < r ? 1 : -1, + v = h - r; + do { + if (f = v, d = o, o = Se(e, t, o, p), null == o || o.ch < a || s <= ("before" == o.sticky ? o.ch - 1 : o.ch)) { + o = d; + break + } + v = fn(e, o, "line", t, l) + .left - r + } while (p < 0 != v < 0 && Math.abs(v) <= Math.abs(f)); + if (Math.abs(v) > Math.abs(f)) { + if (v < 0 == f < 0) throw new Error("Broke out of infinite loop in coordsCharInner"); + o = d + } + } else { + var m = k(function(n) { + var o = ln(e, t, Jt(e, l, n), "line"); + return o.top > i ? (s = Math.min(n, s), !0) : !(o.bottom <= i) && (o.left > r || !(o.right < r) && r - o.left < o.right - r) + }, a, s); + m = C(t.text, m, 1), o = new L(n, m, m == s ? "before" : "after") + } + var g = fn(e, o, "line", t, l); + return (i < g.top || g.bottom < i) && (o.outside = !0), o.xRel = r < g.left ? -1 : r > g.right ? 1 : 0, o + } + + function yn(e) { + if (null != e.cachedTextHeight) return e.cachedTextHeight; + if (null == Ga) { + Ga = r("pre"); + for (var i = 0; i < 49; ++i) Ga.appendChild(document.createTextNode("x")), Ga.appendChild(r("br")); + Ga.appendChild(document.createTextNode("x")) + } + n(e.measure, Ga); + var o = Ga.offsetHeight / 50; + return o > 3 && (e.cachedTextHeight = o), t(e.measure), o || 1 + } + + function bn(e) { + if (null != e.cachedCharWidth) return e.cachedCharWidth; + var t = r("span", "xxxxxxxxxx"), + i = r("pre", [t]); + n(e.measure, i); + var o = t.getBoundingClientRect(), + a = (o.right - o.left) / 10; + return a > 2 && (e.cachedCharWidth = a), a || 10 + } + + function $n(e) { + for (var t = e.display, n = {}, r = {}, i = t.gutters.clientLeft, o = t.gutters.firstChild, a = 0; o; o = o.nextSibling, ++a) n[e.options.gutters[a]] = o.offsetLeft + o.clientLeft + i, r[e.options.gutters[a]] = o.clientWidth; + return { + fixedPos: wn(t), + gutterTotalWidth: t.gutters.offsetWidth, + gutterLeft: n, + gutterWidth: r, + wrapperWidth: t.wrapper.clientWidth + } + } + + function wn(e) { + return e.scroller.getBoundingClientRect() + .left - e.sizer.getBoundingClientRect() + .left + } + + function xn(e) { + var t = yn(e.display), + n = e.options.lineWrapping, + r = n && Math.max(5, e.display.scroller.clientWidth / bn(e.display) - 3); + return function(i) { + if (me(e.doc, i)) return 0; + var o = 0; + if (i.widgets) + for (var a = 0; a < i.widgets.length; a++) i.widgets[a].height && (o += i.widgets[a].height); + return n ? o + (Math.ceil(i.text.length / r) || 1) * t : o + t + } + } + + function _n(e) { + var t = e.doc, + n = xn(e); + t.iter(function(e) { + var t = n(e); + t != e.height && T(e, t) + }) + } + + function Cn(e, t, n, r) { + var i = e.display; + if (!n && "true" == Ie(t) + .getAttribute("cm-not-content")) return null; + var o, a, s = i.lineSpace.getBoundingClientRect(); + try { + o = t.clientX - s.left, a = t.clientY - s.top + } catch (e) { + return null + } + var l, u = pn(e, o, a); + if (r && 1 == u.xRel && (l = S(e.doc, u.line) + .text) + .length == u.ch) { + var c = f(l, l.length, e.options.tabSize) - l.length; + u = L(u.line, Math.max(0, Math.round((o - Wt(e.display) + .left) / bn(e.display)) - c)) + } + return u + } + + function kn(e, t) { + if (t >= e.display.viewTo) return null; + if (t -= e.display.viewFrom, t < 0) return null; + for (var n = e.display.view, r = 0; r < n.length; r++) + if (t -= n[r].size, t < 0) return r + } + + function En(e) { + e.display.input.showSelection(e.display.input.prepareSelection()) + } + + function Sn(e, t) { + for (var n = e.doc, r = {}, i = r.cursors = document.createDocumentFragment(), o = r.selection = document.createDocumentFragment(), a = 0; a < n.sel.ranges.length; a++) + if (t !== !1 || a != n.sel.primIndex) { + var s = n.sel.ranges[a]; + if (!(s.from() + .line >= e.display.viewTo || s.to() + .line < e.display.viewFrom)) { + var l = s.empty(); + (l || e.options.showCursorWhenSelecting) && On(e, s.head, i), l || Mn(e, s, o) + } + } + return r + } + + function On(e, t, n) { + var i = fn(e, t, "div", null, null, !e.options.singleCursorHeightPerLine), + o = n.appendChild(r("div", " ", "CodeMirror-cursor")); + if (o.style.left = i.left + "px", o.style.top = i.top + "px", o.style.height = Math.max(0, i.bottom - i.top) * e.options.cursorHeight + "px", i.other) { + var a = n.appendChild(r("div", " ", "CodeMirror-cursor CodeMirror-secondarycursor")); + a.style.display = "", a.style.left = i.other.left + "px", a.style.top = i.other.top + "px", a.style.height = .85 * (i.other.bottom - i.other.top) + "px" + } + } + + function Mn(e, t, n) { + function i(e, t, n, i) { + t < 0 && (t = 0), t = Math.round(t), i = Math.round(i), l.appendChild(r("div", null, "CodeMirror-selected", "position: absolute; left: " + e + "px;\n top: " + t + "px; width: " + (null == n ? f - e : n) + "px;\n height: " + (i - t) + "px")) + } + + function o(t, n, r) { + function o(n, r) { + return cn(e, L(t, n), "div", u, r) + } + var a, l, u = S(s, t), + d = u.text.length; + return we(_e(u, s.direction), n || 0, null == r ? d : r, function(e, t, s) { + var u, h, p, v = o(e, "left"); + if (e == t) u = v, h = p = v.left; + else { + if (u = o(t - 1, "right"), "rtl" == s) { + var m = v; + v = u, u = m + } + h = v.left, p = u.right + } + null == n && 0 == e && (h = c), u.top - v.top > 3 && (i(h, v.top, null, v.bottom), h = c, v.bottom < u.top && i(h, v.bottom, null, u.top)), null == r && t == d && (p = f), (!a || v.top < a.top || v.top == a.top && v.left < a.left) && (a = v), (!l || u.bottom > l.bottom || u.bottom == l.bottom && u.right > l.right) && (l = u), h < c + 1 && (h = c), i(h, u.top, p - h, u.bottom) + }), { + start: a, + end: l + } + } + var a = e.display, + s = e.doc, + l = document.createDocumentFragment(), + u = Wt(e.display), + c = u.left, + f = Math.max(a.sizerWidth, Ut(e) - a.sizer.offsetLeft) - u.right, + d = t.from(), + h = t.to(); + if (d.line == h.line) o(d.line, d.ch, h.ch); + else { + var p = S(s, d.line), + v = S(s, h.line), + m = fe(p) == fe(v), + g = o(d.line, d.ch, m ? p.text.length + 1 : null) + .end, + y = o(h.line, m ? 0 : null, h.ch) + .start; + m && (g.top < y.top - 2 ? (i(g.right, g.top, null, g.bottom), i(c, y.top, y.left, y.bottom)) : i(g.right, g.top, y.left - g.right, g.bottom)), g.bottom < y.top && i(c, g.bottom, null, y.top) + } + n.appendChild(l) + } + + function Tn(e) { + if (e.state.focused) { + var t = e.display; + clearInterval(t.blinker); + var n = !0; + t.cursorDiv.style.visibility = "", e.options.cursorBlinkRate > 0 ? t.blinker = setInterval(function() { + return t.cursorDiv.style.visibility = (n = !n) ? "" : "hidden" + }, e.options.cursorBlinkRate) : e.options.cursorBlinkRate < 0 && (t.cursorDiv.style.visibility = "hidden") + } + } + + function Pn(e) { + e.state.focused || (e.display.input.focus(), jn(e)) + } + + function An(e) { + e.state.delayingBlurEvent = !0, setTimeout(function() { + e.state.delayingBlurEvent && (e.state.delayingBlurEvent = !1, Fn(e)) + }, 100) + } + + function jn(e, t) { + e.state.delayingBlurEvent && (e.state.delayingBlurEvent = !1), "nocursor" != e.options.readOnly && (e.state.focused || (Te(e, "focus", e, t), e.state.focused = !0, s(e.display.wrapper, "CodeMirror-focused"), e.curOp || e.display.selForContextMenu == e.doc.sel || (e.display.input.reset(), ta && setTimeout(function() { + return e.display.input.reset(!0) + }, 20)), e.display.input.receivedFocus()), Tn(e)) + } + + function Fn(e, t) { + e.state.delayingBlurEvent || (e.state.focused && (Te(e, "blur", e, t), e.state.focused = !1, ya(e.display.wrapper, "CodeMirror-focused")), clearInterval(e.display.blinker), setTimeout(function() { + e.state.focused || (e.display.shift = !1) + }, 150)) + } + + function Ln(e) { + var t = e.display, + n = t.view; + if (t.alignWidgets || t.gutters.firstChild && e.options.fixedGutter) { + for (var r = wn(t) - t.scroller.scrollLeft + e.doc.scrollLeft, i = t.gutters.offsetWidth, o = r + "px", a = 0; a < n.length; a++) + if (!n[a].hidden) { + e.options.fixedGutter && (n[a].gutter && (n[a].gutter.style.left = o), n[a].gutterBackground && (n[a].gutterBackground.style.left = o)); + var s = n[a].alignable; + if (s) + for (var l = 0; l < s.length; l++) s[l].style.left = o + } + e.options.fixedGutter && (t.gutters.style.left = r + i + "px") + } + } + + function Rn(e) { + if (!e.options.lineNumbers) return !1; + var t = e.doc, + n = F(e.options, t.first + t.size - 1), + i = e.display; + if (n.length != i.lineNumChars) { + var o = i.measure.appendChild(r("div", [r("div", n)], "CodeMirror-linenumber CodeMirror-gutter-elt")), + a = o.firstChild.offsetWidth, + s = o.offsetWidth - a; + return i.lineGutter.style.width = "", i.lineNumInnerWidth = Math.max(a, i.lineGutter.offsetWidth - s) + 1, i.lineNumWidth = i.lineNumInnerWidth + s, i.lineNumChars = i.lineNumInnerWidth ? n.length : -1, i.lineGutter.style.width = i.lineNumWidth + "px", Sr(e), !0 + } + return !1 + } + + function Dn(e) { + for (var t = e.display, n = t.lineDiv.offsetTop, r = 0; r < t.view.length; r++) { + var i = t.view[r], + o = void 0; + if (!i.hidden) { + if (Zo && ea < 8) { + var a = i.node.offsetTop + i.node.offsetHeight; + o = a - n, n = a + } else { + var s = i.node.getBoundingClientRect(); + o = s.bottom - s.top + } + var l = i.line.height - o; + if (o < 2 && (o = yn(t)), (l > .001 || l < -.001) && (T(i.line, o), Nn(i.line), i.rest)) + for (var u = 0; u < i.rest.length; u++) Nn(i.rest[u]) + } + } + } + + function Nn(e) { + if (e.widgets) + for (var t = 0; t < e.widgets.length; ++t) e.widgets[t].height = e.widgets[t].node.parentNode.offsetHeight + } + + function In(e, t, n) { + var r = n && null != n.top ? Math.max(0, n.top) : e.scroller.scrollTop; + r = Math.floor(r - It(e)); + var i = n && null != n.bottom ? n.bottom : r + e.wrapper.clientHeight, + o = A(t, r), + a = A(t, i); + if (n && n.ensure) { + var s = n.ensure.from.line, + l = n.ensure.to.line; + s < o ? (o = s, a = A(t, ye(S(t, s)) + e.wrapper.clientHeight)) : Math.min(l, t.lastLine()) >= a && (o = A(t, ye(S(t, l)) - e.wrapper.clientHeight), a = l) + } + return { + from: o, + to: Math.max(a, o + 1) + } + } + + function Vn(e, t) { + Math.abs(e.doc.scrollTop - t) < 2 || (e.doc.scrollTop = t, Yo || kr(e, { + top: t + }), e.display.scroller.scrollTop != t && (e.display.scroller.scrollTop = t), e.display.scrollbars.setScrollTop(t), Yo && kr(e), $r(e, 100)) + } + + function Wn(e, t, n) { + (n ? t == e.doc.scrollLeft : Math.abs(e.doc.scrollLeft - t) < 2) || (t = Math.min(t, e.display.scroller.scrollWidth - e.display.scroller.clientWidth), e.doc.scrollLeft = t, Ln(e), e.display.scroller.scrollLeft != t && (e.display.scroller.scrollLeft = t), e.display.scrollbars.setScrollLeft(t)) + } + + function Hn(e) { + var t = e.wheelDeltaX, + n = e.wheelDeltaY; + return null == t && e.detail && e.axis == e.HORIZONTAL_AXIS && (t = e.detail), null == n && e.detail && e.axis == e.VERTICAL_AXIS ? n = e.detail : null == n && (n = e.wheelDelta), { + x: t, + y: n + } + } + + function Un(e) { + var t = Hn(e); + return t.x *= es, t.y *= es, t + } + + function zn(e, t) { + var n = Hn(t), + r = n.x, + i = n.y, + o = e.display, + a = o.scroller, + s = a.scrollWidth > a.clientWidth, + l = a.scrollHeight > a.clientHeight; + if (r && s || i && l) { + if (i && fa && ta) e: for (var u = t.target, c = o.view; u != a; u = u.parentNode) + for (var f = 0; f < c.length; f++) + if (c[f].node == u) { + e.display.currentWheelTarget = u; + break e + } + if (r && !Yo && !ia && null != es) return i && l && Vn(e, Math.max(0, Math.min(a.scrollTop + i * es, a.scrollHeight - a.clientHeight))), Wn(e, Math.max(0, Math.min(a.scrollLeft + r * es, a.scrollWidth - a.clientWidth))), (!i || i && l) && Le(t), void(o.wheelStartX = null); + if (i && null != es) { + var d = i * es, + h = e.doc.scrollTop, + p = h + o.wrapper.clientHeight; + d < 0 ? h = Math.max(0, h + d - 50) : p = Math.min(e.doc.height, p + d + 50), kr(e, { + top: h, + bottom: p + }) + } + Za < 20 && (null == o.wheelStartX ? (o.wheelStartX = a.scrollLeft, o.wheelStartY = a.scrollTop, o.wheelDX = r, o.wheelDY = i, setTimeout(function() { + if (null != o.wheelStartX) { + var e = a.scrollLeft - o.wheelStartX, + t = a.scrollTop - o.wheelStartY, + n = t && o.wheelDY && t / o.wheelDY || e && o.wheelDX && e / o.wheelDX; + o.wheelStartX = o.wheelStartY = null, n && (es = (es * Za + n) / (Za + 1), ++Za) + } + }, 200)) : (o.wheelDX += r, o.wheelDY += i)) + } + } + + function qn(e) { + var t = e.display, + n = t.gutters.offsetWidth, + r = Math.round(e.doc.height + Vt(e.display)); + return { + clientHeight: t.scroller.clientHeight, + viewHeight: t.wrapper.clientHeight, + scrollWidth: t.scroller.scrollWidth, + clientWidth: t.scroller.clientWidth, + viewWidth: t.wrapper.clientWidth, + barLeft: e.options.fixedGutter ? n : 0, + docHeight: r, + scrollHeight: r + Ht(e) + t.barHeight, + nativeBarWidth: t.nativeBarWidth, + gutterWidth: n + } + } + + function Bn(e, t) { + t || (t = qn(e)); + var n = e.display.barWidth, + r = e.display.barHeight; + Gn(e, t); + for (var i = 0; i < 4 && n != e.display.barWidth || r != e.display.barHeight; i++) n != e.display.barWidth && e.options.lineWrapping && Dn(e), Gn(e, qn(e)), n = e.display.barWidth, r = e.display.barHeight + } + + function Gn(e, t) { + var n = e.display, + r = n.scrollbars.update(t); + n.sizer.style.paddingRight = (n.barWidth = r.right) + "px", n.sizer.style.paddingBottom = (n.barHeight = r.bottom) + "px", n.heightForcer.style.borderBottom = r.bottom + "px solid transparent", r.right && r.bottom ? (n.scrollbarFiller.style.display = "block", n.scrollbarFiller.style.height = r.bottom + "px", n.scrollbarFiller.style.width = r.right + "px") : n.scrollbarFiller.style.display = "", r.bottom && e.options.coverGutterNextToScrollbar && e.options.fixedGutter ? (n.gutterFiller.style.display = "block", n.gutterFiller.style.height = r.bottom + "px", n.gutterFiller.style.width = t.gutterWidth + "px") : n.gutterFiller.style.display = "" + } + + function Kn(e) { + e.display.scrollbars && (e.display.scrollbars.clear(), e.display.scrollbars.addClass && ya(e.display.wrapper, e.display.scrollbars.addClass)), e.display.scrollbars = new rs[e.options.scrollbarStyle](function(t) { + e.display.wrapper.insertBefore(t, e.display.scrollbarFiller), Ra(t, "mousedown", function() { + e.state.focused && setTimeout(function() { + return e.display.input.focus() + }, 0) + }), t.setAttribute("cm-not-content", "true") + }, function(t, n) { + "horizontal" == n ? Wn(e, t) : Vn(e, t) + }, e), e.display.scrollbars.addClass && s(e.display.wrapper, e.display.scrollbars.addClass) + } + + function Yn(e, t) { + if (!Pe(e, "scrollCursorIntoView")) { + var n = e.display, + i = n.sizer.getBoundingClientRect(), + o = null; + if (t.top + i.top < 0 ? o = !0 : t.bottom + i.top > (window.innerHeight || document.documentElement.clientHeight) && (o = !1), null != o && !sa) { + var a = r("div", "​", null, "position: absolute;\n top: " + (t.top - n.viewOffset - It(e.display)) + "px;\n height: " + (t.bottom - t.top + Ht(e) + n.barHeight) + "px;\n left: " + t.left + "px; width: " + Math.max(2, t.right - t.left) + "px;"); + e.display.lineSpace.appendChild(a), a.scrollIntoView(o), e.display.lineSpace.removeChild(a) + } + } + } + + function Qn(e, t, n, r) { + null == r && (r = 0); + for (var i, o = 0; o < 5; o++) { + var a = !1, + s = fn(e, t), + l = n && n != t ? fn(e, n) : s; + i = { + left: Math.min(s.left, l.left), + top: Math.min(s.top, l.top) - r, + right: Math.max(s.left, l.left), + bottom: Math.max(s.bottom, l.bottom) + r + }; + var u = Xn(e, i), + c = e.doc.scrollTop, + f = e.doc.scrollLeft; + if (null != u.scrollTop && (Vn(e, u.scrollTop), Math.abs(e.doc.scrollTop - c) > 1 && (a = !0)), null != u.scrollLeft && (Wn(e, u.scrollLeft), Math.abs(e.doc.scrollLeft - f) > 1 && (a = !0)), !a) break + } + return i + } + + function Jn(e, t) { + var n = Xn(e, t); + null != n.scrollTop && Vn(e, n.scrollTop), null != n.scrollLeft && Wn(e, n.scrollLeft) + } + + function Xn(e, t) { + var n = e.display, + r = yn(e.display); + t.top < 0 && (t.top = 0); + var i = e.curOp && null != e.curOp.scrollTop ? e.curOp.scrollTop : n.scroller.scrollTop, + o = zt(e), + a = {}; + t.bottom - t.top > o && (t.bottom = t.top + o); + var s = e.doc.height + Vt(n), + l = t.top < r, + u = t.bottom > s - r; + if (t.top < i) a.scrollTop = l ? 0 : t.top; + else if (t.bottom > i + o) { + var c = Math.min(t.top, (u ? s : t.bottom) - o); + c != i && (a.scrollTop = c) + } + var f = e.curOp && null != e.curOp.scrollLeft ? e.curOp.scrollLeft : n.scroller.scrollLeft, + d = Ut(e) - (e.options.fixedGutter ? n.gutters.offsetWidth : 0), + h = t.right - t.left > d; + return h && (t.right = t.left + d), t.left < 10 ? a.scrollLeft = 0 : t.left < f ? a.scrollLeft = Math.max(0, t.left - (h ? 0 : 10)) : t.right > d + f - 3 && (a.scrollLeft = t.right + (h ? 0 : 10) - d), a + } + + function Zn(e, t, n) { + null == t && null == n || tr(e), null != t && (e.curOp.scrollLeft = (null == e.curOp.scrollLeft ? e.doc.scrollLeft : e.curOp.scrollLeft) + t), null != n && (e.curOp.scrollTop = (null == e.curOp.scrollTop ? e.doc.scrollTop : e.curOp.scrollTop) + n) + } + + function er(e) { + tr(e); + var t = e.getCursor(), + n = t, + r = t; + e.options.lineWrapping || (n = t.ch ? L(t.line, t.ch - 1) : t, r = L(t.line, t.ch + 1)), e.curOp.scrollToPos = { + from: n, + to: r, + margin: e.options.cursorScrollMargin + } + } + + function tr(e) { + var t = e.curOp.scrollToPos; + if (t) { + e.curOp.scrollToPos = null; + var n = dn(e, t.from), + r = dn(e, t.to), + i = Xn(e, { + left: Math.min(n.left, r.left), + top: Math.min(n.top, r.top) - t.margin, + right: Math.max(n.right, r.right), + bottom: Math.max(n.bottom, r.bottom) + t.margin + }); + e.scrollTo(i.scrollLeft, i.scrollTop) + } + } + + function nr(e) { + e.curOp = { + cm: e, + viewChanged: !1, + startHeight: e.doc.height, + forceUpdate: !1, + updateInput: null, + typing: !1, + changeObjs: null, + cursorActivityHandlers: null, + cursorActivityCalled: 0, + selectionChanged: !1, + updateMaxLine: !1, + scrollLeft: null, + scrollTop: null, + scrollToPos: null, + focus: !1, + id: ++is + }, $t(e.curOp) + } + + function rr(e) { + var t = e.curOp; + xt(t, function(e) { + for (var t = 0; t < e.ops.length; t++) e.ops[t].cm.curOp = null; + ir(e) + }) + } + + function ir(e) { + for (var t = e.ops, n = 0; n < t.length; n++) or(t[n]); + for (var r = 0; r < t.length; r++) ar(t[r]); + for (var i = 0; i < t.length; i++) sr(t[i]); + for (var o = 0; o < t.length; o++) lr(t[o]); + for (var a = 0; a < t.length; a++) ur(t[a]) + } + + function or(e) { + var t = e.cm, + n = t.display; + xr(t), e.updateMaxLine && $e(t), e.mustUpdate = e.viewChanged || e.forceUpdate || null != e.scrollTop || e.scrollToPos && (e.scrollToPos.from.line < n.viewFrom || e.scrollToPos.to.line >= n.viewTo) || n.maxLineChanged && t.options.lineWrapping, e.update = e.mustUpdate && new os(t, e.mustUpdate && { + top: e.scrollTop, + ensure: e.scrollToPos + }, e.forceUpdate) + } + + function ar(e) { + e.updatedDisplay = e.mustUpdate && _r(e.cm, e.update) + } + + function sr(e) { + var t = e.cm, + n = t.display; + e.updatedDisplay && Dn(t), e.barMeasure = qn(t), n.maxLineChanged && !t.options.lineWrapping && (e.adjustWidthTo = Kt(t, n.maxLine, n.maxLine.text.length) + .left + 3, t.display.sizerWidth = e.adjustWidthTo, e.barMeasure.scrollWidth = Math.max(n.scroller.clientWidth, n.sizer.offsetLeft + e.adjustWidthTo + Ht(t) + t.display.barWidth), e.maxScrollLeft = Math.max(0, n.sizer.offsetLeft + e.adjustWidthTo - Ut(t))), (e.updatedDisplay || e.selectionChanged) && (e.preparedSelection = n.input.prepareSelection(e.focus)) + } + + function lr(e) { + var t = e.cm; + null != e.adjustWidthTo && (t.display.sizer.style.minWidth = e.adjustWidthTo + "px", e.maxScrollLeft < t.doc.scrollLeft && Wn(t, Math.min(t.display.scroller.scrollLeft, e.maxScrollLeft), !0), t.display.maxLineChanged = !1); + var n = e.focus && e.focus == a() && (!document.hasFocus || document.hasFocus()); + e.preparedSelection && t.display.input.showSelection(e.preparedSelection, n), (e.updatedDisplay || e.startHeight != t.doc.height) && Bn(t, e.barMeasure), e.updatedDisplay && Or(t, e.barMeasure), e.selectionChanged && Tn(t), t.state.focused && e.updateInput && t.display.input.reset(e.typing), n && Pn(e.cm) + } + + function ur(e) { + var t = e.cm, + n = t.display, + r = t.doc; + if (e.updatedDisplay && Cr(t, e.update), null == n.wheelStartX || null == e.scrollTop && null == e.scrollLeft && !e.scrollToPos || (n.wheelStartX = n.wheelStartY = null), null == e.scrollTop || n.scroller.scrollTop == e.scrollTop && !e.forceScroll || (r.scrollTop = Math.max(0, Math.min(n.scroller.scrollHeight - n.scroller.clientHeight, e.scrollTop)), n.scrollbars.setScrollTop(r.scrollTop), n.scroller.scrollTop = r.scrollTop), null == e.scrollLeft || n.scroller.scrollLeft == e.scrollLeft && !e.forceScroll || (r.scrollLeft = Math.max(0, Math.min(n.scroller.scrollWidth - n.scroller.clientWidth, e.scrollLeft)), n.scrollbars.setScrollLeft(r.scrollLeft), n.scroller.scrollLeft = r.scrollLeft, Ln(t)), e.scrollToPos) { + var i = Qn(t, H(r, e.scrollToPos.from), H(r, e.scrollToPos.to), e.scrollToPos.margin); + Yn(t, i) + } + var o = e.maybeHiddenMarkers, + a = e.maybeUnhiddenMarkers; + if (o) + for (var s = 0; s < o.length; ++s) o[s].lines.length || Te(o[s], "hide"); + if (a) + for (var l = 0; l < a.length; ++l) a[l].lines.length && Te(a[l], "unhide"); + n.wrapper.offsetHeight && (r.scrollTop = t.display.scroller.scrollTop), e.changeObjs && Te(t, "changes", t, e.changeObjs), e.update && e.update.finish() + } + + function cr(e, t) { + if (e.curOp) return t(); + nr(e); + try { + return t() + } finally { + rr(e) + } + } + + function fr(e, t) { + return function() { + if (e.curOp) return t.apply(e, arguments); + nr(e); + try { + return t.apply(e, arguments) + } finally { + rr(e) + } + } + } + + function dr(e) { + return function() { + if (this.curOp) return e.apply(this, arguments); + nr(this); + try { + return e.apply(this, arguments) + } finally { + rr(this) + } + } + } + + function hr(e) { + return function() { + var t = this.cm; + if (!t || t.curOp) return e.apply(this, arguments); + nr(t); + try { + return e.apply(this, arguments) + } finally { + rr(t) + } + } + } + + function pr(e, t, n, r) { + null == t && (t = e.doc.first), null == n && (n = e.doc.first + e.doc.size), r || (r = 0); + var i = e.display; + if (r && n < i.viewTo && (null == i.updateLineNumbers || i.updateLineNumbers > t) && (i.updateLineNumbers = t), e.curOp.viewChanged = !0, t >= i.viewTo) Aa && pe(e.doc, t) < i.viewTo && mr(e); + else if (n <= i.viewFrom) Aa && ve(e.doc, n + r) > i.viewFrom ? mr(e) : (i.viewFrom += r, i.viewTo += r); + else if (t <= i.viewFrom && n >= i.viewTo) mr(e); + else if (t <= i.viewFrom) { + var o = gr(e, n, n + r, 1); + o ? (i.view = i.view.slice(o.index), i.viewFrom = o.lineN, i.viewTo += r) : mr(e) + } else if (n >= i.viewTo) { + var a = gr(e, t, t, -1); + a ? (i.view = i.view.slice(0, a.index), i.viewTo = a.lineN) : mr(e) + } else { + var s = gr(e, t, t, -1), + l = gr(e, n, n + r, 1); + s && l ? (i.view = i.view.slice(0, s.index) + .concat(bt(e, s.lineN, l.lineN)) + .concat(i.view.slice(l.index)), i.viewTo += r) : mr(e) + } + var u = i.externalMeasured; + u && (n < u.lineN ? u.lineN += r : t < u.lineN + u.size && (i.externalMeasured = null)) + } + + function vr(e, t, n) { + e.curOp.viewChanged = !0; + var r = e.display, + i = e.display.externalMeasured; + if (i && t >= i.lineN && t < i.lineN + i.size && (r.externalMeasured = null), !(t < r.viewFrom || t >= r.viewTo)) { + var o = r.view[kn(e, t)]; + if (null != o.node) { + var a = o.changes || (o.changes = []); + d(a, n) == -1 && a.push(n) + } + } + } + + function mr(e) { + e.display.viewFrom = e.display.viewTo = e.doc.first, e.display.view = [], e.display.viewOffset = 0 + } + + function gr(e, t, n, r) { + var i, o = kn(e, t), + a = e.display.view; + if (!Aa || n == e.doc.first + e.doc.size) return { + index: o, + lineN: n + }; + for (var s = e.display.viewFrom, l = 0; l < o; l++) s += a[l].size; + if (s != t) { + if (r > 0) { + if (o == a.length - 1) return null; + i = s + a[o].size - t, o++ + } else i = s - t; + t += i, n += i + } + for (; pe(e.doc, n) != n;) { + if (o == (r < 0 ? 0 : a.length - 1)) return null; + n += r * a[o - (r < 0 ? 1 : 0)].size, o += r + } + return { + index: o, + lineN: n + } + } + + function yr(e, t, n) { + var r = e.display, + i = r.view; + 0 == i.length || t >= r.viewTo || n <= r.viewFrom ? (r.view = bt(e, t, n), r.viewFrom = t) : (r.viewFrom > t ? r.view = bt(e, t, r.viewFrom) + .concat(r.view) : r.viewFrom < t && (r.view = r.view.slice(kn(e, t))), r.viewFrom = t, r.viewTo < n ? r.view = r.view.concat(bt(e, r.viewTo, n)) : r.viewTo > n && (r.view = r.view.slice(0, kn(e, n)))), r.viewTo = n + } + + function br(e) { + for (var t = e.display.view, n = 0, r = 0; r < t.length; r++) { + var i = t[r]; + i.hidden || i.node && !i.changes || ++n + } + return n + } + + function $r(e, t) { + e.doc.mode.startState && e.doc.frontier < e.display.viewTo && e.state.highlight.set(t, u(wr, e)) + } + + function wr(e) { + var t = e.doc; + if (t.frontier < t.first && (t.frontier = t.first), !(t.frontier >= e.display.viewTo)) { + var n = +new Date + e.options.workTime, + r = Ye(t.mode, et(e, t.frontier)), + i = []; + t.iter(t.frontier, Math.min(t.first + t.size, e.display.viewTo + 500), function(o) { + if (t.frontier >= e.display.viewFrom) { + var a = o.styles, + s = o.text.length > e.options.maxHighlightLength, + l = Xe(e, o, s ? Ye(t.mode, r) : r, !0); + o.styles = l.styles; + var u = o.styleClasses, + c = l.classes; + c ? o.styleClasses = c : u && (o.styleClasses = null); + for (var f = !a || a.length != o.styles.length || u != c && (!u || !c || u.bgClass != c.bgClass || u.textClass != c.textClass), d = 0; !f && d < a.length; ++d) f = a[d] != o.styles[d]; + f && i.push(t.frontier), o.stateAfter = s ? r : Ye(t.mode, r) + } else o.text.length <= e.options.maxHighlightLength && tt(e, o.text, r), o.stateAfter = t.frontier % 5 == 0 ? Ye(t.mode, r) : null; + if (++t.frontier, +new Date > n) return $r(e, e.options.workDelay), !0 + }), i.length && cr(e, function() { + for (var t = 0; t < i.length; t++) vr(e, i[t], "text") + }) + } + } + + function xr(e) { + var t = e.display; + !t.scrollbarsClipped && t.scroller.offsetWidth && (t.nativeBarWidth = t.scroller.offsetWidth - t.scroller.clientWidth, t.heightForcer.style.height = Ht(e) + "px", t.sizer.style.marginBottom = -t.nativeBarWidth + "px", t.sizer.style.borderRightWidth = Ht(e) + "px", t.scrollbarsClipped = !0) + } + + function _r(e, n) { + var r = e.display, + i = e.doc; + if (n.editorIsHidden) return mr(e), !1; + if (!n.force && n.visible.from >= r.viewFrom && n.visible.to <= r.viewTo && (null == r.updateLineNumbers || r.updateLineNumbers >= r.viewTo) && r.renderedView == r.view && 0 == br(e)) return !1; + Rn(e) && (mr(e), n.dims = $n(e)); + var o = i.first + i.size, + s = Math.max(n.visible.from - e.options.viewportMargin, i.first), + l = Math.min(o, n.visible.to + e.options.viewportMargin); + r.viewFrom < s && s - r.viewFrom < 20 && (s = Math.max(i.first, r.viewFrom)), r.viewTo > l && r.viewTo - l < 20 && (l = Math.min(o, r.viewTo)), Aa && (s = pe(e.doc, s), l = ve(e.doc, l)); + var u = s != r.viewFrom || l != r.viewTo || r.lastWrapHeight != n.wrapperHeight || r.lastWrapWidth != n.wrapperWidth; + yr(e, s, l), r.viewOffset = ye(S(e.doc, r.viewFrom)), e.display.mover.style.top = r.viewOffset + "px"; + var c = br(e); + if (!u && 0 == c && !n.force && r.renderedView == r.view && (null == r.updateLineNumbers || r.updateLineNumbers >= r.viewTo)) return !1; + var f = a(); + return c > 4 && (r.lineDiv.style.display = "none"), Er(e, r.updateLineNumbers, n.dims), c > 4 && (r.lineDiv.style.display = ""), r.renderedView = r.view, f && a() != f && f.offsetHeight && f.focus(), t(r.cursorDiv), t(r.selectionDiv), r.gutters.style.height = r.sizer.style.minHeight = 0, u && (r.lastWrapHeight = n.wrapperHeight, r.lastWrapWidth = n.wrapperWidth, $r(e, 400)), r.updateLineNumbers = null, !0 + } + + function Cr(e, t) { + for (var n = t.viewport, r = !0; + (r && e.options.lineWrapping && t.oldDisplayWidth != Ut(e) || (n && null != n.top && (n = { + top: Math.min(e.doc.height + Vt(e.display) - zt(e), n.top) + }), t.visible = In(e.display, e.doc, n), !(t.visible.from >= e.display.viewFrom && t.visible.to <= e.display.viewTo))) && _r(e, t); r = !1) { + Dn(e); + var i = qn(e); + En(e), Bn(e, i), Or(e, i) + } + t.signal(e, "update", e), e.display.viewFrom == e.display.reportedViewFrom && e.display.viewTo == e.display.reportedViewTo || (t.signal(e, "viewportChange", e, e.display.viewFrom, e.display.viewTo), e.display.reportedViewFrom = e.display.viewFrom, e.display.reportedViewTo = e.display.viewTo) + } + + function kr(e, t) { + var n = new os(e, t); + if (_r(e, n)) { + Dn(e), Cr(e, n); + var r = qn(e); + En(e), Bn(e, r), Or(e, r), n.finish() + } + } + + function Er(e, n, r) { + function i(t) { + var n = t.nextSibling; + return ta && fa && e.display.currentWheelTarget == t ? t.style.display = "none" : t.parentNode.removeChild(t), n + } + for (var o = e.display, a = e.options.lineNumbers, s = o.lineDiv, l = s.firstChild, u = o.view, c = o.viewFrom, f = 0; f < u.length; f++) { + var h = u[f]; + if (h.hidden); + else if (h.node && h.node.parentNode == s) { + for (; l != h.node;) l = i(l); + var p = a && null != n && n <= c && h.lineNumber; + h.changes && (d(h.changes, "gutter") > -1 && (p = !1), kt(e, h, c, r)), p && (t(h.lineNumber), h.lineNumber.appendChild(document.createTextNode(F(e.options, c)))), l = h.node.nextSibling + } else { + var v = jt(e, h, c, r); + s.insertBefore(v, l) + } + c += h.size + } + for (; l;) l = i(l) + } + + function Sr(e) { + var t = e.display.gutters.offsetWidth; + e.display.sizer.style.marginLeft = t + "px" + } + + function Or(e, t) { + e.display.sizer.style.minHeight = t.docHeight + "px", e.display.heightForcer.style.top = t.docHeight + "px", e.display.gutters.style.height = t.docHeight + e.display.barHeight + Ht(e) + "px" + } + + function Mr(e) { + var n = e.display.gutters, + i = e.options.gutters; + t(n); + for (var o = 0; o < i.length; ++o) { + var a = i[o], + s = n.appendChild(r("div", null, "CodeMirror-gutter " + a)); + "CodeMirror-linenumbers" == a && (e.display.lineGutter = s, s.style.width = (e.display.lineNumWidth || 1) + "px") + } + n.style.display = o ? "" : "none", Sr(e) + } + + function Tr(e) { + var t = d(e.gutters, "CodeMirror-linenumbers"); + t == -1 && e.lineNumbers ? e.gutters = e.gutters.concat(["CodeMirror-linenumbers"]) : t > -1 && !e.lineNumbers && (e.gutters = e.gutters.slice(0), e.gutters.splice(t, 1)) + } + + function Pr(e, t) { + var n = e[t]; + e.sort(function(e, t) { + return R(e.from(), t.from()) + }), t = d(e, n); + for (var r = 1; r < e.length; r++) { + var i = e[r], + o = e[r - 1]; + if (R(o.to(), i.from()) >= 0) { + var a = V(o.from(), i.from()), + s = I(o.to(), i.to()), + l = o.empty() ? i.from() == i.head : o.from() == o.head; + r <= t && --t, e.splice(--r, 2, new ss(l ? s : a, l ? a : s)) + } + } + return new as(e, t) + } + + function Ar(e, t) { + return new as([new ss(e, t || e)], 0) + } + + function jr(e) { + return e.text ? L(e.from.line + e.text.length - 1, v(e.text) + .length + (1 == e.text.length ? e.from.ch : 0)) : e.to + } + + function Fr(e, t) { + if (R(e, t.from) < 0) return e; + if (R(e, t.to) <= 0) return jr(t); + var n = e.line + t.text.length - (t.to.line - t.from.line) - 1, + r = e.ch; + return e.line == t.to.line && (r += jr(t) + .ch - t.to.ch), L(n, r) + } + + function Lr(e, t) { + for (var n = [], r = 0; r < e.sel.ranges.length; r++) { + var i = e.sel.ranges[r]; + n.push(new ss(Fr(i.anchor, t), Fr(i.head, t))) + } + return Pr(n, e.sel.primIndex) + } + + function Rr(e, t, n) { + return e.line == t.line ? L(n.line, e.ch - t.ch + n.ch) : L(n.line + (e.line - t.line), e.ch) + } + + function Dr(e, t, n) { + for (var r = [], i = L(e.first, 0), o = i, a = 0; a < t.length; a++) { + var s = t[a], + l = Rr(s.from, i, o), + u = Rr(jr(s), i, o); + if (i = s.to, o = u, "around" == n) { + var c = e.sel.ranges[a], + f = R(c.head, c.anchor) < 0; + r[a] = new ss(f ? u : l, f ? l : u) + } else r[a] = new ss(l, l) + } + return new as(r, e.sel.primIndex) + } + + function Nr(e) { + e.doc.mode = Ge(e.options, e.doc.modeOption), Ir(e) + } + + function Ir(e) { + e.doc.iter(function(e) { + e.stateAfter && (e.stateAfter = null), e.styles && (e.styles = null) + }), e.doc.frontier = e.doc.first, $r(e, 100), e.state.modeGen++, e.curOp && pr(e) + } + + function Vr(e, t) { + return 0 == t.from.ch && 0 == t.to.ch && "" == v(t.text) && (!e.cm || e.cm.options.wholeLineUpdateBefore) + } + + function Wr(e, t, n, r) { + function i(e) { + return n ? n[e] : null + } + + function o(e, n, i) { + lt(e, n, i, r), _t(e, "change", e, t) + } + + function a(e, t) { + for (var n = [], o = e; o < t; ++o) n.push(new Ba(u[o], i(o), r)); + return n + } + var s = t.from, + l = t.to, + u = t.text, + c = S(e, s.line), + f = S(e, l.line), + d = v(u), + h = i(u.length - 1), + p = l.line - s.line; + if (t.full) e.insert(0, a(0, u.length)), e.remove(u.length, e.size - u.length); + else if (Vr(e, t)) { + var m = a(0, u.length - 1); + o(f, f.text, h), p && e.remove(s.line, p), m.length && e.insert(s.line, m) + } else if (c == f) + if (1 == u.length) o(c, c.text.slice(0, s.ch) + d + c.text.slice(l.ch), h); + else { + var g = a(1, u.length - 1); + g.push(new Ba(d + c.text.slice(l.ch), h, r)), o(c, c.text.slice(0, s.ch) + u[0], i(0)), e.insert(s.line + 1, g) + } + else if (1 == u.length) o(c, c.text.slice(0, s.ch) + u[0] + f.text.slice(l.ch), i(0)), e.remove(s.line + 1, p); + else { + o(c, c.text.slice(0, s.ch) + u[0], i(0)), o(f, d + f.text.slice(l.ch), h); + var y = a(1, u.length - 1); + p > 1 && e.remove(s.line + 1, p - 1), e.insert(s.line + 1, y) + } + _t(e, "change", e, t) + } + + function Hr(e, t, n) { + function r(e, i, o) { + if (e.linked) + for (var a = 0; a < e.linked.length; ++a) { + var s = e.linked[a]; + if (s.doc != i) { + var l = o && s.sharedHist; + n && !l || (t(s.doc, l), r(s.doc, e, l)) + } + } + } + r(e, null, !0) + } + + function Ur(e, t) { + if (t.cm) throw new Error("This document is already in use."); + e.doc = t, t.cm = e, _n(e), Nr(e), zr(e), e.options.lineWrapping || $e(e), e.options.mode = t.modeOption, pr(e) + } + + function zr(e) { + ("rtl" == e.doc.direction ? s : ya)(e.display.lineDiv, "CodeMirror-rtl") + } + + function qr(e) { + cr(e, function() { + zr(e), pr(e) + }) + } + + function Br(e) { + this.done = [], this.undone = [], this.undoDepth = 1 / 0, this.lastModTime = this.lastSelTime = 0, this.lastOp = this.lastSelOp = null, this.lastOrigin = this.lastSelOrigin = null, this.generation = this.maxGeneration = e || 1 + } + + function Gr(e, t) { + var n = { + from: N(t.from), + to: jr(t), + text: O(e, t.from, t.to) + }; + return ei(e, n, t.from.line, t.to.line + 1), Hr(e, function(e) { + return ei(e, n, t.from.line, t.to.line + 1) + }, !0), n + } + + function Kr(e) { + for (; e.length;) { + var t = v(e); + if (!t.ranges) break; + e.pop() + } + } + + function Yr(e, t) { + return t ? (Kr(e.done), v(e.done)) : e.done.length && !v(e.done) + .ranges ? v(e.done) : e.done.length > 1 && !e.done[e.done.length - 2].ranges ? (e.done.pop(), v(e.done)) : void 0 + } + + function Qr(e, t, n, r) { + var i = e.history; + i.undone.length = 0; + var o, a, s = +new Date; + if ((i.lastOp == r || i.lastOrigin == t.origin && t.origin && ("+" == t.origin.charAt(0) && e.cm && i.lastModTime > s - e.cm.options.historyEventDelay || "*" == t.origin.charAt(0))) && (o = Yr(i, i.lastOp == r))) a = v(o.changes), 0 == R(t.from, t.to) && 0 == R(t.from, a.to) ? a.to = jr(t) : o.changes.push(Gr(e, t)); + else { + var l = v(i.done); + for (l && l.ranges || Zr(e.sel, i.done), o = { + changes: [Gr(e, t)], + generation: i.generation + }, i.done.push(o); i.done.length > i.undoDepth;) i.done.shift(), i.done[0].ranges || i.done.shift() + } + i.done.push(n), i.generation = ++i.maxGeneration, i.lastModTime = i.lastSelTime = s, i.lastOp = i.lastSelOp = r, i.lastOrigin = i.lastSelOrigin = t.origin, a || Te(e, "historyAdded") + } + + function Jr(e, t, n, r) { + var i = t.charAt(0); + return "*" == i || "+" == i && n.ranges.length == r.ranges.length && n.somethingSelected() == r.somethingSelected() && new Date - e.history.lastSelTime <= (e.cm ? e.cm.options.historyEventDelay : 500) + } + + function Xr(e, t, n, r) { + var i = e.history, + o = r && r.origin; + n == i.lastSelOp || o && i.lastSelOrigin == o && (i.lastModTime == i.lastSelTime && i.lastOrigin == o || Jr(e, o, v(i.done), t)) ? i.done[i.done.length - 1] = t : Zr(t, i.done), i.lastSelTime = +new Date, i.lastSelOrigin = o, i.lastSelOp = n, r && r.clearRedo !== !1 && Kr(i.undone) + } + + function Zr(e, t) { + var n = v(t); + n && n.ranges && n.equals(e) || t.push(e) + } + + function ei(e, t, n, r) { + var i = t["spans_" + e.id], + o = 0; + e.iter(Math.max(e.first, n), Math.min(e.first + e.size, r), function(n) { + n.markedSpans && ((i || (i = t["spans_" + e.id] = {}))[o] = n.markedSpans), ++o + }) + } + + function ti(e) { + if (!e) return null; + for (var t, n = 0; n < e.length; ++n) e[n].marker.explicitlyCleared ? t || (t = e.slice(0, n)) : t && t.push(e[n]); + return t ? t.length ? t : null : e + } + + function ni(e, t) { + var n = t["spans_" + e.id]; + if (!n) return null; + for (var r = [], i = 0; i < t.text.length; ++i) r.push(ti(n[i])); + return r + } + + function ri(e, t) { + var n = ni(e, t), + r = Z(e, t); + if (!n) return r; + if (!r) return n; + for (var i = 0; i < n.length; ++i) { + var o = n[i], + a = r[i]; + if (o && a) e: for (var s = 0; s < a.length; ++s) { + for (var l = a[s], u = 0; u < o.length; ++u) + if (o[u].marker == l.marker) continue e; + o.push(l) + } else a && (n[i] = a) + } + return n + } + + function ii(e, t, n) { + for (var r = [], i = 0; i < e.length; ++i) { + var o = e[i]; + if (o.ranges) r.push(n ? as.prototype.deepCopy.call(o) : o); + else { + var a = o.changes, + s = []; + r.push({ + changes: s + }); + for (var l = 0; l < a.length; ++l) { + var u = a[l], + c = void 0; + if (s.push({ + from: u.from, + to: u.to, + text: u.text + }), t) + for (var f in u)(c = f.match(/^spans_(\d+)$/)) && d(t, Number(c[1])) > -1 && (v(s)[f] = u[f], delete u[f]) + } + } + } + return r + } + + function oi(e, t, n, r) { + if (e.cm && e.cm.display.shift || e.extend) { + var i = t.anchor; + if (r) { + var o = R(n, i) < 0; + o != R(r, i) < 0 ? (i = n, n = r) : o != R(n, r) < 0 && (n = r) + } + return new ss(i, n) + } + return new ss(r || n, n) + } + + function ai(e, t, n, r) { + di(e, new as([oi(e, e.sel.primary(), t, n)], 0), r) + } + + function si(e, t, n) { + for (var r = [], i = 0; i < e.sel.ranges.length; i++) r[i] = oi(e, e.sel.ranges[i], t[i], null); + var o = Pr(r, e.sel.primIndex); + di(e, o, n) + } + + function li(e, t, n, r) { + var i = e.sel.ranges.slice(0); + i[t] = n, di(e, Pr(i, e.sel.primIndex), r) + } + + function ui(e, t, n, r) { + di(e, Ar(t, n), r) + } + + function ci(e, t, n) { + var r = { + ranges: t.ranges, + update: function(t) { + var n = this; + this.ranges = []; + for (var r = 0; r < t.length; r++) n.ranges[r] = new ss(H(e, t[r].anchor), H(e, t[r].head)) + }, + origin: n && n.origin + }; + return Te(e, "beforeSelectionChange", e, r), e.cm && Te(e.cm, "beforeSelectionChange", e.cm, r), r.ranges != t.ranges ? Pr(r.ranges, r.ranges.length - 1) : t + } + + function fi(e, t, n) { + var r = e.history.done, + i = v(r); + i && i.ranges ? (r[r.length - 1] = t, hi(e, t, n)) : di(e, t, n) + } + + function di(e, t, n) { + hi(e, t, n), Xr(e, e.sel, e.cm ? e.cm.curOp.id : NaN, n) + } + + function hi(e, t, n) { + (je(e, "beforeSelectionChange") || e.cm && je(e.cm, "beforeSelectionChange")) && (t = ci(e, t, n)); + var r = n && n.bias || (R(t.primary() + .head, e.sel.primary() + .head) < 0 ? -1 : 1); + pi(e, mi(e, t, r, !0)), n && n.scroll === !1 || !e.cm || er(e.cm) + } + + function pi(e, t) { + t.equals(e.sel) || (e.sel = t, e.cm && (e.cm.curOp.updateInput = e.cm.curOp.selectionChanged = !0, Ae(e.cm)), _t(e, "cursorActivity", e)) + } + + function vi(e) { + pi(e, mi(e, e.sel, null, !1), ka) + } + + function mi(e, t, n, r) { + for (var i, o = 0; o < t.ranges.length; o++) { + var a = t.ranges[o], + s = t.ranges.length == e.sel.ranges.length && e.sel.ranges[o], + l = yi(e, a.anchor, s && s.anchor, n, r), + u = yi(e, a.head, s && s.head, n, r); + (i || l != a.anchor || u != a.head) && (i || (i = t.ranges.slice(0, o)), i[o] = new ss(l, u)) + } + return i ? Pr(i, t.primIndex) : t + } + + function gi(e, t, n, r, i) { + var o = S(e, t.line); + if (o.markedSpans) + for (var a = 0; a < o.markedSpans.length; ++a) { + var s = o.markedSpans[a], + l = s.marker; + if ((null == s.from || (l.inclusiveLeft ? s.from <= t.ch : s.from < t.ch)) && (null == s.to || (l.inclusiveRight ? s.to >= t.ch : s.to > t.ch))) { + if (i && (Te(l, "beforeCursorEnter"), l.explicitlyCleared)) { + if (o.markedSpans) { + --a; + continue + } + break + } + if (!l.atomic) continue; + if (n) { + var u = l.find(r < 0 ? 1 : -1), + c = void 0; + if ((r < 0 ? l.inclusiveRight : l.inclusiveLeft) && (u = bi(e, u, -r, u && u.line == t.line ? o : null)), u && u.line == t.line && (c = R(u, n)) && (r < 0 ? c < 0 : c > 0)) return gi(e, u, t, r, i) + } + var f = l.find(r < 0 ? -1 : 1); + return (r < 0 ? l.inclusiveLeft : l.inclusiveRight) && (f = bi(e, f, r, f.line == t.line ? o : null)), f ? gi(e, f, t, r, i) : null + } + } + return t + } + + function yi(e, t, n, r, i) { + var o = r || 1, + a = gi(e, t, n, o, i) || !i && gi(e, t, n, o, !0) || gi(e, t, n, -o, i) || !i && gi(e, t, n, -o, !0); + return a ? a : (e.cantEdit = !0, L(e.first, 0)) + } + + function bi(e, t, n, r) { + return n < 0 && 0 == t.ch ? t.line > e.first ? H(e, L(t.line - 1)) : null : n > 0 && t.ch == (r || S(e, t.line)) + .text.length ? t.line < e.first + e.size - 1 ? L(t.line + 1, 0) : null : new L(t.line, t.ch + n) + } + + function $i(e) { + e.setSelection(L(e.firstLine(), 0), L(e.lastLine()), ka) + } + + function wi(e, t, n) { + var r = { + canceled: !1, + from: t.from, + to: t.to, + text: t.text, + origin: t.origin, + cancel: function() { + return r.canceled = !0 + } + }; + return n && (r.update = function(t, n, i, o) { + t && (r.from = H(e, t)), n && (r.to = H(e, n)), i && (r.text = i), void 0 !== o && (r.origin = o) + }), Te(e, "beforeChange", e, r), e.cm && Te(e.cm, "beforeChange", e.cm, r), r.canceled ? null : { + from: r.from, + to: r.to, + text: r.text, + origin: r.origin + } + } + + function xi(e, t, n) { + if (e.cm) { + if (!e.cm.curOp) return fr(e.cm, xi)(e, t, n); + if (e.cm.state.suppressEdits) return + } + if (!(je(e, "beforeChange") || e.cm && je(e.cm, "beforeChange")) || (t = wi(e, t, !0))) { + var r = Pa && !n && te(e, t.from, t.to); + if (r) + for (var i = r.length - 1; i >= 0; --i) _i(e, { + from: r[i].from, + to: r[i].to, + text: i ? [""] : t.text + }); + else _i(e, t) + } + } + + function _i(e, t) { + if (1 != t.text.length || "" != t.text[0] || 0 != R(t.from, t.to)) { + var n = Lr(e, t); + Qr(e, t, n, e.cm ? e.cm.curOp.id : NaN), Ei(e, t, n, Z(e, t)); + var r = []; + Hr(e, function(e, n) { + n || d(r, e.history) != -1 || (Pi(e.history, t), r.push(e.history)), Ei(e, t, null, Z(e, t)) + }) + } + } + + function Ci(e, t, n) { + if (!e.cm || !e.cm.state.suppressEdits || n) { + for (var r, i = e.history, o = e.sel, a = "undo" == t ? i.done : i.undone, s = "undo" == t ? i.undone : i.done, l = 0; l < a.length && (r = a[l], n ? !r.ranges || r.equals(e.sel) : r.ranges); l++); + if (l != a.length) { + for (i.lastOrigin = i.lastSelOrigin = null; r = a.pop(), r.ranges;) { + if (Zr(r, s), n && !r.equals(e.sel)) return void di(e, r, { + clearRedo: !1 + }); + o = r + } + var u = []; + Zr(o, s), s.push({ + changes: u, + generation: i.generation + }), i.generation = r.generation || ++i.maxGeneration; + for (var c = je(e, "beforeChange") || e.cm && je(e.cm, "beforeChange"), f = function(n) { + var i = r.changes[n]; + if (i.origin = t, c && !wi(e, i, !1)) return a.length = 0, {}; + u.push(Gr(e, i)); + var o = n ? Lr(e, i) : v(a); + Ei(e, i, o, ri(e, i)), !n && e.cm && e.cm.scrollIntoView({ + from: i.from, + to: jr(i) + }); + var s = []; + Hr(e, function(e, t) { + t || d(s, e.history) != -1 || (Pi(e.history, i), s.push(e.history)), Ei(e, i, null, ri(e, i)) + }) + }, h = r.changes.length - 1; h >= 0; --h) { + var p = f(h); + if (p) return p.v + } + } + } + } + + function ki(e, t) { + if (0 != t && (e.first += t, e.sel = new as(m(e.sel.ranges, function(e) { + return new ss(L(e.anchor.line + t, e.anchor.ch), L(e.head.line + t, e.head.ch)) + }), e.sel.primIndex), e.cm)) { + pr(e.cm, e.first, e.first - t, t); + for (var n = e.cm.display, r = n.viewFrom; r < n.viewTo; r++) vr(e.cm, r, "gutter") + } + } + + function Ei(e, t, n, r) { + if (e.cm && !e.cm.curOp) return fr(e.cm, Ei)(e, t, n, r); + if (t.to.line < e.first) return void ki(e, t.text.length - 1 - (t.to.line - t.from.line)); + if (!(t.from.line > e.lastLine())) { + if (t.from.line < e.first) { + var i = t.text.length - 1 - (e.first - t.from.line); + ki(e, i), t = { + from: L(e.first, 0), + to: L(t.to.line + i, t.to.ch), + text: [v(t.text)], + origin: t.origin + } + } + var o = e.lastLine(); + t.to.line > o && (t = { + from: t.from, + to: L(o, S(e, o) + .text.length), + text: [t.text[0]], + origin: t.origin + }), t.removed = O(e, t.from, t.to), n || (n = Lr(e, t)), e.cm ? Si(e.cm, t, r) : Wr(e, t, r), hi(e, n, ka) + } + } + + function Si(e, t, n) { + var r = e.doc, + i = e.display, + o = t.from, + a = t.to, + s = !1, + l = o.line; + e.options.lineWrapping || (l = P(fe(S(r, o.line))), r.iter(l, a.line + 1, function(e) { + if (e == i.maxLine) return s = !0, !0 + })), r.sel.contains(t.from, t.to) > -1 && Ae(e), Wr(r, t, n, xn(e)), e.options.lineWrapping || (r.iter(l, o.line + t.text.length, function(e) { + var t = be(e); + t > i.maxLineLength && (i.maxLine = e, i.maxLineLength = t, i.maxLineChanged = !0, s = !1) + }), s && (e.curOp.updateMaxLine = !0)), r.frontier = Math.min(r.frontier, o.line), $r(e, 400); + var u = t.text.length - (a.line - o.line) - 1; + t.full ? pr(e) : o.line != a.line || 1 != t.text.length || Vr(e.doc, t) ? pr(e, o.line, a.line + 1, u) : vr(e, o.line, "text"); + var c = je(e, "changes"), + f = je(e, "change"); + if (f || c) { + var d = { + from: o, + to: a, + text: t.text, + removed: t.removed, + origin: t.origin + }; + f && _t(e, "change", e, d), c && (e.curOp.changeObjs || (e.curOp.changeObjs = [])) + .push(d) + } + e.display.selForContextMenu = null + } + + function Oi(e, t, n, r, i) { + if (r || (r = n), R(r, n) < 0) { + var o = r; + r = n, n = o + } + "string" == typeof t && (t = e.splitLines(t)), xi(e, { + from: n, + to: r, + text: t, + origin: i + }) + } + + function Mi(e, t, n, r) { + n < e.line ? e.line += r : t < e.line && (e.line = t, e.ch = 0) + } + + function Ti(e, t, n, r) { + for (var i = 0; i < e.length; ++i) { + var o = e[i], + a = !0; + if (o.ranges) { + o.copied || (o = e[i] = o.deepCopy(), o.copied = !0); + for (var s = 0; s < o.ranges.length; s++) Mi(o.ranges[s].anchor, t, n, r), Mi(o.ranges[s].head, t, n, r) + } else { + for (var l = 0; l < o.changes.length; ++l) { + var u = o.changes[l]; + if (n < u.from.line) u.from = L(u.from.line + r, u.from.ch), u.to = L(u.to.line + r, u.to.ch); + else if (t <= u.to.line) { + a = !1; + break + } + } + a || (e.splice(0, i + 1), i = 0) + } + } + } + + function Pi(e, t) { + var n = t.from.line, + r = t.to.line, + i = t.text.length - (r - n) - 1; + Ti(e.done, n, r, i), Ti(e.undone, n, r, i) + } + + function Ai(e, t, n, r) { + var i = t, + o = t; + return "number" == typeof t ? o = S(e, W(e, t)) : i = P(t), null == i ? null : (r(o, i) && e.cm && vr(e.cm, i, n), o) + } + + function ji(e, t, n) { + ye(t) < (e.curOp && e.curOp.scrollTop || e.doc.scrollTop) && Zn(e, null, n) + } + + function Fi(e, t, n, r) { + var i = new cs(e, n, r), + o = e.cm; + return o && i.noHScroll && (o.display.alignWidgets = !0), Ai(e, t, "widget", function(t) { + var n = t.widgets || (t.widgets = []); + if (null == i.insertAt ? n.push(i) : n.splice(Math.min(n.length - 1, Math.max(0, i.insertAt)), 0, i), i.line = t, o && !me(e, t)) { + var r = ye(t) < e.scrollTop; + T(t, t.height + Dt(i)), r && Zn(o, null, i.height), o.curOp.forceUpdate = !0 + } + return !0 + }), _t(o, "lineWidgetAdded", o, i, "number" == typeof t ? t : P(t)), i + } + + function Li(e, t, n, r, o) { + if (r && r.shared) return Ri(e, t, n, r, o); + if (e.cm && !e.cm.curOp) return fr(e.cm, Li)(e, t, n, r, o); + var a = new ds(e, o), + s = R(t, n); + if (r && c(r, a, !1), s > 0 || 0 == s && a.clearWhenEmpty !== !1) return a; + if (a.replacedWith && (a.collapsed = !0, a.widgetNode = i("span", [a.replacedWith], "CodeMirror-widget"), r.handleMouseEvents || a.widgetNode.setAttribute("cm-ignore-events", "true"), r.insertLeft && (a.widgetNode.insertLeft = !0)), a.collapsed) { + if (ce(e, t.line, t, n, a) || t.line != n.line && ce(e, n.line, t, n, a)) throw new Error("Inserting collapsed marker partially overlapping an existing one"); + B() + } + a.addToHistory && Qr(e, { + from: t, + to: n, + origin: "markText" + }, e.sel, NaN); + var l, u = t.line, + f = e.cm; + if (e.iter(u, n.line + 1, function(e) { + f && a.collapsed && !f.options.lineWrapping && fe(e) == f.display.maxLine && (l = !0), a.collapsed && u != t.line && T(e, 0), Q(e, new G(a, u == t.line ? t.ch : null, u == n.line ? n.ch : null)), ++u + }), a.collapsed && e.iter(t.line, n.line + 1, function(t) { + me(e, t) && T(t, 0) + }), a.clearOnEnter && Ra(a, "beforeCursorEnter", function() { + return a.clear() + }), a.readOnly && (q(), (e.history.done.length || e.history.undone.length) && e.clearHistory()), a.collapsed && (a.id = ++fs, a.atomic = !0), f) { + if (l && (f.curOp.updateMaxLine = !0), a.collapsed) pr(f, t.line, n.line + 1); + else if (a.className || a.title || a.startStyle || a.endStyle || a.css) + for (var d = t.line; d <= n.line; d++) vr(f, d, "text"); + a.atomic && vi(f.doc), _t(f, "markerAdded", f, a) + } + return a + } + + function Ri(e, t, n, r, i) { + r = c(r), r.shared = !1; + var o = [Li(e, t, n, r, i)], + a = o[0], + s = r.widgetNode; + return Hr(e, function(e) { + s && (r.widgetNode = s.cloneNode(!0)), o.push(Li(e, H(e, t), H(e, n), r, i)); + for (var l = 0; l < e.linked.length; ++l) + if (e.linked[l].isParent) return; + a = v(o) + }), new hs(o, a) + } + + function Di(e) { + return e.findMarks(L(e.first, 0), e.clipPos(L(e.lastLine())), function(e) { + return e.parent + }) + } + + function Ni(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n], + i = r.find(), + o = e.clipPos(i.from), + a = e.clipPos(i.to); + if (R(o, a)) { + var s = Li(e, o, a, r.primary, r.primary.type); + r.markers.push(s), s.parent = r + } + } + } + + function Ii(e) { + for (var t = function(t) { + var n = e[t], + r = [n.primary.doc]; + Hr(n.primary.doc, function(e) { + return r.push(e) + }); + for (var i = 0; i < n.markers.length; i++) { + var o = n.markers[i]; + d(r, o.doc) == -1 && (o.parent = null, n.markers.splice(i--, 1)) + } + }, n = 0; n < e.length; n++) t(n) + } + + function Vi(e) { + var t = this; + if (Ui(t), !Pe(t, e) && !Nt(t.display, e)) { + Le(e), Zo && (ms = +new Date); + var n = Cn(t, e, !0), + r = e.dataTransfer.files; + if (n && !t.isReadOnly()) + if (r && r.length && window.FileReader && window.File) + for (var i = r.length, o = Array(i), a = 0, s = function(e, r) { + if (!t.options.allowDropFileTypes || d(t.options.allowDropFileTypes, e.type) != -1) { + var s = new FileReader; + s.onload = fr(t, function() { + var e = s.result; + if (/[\x00-\x08\x0e-\x1f]{2}/.test(e) && (e = ""), o[r] = e, ++a == i) { + n = H(t.doc, n); + var l = { + from: n, + to: n, + text: t.doc.splitLines(o.join(t.doc.lineSeparator())), + origin: "paste" + }; + xi(t.doc, l), fi(t.doc, Ar(n, jr(l))) + } + }), s.readAsText(e) + } + }, l = 0; l < i; ++l) s(r[l], l); + else { + if (t.state.draggingText && t.doc.sel.contains(n) > -1) return t.state.draggingText(e), void setTimeout(function() { + return t.display.input.focus() + }, 20); + try { + var u = e.dataTransfer.getData("Text"); + if (u) { + var c; + if (t.state.draggingText && !t.state.draggingText.copy && (c = t.listSelections()), hi(t.doc, Ar(n, n)), c) + for (var f = 0; f < c.length; ++f) Oi(t.doc, "", c[f].anchor, c[f].head, "drag"); + t.replaceSelection(u, "around", "paste"), t.display.input.focus() + } + } catch (e) {} + } + } + } + + function Wi(e, t) { + if (Zo && (!e.state.draggingText || +new Date - ms < 100)) return void Ne(t); + if (!Pe(e, t) && !Nt(e.display, t) && (t.dataTransfer.setData("Text", e.getSelection()), t.dataTransfer.effectAllowed = "copyMove", t.dataTransfer.setDragImage && !oa)) { + var n = r("img", null, null, "position: fixed; left: 0; top: 0;"); + n.src = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", ia && (n.width = n.height = 1, e.display.wrapper.appendChild(n), n._top = n.offsetTop), t.dataTransfer.setDragImage(n, 0, 0), ia && n.parentNode.removeChild(n) + } + } + + function Hi(e, t) { + var i = Cn(e, t); + if (i) { + var o = document.createDocumentFragment(); + On(e, i, o), e.display.dragCursor || (e.display.dragCursor = r("div", null, "CodeMirror-cursors CodeMirror-dragcursors"), e.display.lineSpace.insertBefore(e.display.dragCursor, e.display.cursorDiv)), n(e.display.dragCursor, o) + } + } + + function Ui(e) { + e.display.dragCursor && (e.display.lineSpace.removeChild(e.display.dragCursor), e.display.dragCursor = null) + } + + function zi(e) { + if (document.body.getElementsByClassName) + for (var t = document.body.getElementsByClassName("CodeMirror"), n = 0; n < t.length; n++) { + var r = t[n].CodeMirror; + r && e(r) + } + } + + function qi() { + gs || (Bi(), gs = !0) + } + + function Bi() { + var e; + Ra(window, "resize", function() { + null == e && (e = setTimeout(function() { + e = null, zi(Gi) + }, 100)) + }), Ra(window, "blur", function() { + return zi(Fn) + }) + } + + function Gi(e) { + var t = e.display; + t.lastWrapHeight == t.wrapper.clientHeight && t.lastWrapWidth == t.wrapper.clientWidth || (t.cachedCharWidth = t.cachedTextHeight = t.cachedPaddingH = null, t.scrollbarsClipped = !1, e.setSize()) + } + + function Ki(e) { + var t = e.split(/-(?!$)/); + e = t[t.length - 1]; + for (var n, r, i, o, a = 0; a < t.length - 1; a++) { + var s = t[a]; + if (/^(cmd|meta|m)$/i.test(s)) o = !0; + else if (/^a(lt)?$/i.test(s)) n = !0; + else if (/^(c|ctrl|control)$/i.test(s)) r = !0; + else { + if (!/^s(hift)?$/i.test(s)) throw new Error("Unrecognized modifier name: " + s); + i = !0 + } + } + return n && (e = "Alt-" + e), r && (e = "Ctrl-" + e), o && (e = "Cmd-" + e), i && (e = "Shift-" + e), e + } + + function Yi(e) { + var t = {}; + for (var n in e) + if (e.hasOwnProperty(n)) { + var r = e[n]; + if (/^(name|fallthrough|(de|at)tach)$/.test(n)) continue; + if ("..." == r) { + delete e[n]; + continue + } + for (var i = m(n.split(" "), Ki), o = 0; o < i.length; o++) { + var a = void 0, + s = void 0; + o == i.length - 1 ? (s = i.join(" "), a = r) : (s = i.slice(0, o + 1) + .join(" "), a = "..."); + var l = t[s]; + if (l) { + if (l != a) throw new Error("Inconsistent bindings for " + s) + } else t[s] = a + } + delete e[n] + } + for (var u in t) e[u] = t[u]; + return e + } + + function Qi(e, t, n, r) { + t = Zi(t); + var i = t.call ? t.call(e, r) : t[e]; + if (i === !1) return "nothing"; + if ("..." === i) return "multi"; + if (null != i && n(i)) return "handled"; + if (t.fallthrough) { + if ("[object Array]" != Object.prototype.toString.call(t.fallthrough)) return Qi(e, t.fallthrough, n, r); + for (var o = 0; o < t.fallthrough.length; o++) { + var a = Qi(e, t.fallthrough[o], n, r); + if (a) return a + } + } + } + + function Ji(e) { + var t = "string" == typeof e ? e : ys[e.keyCode]; + return "Ctrl" == t || "Alt" == t || "Shift" == t || "Mod" == t + } + + function Xi(e, t) { + if (ia && 34 == e.keyCode && e.char) return !1; + var n = ys[e.keyCode], + r = n; + return null != r && !e.altGraphKey && (e.altKey && "Alt" != n && (r = "Alt-" + r), (ma ? e.metaKey : e.ctrlKey) && "Ctrl" != n && (r = "Ctrl-" + r), (ma ? e.ctrlKey : e.metaKey) && "Cmd" != n && (r = "Cmd-" + r), !t && e.shiftKey && "Shift" != n && (r = "Shift-" + r), r) + } + + function Zi(e) { + return "string" == typeof e ? xs[e] : e + } + + function eo(e, t) { + for (var n = e.doc.sel.ranges, r = [], i = 0; i < n.length; i++) { + for (var o = t(n[i]); r.length && R(o.from, v(r) + .to) <= 0;) { + var a = r.pop(); + if (R(a.from, o.from) < 0) { + o.from = a.from; + break + } + } + r.push(o) + } + cr(e, function() { + for (var t = r.length - 1; t >= 0; t--) Oi(e.doc, "", r[t].from, r[t].to, "+delete"); + er(e) + }) + } + + function to(e, t) { + var n = S(e.doc, t), + r = fe(n); + return r != n && (t = P(r)), Ee(!0, e, r, t, 1) + } + + function no(e, t) { + var n = S(e.doc, t), + r = de(n); + return r != n && (t = P(r)), Ee(!0, e, n, t, -1) + } + + function ro(e, t) { + var n = to(e, t.line), + r = S(e.doc, n.line), + i = _e(r, e.doc.direction); + if (!i || 0 == i[0].level) { + var o = Math.max(0, r.text.search(/\S/)), + a = t.line == n.line && t.ch <= o && t.ch; + return L(n.line, a ? 0 : o, n.sticky) + } + return n + } + + function io(e, t, n) { + if ("string" == typeof t && (t = ks[t], !t)) return !1; + e.display.input.ensurePolled(); + var r = e.display.shift, + i = !1; + try { + e.isReadOnly() && (e.state.suppressEdits = !0), n && (e.display.shift = !1), i = t(e) != Ca + } finally { + e.display.shift = r, e.state.suppressEdits = !1 + } + return i + } + + function oo(e, t, n) { + for (var r = 0; r < e.state.keyMaps.length; r++) { + var i = Qi(t, e.state.keyMaps[r], n, e); + if (i) return i + } + return e.options.extraKeys && Qi(t, e.options.extraKeys, n, e) || Qi(t, e.options.keyMap, n, e) + } + + function ao(e, t, n, r) { + var i = e.state.keySeq; + if (i) { + if (Ji(t)) return "handled"; + Es.set(50, function() { + e.state.keySeq == i && (e.state.keySeq = null, e.display.input.reset()) + }), t = i + " " + t + } + var o = oo(e, t, r); + return "multi" == o && (e.state.keySeq = t), "handled" == o && _t(e, "keyHandled", e, t, n), "handled" != o && "multi" != o || (Le(n), Tn(e)), i && !o && /\'$/.test(t) ? (Le(n), !0) : !!o + } + + function so(e, t) { + var n = Xi(t, !0); + return !!n && (t.shiftKey && !e.state.keySeq ? ao(e, "Shift-" + n, t, function(t) { + return io(e, t, !0) + }) || ao(e, n, t, function(t) { + if ("string" == typeof t ? /^go[A-Z]/.test(t) : t.motion) return io(e, t) + }) : ao(e, n, t, function(t) { + return io(e, t) + })) + } + + function lo(e, t, n) { + return ao(e, "'" + n + "'", t, function(t) { + return io(e, t, !0) + }) + } + + function uo(e) { + var t = this; + if (t.curOp.focus = a(), !Pe(t, e)) { + Zo && ea < 11 && 27 == e.keyCode && (e.returnValue = !1); + var n = e.keyCode; + t.display.shift = 16 == n || e.shiftKey; + var r = so(t, e); + ia && (Ss = r ? n : null, !r && 88 == n && !Va && (fa ? e.metaKey : e.ctrlKey) && t.replaceSelection("", null, "cut")), 18 != n || /\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className) || co(t) + } + } + + function co(e) { + function t(e) { + 18 != e.keyCode && e.altKey || (ya(n, "CodeMirror-crosshair"), Me(document, "keyup", t), Me(document, "mouseover", t)) + } + var n = e.display.lineDiv; + s(n, "CodeMirror-crosshair"), Ra(document, "keyup", t), Ra(document, "mouseover", t) + } + + function fo(e) { + 16 == e.keyCode && (this.doc.sel.shift = !1), Pe(this, e) + } + + function ho(e) { + var t = this; + if (!(Nt(t.display, e) || Pe(t, e) || e.ctrlKey && !e.altKey || fa && e.metaKey)) { + var n = e.keyCode, + r = e.charCode; + if (ia && n == Ss) return Ss = null, void Le(e); + if (!ia || e.which && !(e.which < 10) || !so(t, e)) { + var i = String.fromCharCode(null == r ? n : r); + "\b" != i && (lo(t, e, i) || t.display.input.onKeyPress(e)) + } + } + } + + function po(e) { + var t = this, + n = t.display; + if (!(Pe(t, e) || n.activeTouch && n.input.supportsTouch())) { + if (n.input.ensurePolled(), n.shift = e.shiftKey, Nt(n, e)) return void(ta || (n.scroller.draggable = !1, setTimeout(function() { + return n.scroller.draggable = !0 + }, 100))); + if (!bo(t, e)) { + var r = Cn(t, e); + switch (window.focus(), Ve(e)) { + case 1: + t.state.selectingText ? t.state.selectingText(e) : r ? vo(t, e, r) : Ie(e) == n.scroller && Le(e); + break; + case 2: + ta && (t.state.lastMiddleDown = +new Date), r && ai(t.doc, r), setTimeout(function() { + return n.input.focus() + }, 20), Le(e); + break; + case 3: + ga ? $o(t, e) : An(t) + } + } + } + } + + function vo(e, t, n) { + Zo ? setTimeout(u(Pn, e), 0) : e.curOp.focus = a(); + var r, i = +new Date; + Cs && Cs.time > i - 400 && 0 == R(Cs.pos, n) ? r = "triple" : _s && _s.time > i - 400 && 0 == R(_s.pos, n) ? (r = "double", Cs = { + time: i, + pos: n + }) : (r = "single", _s = { + time: i, + pos: n + }); + var o, s = e.doc.sel, + l = fa ? t.metaKey : t.ctrlKey; + e.options.dragDrop && Da && !e.isReadOnly() && "single" == r && (o = s.contains(n)) > -1 && (R((o = s.ranges[o]) + .from(), n) < 0 || n.xRel > 0) && (R(o.to(), n) > 0 || n.xRel < 0) ? mo(e, t, n, l) : go(e, t, n, r, l); + } + + function mo(e, t, n, r) { + var i = e.display, + o = +new Date, + a = fr(e, function(s) { + ta && (i.scroller.draggable = !1), e.state.draggingText = !1, Me(document, "mouseup", a), Me(i.scroller, "drop", a), Math.abs(t.clientX - s.clientX) + Math.abs(t.clientY - s.clientY) < 10 && (Le(s), !r && +new Date - 200 < o && ai(e.doc, n), ta || Zo && 9 == ea ? setTimeout(function() { + document.body.focus(), i.input.focus() + }, 20) : i.input.focus()) + }); + ta && (i.scroller.draggable = !0), e.state.draggingText = a, a.copy = fa ? t.altKey : t.ctrlKey, i.scroller.dragDrop && i.scroller.dragDrop(), Ra(document, "mouseup", a), Ra(i.scroller, "drop", a) + } + + function go(e, t, n, r, i) { + function o(t) { + if (0 != R(b, t)) + if (b = t, "rect" == r) { + for (var i = [], o = e.options.tabSize, a = f(S(c, n.line) + .text, n.ch, o), s = f(S(c, t.line) + .text, t.ch, o), l = Math.min(a, s), u = Math.max(a, s), m = Math.min(n.line, t.line), g = Math.min(e.lastLine(), Math.max(n.line, t.line)); m <= g; m++) { + var y = S(c, m) + .text, + $ = h(y, l, o); + l == u ? i.push(new ss(L(m, $), L(m, $))) : y.length > $ && i.push(new ss(L(m, $), L(m, h(y, u, o)))) + } + i.length || i.push(new ss(n, n)), di(c, Pr(v.ranges.slice(0, p) + .concat(i), p), { + origin: "*mouse", + scroll: !1 + }), e.scrollIntoView(t) + } else { + var w = d, + x = w.anchor, + _ = t; + if ("single" != r) { + var C; + C = "double" == r ? e.findWordAt(t) : new ss(L(t.line, 0), H(c, L(t.line + 1, 0))), R(C.anchor, x) > 0 ? (_ = C.head, x = V(w.from(), C.anchor)) : (_ = C.anchor, x = I(w.to(), C.head)) + } + var k = v.ranges.slice(0); + k[p] = new ss(H(c, x), _), di(c, Pr(k, p), Ea) + } + } + + function s(t) { + var n = ++w, + i = Cn(e, t, !0, "rect" == r); + if (i) + if (0 != R(i, b)) { + e.curOp.focus = a(), o(i); + var l = In(u, c); + (i.line >= l.to || i.line < l.from) && setTimeout(fr(e, function() { + w == n && s(t) + }), 150) + } else { + var f = t.clientY < $.top ? -20 : t.clientY > $.bottom ? 20 : 0; + f && setTimeout(fr(e, function() { + w == n && (u.scroller.scrollTop += f, s(t)) + }), 50) + } + } + + function l(t) { + e.state.selectingText = !1, w = 1 / 0, Le(t), u.input.focus(), Me(document, "mousemove", x), Me(document, "mouseup", _), c.history.lastSelOrigin = null + } + var u = e.display, + c = e.doc; + Le(t); + var d, p, v = c.sel, + m = v.ranges; + if (i && !t.shiftKey ? (p = c.sel.contains(n), d = p > -1 ? m[p] : new ss(n, n)) : (d = c.sel.primary(), p = c.sel.primIndex), da ? t.shiftKey && t.metaKey : t.altKey) r = "rect", i || (d = new ss(n, n)), n = Cn(e, t, !0, !0), p = -1; + else if ("double" == r) { + var g = e.findWordAt(n); + d = e.display.shift || c.extend ? oi(c, d, g.anchor, g.head) : g + } else if ("triple" == r) { + var y = new ss(L(n.line, 0), H(c, L(n.line + 1, 0))); + d = e.display.shift || c.extend ? oi(c, d, y.anchor, y.head) : y + } else d = oi(c, d, n); + i ? p == -1 ? (p = m.length, di(c, Pr(m.concat([d]), p), { + scroll: !1, + origin: "*mouse" + })) : m.length > 1 && m[p].empty() && "single" == r && !t.shiftKey ? (di(c, Pr(m.slice(0, p) + .concat(m.slice(p + 1)), 0), { + scroll: !1, + origin: "*mouse" + }), v = c.sel) : li(c, p, d, Ea) : (p = 0, di(c, new as([d], 0), Ea), v = c.sel); + var b = n, + $ = u.wrapper.getBoundingClientRect(), + w = 0, + x = fr(e, function(e) { + Ve(e) ? s(e) : l(e) + }), + _ = fr(e, l); + e.state.selectingText = _, Ra(document, "mousemove", x), Ra(document, "mouseup", _) + } + + function yo(e, t, n, r) { + var i, o; + try { + i = t.clientX, o = t.clientY + } catch (e) { + return !1 + } + if (i >= Math.floor(e.display.gutters.getBoundingClientRect() + .right)) return !1; + r && Le(t); + var a = e.display, + s = a.lineDiv.getBoundingClientRect(); + if (o > s.bottom || !je(e, n)) return De(t); + o -= s.top - a.viewOffset; + for (var l = 0; l < e.options.gutters.length; ++l) { + var u = a.gutters.childNodes[l]; + if (u && u.getBoundingClientRect() + .right >= i) { + var c = A(e.doc, o), + f = e.options.gutters[l]; + return Te(e, n, e, c, f, t), De(t) + } + } + } + + function bo(e, t) { + return yo(e, t, "gutterClick", !0) + } + + function $o(e, t) { + Nt(e.display, t) || wo(e, t) || Pe(e, t, "contextmenu") || e.display.input.onContextMenu(t) + } + + function wo(e, t) { + return !!je(e, "gutterContextMenu") && yo(e, t, "gutterContextMenu", !1) + } + + function xo(e) { + e.display.wrapper.className = e.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") + e.options.theme.replace(/(^|\s)\s*/g, " cm-s-"), on(e) + } + + function _o(e) { + function t(t, r, i, o) { + e.defaults[t] = r, i && (n[t] = o ? function(e, t, n) { + n != Os && i(e, t, n) + } : i) + } + var n = e.optionHandlers; + e.defineOption = t, e.Init = Os, t("value", "", function(e, t) { + return e.setValue(t) + }, !0), t("mode", null, function(e, t) { + e.doc.modeOption = t, Nr(e) + }, !0), t("indentUnit", 2, Nr, !0), t("indentWithTabs", !1), t("smartIndent", !0), t("tabSize", 4, function(e) { + Ir(e), on(e), pr(e) + }, !0), t("lineSeparator", null, function(e, t) { + if (e.doc.lineSep = t, t) { + var n = [], + r = e.doc.first; + e.doc.iter(function(e) { + for (var i = 0;;) { + var o = e.text.indexOf(t, i); + if (o == -1) break; + i = o + t.length, n.push(L(r, o)) + } + r++ + }); + for (var i = n.length - 1; i >= 0; i--) Oi(e.doc, t, n[i], L(n[i].line, n[i].ch + t.length)) + } + }), t("specialChars", /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g, function(e, t, n) { + e.state.specialChars = new RegExp(t.source + (t.test("\t") ? "" : "|\t"), "g"), n != Os && e.refresh() + }), t("specialCharPlaceholder", dt, function(e) { + return e.refresh() + }, !0), t("electricChars", !0), t("inputStyle", ca ? "contenteditable" : "textarea", function() { + throw new Error("inputStyle can not (yet) be changed in a running editor") + }, !0), t("spellcheck", !1, function(e, t) { + return e.getInputField() + .spellcheck = t + }, !0), t("rtlMoveVisually", !ha), t("wholeLineUpdateBefore", !0), t("theme", "default", function(e) { + xo(e), Co(e) + }, !0), t("keyMap", "default", function(e, t, n) { + var r = Zi(t), + i = n != Os && Zi(n); + i && i.detach && i.detach(e, r), r.attach && r.attach(e, i || null) + }), t("extraKeys", null), t("lineWrapping", !1, Eo, !0), t("gutters", [], function(e) { + Tr(e.options), Co(e) + }, !0), t("fixedGutter", !0, function(e, t) { + e.display.gutters.style.left = t ? wn(e.display) + "px" : "0", e.refresh() + }, !0), t("coverGutterNextToScrollbar", !1, function(e) { + return Bn(e) + }, !0), t("scrollbarStyle", "native", function(e) { + Kn(e), Bn(e), e.display.scrollbars.setScrollTop(e.doc.scrollTop), e.display.scrollbars.setScrollLeft(e.doc.scrollLeft) + }, !0), t("lineNumbers", !1, function(e) { + Tr(e.options), Co(e) + }, !0), t("firstLineNumber", 1, Co, !0), t("lineNumberFormatter", function(e) { + return e + }, Co, !0), t("showCursorWhenSelecting", !1, En, !0), t("resetSelectionOnContextMenu", !0), t("lineWiseCopyCut", !0), t("readOnly", !1, function(e, t) { + "nocursor" == t ? (Fn(e), e.display.input.blur(), e.display.disabled = !0) : e.display.disabled = !1, e.display.input.readOnlyChanged(t) + }), t("disableInput", !1, function(e, t) { + t || e.display.input.reset() + }, !0), t("dragDrop", !0, ko), t("allowDropFileTypes", null), t("cursorBlinkRate", 530), t("cursorScrollMargin", 0), t("cursorHeight", 1, En, !0), t("singleCursorHeightPerLine", !0, En, !0), t("workTime", 100), t("workDelay", 100), t("flattenSpans", !0, Ir, !0), t("addModeClass", !1, Ir, !0), t("pollInterval", 100), t("undoDepth", 200, function(e, t) { + return e.doc.history.undoDepth = t + }), t("historyEventDelay", 1250), t("viewportMargin", 10, function(e) { + return e.refresh() + }, !0), t("maxHighlightLength", 1e4, Ir, !0), t("moveInputWithCursor", !0, function(e, t) { + t || e.display.input.resetPosition() + }), t("tabindex", null, function(e, t) { + return e.display.input.getField() + .tabIndex = t || "" + }), t("autofocus", null), t("direction", "ltr", function(e, t) { + return e.doc.setDirection(t) + }, !0) + } + + function Co(e) { + Mr(e), pr(e), Ln(e) + } + + function ko(e, t, n) { + var r = n && n != Os; + if (!t != !r) { + var i = e.display.dragFunctions, + o = t ? Ra : Me; + o(e.display.scroller, "dragstart", i.start), o(e.display.scroller, "dragenter", i.enter), o(e.display.scroller, "dragover", i.over), o(e.display.scroller, "dragleave", i.leave), o(e.display.scroller, "drop", i.drop) + } + } + + function Eo(e) { + e.options.lineWrapping ? (s(e.display.wrapper, "CodeMirror-wrap"), e.display.sizer.style.minWidth = "", e.display.sizerWidth = null) : (ya(e.display.wrapper, "CodeMirror-wrap"), $e(e)), _n(e), pr(e), on(e), setTimeout(function() { + return Bn(e) + }, 100) + } + + function So(e, t) { + var n = this; + if (!(this instanceof So)) return new So(e, t); + this.options = t = t ? c(t) : {}, c(Ms, t, !1), Tr(t); + var r = t.value; + "string" == typeof r && (r = new vs(r, t.mode, null, t.lineSeparator, t.direction)), this.doc = r; + var i = new So.inputStyles[t.inputStyle](this), + o = this.display = new E(e, r, i); + o.wrapper.CodeMirror = this, Mr(this), xo(this), t.lineWrapping && (this.display.wrapper.className += " CodeMirror-wrap"), Kn(this), this.state = { + keyMaps: [], + overlays: [], + modeGen: 0, + overwrite: !1, + delayingBlurEvent: !1, + focused: !1, + suppressEdits: !1, + pasteIncoming: !1, + cutIncoming: !1, + selectingText: !1, + draggingText: !1, + highlight: new $a, + keySeq: null, + specialChars: null + }, t.autofocus && !ca && o.input.focus(), Zo && ea < 11 && setTimeout(function() { + return n.display.input.reset(!0) + }, 20), Oo(this), qi(), nr(this), this.curOp.forceUpdate = !0, Ur(this, r), t.autofocus && !ca || this.hasFocus() ? setTimeout(u(jn, this), 20) : Fn(this); + for (var a in Ts) Ts.hasOwnProperty(a) && Ts[a](n, t[a], Os); + Rn(this), t.finishInit && t.finishInit(this); + for (var s = 0; s < Ps.length; ++s) Ps[s](n); + rr(this), ta && t.lineWrapping && "optimizelegibility" == getComputedStyle(o.lineDiv) + .textRendering && (o.lineDiv.style.textRendering = "auto") + } + + function Oo(e) { + function t() { + i.activeTouch && (o = setTimeout(function() { + return i.activeTouch = null + }, 1e3), a = i.activeTouch, a.end = +new Date) + } + + function n(e) { + if (1 != e.touches.length) return !1; + var t = e.touches[0]; + return t.radiusX <= 1 && t.radiusY <= 1 + } + + function r(e, t) { + if (null == t.left) return !0; + var n = t.left - e.left, + r = t.top - e.top; + return n * n + r * r > 400 + } + var i = e.display; + Ra(i.scroller, "mousedown", fr(e, po)), Zo && ea < 11 ? Ra(i.scroller, "dblclick", fr(e, function(t) { + if (!Pe(e, t)) { + var n = Cn(e, t); + if (n && !bo(e, t) && !Nt(e.display, t)) { + Le(t); + var r = e.findWordAt(n); + ai(e.doc, r.anchor, r.head) + } + } + })) : Ra(i.scroller, "dblclick", function(t) { + return Pe(e, t) || Le(t) + }), ga || Ra(i.scroller, "contextmenu", function(t) { + return $o(e, t) + }); + var o, a = { + end: 0 + }; + Ra(i.scroller, "touchstart", function(t) { + if (!Pe(e, t) && !n(t)) { + i.input.ensurePolled(), clearTimeout(o); + var r = +new Date; + i.activeTouch = { + start: r, + moved: !1, + prev: r - a.end <= 300 ? a : null + }, 1 == t.touches.length && (i.activeTouch.left = t.touches[0].pageX, i.activeTouch.top = t.touches[0].pageY) + } + }), Ra(i.scroller, "touchmove", function() { + i.activeTouch && (i.activeTouch.moved = !0) + }), Ra(i.scroller, "touchend", function(n) { + var o = i.activeTouch; + if (o && !Nt(i, n) && null != o.left && !o.moved && new Date - o.start < 300) { + var a, s = e.coordsChar(i.activeTouch, "page"); + a = !o.prev || r(o, o.prev) ? new ss(s, s) : !o.prev.prev || r(o, o.prev.prev) ? e.findWordAt(s) : new ss(L(s.line, 0), H(e.doc, L(s.line + 1, 0))), e.setSelection(a.anchor, a.head), e.focus(), Le(n) + } + t() + }), Ra(i.scroller, "touchcancel", t), Ra(i.scroller, "scroll", function() { + i.scroller.clientHeight && (Vn(e, i.scroller.scrollTop), Wn(e, i.scroller.scrollLeft, !0), Te(e, "scroll", e)) + }), Ra(i.scroller, "mousewheel", function(t) { + return zn(e, t) + }), Ra(i.scroller, "DOMMouseScroll", function(t) { + return zn(e, t) + }), Ra(i.wrapper, "scroll", function() { + return i.wrapper.scrollTop = i.wrapper.scrollLeft = 0 + }), i.dragFunctions = { + enter: function(t) { + Pe(e, t) || Ne(t) + }, + over: function(t) { + Pe(e, t) || (Hi(e, t), Ne(t)) + }, + start: function(t) { + return Wi(e, t) + }, + drop: fr(e, Vi), + leave: function(t) { + Pe(e, t) || Ui(e) + } + }; + var s = i.input.getField(); + Ra(s, "keyup", function(t) { + return fo.call(e, t) + }), Ra(s, "keydown", fr(e, uo)), Ra(s, "keypress", fr(e, ho)), Ra(s, "focus", function(t) { + return jn(e, t) + }), Ra(s, "blur", function(t) { + return Fn(e, t) + }) + } + + function Mo(e, t, n, r) { + var i, o = e.doc; + null == n && (n = "add"), "smart" == n && (o.mode.indent ? i = et(e, t) : n = "prev"); + var a = e.options.tabSize, + s = S(o, t), + l = f(s.text, null, a); + s.stateAfter && (s.stateAfter = null); + var u, c = s.text.match(/^\s*/)[0]; + if (r || /\S/.test(s.text)) { + if ("smart" == n && (u = o.mode.indent(i, s.text.slice(c.length), s.text), u == Ca || u > 150)) { + if (!r) return; + n = "prev" + } + } else u = 0, n = "not"; + "prev" == n ? u = t > o.first ? f(S(o, t - 1) + .text, null, a) : 0 : "add" == n ? u = l + e.options.indentUnit : "subtract" == n ? u = l - e.options.indentUnit : "number" == typeof n && (u = l + n), u = Math.max(0, u); + var d = "", + h = 0; + if (e.options.indentWithTabs) + for (var v = Math.floor(u / a); v; --v) h += a, d += "\t"; + if (h < u && (d += p(u - h)), d != c) return Oi(o, d, L(t, 0), L(t, c.length), "+input"), s.stateAfter = null, !0; + for (var m = 0; m < o.sel.ranges.length; m++) { + var g = o.sel.ranges[m]; + if (g.head.line == t && g.head.ch < c.length) { + var y = L(t, c.length); + li(o, m, new ss(y, y)); + break + } + } + } + + function To(e) { + As = e + } + + function Po(e, t, n, r, i) { + var o = e.doc; + e.display.shift = !1, r || (r = o.sel); + var a = e.state.pasteIncoming || "paste" == i, + s = Na(t), + l = null; + if (a && r.ranges.length > 1) + if (As && As.text.join("\n") == t) { + if (r.ranges.length % As.text.length == 0) { + l = []; + for (var u = 0; u < As.text.length; u++) l.push(o.splitLines(As.text[u])) + } + } else s.length == r.ranges.length && (l = m(s, function(e) { + return [e] + })); + for (var c, f = r.ranges.length - 1; f >= 0; f--) { + var d = r.ranges[f], + h = d.from(), + p = d.to(); + d.empty() && (n && n > 0 ? h = L(h.line, h.ch - n) : e.state.overwrite && !a ? p = L(p.line, Math.min(S(o, p.line) + .text.length, p.ch + v(s) + .length)) : As && As.lineWise && As.text.join("\n") == t && (h = p = L(h.line, 0))), c = e.curOp.updateInput; + var g = { + from: h, + to: p, + text: l ? l[f % l.length] : s, + origin: i || (a ? "paste" : e.state.cutIncoming ? "cut" : "+input") + }; + xi(e.doc, g), _t(e, "inputRead", e, g) + } + t && !a && jo(e, t), er(e), e.curOp.updateInput = c, e.curOp.typing = !0, e.state.pasteIncoming = e.state.cutIncoming = !1 + } + + function Ao(e, t) { + var n = e.clipboardData && e.clipboardData.getData("Text"); + if (n) return e.preventDefault(), t.isReadOnly() || t.options.disableInput || cr(t, function() { + return Po(t, n, 0, null, "paste") + }), !0 + } + + function jo(e, t) { + if (e.options.electricChars && e.options.smartIndent) + for (var n = e.doc.sel, r = n.ranges.length - 1; r >= 0; r--) { + var i = n.ranges[r]; + if (!(i.head.ch > 100 || r && n.ranges[r - 1].head.line == i.head.line)) { + var o = e.getModeAt(i.head), + a = !1; + if (o.electricChars) { + for (var s = 0; s < o.electricChars.length; s++) + if (t.indexOf(o.electricChars.charAt(s)) > -1) { + a = Mo(e, i.head.line, "smart"); + break + } + } else o.electricInput && o.electricInput.test(S(e.doc, i.head.line) + .text.slice(0, i.head.ch)) && (a = Mo(e, i.head.line, "smart")); + a && _t(e, "electricInput", e, i.head.line) + } + } + } + + function Fo(e) { + for (var t = [], n = [], r = 0; r < e.doc.sel.ranges.length; r++) { + var i = e.doc.sel.ranges[r].head.line, + o = { + anchor: L(i, 0), + head: L(i + 1, 0) + }; + n.push(o), t.push(e.getRange(o.anchor, o.head)) + } + return { + text: t, + ranges: n + } + } + + function Lo(e, t) { + e.setAttribute("autocorrect", "off"), e.setAttribute("autocapitalize", "off"), e.setAttribute("spellcheck", !!t) + } + + function Ro() { + var e = r("textarea", null, null, "position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"), + t = r("div", [e], null, "overflow: hidden; position: relative; width: 3px; height: 0px;"); + return ta ? e.style.width = "1000px" : e.setAttribute("wrap", "off"), la && (e.style.border = "1px solid black"), Lo(e), t + } + + function Do(e, t, n, r, i) { + function o() { + var r = t.line + n; + return !(r < e.first || r >= e.first + e.size) && (t = new L(r, t.ch, t.sticky), u = S(e, r)) + } + + function a(r) { + var a; + if (a = i ? Se(e.cm, u, t, n) : ke(u, t, n), null == a) { + if (r || !o()) return !1; + t = Ee(i, e.cm, u, t.line, n) + } else t = a; + return !0 + } + var s = t, + l = n, + u = S(e, t.line); + if ("char" == r) a(); + else if ("column" == r) a(!0); + else if ("word" == r || "group" == r) + for (var c = null, f = "group" == r, d = e.cm && e.cm.getHelper(t, "wordChars"), h = !0; !(n < 0) || a(!h); h = !1) { + var p = u.text.charAt(t.ch) || "\n", + v = w(p, d) ? "w" : f && "\n" == p ? "n" : !f || /\s/.test(p) ? null : "p"; + if (!f || h || v || (v = "s"), c && c != v) { + n < 0 && (n = 1, a(), t.sticky = "after"); + break + } + if (v && (c = v), n > 0 && !a(!h)) break + } + var m = yi(e, t, s, l, !0); + return D(s, m) && (m.hitSide = !0), m + } + + function No(e, t, n, r) { + var i, o = e.doc, + a = t.left; + if ("page" == r) { + var s = Math.min(e.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight), + l = Math.max(s - .5 * yn(e.display), 3); + i = (n > 0 ? t.bottom : t.top) + n * l + } else "line" == r && (i = n > 0 ? t.bottom + 3 : t.top - 3); + for (var u; u = pn(e, a, i), u.outside;) { + if (n < 0 ? i <= 0 : i >= o.height) { + u.hitSide = !0; + break + } + i += 5 * n + } + return u + } + + function Io(e, t) { + var n = Yt(e, t.line); + if (!n || n.hidden) return null; + var r = S(e.doc, t.line), + i = Bt(n, r, t.line), + o = _e(r, e.doc.direction), + a = "left"; + if (o) { + var s = xe(o, t.ch); + a = s % 2 ? "right" : "left" + } + var l = Xt(i.map, t.ch, a); + return l.offset = "right" == l.collapse ? l.end : l.start, l + } + + function Vo(e) { + for (var t = e; t; t = t.parentNode) + if (/CodeMirror-gutter-wrapper/.test(t.className)) return !0; + return !1 + } + + function Wo(e, t) { + return t && (e.bad = !0), e + } + + function Ho(e, t, n, r, i) { + function o(e) { + return function(t) { + return t.id == e + } + } + + function a() { + c && (u += f, c = !1) + } + + function s(e) { + e && (a(), u += e) + } + + function l(t) { + if (1 == t.nodeType) { + var n = t.getAttribute("cm-text"); + if (null != n) return void s(n || t.textContent.replace(/\u200b/g, "")); + var u, d = t.getAttribute("cm-marker"); + if (d) { + var h = e.findMarks(L(r, 0), L(i + 1, 0), o(+d)); + return void(h.length && (u = h[0].find()) && s(O(e.doc, u.from, u.to) + .join(f))) + } + if ("false" == t.getAttribute("contenteditable")) return; + var p = /^(pre|div|p)$/i.test(t.nodeName); + p && a(); + for (var v = 0; v < t.childNodes.length; v++) l(t.childNodes[v]); + p && (c = !0) + } else 3 == t.nodeType && s(t.nodeValue) + } + for (var u = "", c = !1, f = e.doc.lineSeparator(); l(t), t != n;) t = t.nextSibling; + return u + } + + function Uo(e, t, n) { + var r; + if (t == e.display.lineDiv) { + if (r = e.display.lineDiv.childNodes[n], !r) return Wo(e.clipPos(L(e.display.viewTo - 1)), !0); + t = null, n = 0 + } else + for (r = t;; r = r.parentNode) { + if (!r || r == e.display.lineDiv) return null; + if (r.parentNode && r.parentNode == e.display.lineDiv) break + } + for (var i = 0; i < e.display.view.length; i++) { + var o = e.display.view[i]; + if (o.node == r) return zo(o, t, n) + } + } + + function zo(e, t, n) { + function r(t, n, r) { + for (var i = -1; i < (f ? f.length : 0); i++) + for (var o = i < 0 ? c.map : f[i], a = 0; a < o.length; a += 3) { + var s = o[a + 2]; + if (s == t || s == n) { + var l = P(i < 0 ? e.line : e.rest[i]), + u = o[a] + r; + return (r < 0 || s != t) && (u = o[a + (r ? 1 : 0)]), L(l, u) + } + } + } + var i = e.text.firstChild, + a = !1; + if (!t || !o(i, t)) return Wo(L(P(e.line), 0), !0); + if (t == i && (a = !0, t = i.childNodes[n], n = 0, !t)) { + var s = e.rest ? v(e.rest) : e.line; + return Wo(L(P(s), s.text.length), a) + } + var l = 3 == t.nodeType ? t : null, + u = t; + for (l || 1 != t.childNodes.length || 3 != t.firstChild.nodeType || (l = t.firstChild, n && (n = l.nodeValue.length)); u.parentNode != i;) u = u.parentNode; + var c = e.measure, + f = c.maps, + d = r(l, u, n); + if (d) return Wo(d, a); + for (var h = u.nextSibling, p = l ? l.nodeValue.length - n : 0; h; h = h.nextSibling) { + if (d = r(h, h.firstChild, 0)) return Wo(L(d.line, d.ch - p), a); + p += h.textContent.length + } + for (var m = u.previousSibling, g = n; m; m = m.previousSibling) { + if (d = r(m, m.firstChild, -1)) return Wo(L(d.line, d.ch + g), a); + g += m.textContent.length + } + } + + function qo(e, t) { + function n() { + e.value = l.getValue() + } + if (t = t ? c(t) : {}, t.value = e.value, !t.tabindex && e.tabIndex && (t.tabindex = e.tabIndex), !t.placeholder && e.placeholder && (t.placeholder = e.placeholder), null == t.autofocus) { + var r = a(); + t.autofocus = r == e || null != e.getAttribute("autofocus") && r == document.body + } + var i; + if (e.form && (Ra(e.form, "submit", n), !t.leaveSubmitMethodAlone)) { + var o = e.form; + i = o.submit; + try { + var s = o.submit = function() { + n(), o.submit = i, o.submit(), o.submit = s + } + } catch (e) {} + } + t.finishInit = function(t) { + t.save = n, t.getTextArea = function() { + return e + }, t.toTextArea = function() { + t.toTextArea = isNaN, n(), e.parentNode.removeChild(t.getWrapperElement()), e.style.display = "", e.form && (Me(e.form, "submit", n), "function" == typeof e.form.submit && (e.form.submit = i)) + } + }, e.style.display = "none"; + var l = So(function(t) { + return e.parentNode.insertBefore(t, e.nextSibling) + }, t); + return l + } + + function Bo(e) { + e.off = Me, e.on = Ra, e.wheelEventPixels = Un, e.Doc = vs, e.splitLines = Na, e.countColumn = f, e.findColumn = h, e.isWordChar = $, e.Pass = Ca, e.signal = Te, e.Line = Ba, e.changeEnd = jr, e.scrollbarModel = rs, e.Pos = L, e.cmpPos = R, e.modes = Ha, e.mimeModes = Ua, e.resolveMode = Be, e.getMode = Ge, e.modeExtensions = za, e.extendMode = Ke, e.copyState = Ye, e.startState = Je, e.innerMode = Qe, e.commands = ks, e.keyMap = xs, e.keyName = Xi, e.isModifierKey = Ji, e.lookupKey = Qi, e.normalizeKeyMap = Yi, e.StringStream = qa, e.SharedTextMarker = hs, e.TextMarker = ds, e.LineWidget = cs, e.e_preventDefault = Le, e.e_stopPropagation = Re, e.e_stop = Ne, e.addClass = s, e.contains = o, e.rmClass = ya, e.keyNames = ys + } + var Go = navigator.userAgent, + Ko = navigator.platform, + Yo = /gecko\/\d/i.test(Go), + Qo = /MSIE \d/.test(Go), + Jo = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Go), + Xo = /Edge\/(\d+)/.exec(Go), + Zo = Qo || Jo || Xo, + ea = Zo && (Qo ? document.documentMode || 6 : +(Xo || Jo)[1]), + ta = !Xo && /WebKit\//.test(Go), + na = ta && /Qt\/\d+\.\d+/.test(Go), + ra = !Xo && /Chrome\//.test(Go), + ia = /Opera\//.test(Go), + oa = /Apple Computer/.test(navigator.vendor), + aa = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Go), + sa = /PhantomJS/.test(Go), + la = !Xo && /AppleWebKit/.test(Go) && /Mobile\/\w+/.test(Go), + ua = /Android/.test(Go), + ca = la || ua || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Go), + fa = la || /Mac/.test(Ko), + da = /\bCrOS\b/.test(Go), + ha = /win/i.test(Ko), + pa = ia && Go.match(/Version\/(\d*\.\d*)/); + pa && (pa = Number(pa[1])), pa && pa >= 15 && (ia = !1, ta = !0); + var va, ma = fa && (na || ia && (null == pa || pa < 12.11)), + ga = Yo || Zo && ea >= 9, + ya = function(t, n) { + var r = t.className, + i = e(n) + .exec(r); + if (i) { + var o = r.slice(i.index + i[0].length); + t.className = r.slice(0, i.index) + (o ? i[1] + o : "") + } + }; + va = document.createRange ? function(e, t, n, r) { + var i = document.createRange(); + return i.setEnd(r || e, n), i.setStart(e, t), i + } : function(e, t, n) { + var r = document.body.createTextRange(); + try { + r.moveToElementText(e.parentNode) + } catch (e) { + return r + } + return r.collapse(!0), r.moveEnd("character", n), r.moveStart("character", t), r + }; + var ba = function(e) { + e.select() + }; + la ? ba = function(e) { + e.selectionStart = 0, e.selectionEnd = e.value.length + } : Zo && (ba = function(e) { + try { + e.select() + } catch (e) {} + }); + var $a = function() { + this.id = null + }; + $a.prototype.set = function(e, t) { + clearTimeout(this.id), this.id = setTimeout(t, e) + }; + var wa, xa, _a = 30, + Ca = { + toString: function() { + return "CodeMirror.Pass" + } + }, + ka = { + scroll: !1 + }, + Ea = { + origin: "*mouse" + }, + Sa = { + origin: "+move" + }, + Oa = [""], + Ma = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/, + Ta = /[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\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\u09be\u09c1-\u09c4\u09cd\u09d7\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\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\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\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\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\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/, + Pa = !1, + Aa = !1, + ja = null, + Fa = function() { + function e(e) { + return e <= 247 ? n.charAt(e) : 1424 <= e && e <= 1524 ? "R" : 1536 <= e && e <= 1785 ? r.charAt(e - 1536) : 1774 <= e && e <= 2220 ? "r" : 8192 <= e && e <= 8203 ? "w" : 8204 == e ? "b" : "L" + } + + function t(e, t, n) { + this.level = e, this.from = t, this.to = n + } + var n = "bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN", + r = "nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111", + i = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/, + o = /[stwN]/, + a = /[LRr]/, + s = /[Lb1n]/, + l = /[1n]/; + return function(n, r) { + var u = "ltr" == r ? "L" : "R"; + if (0 == n.length || "ltr" == r && !i.test(n)) return !1; + for (var c = n.length, f = [], d = 0; d < c; ++d) f.push(e(n.charCodeAt(d))); + for (var h = 0, p = u; h < c; ++h) { + var m = f[h]; + "m" == m ? f[h] = p : p = m + } + for (var g = 0, y = u; g < c; ++g) { + var b = f[g]; + "1" == b && "r" == y ? f[g] = "n" : a.test(b) && (y = b, "r" == b && (f[g] = "R")) + } + for (var $ = 1, w = f[0]; $ < c - 1; ++$) { + var x = f[$]; + "+" == x && "1" == w && "1" == f[$ + 1] ? f[$] = "1" : "," != x || w != f[$ + 1] || "1" != w && "n" != w || (f[$] = w), w = x + } + for (var _ = 0; _ < c; ++_) { + var C = f[_]; + if ("," == C) f[_] = "N"; + else if ("%" == C) { + var k = void 0; + for (k = _ + 1; k < c && "%" == f[k]; ++k); + for (var E = _ && "!" == f[_ - 1] || k < c && "1" == f[k] ? "1" : "N", S = _; S < k; ++S) f[S] = E; + _ = k - 1 + } + } + for (var O = 0, M = u; O < c; ++O) { + var T = f[O]; + "L" == M && "1" == T ? f[O] = "L" : a.test(T) && (M = T) + } + for (var P = 0; P < c; ++P) + if (o.test(f[P])) { + var A = void 0; + for (A = P + 1; A < c && o.test(f[A]); ++A); + for (var j = "L" == (P ? f[P - 1] : u), F = "L" == (A < c ? f[A] : u), L = j == F ? j ? "L" : "R" : u, R = P; R < A; ++R) f[R] = L; + P = A - 1 + } + for (var D, N = [], I = 0; I < c;) + if (s.test(f[I])) { + var V = I; + for (++I; I < c && s.test(f[I]); ++I); + N.push(new t(0, V, I)) + } else { + var W = I, + H = N.length; + for (++I; I < c && "L" != f[I]; ++I); + for (var U = W; U < I;) + if (l.test(f[U])) { + W < U && N.splice(H, 0, new t(1, W, U)); + var z = U; + for (++U; U < I && l.test(f[U]); ++U); + N.splice(H, 0, new t(2, z, U)), W = U + } else ++U; + W < I && N.splice(H, 0, new t(1, W, I)) + } + return 1 == N[0].level && (D = n.match(/^\s+/)) && (N[0].from = D[0].length, N.unshift(new t(0, 0, D[0].length))), 1 == v(N) + .level && (D = n.match(/\s+$/)) && (v(N) + .to -= D[0].length, N.push(new t(0, c - D[0].length, c))), "rtl" == r ? N.reverse() : N + } + }(), + La = [], + Ra = function(e, t, n) { + if (e.addEventListener) e.addEventListener(t, n, !1); + else if (e.attachEvent) e.attachEvent("on" + t, n); + else { + var r = e._handlers || (e._handlers = {}); + r[t] = (r[t] || La) + .concat(n) + } + }, + Da = function() { + if (Zo && ea < 9) return !1; + var e = r("div"); + return "draggable" in e || "dragDrop" in e + }(), + Na = 3 != "\n\nb".split(/\n/) + .length ? function(e) { + for (var t = 0, n = [], r = e.length; t <= r;) { + var i = e.indexOf("\n", t); + i == -1 && (i = e.length); + var o = e.slice(t, "\r" == e.charAt(i - 1) ? i - 1 : i), + a = o.indexOf("\r"); + a != -1 ? (n.push(o.slice(0, a)), t += a + 1) : (n.push(o), t = i + 1) + } + return n + } : function(e) { + return e.split(/\r\n?|\n/) + }, + Ia = window.getSelection ? function(e) { + try { + return e.selectionStart != e.selectionEnd + } catch (e) { + return !1 + } + } : function(e) { + var t; + try { + t = e.ownerDocument.selection.createRange() + } catch (e) {} + return !(!t || t.parentElement() != e) && 0 != t.compareEndPoints("StartToEnd", t) + }, + Va = function() { + var e = r("div"); + return "oncopy" in e || (e.setAttribute("oncopy", "return;"), "function" == typeof e.oncopy) + }(), + Wa = null, + Ha = {}, + Ua = {}, + za = {}, + qa = function(e, t) { + this.pos = this.start = 0, this.string = e, this.tabSize = t || 8, this.lastColumnPos = this.lastColumnValue = 0, this.lineStart = 0 + }; + qa.prototype.eol = function() { + return this.pos >= this.string.length + }, qa.prototype.sol = function() { + return this.pos == this.lineStart + }, qa.prototype.peek = function() { + return this.string.charAt(this.pos) || void 0 + }, qa.prototype.next = function() { + if (this.pos < this.string.length) return this.string.charAt(this.pos++) + }, qa.prototype.eat = function(e) { + var t, n = this.string.charAt(this.pos); + if (t = "string" == typeof e ? n == e : n && (e.test ? e.test(n) : e(n))) return ++this.pos, n + }, qa.prototype.eatWhile = function(e) { + for (var t = this.pos; this.eat(e);); + return this.pos > t + }, qa.prototype.eatSpace = function() { + for (var e = this, t = this.pos; + /[\s\u00a0]/.test(this.string.charAt(this.pos));) ++e.pos; + return this.pos > t + }, qa.prototype.skipToEnd = function() { + this.pos = this.string.length + }, qa.prototype.skipTo = function(e) { + var t = this.string.indexOf(e, this.pos); + if (t > -1) return this.pos = t, !0 + }, qa.prototype.backUp = function(e) { + this.pos -= e + }, qa.prototype.column = function() { + return this.lastColumnPos < this.start && (this.lastColumnValue = f(this.string, this.start, this.tabSize, this.lastColumnPos, this.lastColumnValue), this.lastColumnPos = this.start), this.lastColumnValue - (this.lineStart ? f(this.string, this.lineStart, this.tabSize) : 0) + }, qa.prototype.indentation = function() { + return f(this.string, null, this.tabSize) - (this.lineStart ? f(this.string, this.lineStart, this.tabSize) : 0) + }, qa.prototype.match = function(e, t, n) { + if ("string" != typeof e) { + var r = this.string.slice(this.pos) + .match(e); + return r && r.index > 0 ? null : (r && t !== !1 && (this.pos += r[0].length), r) + } + var i = function(e) { + return n ? e.toLowerCase() : e + }, + o = this.string.substr(this.pos, e.length); + if (i(o) == i(e)) return t !== !1 && (this.pos += e.length), !0 + }, qa.prototype.current = function() { + return this.string.slice(this.start, this.pos) + }, qa.prototype.hideFirstChars = function(e, t) { + this.lineStart += e; + try { + return t() + } finally { + this.lineStart -= e + } + }; + var Ba = function(e, t, n) { + this.text = e, re(this, t), this.height = n ? n(this) : 1 + }; + Ba.prototype.lineNo = function() { + return P(this) + }, Fe(Ba); + var Ga, Ka = {}, + Ya = {}, + Qa = null, + Ja = null, + Xa = { + left: 0, + right: 0, + top: 0, + bottom: 0 + }, + Za = 0, + es = null; + Zo ? es = -.53 : Yo ? es = 15 : ra ? es = -.7 : oa && (es = -1 / 3); + var ts = function(e, t, n) { + this.cm = n; + var i = this.vert = r("div", [r("div", null, null, "min-width: 1px")], "CodeMirror-vscrollbar"), + o = this.horiz = r("div", [r("div", null, null, "height: 100%; min-height: 1px")], "CodeMirror-hscrollbar"); + e(i), e(o), Ra(i, "scroll", function() { + i.clientHeight && t(i.scrollTop, "vertical") + }), Ra(o, "scroll", function() { + o.clientWidth && t(o.scrollLeft, "horizontal") + }), this.checkedZeroWidth = !1, Zo && ea < 8 && (this.horiz.style.minHeight = this.vert.style.minWidth = "18px") + }; + ts.prototype.update = function(e) { + var t = e.scrollWidth > e.clientWidth + 1, + n = e.scrollHeight > e.clientHeight + 1, + r = e.nativeBarWidth; + if (n) { + this.vert.style.display = "block", this.vert.style.bottom = t ? r + "px" : "0"; + var i = e.viewHeight - (t ? r : 0); + this.vert.firstChild.style.height = Math.max(0, e.scrollHeight - e.clientHeight + i) + "px" + } else this.vert.style.display = "", this.vert.firstChild.style.height = "0"; + if (t) { + this.horiz.style.display = "block", this.horiz.style.right = n ? r + "px" : "0", this.horiz.style.left = e.barLeft + "px"; + var o = e.viewWidth - e.barLeft - (n ? r : 0); + this.horiz.firstChild.style.width = Math.max(0, e.scrollWidth - e.clientWidth + o) + "px" + } else this.horiz.style.display = "", this.horiz.firstChild.style.width = "0"; + return !this.checkedZeroWidth && e.clientHeight > 0 && (0 == r && this.zeroWidthHack(), this.checkedZeroWidth = !0), { + right: n ? r : 0, + bottom: t ? r : 0 + } + }, ts.prototype.setScrollLeft = function(e) { + this.horiz.scrollLeft != e && (this.horiz.scrollLeft = e), this.disableHoriz && this.enableZeroWidthBar(this.horiz, this.disableHoriz) + }, ts.prototype.setScrollTop = function(e) { + this.vert.scrollTop != e && (this.vert.scrollTop = e), this.disableVert && this.enableZeroWidthBar(this.vert, this.disableVert) + }, ts.prototype.zeroWidthHack = function() { + var e = fa && !aa ? "12px" : "18px"; + this.horiz.style.height = this.vert.style.width = e, this.horiz.style.pointerEvents = this.vert.style.pointerEvents = "none", this.disableHoriz = new $a, this.disableVert = new $a + }, ts.prototype.enableZeroWidthBar = function(e, t) { + function n() { + var r = e.getBoundingClientRect(), + i = document.elementFromPoint(r.left + 1, r.bottom - 1); + i != e ? e.style.pointerEvents = "none" : t.set(1e3, n) + } + e.style.pointerEvents = "auto", t.set(1e3, n) + }, ts.prototype.clear = function() { + var e = this.horiz.parentNode; + e.removeChild(this.horiz), e.removeChild(this.vert) + }; + var ns = function() {}; + ns.prototype.update = function() { + return { + bottom: 0, + right: 0 + } + }, ns.prototype.setScrollLeft = function() {}, ns.prototype.setScrollTop = function() {}, ns.prototype.clear = function() {}; + var rs = { + native: ts, + null: ns + }, + is = 0, + os = function(e, t, n) { + var r = e.display; + this.viewport = t, this.visible = In(r, e.doc, t), this.editorIsHidden = !r.wrapper.offsetWidth, this.wrapperHeight = r.wrapper.clientHeight, this.wrapperWidth = r.wrapper.clientWidth, this.oldDisplayWidth = Ut(e), this.force = n, this.dims = $n(e), this.events = [] + }; + os.prototype.signal = function(e, t) { + je(e, t) && this.events.push(arguments) + }, os.prototype.finish = function() { + for (var e = this, t = 0; t < this.events.length; t++) Te.apply(null, e.events[t]) + }; + var as = function(e, t) { + this.ranges = e, this.primIndex = t + }; + as.prototype.primary = function() { + return this.ranges[this.primIndex] + }, as.prototype.equals = function(e) { + var t = this; + if (e == this) return !0; + if (e.primIndex != this.primIndex || e.ranges.length != this.ranges.length) return !1; + for (var n = 0; n < this.ranges.length; n++) { + var r = t.ranges[n], + i = e.ranges[n]; + if (!D(r.anchor, i.anchor) || !D(r.head, i.head)) return !1 + } + return !0 + }, as.prototype.deepCopy = function() { + for (var e = this, t = [], n = 0; n < this.ranges.length; n++) t[n] = new ss(N(e.ranges[n].anchor), N(e.ranges[n].head)); + return new as(t, this.primIndex) + }, as.prototype.somethingSelected = function() { + for (var e = this, t = 0; t < this.ranges.length; t++) + if (!e.ranges[t].empty()) return !0; + return !1 + }, as.prototype.contains = function(e, t) { + var n = this; + t || (t = e); + for (var r = 0; r < this.ranges.length; r++) { + var i = n.ranges[r]; + if (R(t, i.from()) >= 0 && R(e, i.to()) <= 0) return r + } + return -1 + }; + var ss = function(e, t) { + this.anchor = e, this.head = t + }; + ss.prototype.from = function() { + return V(this.anchor, this.head) + }, ss.prototype.to = function() { + return I(this.anchor, this.head) + }, ss.prototype.empty = function() { + return this.head.line == this.anchor.line && this.head.ch == this.anchor.ch + }; + var ls = function(e) { + var t = this; + this.lines = e, this.parent = null; + for (var n = 0, r = 0; r < e.length; ++r) e[r].parent = t, n += e[r].height; + this.height = n + }; + ls.prototype.chunkSize = function() { + return this.lines.length + }, ls.prototype.removeInner = function(e, t) { + for (var n = this, r = e, i = e + t; r < i; ++r) { + var o = n.lines[r]; + n.height -= o.height, ut(o), _t(o, "delete") + } + this.lines.splice(e, t) + }, ls.prototype.collapse = function(e) { + e.push.apply(e, this.lines) + }, ls.prototype.insertInner = function(e, t, n) { + var r = this; + this.height += n, this.lines = this.lines.slice(0, e) + .concat(t) + .concat(this.lines.slice(e)); + for (var i = 0; i < t.length; ++i) t[i].parent = r + }, ls.prototype.iterN = function(e, t, n) { + for (var r = this, i = e + t; e < i; ++e) + if (n(r.lines[e])) return !0; + }; + var us = function(e) { + var t = this; + this.children = e; + for (var n = 0, r = 0, i = 0; i < e.length; ++i) { + var o = e[i]; + n += o.chunkSize(), r += o.height, o.parent = t + } + this.size = n, this.height = r, this.parent = null + }; + us.prototype.chunkSize = function() { + return this.size + }, us.prototype.removeInner = function(e, t) { + var n = this; + this.size -= t; + for (var r = 0; r < this.children.length; ++r) { + var i = n.children[r], + o = i.chunkSize(); + if (e < o) { + var a = Math.min(t, o - e), + s = i.height; + if (i.removeInner(e, a), n.height -= s - i.height, o == a && (n.children.splice(r--, 1), i.parent = null), 0 == (t -= a)) break; + e = 0 + } else e -= o + } + if (this.size - t < 25 && (this.children.length > 1 || !(this.children[0] instanceof ls))) { + var l = []; + this.collapse(l), this.children = [new ls(l)], this.children[0].parent = this + } + }, us.prototype.collapse = function(e) { + for (var t = this, n = 0; n < this.children.length; ++n) t.children[n].collapse(e) + }, us.prototype.insertInner = function(e, t, n) { + var r = this; + this.size += t.length, this.height += n; + for (var i = 0; i < this.children.length; ++i) { + var o = r.children[i], + a = o.chunkSize(); + if (e <= a) { + if (o.insertInner(e, t, n), o.lines && o.lines.length > 50) { + for (var s = o.lines.length % 25 + 25, l = s; l < o.lines.length;) { + var u = new ls(o.lines.slice(l, l += 25)); + o.height -= u.height, r.children.splice(++i, 0, u), u.parent = r + } + o.lines = o.lines.slice(0, s), r.maybeSpill() + } + break + } + e -= a + } + }, us.prototype.maybeSpill = function() { + if (!(this.children.length <= 10)) { + var e = this; + do { + var t = e.children.splice(e.children.length - 5, 5), + n = new us(t); + if (e.parent) { + e.size -= n.size, e.height -= n.height; + var r = d(e.parent.children, e); + e.parent.children.splice(r + 1, 0, n) + } else { + var i = new us(e.children); + i.parent = e, e.children = [i, n], e = i + } + n.parent = e.parent + } while (e.children.length > 10); + e.parent.maybeSpill() + } + }, us.prototype.iterN = function(e, t, n) { + for (var r = this, i = 0; i < this.children.length; ++i) { + var o = r.children[i], + a = o.chunkSize(); + if (e < a) { + var s = Math.min(t, a - e); + if (o.iterN(e, s, n)) return !0; + if (0 == (t -= s)) break; + e = 0 + } else e -= a + } + }; + var cs = function(e, t, n) { + var r = this; + if (n) + for (var i in n) n.hasOwnProperty(i) && (r[i] = n[i]); + this.doc = e, this.node = t + }; + cs.prototype.clear = function() { + var e = this, + t = this.doc.cm, + n = this.line.widgets, + r = this.line, + i = P(r); + if (null != i && n) { + for (var o = 0; o < n.length; ++o) n[o] == e && n.splice(o--, 1); + n.length || (r.widgets = null); + var a = Dt(this); + T(r, Math.max(0, r.height - a)), t && (cr(t, function() { + ji(t, r, -a), vr(t, i, "widget") + }), _t(t, "lineWidgetCleared", t, this, i)) + } + }, cs.prototype.changed = function() { + var e = this, + t = this.height, + n = this.doc.cm, + r = this.line; + this.height = null; + var i = Dt(this) - t; + i && (T(r, r.height + i), n && cr(n, function() { + n.curOp.forceUpdate = !0, ji(n, r, i), _t(n, "lineWidgetChanged", n, e, P(r)) + })) + }, Fe(cs); + var fs = 0, + ds = function(e, t) { + this.lines = [], this.type = t, this.doc = e, this.id = ++fs + }; + ds.prototype.clear = function() { + var e = this; + if (!this.explicitlyCleared) { + var t = this.doc.cm, + n = t && !t.curOp; + if (n && nr(t), je(this, "clear")) { + var r = this.find(); + r && _t(this, "clear", r.from, r.to) + } + for (var i = null, o = null, a = 0; a < this.lines.length; ++a) { + var s = e.lines[a], + l = K(s.markedSpans, e); + t && !e.collapsed ? vr(t, P(s), "text") : t && (null != l.to && (o = P(s)), null != l.from && (i = P(s))), s.markedSpans = Y(s.markedSpans, l), null == l.from && e.collapsed && !me(e.doc, s) && t && T(s, yn(t.display)) + } + if (t && this.collapsed && !t.options.lineWrapping) + for (var u = 0; u < this.lines.length; ++u) { + var c = fe(e.lines[u]), + f = be(c); + f > t.display.maxLineLength && (t.display.maxLine = c, t.display.maxLineLength = f, t.display.maxLineChanged = !0) + } + null != i && t && this.collapsed && pr(t, i, o + 1), this.lines.length = 0, this.explicitlyCleared = !0, this.atomic && this.doc.cantEdit && (this.doc.cantEdit = !1, t && vi(t.doc)), t && _t(t, "markerCleared", t, this, i, o), n && rr(t), this.parent && this.parent.clear() + } + }, ds.prototype.find = function(e, t) { + var n = this; + null == e && "bookmark" == this.type && (e = 1); + for (var r, i, o = 0; o < this.lines.length; ++o) { + var a = n.lines[o], + s = K(a.markedSpans, n); + if (null != s.from && (r = L(t ? a : P(a), s.from), e == -1)) return r; + if (null != s.to && (i = L(t ? a : P(a), s.to), 1 == e)) return i + } + return r && { + from: r, + to: i + } + }, ds.prototype.changed = function() { + var e = this, + t = this.find(-1, !0), + n = this, + r = this.doc.cm; + t && r && cr(r, function() { + var i = t.line, + o = P(t.line), + a = Yt(r, o); + if (a && (nn(a), r.curOp.selectionChanged = r.curOp.forceUpdate = !0), r.curOp.updateMaxLine = !0, !me(n.doc, i) && null != n.height) { + var s = n.height; + n.height = null; + var l = Dt(n) - s; + l && T(i, i.height + l) + } + _t(r, "markerChanged", r, e) + }) + }, ds.prototype.attachLine = function(e) { + if (!this.lines.length && this.doc.cm) { + var t = this.doc.cm.curOp; + t.maybeHiddenMarkers && d(t.maybeHiddenMarkers, this) != -1 || (t.maybeUnhiddenMarkers || (t.maybeUnhiddenMarkers = [])) + .push(this) + } + this.lines.push(e) + }, ds.prototype.detachLine = function(e) { + if (this.lines.splice(d(this.lines, e), 1), !this.lines.length && this.doc.cm) { + var t = this.doc.cm.curOp; + (t.maybeHiddenMarkers || (t.maybeHiddenMarkers = [])) + .push(this) + } + }, Fe(ds); + var hs = function(e, t) { + var n = this; + this.markers = e, this.primary = t; + for (var r = 0; r < e.length; ++r) e[r].parent = n + }; + hs.prototype.clear = function() { + var e = this; + if (!this.explicitlyCleared) { + this.explicitlyCleared = !0; + for (var t = 0; t < this.markers.length; ++t) e.markers[t].clear(); + _t(this, "clear") + } + }, hs.prototype.find = function(e, t) { + return this.primary.find(e, t) + }, Fe(hs); + var ps = 0, + vs = function(e, t, n, r, i) { + if (!(this instanceof vs)) return new vs(e, t, n, r, i); + null == n && (n = 0), us.call(this, [new ls([new Ba("", null)])]), this.first = n, this.scrollTop = this.scrollLeft = 0, this.cantEdit = !1, this.cleanGeneration = 1, this.frontier = n; + var o = L(n, 0); + this.sel = Ar(o), this.history = new Br(null), this.id = ++ps, this.modeOption = t, this.lineSep = r, this.direction = "rtl" == i ? "rtl" : "ltr", this.extend = !1, "string" == typeof e && (e = this.splitLines(e)), Wr(this, { + from: o, + to: o, + text: e + }), di(this, Ar(o), ka) + }; + vs.prototype = b(us.prototype, { + constructor: vs, + iter: function(e, t, n) { + n ? this.iterN(e - this.first, t - e, n) : this.iterN(this.first, this.first + this.size, e) + }, + insert: function(e, t) { + for (var n = 0, r = 0; r < t.length; ++r) n += t[r].height; + this.insertInner(e - this.first, t, n) + }, + remove: function(e, t) { + this.removeInner(e - this.first, t) + }, + getValue: function(e) { + var t = M(this, this.first, this.first + this.size); + return e === !1 ? t : t.join(e || this.lineSeparator()) + }, + setValue: hr(function(e) { + var t = L(this.first, 0), + n = this.first + this.size - 1; + xi(this, { + from: t, + to: L(n, S(this, n) + .text.length), + text: this.splitLines(e), + origin: "setValue", + full: !0 + }, !0), di(this, Ar(t)) + }), + replaceRange: function(e, t, n, r) { + t = H(this, t), n = n ? H(this, n) : t, Oi(this, e, t, n, r) + }, + getRange: function(e, t, n) { + var r = O(this, H(this, e), H(this, t)); + return n === !1 ? r : r.join(n || this.lineSeparator()) + }, + getLine: function(e) { + var t = this.getLineHandle(e); + return t && t.text + }, + getLineHandle: function(e) { + if (j(this, e)) return S(this, e) + }, + getLineNumber: function(e) { + return P(e) + }, + getLineHandleVisualStart: function(e) { + return "number" == typeof e && (e = S(this, e)), fe(e) + }, + lineCount: function() { + return this.size + }, + firstLine: function() { + return this.first + }, + lastLine: function() { + return this.first + this.size - 1 + }, + clipPos: function(e) { + return H(this, e) + }, + getCursor: function(e) { + var t, n = this.sel.primary(); + return t = null == e || "head" == e ? n.head : "anchor" == e ? n.anchor : "end" == e || "to" == e || e === !1 ? n.to() : n.from() + }, + listSelections: function() { + return this.sel.ranges + }, + somethingSelected: function() { + return this.sel.somethingSelected() + }, + setCursor: hr(function(e, t, n) { + ui(this, H(this, "number" == typeof e ? L(e, t || 0) : e), null, n) + }), + setSelection: hr(function(e, t, n) { + ui(this, H(this, e), H(this, t || e), n) + }), + extendSelection: hr(function(e, t, n) { + ai(this, H(this, e), t && H(this, t), n) + }), + extendSelections: hr(function(e, t) { + si(this, z(this, e), t) + }), + extendSelectionsBy: hr(function(e, t) { + var n = m(this.sel.ranges, e); + si(this, z(this, n), t) + }), + setSelections: hr(function(e, t, n) { + var r = this; + if (e.length) { + for (var i = [], o = 0; o < e.length; o++) i[o] = new ss(H(r, e[o].anchor), H(r, e[o].head)); + null == t && (t = Math.min(e.length - 1, this.sel.primIndex)), di(this, Pr(i, t), n) + } + }), + addSelection: hr(function(e, t, n) { + var r = this.sel.ranges.slice(0); + r.push(new ss(H(this, e), H(this, t || e))), di(this, Pr(r, r.length - 1), n) + }), + getSelection: function(e) { + for (var t, n = this, r = this.sel.ranges, i = 0; i < r.length; i++) { + var o = O(n, r[i].from(), r[i].to()); + t = t ? t.concat(o) : o + } + return e === !1 ? t : t.join(e || this.lineSeparator()) + }, + getSelections: function(e) { + for (var t = this, n = [], r = this.sel.ranges, i = 0; i < r.length; i++) { + var o = O(t, r[i].from(), r[i].to()); + e !== !1 && (o = o.join(e || t.lineSeparator())), n[i] = o + } + return n + }, + replaceSelection: function(e, t, n) { + for (var r = [], i = 0; i < this.sel.ranges.length; i++) r[i] = e; + this.replaceSelections(r, t, n || "+input") + }, + replaceSelections: hr(function(e, t, n) { + for (var r = this, i = [], o = this.sel, a = 0; a < o.ranges.length; a++) { + var s = o.ranges[a]; + i[a] = { + from: s.from(), + to: s.to(), + text: r.splitLines(e[a]), + origin: n + } + } + for (var l = t && "end" != t && Dr(this, i, t), u = i.length - 1; u >= 0; u--) xi(r, i[u]); + l ? fi(this, l) : this.cm && er(this.cm) + }), + undo: hr(function() { + Ci(this, "undo") + }), + redo: hr(function() { + Ci(this, "redo") + }), + undoSelection: hr(function() { + Ci(this, "undo", !0) + }), + redoSelection: hr(function() { + Ci(this, "redo", !0) + }), + setExtending: function(e) { + this.extend = e + }, + getExtending: function() { + return this.extend + }, + historySize: function() { + for (var e = this.history, t = 0, n = 0, r = 0; r < e.done.length; r++) e.done[r].ranges || ++t; + for (var i = 0; i < e.undone.length; i++) e.undone[i].ranges || ++n; + return { + undo: t, + redo: n + } + }, + clearHistory: function() { + this.history = new Br(this.history.maxGeneration) + }, + markClean: function() { + this.cleanGeneration = this.changeGeneration(!0) + }, + changeGeneration: function(e) { + return e && (this.history.lastOp = this.history.lastSelOp = this.history.lastOrigin = null), this.history.generation + }, + isClean: function(e) { + return this.history.generation == (e || this.cleanGeneration) + }, + getHistory: function() { + return { + done: ii(this.history.done), + undone: ii(this.history.undone) + } + }, + setHistory: function(e) { + var t = this.history = new Br(this.history.maxGeneration); + t.done = ii(e.done.slice(0), null, !0), t.undone = ii(e.undone.slice(0), null, !0) + }, + setGutterMarker: hr(function(e, t, n) { + return Ai(this, e, "gutter", function(e) { + var r = e.gutterMarkers || (e.gutterMarkers = {}); + return r[t] = n, !n && x(r) && (e.gutterMarkers = null), !0 + }) + }), + clearGutter: hr(function(e) { + var t = this; + this.iter(function(n) { + n.gutterMarkers && n.gutterMarkers[e] && Ai(t, n, "gutter", function() { + return n.gutterMarkers[e] = null, x(n.gutterMarkers) && (n.gutterMarkers = null), !0 + }) + }) + }), + lineInfo: function(e) { + var t; + if ("number" == typeof e) { + if (!j(this, e)) return null; + if (t = e, e = S(this, e), !e) return null + } else if (t = P(e), null == t) return null; + return { + line: t, + handle: e, + text: e.text, + gutterMarkers: e.gutterMarkers, + textClass: e.textClass, + bgClass: e.bgClass, + wrapClass: e.wrapClass, + widgets: e.widgets + } + }, + addLineClass: hr(function(t, n, r) { + return Ai(this, t, "gutter" == n ? "gutter" : "class", function(t) { + var i = "text" == n ? "textClass" : "background" == n ? "bgClass" : "gutter" == n ? "gutterClass" : "wrapClass"; + if (t[i]) { + if (e(r) + .test(t[i])) return !1; + t[i] += " " + r + } else t[i] = r; + return !0 + }) + }), + removeLineClass: hr(function(t, n, r) { + return Ai(this, t, "gutter" == n ? "gutter" : "class", function(t) { + var i = "text" == n ? "textClass" : "background" == n ? "bgClass" : "gutter" == n ? "gutterClass" : "wrapClass", + o = t[i]; + if (!o) return !1; + if (null == r) t[i] = null; + else { + var a = o.match(e(r)); + if (!a) return !1; + var s = a.index + a[0].length; + t[i] = o.slice(0, a.index) + (a.index && s != o.length ? " " : "") + o.slice(s) || null + } + return !0 + }) + }), + addLineWidget: hr(function(e, t, n) { + return Fi(this, e, t, n) + }), + removeLineWidget: function(e) { + e.clear() + }, + markText: function(e, t, n) { + return Li(this, H(this, e), H(this, t), n, n && n.type || "range") + }, + setBookmark: function(e, t) { + var n = { + replacedWith: t && (null == t.nodeType ? t.widget : t), + insertLeft: t && t.insertLeft, + clearWhenEmpty: !1, + shared: t && t.shared, + handleMouseEvents: t && t.handleMouseEvents + }; + return e = H(this, e), Li(this, e, e, n, "bookmark") + }, + findMarksAt: function(e) { + e = H(this, e); + var t = [], + n = S(this, e.line) + .markedSpans; + if (n) + for (var r = 0; r < n.length; ++r) { + var i = n[r]; + (null == i.from || i.from <= e.ch) && (null == i.to || i.to >= e.ch) && t.push(i.marker.parent || i.marker) + } + return t + }, + findMarks: function(e, t, n) { + e = H(this, e), t = H(this, t); + var r = [], + i = e.line; + return this.iter(e.line, t.line + 1, function(o) { + var a = o.markedSpans; + if (a) + for (var s = 0; s < a.length; s++) { + var l = a[s]; + null != l.to && i == e.line && e.ch >= l.to || null == l.from && i != e.line || null != l.from && i == t.line && l.from >= t.ch || n && !n(l.marker) || r.push(l.marker.parent || l.marker) + }++i + }), r + }, + getAllMarks: function() { + var e = []; + return this.iter(function(t) { + var n = t.markedSpans; + if (n) + for (var r = 0; r < n.length; ++r) null != n[r].from && e.push(n[r].marker) + }), e + }, + posFromIndex: function(e) { + var t, n = this.first, + r = this.lineSeparator() + .length; + return this.iter(function(i) { + var o = i.text.length + r; + return o > e ? (t = e, !0) : (e -= o, void++n) + }), H(this, L(n, t)) + }, + indexFromPos: function(e) { + e = H(this, e); + var t = e.ch; + if (e.line < this.first || e.ch < 0) return 0; + var n = this.lineSeparator() + .length; + return this.iter(this.first, e.line, function(e) { + t += e.text.length + n + }), t + }, + copy: function(e) { + var t = new vs(M(this, this.first, this.first + this.size), this.modeOption, this.first, this.lineSep, this.direction); + return t.scrollTop = this.scrollTop, t.scrollLeft = this.scrollLeft, t.sel = this.sel, t.extend = !1, e && (t.history.undoDepth = this.history.undoDepth, t.setHistory(this.getHistory())), t + }, + linkedDoc: function(e) { + e || (e = {}); + var t = this.first, + n = this.first + this.size; + null != e.from && e.from > t && (t = e.from), null != e.to && e.to < n && (n = e.to); + var r = new vs(M(this, t, n), e.mode || this.modeOption, t, this.lineSep, this.direction); + return e.sharedHist && (r.history = this.history), (this.linked || (this.linked = [])) + .push({ + doc: r, + sharedHist: e.sharedHist + }), r.linked = [{ + doc: this, + isParent: !0, + sharedHist: e.sharedHist + }], Ni(r, Di(this)), r + }, + unlinkDoc: function(e) { + var t = this; + if (e instanceof So && (e = e.doc), this.linked) + for (var n = 0; n < this.linked.length; ++n) { + var r = t.linked[n]; + if (r.doc == e) { + t.linked.splice(n, 1), e.unlinkDoc(t), Ii(Di(t)); + break + } + } + if (e.history == this.history) { + var i = [e.id]; + Hr(e, function(e) { + return i.push(e.id) + }, !0), e.history = new Br(null), e.history.done = ii(this.history.done, i), e.history.undone = ii(this.history.undone, i) + } + }, + iterLinkedDocs: function(e) { + Hr(this, e) + }, + getMode: function() { + return this.mode + }, + getEditor: function() { + return this.cm + }, + splitLines: function(e) { + return this.lineSep ? e.split(this.lineSep) : Na(e) + }, + lineSeparator: function() { + return this.lineSep || "\n" + }, + setDirection: hr(function(e) { + "rtl" != e && (e = "ltr"), e != this.direction && (this.direction = e, this.iter(function(e) { + return e.order = null + }), this.cm && qr(this.cm)) + }) + }), vs.prototype.eachLine = vs.prototype.iter; + for (var ms = 0, gs = !1, ys = { + 3: "Enter", + 8: "Backspace", + 9: "Tab", + 13: "Enter", + 16: "Shift", + 17: "Ctrl", + 18: "Alt", + 19: "Pause", + 20: "CapsLock", + 27: "Esc", + 32: "Space", + 33: "PageUp", + 34: "PageDown", + 35: "End", + 36: "Home", + 37: "Left", + 38: "Up", + 39: "Right", + 40: "Down", + 44: "PrintScrn", + 45: "Insert", + 46: "Delete", + 59: ";", + 61: "=", + 91: "Mod", + 92: "Mod", + 93: "Mod", + 106: "*", + 107: "=", + 109: "-", + 110: ".", + 111: "/", + 127: "Delete", + 173: "-", + 186: ";", + 187: "=", + 188: ",", + 189: "-", + 190: ".", + 191: "/", + 192: "`", + 219: "[", + 220: "\\", + 221: "]", + 222: "'", + 63232: "Up", + 63233: "Down", + 63234: "Left", + 63235: "Right", + 63272: "Delete", + 63273: "Home", + 63275: "End", + 63276: "PageUp", + 63277: "PageDown", + 63302: "Insert" + }, bs = 0; bs < 10; bs++) ys[bs + 48] = ys[bs + 96] = String(bs); + for (var $s = 65; $s <= 90; $s++) ys[$s] = String.fromCharCode($s); + for (var ws = 1; ws <= 12; ws++) ys[ws + 111] = ys[ws + 63235] = "F" + ws; + var xs = {}; + xs.basic = { + Left: "goCharLeft", + Right: "goCharRight", + Up: "goLineUp", + Down: "goLineDown", + End: "goLineEnd", + Home: "goLineStartSmart", + PageUp: "goPageUp", + PageDown: "goPageDown", + Delete: "delCharAfter", + Backspace: "delCharBefore", + "Shift-Backspace": "delCharBefore", + Tab: "defaultTab", + "Shift-Tab": "indentAuto", + Enter: "newlineAndIndent", + Insert: "toggleOverwrite", + Esc: "singleSelection" + }, xs.pcDefault = { + "Ctrl-A": "selectAll", + "Ctrl-D": "deleteLine", + "Ctrl-Z": "undo", + "Shift-Ctrl-Z": "redo", + "Ctrl-Y": "redo", + "Ctrl-Home": "goDocStart", + "Ctrl-End": "goDocEnd", + "Ctrl-Up": "goLineUp", + "Ctrl-Down": "goLineDown", + "Ctrl-Left": "goGroupLeft", + "Ctrl-Right": "goGroupRight", + "Alt-Left": "goLineStart", + "Alt-Right": "goLineEnd", + "Ctrl-Backspace": "delGroupBefore", + "Ctrl-Delete": "delGroupAfter", + "Ctrl-S": "save", + "Ctrl-F": "find", + "Ctrl-G": "findNext", + "Shift-Ctrl-G": "findPrev", + "Shift-Ctrl-F": "replace", + "Shift-Ctrl-R": "replaceAll", + "Ctrl-[": "indentLess", + "Ctrl-]": "indentMore", + "Ctrl-U": "undoSelection", + "Shift-Ctrl-U": "redoSelection", + "Alt-U": "redoSelection", + fallthrough: "basic" + }, xs.emacsy = { + "Ctrl-F": "goCharRight", + "Ctrl-B": "goCharLeft", + "Ctrl-P": "goLineUp", + "Ctrl-N": "goLineDown", + "Alt-F": "goWordRight", + "Alt-B": "goWordLeft", + "Ctrl-A": "goLineStart", + "Ctrl-E": "goLineEnd", + "Ctrl-V": "goPageDown", + "Shift-Ctrl-V": "goPageUp", + "Ctrl-D": "delCharAfter", + "Ctrl-H": "delCharBefore", + "Alt-D": "delWordAfter", + "Alt-Backspace": "delWordBefore", + "Ctrl-K": "killLine", + "Ctrl-T": "transposeChars", + "Ctrl-O": "openLine" + }, xs.macDefault = { + "Cmd-A": "selectAll", + "Cmd-D": "deleteLine", + "Cmd-Z": "undo", + "Shift-Cmd-Z": "redo", + "Cmd-Y": "redo", + "Cmd-Home": "goDocStart", + "Cmd-Up": "goDocStart", + "Cmd-End": "goDocEnd", + "Cmd-Down": "goDocEnd", + "Alt-Left": "goGroupLeft", + "Alt-Right": "goGroupRight", + "Cmd-Left": "goLineLeft", + "Cmd-Right": "goLineRight", + "Alt-Backspace": "delGroupBefore", + "Ctrl-Alt-Backspace": "delGroupAfter", + "Alt-Delete": "delGroupAfter", + "Cmd-S": "save", + "Cmd-F": "find", + "Cmd-G": "findNext", + "Shift-Cmd-G": "findPrev", + "Cmd-Alt-F": "replace", + "Shift-Cmd-Alt-F": "replaceAll", + "Cmd-[": "indentLess", + "Cmd-]": "indentMore", + "Cmd-Backspace": "delWrappedLineLeft", + "Cmd-Delete": "delWrappedLineRight", + "Cmd-U": "undoSelection", + "Shift-Cmd-U": "redoSelection", + "Ctrl-Up": "goDocStart", + "Ctrl-Down": "goDocEnd", + fallthrough: ["basic", "emacsy"] + }, xs.default = fa ? xs.macDefault : xs.pcDefault; + var _s, Cs, ks = { + selectAll: $i, + singleSelection: function(e) { + return e.setSelection(e.getCursor("anchor"), e.getCursor("head"), ka) + }, + killLine: function(e) { + return eo(e, function(t) { + if (t.empty()) { + var n = S(e.doc, t.head.line) + .text.length; + return t.head.ch == n && t.head.line < e.lastLine() ? { + from: t.head, + to: L(t.head.line + 1, 0) + } : { + from: t.head, + to: L(t.head.line, n) + } + } + return { + from: t.from(), + to: t.to() + } + }) + }, + deleteLine: function(e) { + return eo(e, function(t) { + return { + from: L(t.from() + .line, 0), + to: H(e.doc, L(t.to() + .line + 1, 0)) + } + }) + }, + delLineLeft: function(e) { + return eo(e, function(e) { + return { + from: L(e.from() + .line, 0), + to: e.from() + } + }) + }, + delWrappedLineLeft: function(e) { + return eo(e, function(t) { + var n = e.charCoords(t.head, "div") + .top + 5, + r = e.coordsChar({ + left: 0, + top: n + }, "div"); + return { + from: r, + to: t.from() + } + }) + }, + delWrappedLineRight: function(e) { + return eo(e, function(t) { + var n = e.charCoords(t.head, "div") + .top + 5, + r = e.coordsChar({ + left: e.display.lineDiv.offsetWidth + 100, + top: n + }, "div"); + return { + from: t.from(), + to: r + } + }) + }, + undo: function(e) { + return e.undo() + }, + redo: function(e) { + return e.redo() + }, + undoSelection: function(e) { + return e.undoSelection() + }, + redoSelection: function(e) { + return e.redoSelection() + }, + goDocStart: function(e) { + return e.extendSelection(L(e.firstLine(), 0)) + }, + goDocEnd: function(e) { + return e.extendSelection(L(e.lastLine())) + }, + goLineStart: function(e) { + return e.extendSelectionsBy(function(t) { + return to(e, t.head.line) + }, { + origin: "+move", + bias: 1 + }) + }, + goLineStartSmart: function(e) { + return e.extendSelectionsBy(function(t) { + return ro(e, t.head) + }, { + origin: "+move", + bias: 1 + }) + }, + goLineEnd: function(e) { + return e.extendSelectionsBy(function(t) { + return no(e, t.head.line) + }, { + origin: "+move", + bias: -1 + }) + }, + goLineRight: function(e) { + return e.extendSelectionsBy(function(t) { + var n = e.charCoords(t.head, "div") + .top + 5; + return e.coordsChar({ + left: e.display.lineDiv.offsetWidth + 100, + top: n + }, "div") + }, Sa) + }, + goLineLeft: function(e) { + return e.extendSelectionsBy(function(t) { + var n = e.charCoords(t.head, "div") + .top + 5; + return e.coordsChar({ + left: 0, + top: n + }, "div") + }, Sa) + }, + goLineLeftSmart: function(e) { + return e.extendSelectionsBy(function(t) { + var n = e.charCoords(t.head, "div") + .top + 5, + r = e.coordsChar({ + left: 0, + top: n + }, "div"); + return r.ch < e.getLine(r.line) + .search(/\S/) ? ro(e, t.head) : r + }, Sa) + }, + goLineUp: function(e) { + return e.moveV(-1, "line") + }, + goLineDown: function(e) { + return e.moveV(1, "line") + }, + goPageUp: function(e) { + return e.moveV(-1, "page") + }, + goPageDown: function(e) { + return e.moveV(1, "page") + }, + goCharLeft: function(e) { + return e.moveH(-1, "char") + }, + goCharRight: function(e) { + return e.moveH(1, "char") + }, + goColumnLeft: function(e) { + return e.moveH(-1, "column") + }, + goColumnRight: function(e) { + return e.moveH(1, "column") + }, + goWordLeft: function(e) { + return e.moveH(-1, "word") + }, + goGroupRight: function(e) { + return e.moveH(1, "group") + }, + goGroupLeft: function(e) { + return e.moveH(-1, "group") + }, + goWordRight: function(e) { + return e.moveH(1, "word") + }, + delCharBefore: function(e) { + return e.deleteH(-1, "char") + }, + delCharAfter: function(e) { + return e.deleteH(1, "char") + }, + delWordBefore: function(e) { + return e.deleteH(-1, "word") + }, + delWordAfter: function(e) { + return e.deleteH(1, "word") + }, + delGroupBefore: function(e) { + return e.deleteH(-1, "group") + }, + delGroupAfter: function(e) { + return e.deleteH(1, "group") + }, + indentAuto: function(e) { + return e.indentSelection("smart") + }, + indentMore: function(e) { + return e.indentSelection("add") + }, + indentLess: function(e) { + return e.indentSelection("subtract") + }, + insertTab: function(e) { + return e.replaceSelection("\t") + }, + insertSoftTab: function(e) { + for (var t = [], n = e.listSelections(), r = e.options.tabSize, i = 0; i < n.length; i++) { + var o = n[i].from(), + a = f(e.getLine(o.line), o.ch, r); + t.push(p(r - a % r)) + } + e.replaceSelections(t) + }, + defaultTab: function(e) { + e.somethingSelected() ? e.indentSelection("add") : e.execCommand("insertTab") + }, + transposeChars: function(e) { + return cr(e, function() { + for (var t = e.listSelections(), n = [], r = 0; r < t.length; r++) + if (t[r].empty()) { + var i = t[r].head, + o = S(e.doc, i.line) + .text; + if (o) + if (i.ch == o.length && (i = new L(i.line, i.ch - 1)), i.ch > 0) i = new L(i.line, i.ch + 1), e.replaceRange(o.charAt(i.ch - 1) + o.charAt(i.ch - 2), L(i.line, i.ch - 2), i, "+transpose"); + else if (i.line > e.doc.first) { + var a = S(e.doc, i.line - 1) + .text; + a && (i = new L(i.line, 1), e.replaceRange(o.charAt(0) + e.doc.lineSeparator() + a.charAt(a.length - 1), L(i.line - 1, a.length - 1), i, "+transpose")) + } + n.push(new ss(i, i)) + } + e.setSelections(n) + }) + }, + newlineAndIndent: function(e) { + return cr(e, function() { + for (var t = e.listSelections(), n = t.length - 1; n >= 0; n--) e.replaceRange(e.doc.lineSeparator(), t[n].anchor, t[n].head, "+input"); + t = e.listSelections(); + for (var r = 0; r < t.length; r++) e.indentLine(t[r].from() + .line, null, !0); + er(e) + }) + }, + openLine: function(e) { + return e.replaceSelection("\n", "start") + }, + toggleOverwrite: function(e) { + return e.toggleOverwrite() + } + }, + Es = new $a, + Ss = null, + Os = { + toString: function() { + return "CodeMirror.Init" + } + }, + Ms = {}, + Ts = {}; + So.defaults = Ms, So.optionHandlers = Ts; + var Ps = []; + So.defineInitHook = function(e) { + return Ps.push(e) + }; + var As = null, + js = function(e) { + var t = e.optionHandlers, + n = e.helpers = {}; + e.prototype = { + constructor: e, + focus: function() { + window.focus(), this.display.input.focus() + }, + setOption: function(e, n) { + var r = this.options, + i = r[e]; + r[e] == n && "mode" != e || (r[e] = n, t.hasOwnProperty(e) && fr(this, t[e])(this, n, i), Te(this, "optionChange", this, e)) + }, + getOption: function(e) { + return this.options[e] + }, + getDoc: function() { + return this.doc + }, + addKeyMap: function(e, t) { + this.state.keyMaps[t ? "push" : "unshift"](Zi(e)) + }, + removeKeyMap: function(e) { + for (var t = this.state.keyMaps, n = 0; n < t.length; ++n) + if (t[n] == e || t[n].name == e) return t.splice(n, 1), !0 + }, + addOverlay: dr(function(t, n) { + var r = t.token ? t : e.getMode(this.options, t); + if (r.startState) throw new Error("Overlays may not be stateful."); + g(this.state.overlays, { + mode: r, + modeSpec: t, + opaque: n && n.opaque, + priority: n && n.priority || 0 + }, function(e) { + return e.priority + }), this.state.modeGen++, pr(this) + }), + removeOverlay: dr(function(e) { + for (var t = this, n = this.state.overlays, r = 0; r < n.length; ++r) { + var i = n[r].modeSpec; + if (i == e || "string" == typeof e && i.name == e) return n.splice(r, 1), t.state.modeGen++, void pr(t) + } + }), + indentLine: dr(function(e, t, n) { + "string" != typeof t && "number" != typeof t && (t = null == t ? this.options.smartIndent ? "smart" : "prev" : t ? "add" : "subtract"), j(this.doc, e) && Mo(this, e, t, n) + }), + indentSelection: dr(function(e) { + for (var t = this, n = this.doc.sel.ranges, r = -1, i = 0; i < n.length; i++) { + var o = n[i]; + if (o.empty()) o.head.line > r && (Mo(t, o.head.line, e, !0), r = o.head.line, i == t.doc.sel.primIndex && er(t)); + else { + var a = o.from(), + s = o.to(), + l = Math.max(r, a.line); + r = Math.min(t.lastLine(), s.line - (s.ch ? 0 : 1)) + 1; + for (var u = l; u < r; ++u) Mo(t, u, e); + var c = t.doc.sel.ranges; + 0 == a.ch && n.length == c.length && c[i].from() + .ch > 0 && li(t.doc, i, new ss(a, c[i].to()), ka) + } + } + }), + getTokenAt: function(e, t) { + return it(this, e, t) + }, + getLineTokens: function(e, t) { + return it(this, L(e), t, !0) + }, + getTokenTypeAt: function(e) { + e = H(this.doc, e); + var t, n = Ze(this, S(this.doc, e.line)), + r = 0, + i = (n.length - 1) / 2, + o = e.ch; + if (0 == o) t = n[2]; + else + for (;;) { + var a = r + i >> 1; + if ((a ? n[2 * a - 1] : 0) >= o) i = a; + else { + if (!(n[2 * a + 1] < o)) { + t = n[2 * a + 2]; + break + } + r = a + 1 + } + } + var s = t ? t.indexOf("overlay ") : -1; + return s < 0 ? t : 0 == s ? null : t.slice(0, s - 1) + }, + getModeAt: function(t) { + var n = this.doc.mode; + return n.innerMode ? e.innerMode(n, this.getTokenAt(t) + .state) + .mode : n + }, + getHelper: function(e, t) { + return this.getHelpers(e, t)[0] + }, + getHelpers: function(e, t) { + var r = this, + i = []; + if (!n.hasOwnProperty(t)) return i; + var o = n[t], + a = this.getModeAt(e); + if ("string" == typeof a[t]) o[a[t]] && i.push(o[a[t]]); + else if (a[t]) + for (var s = 0; s < a[t].length; s++) { + var l = o[a[t][s]]; + l && i.push(l) + } else a.helperType && o[a.helperType] ? i.push(o[a.helperType]) : o[a.name] && i.push(o[a.name]); + for (var u = 0; u < o._global.length; u++) { + var c = o._global[u]; + c.pred(a, r) && d(i, c.val) == -1 && i.push(c.val) + } + return i + }, + getStateAfter: function(e, t) { + var n = this.doc; + return e = W(n, null == e ? n.first + n.size - 1 : e), et(this, e + 1, t) + }, + cursorCoords: function(e, t) { + var n, r = this.doc.sel.primary(); + return n = null == e ? r.head : "object" == typeof e ? H(this.doc, e) : e ? r.from() : r.to(), fn(this, n, t || "page") + }, + charCoords: function(e, t) { + return cn(this, H(this.doc, e), t || "page") + }, + coordsChar: function(e, t) { + return e = un(this, e, t || "page"), pn(this, e.left, e.top) + }, + lineAtHeight: function(e, t) { + return e = un(this, { + top: e, + left: 0 + }, t || "page") + .top, A(this.doc, e + this.display.viewOffset) + }, + heightAtLine: function(e, t, n) { + var r, i = !1; + if ("number" == typeof e) { + var o = this.doc.first + this.doc.size - 1; + e < this.doc.first ? e = this.doc.first : e > o && (e = o, i = !0), r = S(this.doc, e) + } else r = e; + return ln(this, r, { + top: 0, + left: 0 + }, t || "page", n || i) + .top + (i ? this.doc.height - ye(r) : 0) + }, + defaultTextHeight: function() { + return yn(this.display) + }, + defaultCharWidth: function() { + return bn(this.display) + }, + getViewport: function() { + return { + from: this.display.viewFrom, + to: this.display.viewTo + } + }, + addWidget: function(e, t, n, r, i) { + var o = this.display; + e = fn(this, H(this.doc, e)); + var a = e.bottom, + s = e.left; + if (t.style.position = "absolute", t.setAttribute("cm-ignore-events", "true"), this.display.input.setUneditable(t), o.sizer.appendChild(t), "over" == r) a = e.top; + else if ("above" == r || "near" == r) { + var l = Math.max(o.wrapper.clientHeight, this.doc.height), + u = Math.max(o.sizer.clientWidth, o.lineSpace.clientWidth); + ("above" == r || e.bottom + t.offsetHeight > l) && e.top > t.offsetHeight ? a = e.top - t.offsetHeight : e.bottom + t.offsetHeight <= l && (a = e.bottom), s + t.offsetWidth > u && (s = u - t.offsetWidth) + } + t.style.top = a + "px", t.style.left = t.style.right = "", "right" == i ? (s = o.sizer.clientWidth - t.offsetWidth, t.style.right = "0px") : ("left" == i ? s = 0 : "middle" == i && (s = (o.sizer.clientWidth - t.offsetWidth) / 2), t.style.left = s + "px"), n && Jn(this, { + left: s, + top: a, + right: s + t.offsetWidth, + bottom: a + t.offsetHeight + }) + }, + triggerOnKeyDown: dr(uo), + triggerOnKeyPress: dr(ho), + triggerOnKeyUp: fo, + execCommand: function(e) { + if (ks.hasOwnProperty(e)) return ks[e].call(null, this) + }, + triggerElectric: dr(function(e) { + jo(this, e) + }), + findPosH: function(e, t, n, r) { + var i = this, + o = 1; + t < 0 && (o = -1, t = -t); + for (var a = H(this.doc, e), s = 0; s < t && (a = Do(i.doc, a, o, n, r), !a.hitSide); ++s); + return a + }, + moveH: dr(function(e, t) { + var n = this; + this.extendSelectionsBy(function(r) { + return n.display.shift || n.doc.extend || r.empty() ? Do(n.doc, r.head, e, t, n.options.rtlMoveVisually) : e < 0 ? r.from() : r.to() + }, Sa) + }), + deleteH: dr(function(e, t) { + var n = this.doc.sel, + r = this.doc; + n.somethingSelected() ? r.replaceSelection("", null, "+delete") : eo(this, function(n) { + var i = Do(r, n.head, e, t, !1); + return e < 0 ? { + from: i, + to: n.head + } : { + from: n.head, + to: i + } + }) + }), + findPosV: function(e, t, n, r) { + var i = this, + o = 1, + a = r; + t < 0 && (o = -1, t = -t); + for (var s = H(this.doc, e), l = 0; l < t; ++l) { + var u = fn(i, s, "div"); + if (null == a ? a = u.left : u.left = a, s = No(i, u, o, n), s.hitSide) break + } + return s + }, + moveV: dr(function(e, t) { + var n = this, + r = this.doc, + i = [], + o = !this.display.shift && !r.extend && r.sel.somethingSelected(); + if (r.extendSelectionsBy(function(a) { + if (o) return e < 0 ? a.from() : a.to(); + var s = fn(n, a.head, "div"); + null != a.goalColumn && (s.left = a.goalColumn), i.push(s.left); + var l = No(n, s, e, t); + return "page" == t && a == r.sel.primary() && Zn(n, null, cn(n, l, "div") + .top - s.top), l + }, Sa), i.length) + for (var a = 0; a < r.sel.ranges.length; a++) r.sel.ranges[a].goalColumn = i[a] + }), + findWordAt: function(e) { + var t = this.doc, + n = S(t, e.line) + .text, + r = e.ch, + i = e.ch; + if (n) { + var o = this.getHelper(e, "wordChars"); + "before" != e.sticky && i != n.length || !r ? ++i : --r; + for (var a = n.charAt(r), s = w(a, o) ? function(e) { + return w(e, o) + } : /\s/.test(a) ? function(e) { + return /\s/.test(e) + } : function(e) { + return !/\s/.test(e) && !w(e) + }; r > 0 && s(n.charAt(r - 1));) --r; + for (; i < n.length && s(n.charAt(i));) ++i + } + return new ss(L(e.line, r), L(e.line, i)) + }, + toggleOverwrite: function(e) { + null != e && e == this.state.overwrite || ((this.state.overwrite = !this.state.overwrite) ? s(this.display.cursorDiv, "CodeMirror-overwrite") : ya(this.display.cursorDiv, "CodeMirror-overwrite"), Te(this, "overwriteToggle", this, this.state.overwrite)) + }, + hasFocus: function() { + return this.display.input.getField() == a() + }, + isReadOnly: function() { + return !(!this.options.readOnly && !this.doc.cantEdit) + }, + scrollTo: dr(function(e, t) { + null == e && null == t || tr(this), null != e && (this.curOp.scrollLeft = e), null != t && (this.curOp.scrollTop = t) + }), + getScrollInfo: function() { + var e = this.display.scroller; + return { + left: e.scrollLeft, + top: e.scrollTop, + height: e.scrollHeight - Ht(this) - this.display.barHeight, + width: e.scrollWidth - Ht(this) - this.display.barWidth, + clientHeight: zt(this), + clientWidth: Ut(this) + } + }, + scrollIntoView: dr(function(e, t) { + if (null == e ? (e = { + from: this.doc.sel.primary() + .head, + to: null + }, null == t && (t = this.options.cursorScrollMargin)) : "number" == typeof e ? e = { + from: L(e, 0), + to: null + } : null == e.from && (e = { + from: e, + to: null + }), e.to || (e.to = e.from), e.margin = t || 0, null != e.from.line) tr(this), this.curOp.scrollToPos = e; + else { + var n = Xn(this, { + left: Math.min(e.from.left, e.to.left), + top: Math.min(e.from.top, e.to.top) - e.margin, + right: Math.max(e.from.right, e.to.right), + bottom: Math.max(e.from.bottom, e.to.bottom) + e.margin + }); + this.scrollTo(n.scrollLeft, n.scrollTop) + } + }), + setSize: dr(function(e, t) { + var n = this, + r = function(e) { + return "number" == typeof e || /^\d+$/.test(String(e)) ? e + "px" : e + }; + null != e && (this.display.wrapper.style.width = r(e)), null != t && (this.display.wrapper.style.height = r(t)), this.options.lineWrapping && rn(this); + var i = this.display.viewFrom; + this.doc.iter(i, this.display.viewTo, function(e) { + if (e.widgets) + for (var t = 0; t < e.widgets.length; t++) + if (e.widgets[t].noHScroll) { + vr(n, i, "widget"); + break + }++i + }), this.curOp.forceUpdate = !0, Te(this, "refresh", this) + }), + operation: function(e) { + return cr(this, e) + }, + refresh: dr(function() { + var e = this.display.cachedTextHeight; + pr(this), this.curOp.forceUpdate = !0, on(this), this.scrollTo(this.doc.scrollLeft, this.doc.scrollTop), Sr(this), (null == e || Math.abs(e - yn(this.display)) > .5) && _n(this), Te(this, "refresh", this) + }), + swapDoc: dr(function(e) { + var t = this.doc; + return t.cm = null, Ur(this, e), on(this), this.display.input.reset(), this.scrollTo(e.scrollLeft, e.scrollTop), this.curOp.forceScroll = !0, _t(this, "swapDoc", this, t), t + }), + getInputField: function() { + return this.display.input.getField() + }, + getWrapperElement: function() { + return this.display.wrapper + }, + getScrollerElement: function() { + return this.display.scroller + }, + getGutterElement: function() { + return this.display.gutters + } + }, Fe(e), e.registerHelper = function(t, r, i) { + n.hasOwnProperty(t) || (n[t] = e[t] = { + _global: [] + }), n[t][r] = i + }, e.registerGlobalHelper = function(t, r, i, o) { + e.registerHelper(t, r, o), n[t]._global.push({ + pred: i, + val: o + }) + } + }, + Fs = function(e) { + this.cm = e, this.lastAnchorNode = this.lastAnchorOffset = this.lastFocusNode = this.lastFocusOffset = null, this.polling = new $a, this.composing = null, this.gracePeriod = !1, this.readDOMTimeout = null + }; + Fs.prototype.init = function(e) { + function t(e) { + if (!Pe(i, e)) { + if (i.somethingSelected()) To({ + lineWise: !1, + text: i.getSelections() + }), "cut" == e.type && i.replaceSelection("", null, "cut"); + else { + if (!i.options.lineWiseCopyCut) return; + var t = Fo(i); + To({ + lineWise: !0, + text: t.text + }), "cut" == e.type && i.operation(function() { + i.setSelections(t.ranges, 0, ka), i.replaceSelection("", null, "cut") + }) + } + if (e.clipboardData) { + e.clipboardData.clearData(); + var n = As.text.join("\n"); + if (e.clipboardData.setData("Text", n), e.clipboardData.getData("Text") == n) return void e.preventDefault() + } + var a = Ro(), + s = a.firstChild; + i.display.lineSpace.insertBefore(a, i.display.lineSpace.firstChild), s.value = As.text.join("\n"); + var l = document.activeElement; + ba(s), setTimeout(function() { + i.display.lineSpace.removeChild(a), l.focus(), l == o && r.showPrimarySelection() + }, 50) + } + } + var n = this, + r = this, + i = r.cm, + o = r.div = e.lineDiv; + Lo(o, i.options.spellcheck), Ra(o, "paste", function(e) { + Pe(i, e) || Ao(e, i) || ea <= 11 && setTimeout(fr(i, function() { + return n.updateFromDOM() + }), 20) + }), Ra(o, "compositionstart", function(e) { + n.composing = { + data: e.data, + done: !1 + } + }), Ra(o, "compositionupdate", function(e) { + n.composing || (n.composing = { + data: e.data, + done: !1 + }) + }), Ra(o, "compositionend", function(e) { + n.composing && (e.data != n.composing.data && n.readFromDOMSoon(), n.composing.done = !0) + }), Ra(o, "touchstart", function() { + return r.forceCompositionEnd() + }), Ra(o, "input", function() { + n.composing || n.readFromDOMSoon() + }), Ra(o, "copy", t), Ra(o, "cut", t) + }, Fs.prototype.prepareSelection = function() { + var e = Sn(this.cm, !1); + return e.focus = this.cm.state.focused, e + }, Fs.prototype.showSelection = function(e, t) { + e && this.cm.display.view.length && ((e.focus || t) && this.showPrimarySelection(), this.showMultipleSelections(e)) + }, Fs.prototype.showPrimarySelection = function() { + var e = window.getSelection(), + t = this.cm.doc.sel.primary(), + n = Uo(this.cm, e.anchorNode, e.anchorOffset), + r = Uo(this.cm, e.focusNode, e.focusOffset); + if (!n || n.bad || !r || r.bad || 0 != R(V(n, r), t.from()) || 0 != R(I(n, r), t.to())) { + var i = Io(this.cm, t.from()), + o = Io(this.cm, t.to()); + if (!i && !o) return void e.removeAllRanges(); + var a = this.cm.display.view, + s = e.rangeCount && e.getRangeAt(0); + if (i) { + if (!o) { + var l = a[a.length - 1].measure, + u = l.maps ? l.maps[l.maps.length - 1] : l.map; + o = { + node: u[u.length - 1], + offset: u[u.length - 2] - u[u.length - 3] + } + } + } else i = { + node: a[0].measure.map[2], + offset: 0 + }; + var c; + try { + c = va(i.node, i.offset, o.offset, o.node) + } catch (e) {} + c && (!Yo && this.cm.state.focused ? (e.collapse(i.node, i.offset), c.collapsed || (e.removeAllRanges(), e.addRange(c))) : (e.removeAllRanges(), e.addRange(c)), s && null == e.anchorNode ? e.addRange(s) : Yo && this.startGracePeriod()), this.rememberSelection() + } + }, Fs.prototype.startGracePeriod = function() { + var e = this; + clearTimeout(this.gracePeriod), this.gracePeriod = setTimeout(function() { + e.gracePeriod = !1, e.selectionChanged() && e.cm.operation(function() { + return e.cm.curOp.selectionChanged = !0 + }) + }, 20) + }, Fs.prototype.showMultipleSelections = function(e) { + n(this.cm.display.cursorDiv, e.cursors), n(this.cm.display.selectionDiv, e.selection) + }, Fs.prototype.rememberSelection = function() { + var e = window.getSelection(); + this.lastAnchorNode = e.anchorNode, this.lastAnchorOffset = e.anchorOffset, this.lastFocusNode = e.focusNode, this.lastFocusOffset = e.focusOffset + }, Fs.prototype.selectionInEditor = function() { + var e = window.getSelection(); + if (!e.rangeCount) return !1; + var t = e.getRangeAt(0) + .commonAncestorContainer; + return o(this.div, t) + }, Fs.prototype.focus = function() { + "nocursor" != this.cm.options.readOnly && (this.selectionInEditor() || this.showSelection(this.prepareSelection(), !0), this.div.focus()) + }, Fs.prototype.blur = function() { + this.div.blur() + }, Fs.prototype.getField = function() { + return this.div + }, Fs.prototype.supportsTouch = function() { + return !0 + }, Fs.prototype.receivedFocus = function() { + function e() { + t.cm.state.focused && (t.pollSelection(), t.polling.set(t.cm.options.pollInterval, e)) + } + var t = this; + this.selectionInEditor() ? this.pollSelection() : cr(this.cm, function() { + return t.cm.curOp.selectionChanged = !0 + }), this.polling.set(this.cm.options.pollInterval, e) + }, Fs.prototype.selectionChanged = function() { + var e = window.getSelection(); + return e.anchorNode != this.lastAnchorNode || e.anchorOffset != this.lastAnchorOffset || e.focusNode != this.lastFocusNode || e.focusOffset != this.lastFocusOffset + }, Fs.prototype.pollSelection = function() { + if (null == this.readDOMTimeout && !this.gracePeriod && this.selectionChanged()) { + var e = window.getSelection(), + t = this.cm; + if (ua && ra && this.cm.options.gutters.length && Vo(e.anchorNode)) return this.cm.triggerOnKeyDown({ + type: "keydown", + keyCode: 8, + preventDefault: Math.abs + }), this.blur(), void this.focus(); + if (!this.composing) { + this.rememberSelection(); + var n = Uo(t, e.anchorNode, e.anchorOffset), + r = Uo(t, e.focusNode, e.focusOffset); + n && r && cr(t, function() { + di(t.doc, Ar(n, r), ka), (n.bad || r.bad) && (t.curOp.selectionChanged = !0) + }) + } + } + }, Fs.prototype.pollContent = function() { + null != this.readDOMTimeout && (clearTimeout(this.readDOMTimeout), this.readDOMTimeout = null); + var e = this.cm, + t = e.display, + n = e.doc.sel.primary(), + r = n.from(), + i = n.to(); + if (0 == r.ch && r.line > e.firstLine() && (r = L(r.line - 1, S(e.doc, r.line - 1) + .length)), i.ch == S(e.doc, i.line) + .text.length && i.line < e.lastLine() && (i = L(i.line + 1, 0)), r.line < t.viewFrom || i.line > t.viewTo - 1) return !1; + var o, a, s; + r.line == t.viewFrom || 0 == (o = kn(e, r.line)) ? (a = P(t.view[0].line), s = t.view[0].node) : (a = P(t.view[o].line), s = t.view[o - 1].node.nextSibling); + var l, u, c = kn(e, i.line); + if (c == t.view.length - 1 ? (l = t.viewTo - 1, u = t.lineDiv.lastChild) : (l = P(t.view[c + 1].line) - 1, u = t.view[c + 1].node.previousSibling), !s) return !1; + for (var f = e.doc.splitLines(Ho(e, s, u, a, l)), d = O(e.doc, L(a, 0), L(l, S(e.doc, l) + .text.length)); f.length > 1 && d.length > 1;) + if (v(f) == v(d)) f.pop(), d.pop(), l--; + else { + if (f[0] != d[0]) break; + f.shift(), d.shift(), a++ + } + for (var h = 0, p = 0, m = f[0], g = d[0], y = Math.min(m.length, g.length); h < y && m.charCodeAt(h) == g.charCodeAt(h);) ++h; + for (var b = v(f), $ = v(d), w = Math.min(b.length - (1 == f.length ? h : 0), $.length - (1 == d.length ? h : 0)); p < w && b.charCodeAt(b.length - p - 1) == $.charCodeAt($.length - p - 1);) ++p; + if (1 == f.length && 1 == d.length && a == r.line) + for (; h && h > r.ch && b.charCodeAt(b.length - p - 1) == $.charCodeAt($.length - p - 1);) h--, p++; + f[f.length - 1] = b.slice(0, b.length - p) + .replace(/^\u200b+/, ""), f[0] = f[0].slice(h) + .replace(/\u200b+$/, ""); + var x = L(a, h), + _ = L(l, d.length ? v(d) + .length - p : 0); + return f.length > 1 || f[0] || R(x, _) ? (Oi(e.doc, f, x, _, "+input"), !0) : void 0 + }, Fs.prototype.ensurePolled = function() { + this.forceCompositionEnd() + }, Fs.prototype.reset = function() { + this.forceCompositionEnd() + }, Fs.prototype.forceCompositionEnd = function() { + this.composing && (clearTimeout(this.readDOMTimeout), this.composing = null, this.updateFromDOM(), this.div.blur(), this.div.focus()) + }, Fs.prototype.readFromDOMSoon = function() { + var e = this; + null == this.readDOMTimeout && (this.readDOMTimeout = setTimeout(function() { + if (e.readDOMTimeout = null, e.composing) { + if (!e.composing.done) return; + e.composing = null + } + e.updateFromDOM() + }, 80)) + }, Fs.prototype.updateFromDOM = function() { + var e = this; + !this.cm.isReadOnly() && this.pollContent() || cr(this.cm, function() { + return pr(e.cm) + }) + }, Fs.prototype.setUneditable = function(e) { + e.contentEditable = "false" + }, Fs.prototype.onKeyPress = function(e) { + 0 != e.charCode && (e.preventDefault(), this.cm.isReadOnly() || fr(this.cm, Po)(this.cm, String.fromCharCode(null == e.charCode ? e.keyCode : e.charCode), 0)) + }, Fs.prototype.readOnlyChanged = function(e) { + this.div.contentEditable = String("nocursor" != e) + }, Fs.prototype.onContextMenu = function() {}, Fs.prototype.resetPosition = function() {}, Fs.prototype.needsContentAttribute = !0; + var Ls = function(e) { + this.cm = e, this.prevInput = "", this.pollingFast = !1, this.polling = new $a, this.inaccurateSelection = !1, this.hasSelection = !1, this.composing = null + }; + Ls.prototype.init = function(e) { + function t(e) { + if (!Pe(i, e)) { + if (i.somethingSelected()) To({ + lineWise: !1, + text: i.getSelections() + }), r.inaccurateSelection && (r.prevInput = "", r.inaccurateSelection = !1, a.value = As.text.join("\n"), ba(a)); + else { + if (!i.options.lineWiseCopyCut) return; + var t = Fo(i); + To({ + lineWise: !0, + text: t.text + }), "cut" == e.type ? i.setSelections(t.ranges, null, ka) : (r.prevInput = "", a.value = t.text.join("\n"), ba(a)) + } + "cut" == e.type && (i.state.cutIncoming = !0) + } + } + var n = this, + r = this, + i = this.cm, + o = this.wrapper = Ro(), + a = this.textarea = o.firstChild; + e.wrapper.insertBefore(o, e.wrapper.firstChild), la && (a.style.width = "0px"), Ra(a, "input", function() { + Zo && ea >= 9 && n.hasSelection && (n.hasSelection = null), r.poll() + }), Ra(a, "paste", function(e) { + Pe(i, e) || Ao(e, i) || (i.state.pasteIncoming = !0, r.fastPoll()) + }), Ra(a, "cut", t), Ra(a, "copy", t), Ra(e.scroller, "paste", function(t) { + Nt(e, t) || Pe(i, t) || (i.state.pasteIncoming = !0, r.focus()) + }), Ra(e.lineSpace, "selectstart", function(t) { + Nt(e, t) || Le(t) + }), Ra(a, "compositionstart", function() { + var e = i.getCursor("from"); + r.composing && r.composing.range.clear(), r.composing = { + start: e, + range: i.markText(e, i.getCursor("to"), { + className: "CodeMirror-composing" + }) + } + }), Ra(a, "compositionend", function() { + r.composing && (r.poll(), r.composing.range.clear(), r.composing = null) + }) + }, Ls.prototype.prepareSelection = function() { + var e = this.cm, + t = e.display, + n = e.doc, + r = Sn(e); + if (e.options.moveInputWithCursor) { + var i = fn(e, n.sel.primary() + .head, "div"), + o = t.wrapper.getBoundingClientRect(), + a = t.lineDiv.getBoundingClientRect(); + r.teTop = Math.max(0, Math.min(t.wrapper.clientHeight - 10, i.top + a.top - o.top)), r.teLeft = Math.max(0, Math.min(t.wrapper.clientWidth - 10, i.left + a.left - o.left)) + } + return r + }, Ls.prototype.showSelection = function(e) { + var t = this.cm, + r = t.display; + n(r.cursorDiv, e.cursors), n(r.selectionDiv, e.selection), null != e.teTop && (this.wrapper.style.top = e.teTop + "px", this.wrapper.style.left = e.teLeft + "px") + }, Ls.prototype.reset = function(e) { + if (!this.contextMenuPending) { + var t, n, r = this.cm, + i = r.doc; + if (r.somethingSelected()) { + this.prevInput = ""; + var o = i.sel.primary(); + t = Va && (o.to() + .line - o.from() + .line > 100 || (n = r.getSelection()) + .length > 1e3); + var a = t ? "-" : n || r.getSelection(); + this.textarea.value = a, r.state.focused && ba(this.textarea), Zo && ea >= 9 && (this.hasSelection = a) + } else e || (this.prevInput = this.textarea.value = "", Zo && ea >= 9 && (this.hasSelection = null)); + this.inaccurateSelection = t + } + }, Ls.prototype.getField = function() { + return this.textarea + }, Ls.prototype.supportsTouch = function() { + return !1 + }, Ls.prototype.focus = function() { + if ("nocursor" != this.cm.options.readOnly && (!ca || a() != this.textarea)) try { + this.textarea.focus() + } catch (e) {} + }, Ls.prototype.blur = function() { + this.textarea.blur() + }, Ls.prototype.resetPosition = function() { + this.wrapper.style.top = this.wrapper.style.left = 0 + }, Ls.prototype.receivedFocus = function() { + this.slowPoll() + }, Ls.prototype.slowPoll = function() { + var e = this; + this.pollingFast || this.polling.set(this.cm.options.pollInterval, function() { + e.poll(), e.cm.state.focused && e.slowPoll() + }) + }, Ls.prototype.fastPoll = function() { + function e() { + var r = n.poll(); + r || t ? (n.pollingFast = !1, n.slowPoll()) : (t = !0, n.polling.set(60, e)) + } + var t = !1, + n = this; + n.pollingFast = !0, n.polling.set(20, e) + }, Ls.prototype.poll = function() { + var e = this, + t = this.cm, + n = this.textarea, + r = this.prevInput; + if (this.contextMenuPending || !t.state.focused || Ia(n) && !r && !this.composing || t.isReadOnly() || t.options.disableInput || t.state.keySeq) return !1; + var i = n.value; + if (i == r && !t.somethingSelected()) return !1; + if (Zo && ea >= 9 && this.hasSelection === i || fa && /[\uf700-\uf7ff]/.test(i)) return t.display.input.reset(), !1; + if (t.doc.sel == t.display.selForContextMenu) { + var o = i.charCodeAt(0); + if (8203 != o || r || (r = "​"), 8666 == o) return this.reset(), this.cm.execCommand("undo") + } + for (var a = 0, s = Math.min(r.length, i.length); a < s && r.charCodeAt(a) == i.charCodeAt(a);) ++a; + return cr(t, function() { + Po(t, i.slice(a), r.length - a, null, e.composing ? "*compose" : null), i.length > 1e3 || i.indexOf("\n") > -1 ? n.value = e.prevInput = "" : e.prevInput = i, e.composing && (e.composing.range.clear(), e.composing.range = t.markText(e.composing.start, t.getCursor("to"), { + className: "CodeMirror-composing" + })) + }), !0 + }, Ls.prototype.ensurePolled = function() { + this.pollingFast && this.poll() && (this.pollingFast = !1) + }, Ls.prototype.onKeyPress = function() { + Zo && ea >= 9 && (this.hasSelection = null), this.fastPoll() + }, Ls.prototype.onContextMenu = function(e) { + function t() { + if (null != a.selectionStart) { + var e = i.somethingSelected(), + t = "​" + (e ? a.value : ""); + a.value = "⇚", a.value = t, r.prevInput = e ? "" : "​", a.selectionStart = 1, a.selectionEnd = t.length, o.selForContextMenu = i.doc.sel + } + } + + function n() { + if (r.contextMenuPending = !1, r.wrapper.style.cssText = f, a.style.cssText = c, Zo && ea < 9 && o.scrollbars.setScrollTop(o.scroller.scrollTop = l), null != a.selectionStart) { + (!Zo || Zo && ea < 9) && t(); + var e = 0, + n = function() { + o.selForContextMenu == i.doc.sel && 0 == a.selectionStart && a.selectionEnd > 0 && "​" == r.prevInput ? fr(i, $i)(i) : e++ < 10 ? o.detectingSelectAll = setTimeout(n, 500) : (o.selForContextMenu = null, o.input.reset()) + }; + o.detectingSelectAll = setTimeout(n, 200) + } + } + var r = this, + i = r.cm, + o = i.display, + a = r.textarea, + s = Cn(i, e), + l = o.scroller.scrollTop; + if (s && !ia) { + var u = i.options.resetSelectionOnContextMenu; + u && i.doc.sel.contains(s) == -1 && fr(i, di)(i.doc, Ar(s), ka); + var c = a.style.cssText, + f = r.wrapper.style.cssText; + r.wrapper.style.cssText = "position: absolute"; + var d = r.wrapper.getBoundingClientRect(); + a.style.cssText = "position: absolute; width: 30px; height: 30px;\n top: " + (e.clientY - d.top - 5) + "px; left: " + (e.clientX - d.left - 5) + "px;\n z-index: 1000; background: " + (Zo ? "rgba(255, 255, 255, .05)" : "transparent") + ";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);"; + var h; + if (ta && (h = window.scrollY), o.input.focus(), ta && window.scrollTo(null, h), o.input.reset(), i.somethingSelected() || (a.value = r.prevInput = " "), r.contextMenuPending = !0, o.selForContextMenu = i.doc.sel, clearTimeout(o.detectingSelectAll), Zo && ea >= 9 && t(), ga) { + Ne(e); + var p = function() { + Me(window, "mouseup", p), setTimeout(n, 20) + }; + Ra(window, "mouseup", p) + } else setTimeout(n, 50) + } + }, Ls.prototype.readOnlyChanged = function(e) { + e || this.reset() + }, Ls.prototype.setUneditable = function() {}, Ls.prototype.needsContentAttribute = !1, _o(So), js(So); + var Rs = "iter insert remove copy getEditor constructor".split(" "); + for (var Ds in vs.prototype) vs.prototype.hasOwnProperty(Ds) && d(Rs, Ds) < 0 && (So.prototype[Ds] = function(e) { + return function() { + return e.apply(this.doc, arguments) + } + }(vs.prototype[Ds])); + return Fe(vs), So.inputStyles = { + textarea: Ls, + contenteditable: Fs + }, So.defineMode = function(e) { + So.defaults.mode || "null" == e || (So.defaults.mode = e), ze.apply(this, arguments) + }, So.defineMIME = qe, So.defineMode("null", function() { + return { + token: function(e) { + return e.skipToEnd() + } + } + }), So.defineMIME("text/plain", "null"), So.defineExtension = function(e, t) { + So.prototype[e] = t + }, So.defineDocExtension = function(e, t) { + vs.prototype[e] = t + }, So.fromTextArea = qo, Bo(So), So.version = "5.25.0", So + }) +}, function(e, t, n) { + n(169), e.exports = angular +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + s = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + l = n(3), + u = r(l), + c = n(20), + f = r(c), + d = function(e) { + function t(e) { + i(this, t), s(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "ListView", this._perPage = 30, this._infinitePagination = !1, this._listActions = [], this._batchActions = ["delete"], this._filters = [], this._permanentFilters = {}, this._exportFields = null, this._exportOptions = {}, this._entryCssClasses = null, this._sortField = "id", this._sortDir = "DESC" + } + return o(t, e), a(t, [{ + key: "perPage", + value: function() { + return arguments.length ? (this._perPage = arguments[0], this) : this._perPage + } + }, { + key: "limit", + value: function() { + return arguments.length ? this.perPage(arguments[0]) : this.perPage() + } + }, { + key: "sortField", + value: function() { + return arguments.length ? (this._sortField = arguments[0], this) : this._sortField + } + }, { + key: "sortDir", + value: function() { + return arguments.length ? (this._sortDir = arguments[0], this) : this._sortDir + } + }, { + key: "getSortFieldName", + value: function() { + return this.name() + "." + this._sortField + } + }, { + key: "infinitePagination", + value: function() { + return arguments.length ? (this._infinitePagination = arguments[0], this) : this._infinitePagination + } + }, { + key: "actions", + value: function(e) { + return arguments.length ? (this._actions = e, this) : this._actions + } + }, { + key: "exportFields", + value: function(e) { + return arguments.length ? (this._exportFields = e, this) : this._exportFields + } + }, { + key: "exportOptions", + value: function(e) { + return arguments.length ? (this._exportOptions = e, this) : this._exportOptions + } + }, { + key: "batchActions", + value: function(e) { + return arguments.length ? (this._batchActions = e, this) : this._batchActions + } + }, { + key: "permanentFilters", + value: function(e) { + return arguments.length ? (this._permanentFilters = e, this) : this._permanentFilters + } + }, { + key: "filters", + value: function(e) { + return arguments.length ? (this._filters = f.default.order(e), this) : this._filters + } + }, { + key: "getFilterReferences", + value: function(e) { + var t = {}, + n = this._filters.filter(function(e) { + return "reference" === e.type() + }), + r = null; + e === !0 ? r = function(e) { + return e.remoteComplete() + } : e === !1 && (r = function(e) { + return !e.remoteComplete() + }), null !== r && (n = n.filter(r)); + for (var i = 0, o = n.length; i < o; i++) { + var a = n[i]; + t[a.name()] = a + } + return t + } + }, { + key: "listActions", + value: function(e) { + return arguments.length ? (this._listActions = e, this) : this._listActions + } + }, { + key: "entryCssClasses", + value: function(e) { + return arguments.length ? (this._entryCssClasses = e, this) : this._entryCssClasses + } + }, { + key: "getEntryCssClasses", + value: function(e) { + return this._entryCssClasses ? this._entryCssClasses.constructor === Array ? this._entryCssClasses.join(" ") : "function" == typeof this._entryCssClasses ? this._entryCssClasses(e) : this._entryCssClasses : "" + } + }]), t + }(u.default); + t.default = d, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var o = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + a = n(21), + s = r(a), + l = n(1), + u = r(l), + c = n(44), + f = r(c), + d = n(48), + h = r(d), + p = n(6), + v = r(p), + m = n(43), + g = r(m), + y = n(46), + b = r(y), + $ = n(45), + w = r($), + x = n(49), + _ = r(x), + C = n(42), + k = r(C), + E = n(47), + S = r(E), + O = 0, + M = function() { + function e(t) { + i(this, e), this._name = t, this._uniqueId = this._name + "_" + O++, this._baseApiUrl = null, this._label = null, this._identifierField = new u.default("id"), this._isReadOnly = !1, this._errorMessage = null, this._order = 0, this._url = null, this._createMethod = null, this._updateMethod = null, this._retrieveMethod = null, this._deleteMethod = null, this._initViews() + } + return o(e, [{ + key: "label", + value: function() { + return arguments.length ? (this._label = arguments[0], this) : null === this._label ? s.default.camelCase(this._name) : this._label + } + }, { + key: "name", + value: function() { + return arguments.length ? (this._name = arguments[0], this) : this._name + } + }, { + key: "menuView", + value: function() { + return this._views.MenuView + } + }, { + key: "dashboardView", + value: function() { + return this._views.DashboardView + } + }, { + key: "listView", + value: function() { + return this._views.ListView + } + }, { + key: "creationView", + value: function() { + return this._views.CreateView + } + }, { + key: "editionView", + value: function() { + return this._views.EditView + } + }, { + key: "deletionView", + value: function() { + return this._views.DeleteView + } + }, { + key: "batchDeleteView", + value: function() { + return this._views.BatchDeleteView + } + }, { + key: "exportView", + value: function() { + return this._views.ExportView + } + }, { + key: "showView", + value: function() { + return this._views.ShowView + } + }, { + key: "baseApiUrl", + value: function(e) { + return arguments.length ? (this._baseApiUrl = e, this) : this._baseApiUrl + } + }, { + key: "_initViews", + value: function() { + this._views = { + DashboardView: (new f.default) + .setEntity(this), + MenuView: (new h.default) + .setEntity(this), + ListView: (new v.default) + .setEntity(this), + CreateView: (new g.default) + .setEntity(this), + EditView: (new b.default) + .setEntity(this), + DeleteView: (new w.default) + .setEntity(this), + BatchDeleteView: (new k.default) + .setEntity(this), + ExportView: (new S.default) + .setEntity(this), + ShowView: (new _.default) + .setEntity(this) + } + } + }, { + key: "identifier", + value: function(e) { + if (!arguments.length) return this._identifierField; + if (!(e instanceof u.default)) throw new Error("Entity " + this.name() + ": identifier must be an instance of Field."); + return this._identifierField = e, this + } + }, { + key: "readOnly", + value: function() { + return this._isReadOnly = !0, this._views.CreateView.disable(), this._views.EditView.disable(), this._views.DeleteView.disable(), this._views.BatchDeleteView.disable(), this + } + }, { + key: "getErrorMessage", + value: function(e) { + return "function" == typeof this._errorMessage ? this._errorMessage(e) : this._errorMessage + } + }, { + key: "errorMessage", + value: function(e) { + return arguments.length ? (this._errorMessage = e, this) : this._errorMessage + } + }, { + key: "order", + value: function(e) { + return arguments.length ? (this._order = e, this) : this._order + } + }, { + key: "url", + value: function(e) { + return arguments.length ? (this._url = e, this) : this._url + } + }, { + key: "getUrl", + value: function(e, t, n) { + return "function" == typeof this._url ? this._url(this.name(), e, t, n) : this._url + } + }, { + key: "createMethod", + value: function(e) { + return arguments.length ? (this._createMethod = e, this) : this._createMethod + } + }, { + key: "updateMethod", + value: function(e) { + return arguments.length ? (this._updateMethod = e, this) : this._updateMethod + } + }, { + key: "retrieveMethod", + value: function(e) { + return arguments.length ? (this._retrieveMethod = e, this) : this._retrieveMethod + } + }, { + key: "deleteMethod", + value: function(e) { + return arguments.length ? (this._deleteMethod = e, this) : this._deleteMethod + } + }, { + key: "uniqueId", + get: function() { + return this._uniqueId + } + }, { + key: "views", + get: function() { + return this._views + } + }, { + key: "isReadOnly", + get: function() { + return this._isReadOnly + } + }]), e + }(); + t.default = M, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + s = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + l = n(1), + u = r(l), + c = function(e) { + function t(e) { + i(this, t), s(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "choice", this._choices = [] + } + return o(t, e), a(t, [{ + key: "choices", + value: function(e) { + return arguments.length ? (this._choices = e, this) : this._choices + } + }, { + key: "getLabelForChoice", + value: function(e, t) { + var n = "function" == typeof this._choices ? this._choices(t) : this._choices, + r = n.filter(function(t) { + return t.value == e + }) + .pop(); + return r ? r.label : null + } + }]), t + }(u.default); + t.default = c, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + s = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + l = n(1), + u = r(l), + c = function(e) { + function t(e) { + i(this, t), s(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "reference", this._targetEntity = null, this._targetField = null, this._perPage = 30, this._permanentFilters = null, this._sortField = null, this._sortDir = null, this._singleApiCall = !1, this._detailLink = !0, this._remoteComplete = !1, this._remoteCompleteOptions = { + refreshDelay: 500 + } + } + return o(t, e), a(t, [{ + key: "perPage", + value: function(e) { + return arguments.length ? (this._perPage = e, this) : this._perPage + } + }, { + key: "datagridName", + value: function() { + return this._targetEntity.name() + "_ListView" + } + }, { + key: "targetEntity", + value: function(e) { + return arguments.length ? (this._targetEntity = e, this) : this._targetEntity + } + }, { + key: "targetField", + value: function(e) { + return arguments.length ? (this._targetField = e, this) : this._targetField + } + }, { + key: "permanentFilters", + value: function(e) { + return arguments.length ? (this._permanentFilters = e, this) : this._permanentFilters + } + }, { + key: "filters", + value: function(e) { + return console.warn("ReferenceField.filters() is deprecated, please use ReferenceField.permanentFilters() instead"), this.permanentFilters(e) + } + }, { + key: "sortField", + value: function() { + return arguments.length ? (this._sortField = arguments[0], this) : this._sortField + } + }, { + key: "sortDir", + value: function() { + return arguments.length ? (this._sortDir = arguments[0], this) : this._sortDir + } + }, { + key: "singleApiCall", + value: function(e) { + return arguments.length ? (this._singleApiCall = e, this) : this._singleApiCall + } + }, { + key: "hasSingleApiCall", + value: function() { + return "function" == typeof this._singleApiCall + } + }, { + key: "getSingleApiCall", + value: function(e) { + return this.hasSingleApiCall() ? this._singleApiCall(e) : this._singleApiCall + } + }, { + key: "getIdentifierValues", + value: function(e) { + for (var t = {}, n = this._name, r = 0, i = e.length; r < i; r++) { + var o = e[r][n]; + if (null != o) + if (o instanceof Array) + for (var a in o) t[o[a]] = !0; + else t[o] = !0 + } + return Object.keys(t) + } + }, { + key: "getSortFieldName", + value: function() { + return this.sortField() ? this._targetEntity.name() + "_ListView." + this.sortField() : null + } + }, { + key: "remoteComplete", + value: function(e, t) { + return arguments.length ? (this._remoteComplete = e, t && this.remoteCompleteOptions(t), this) : this._remoteComplete + } + }, { + key: "remoteCompleteOptions", + value: function(e) { + return arguments.length ? (this._remoteCompleteOptions = e, this) : this._remoteCompleteOptions + } + }]), t + }(u.default); + t.default = c, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReferencedLists: function(e) { + return this.indexByName(e.filter(function(e) { + return "referenced_list" === e.type() + })) + }, + getReferences: function(e, t) { + var n = arguments.length <= 2 || void 0 === arguments[2] ? null : arguments[2], + r = e.filter(function(e) { + return "reference" === e.type() || "reference_many" === e.type() + }); + return t === !0 ? r = r.filter(function(e) { + return e.remoteComplete() + }) : t === !1 && (r = r.filter(function(e) { + return !e.remoteComplete() + })), null !== n && (r = r.filter(function(e) { + return e.hasSingleApiCall() === n + })), this.indexByName(r) + }, + getNonOptimizedReferences: function(e, t) { + return this.getReferences(e, t, !1) + }, + getOptimizedReferences: function(e, t) { + return this.getReferences(e, t, !0) + }, + indexByName: function(e) { + return e.reduce(function(e, t) { + return e[t.name()] = t, e + }, {}) + } + }, e.exports = t.default +}, function(e, t) { + function n() { + throw new Error("setTimeout has not been defined") + } + + function r() { + throw new Error("clearTimeout has not been defined") + } + + function i(e) { + if (c === setTimeout) return setTimeout(e, 0); + if ((c === n || !c) && setTimeout) return c = setTimeout, setTimeout(e, 0); + try { + return c(e, 0) + } catch (t) { + try { + return c.call(null, e, 0) + } catch (t) { + return c.call(this, e, 0) + } + } + } + + function o(e) { + if (f === clearTimeout) return clearTimeout(e); + if ((f === r || !f) && clearTimeout) return f = clearTimeout, clearTimeout(e); + try { + return f(e) + } catch (t) { + try { + return f.call(null, e) + } catch (t) { + return f.call(this, e) + } + } + } + + function a() { + v && h && (v = !1, h.length ? p = h.concat(p) : m = -1, p.length && s()) + } + + function s() { + if (!v) { + var e = i(a); + v = !0; + for (var t = p.length; t;) { + for (h = p, p = []; ++m < t;) h && h[m].run(); + m = -1, t = p.length + } + h = null, v = !1, o(e) + } + } + + function l(e, t) { + this.fun = e, this.array = t + } + + function u() {} + var c, f, d = e.exports = {}; + ! function() { + try { + c = "function" == typeof setTimeout ? setTimeout : n + } catch (e) { + c = n + } + try { + f = "function" == typeof clearTimeout ? clearTimeout : r + } catch (e) { + f = r + } + }(); + var h, p = [], + v = !1, + m = -1; + d.nextTick = function(e) { + var t = new Array(arguments.length - 1); + if (arguments.length > 1) + for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; + p.push(new l(e, t)), 1 !== p.length || v || i(s) + }, l.prototype.run = function() { + this.fun.apply(null, this.array) + }, d.title = "browser", d.browser = !0, d.env = {}, d.argv = [], d.version = "", d.versions = {}, d.on = u, d.addListener = u, d.once = u, d.off = u, d.removeListener = u, d.removeAllListeners = u, d.emit = u, d.binding = function(e) { + throw new Error("process.binding is not supported") + }, d.cwd = function() { + return "/" + }, d.chdir = function(e) { + throw new Error("process.chdir is not supported") + }, d.umask = function() { + return 0 + } +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + s = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + l = n(6), + u = r(l), + c = function(e) { + function t() { + i(this, t), s(Object.getPrototypeOf(t.prototype), "constructor", this) + .apply(this, arguments) + } + return o(t, e), a(t, [{ + key: "setEntity", + value: function(e) { + return this.entity = e, this._name || (this._name = e.name()), this + } + }]), t + }(u.default); + t.default = c, e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + i = function() { + function e() { + n(this, e), this._collections = {}, this._template = null + } + return r(e, [{ + key: "addCollection", + value: function(e) { + return this._collections[e.name()] = e, this + } + }, { + key: "collections", + value: function(e) { + return arguments.length ? (this._collections = e, this) : this._collections + } + }, { + key: "hasCollections", + value: function() { + return Object.keys(this._collections) + .length > 0 + } + }, { + key: "template", + value: function(e) { + return arguments.length ? (this._template = e, this) : this._template + } + }]), e + }(); + t.default = i, e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + i = function() { + function e() { + n(this, e), this._entries = {} + } + return r(e, [{ + key: "setEntries", + value: function(e, t) { + return this._entries[e] = t, this + } + }, { + key: "addEntry", + value: function(e, t) { + e in this._entries || (this._entries[e] = []), this._entries[e].push(t) + } + }, { + key: "getEntries", + value: function(e) { + return this._entries[e] || [] + } + }, { + key: "getFirstEntry", + value: function(e) { + var t = arguments.length <= 1 || void 0 === arguments[1] ? function() { + return !0 + } : arguments[1]; + return this.getEntries(e) + .filter(t) + .shift() + } + }, { + key: "getChoices", + value: function(e) { + var t = e.targetEntity() + .identifier() + .name(), + n = e.targetField() + .name(); + return this.getEntries(e.targetEntity() + .uniqueId + "_choices") + .map(function(e) { + return { + value: e.values[t], + label: e.values[n] + } + }) + } + }, { + key: "fillReferencesValuesFromCollection", + value: function(e, t, n) { + n = "undefined" != typeof n && n; + for (var r = 0, i = e.length; r < i; r++) e[r] = this.fillReferencesValuesFromEntry(e[r], t, n); + return e + } + }, { + key: "fillReferencesValuesFromEntry", + value: function(e, t, n) { + for (var r in t) { + var i = t[r], + o = this.getReferenceChoicesById(i), + a = [], + s = i.getMappedValue(e.values[r], e.values); + if ("reference_many" === i.type()) { + for (var l in s) { + var u = s[l]; + a.push(o[u]) + } + e.listValues[r] = a + } else n && null != s && s in o && (e.listValues[r] = i.getMappedValue(o[s], e.values)) + } + return e + } + }, { + key: "getReferenceChoicesById", + value: function(e) { + for (var t = {}, n = e.targetField() + .name(), r = e.targetEntity() + .identifier() + .name(), i = this.getEntries(e.targetEntity() + .uniqueId + "_values"), o = 0, a = i.length; o < a; o++) { + var s = i[o]; + t[s.values[r]] = s.values[n] + } + return t + } + }]), e + }(); + t.default = i, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + s = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + l = n(1), + u = r(l), + c = function(e) { + function t(e) { + i(this, t), s(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._format = null, this._parse = function(e) { + if (e instanceof Date) { + e.setMinutes(e.getMinutes() - e.getTimezoneOffset()); + var t = e.toJSON(); + return t ? t.substr(0, 10) : null + } + return e + }, this._type = "date" + } + return o(t, e), a(t, [{ + key: "format", + value: function(e) { + return arguments.length ? (this._format = e, this) : this._format + } + }, { + key: "parse", + value: function(e) { + return arguments.length ? (this._parse = e, this) : this._parse + } + }]), t + }(u.default); + t.default = c, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + s = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + l = n(1), + u = r(l), + c = function(e) { + function t(e) { + i(this, t), s(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "number", this._format = void 0 + } + return o(t, e), a(t, [{ + key: "format", + value: function(e) { + return arguments.length ? (this._format = e, this) : this._format + } + }, { + key: "fractionSize", + value: function(e) { + return console.warn("NumberField.fractionSize() is deprecated, use NumberField.format() instead"), this.format("0." + "0".repeat(e)), this + } + }]), t + }(u.default); + t.default = c, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o() { + return !1 + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + s = n(7), + l = r(s), + u = 0, + c = !0, + f = function() { + function e() { + i(this, e), this._link = null, this._activeFunc = o, this._title = null, this._icon = !1, this._children = [], this._template = !1, this._autoClose = !0, this.uuid = u++ + } + return a(e, [{ + key: "title", + value: function() { + return arguments.length ? (this._title = arguments[0], this) : this._title + } + }, { + key: "isLink", + value: function() { + return !!this._link + } + }, { + key: "link", + value: function() { + var e = this; + return arguments.length ? (this._link = arguments[0], this._activeFunc == o && (this._activeFunc = function(t) { + return 0 === t.indexOf(e._link) + }), this) : this._link + } + }, { + key: "autoClose", + value: function() { + return arguments.length ? (c = arguments[0], this) : c + } + }, { + key: "active", + value: function(e) { + return arguments.length ? (this._activeFunc = arguments[0], this) : this._activeFunc + } + }, { + key: "isActive", + value: function(e) { + return this._activeFunc(e) + } + }, { + key: "isChildActive", + value: function(e) { + return this.isActive(e) || this.children() + .filter(function(t) { + return t.isChildActive(e) + }) + .length > 0 + } + }, { + key: "addChild", + value: function(t) { + if (!(t instanceof e)) throw new Error("Only Menu instances are accepted as children of a Menu"); + return this._children.push(t), this + } + }, { + key: "hasChild", + value: function() { + return this._children.length > 0 + } + }, { + key: "getChildByTitle", + value: function(e) { + return this.children() + .filter(function(t) { + return t.title() == e + }) + .pop() + } + }, { + key: "children", + value: function() { + return arguments.length ? (this._children = arguments[0], this) : this._children + } + }, { + key: "icon", + value: function() { + return arguments.length ? (this._icon = arguments[0], this) : this._icon + } + }, { + key: "template", + value: function() { + return arguments.length ? (this._template = arguments[0], this) : this._template + } + }, { + key: "populateFromEntity", + value: function(e) { + if (!(e instanceof l.default)) throw new Error("populateFromEntity() only accepts an Entity parameter"); + return this.title(e.label()), this.active(function(t) { + return 0 === t.indexOf("/" + e.name() + "/") + }), this.link("/" + e.name() + "/list"), this.icon(e.menuView() + .icon()), this + } + }]), e + }(); + t.default = f, e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = function e(t, r, i) { + n(this, e), this._restWrapper = t, this._promisesResolver = r, this._application = i + }; + t.default = r, e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + return null !== e && ("object" == typeof e && (!Array.isArray(e) && "[object Date]" !== Object.prototype.toString.call(e))) + } + + function r(e) { + return Object.keys(e) + .reduce(function(t, n) { + return e.hasOwnProperty(n) && (t[n] = e[n]), t + }, {}) + } + + function i(e) { + var t = arguments.length <= 1 || void 0 === arguments[1] ? [] : arguments[1]; + if ("object" != typeof e) throw new Error("Expecting an object parameter"); + return Object.keys(e) + .reduce(function(o, a) { + return e.hasOwnProperty(a) ? (n(e[a]) ? t.indexOf(a) === -1 ? ! function() { + var t = i(e[a]); + Object.keys(t) + .forEach(function(e) { + t.hasOwnProperty(e) && (o[a + "." + e] = t[e]) + }) + }() : o[a] = r(e[a]) : o[a] = e[a], o) : o + }, {}) + } + + function o(e) { + if ("object" != typeof e) throw new Error("Expecting an object parameter"); + return Object.keys(e) + .reduce(function(t, n) { + return e.hasOwnProperty(n) ? (n.split(".") + .reduce(function(t, r, i, o) { + if (null != t) { + if ("undefined" == typeof t[r] && (t[r] = {}), i < o.length - 1) return t[r]; + t[r] = e[n] + } + }, t), t) : t + }, {}) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.clone = r, t.cloneAndFlatten = i, t.cloneAndNest = o +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + order: function(e) { + var t, n = []; + for (t in e) n.push(e[t]); + return n.sort(function(e, t) { + return e.order() - t.order() + }) + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + camelCase: function(e) { + if (!e) return e; + var t = e.charAt(0) + .toUpperCase(); + return e = t + e.substr(1), e.replace(/[-_.\s](.)/g, function(e, t) { + return " " + t.toUpperCase() + }) + } + }, e.exports = t.default +}, function(e, t) { + /** + * State-based routing for AngularJS + * @version v0.2.18 + * @link http://angular-ui.github.com/ + * @license MIT License, http://www.opensource.org/licenses/MIT + */ + "undefined" != typeof e && "undefined" != typeof t && e.exports === t && (e.exports = "ui.router"), + function(e, t, n) { + "use strict"; + + function r(e, t) { + return U(new(U(function() {}, { + prototype: e + })), t) + } + + function i(e) { + return H(arguments, function(t) { + t !== e && H(t, function(t, n) { + e.hasOwnProperty(n) || (e[n] = t) + }) + }), e + } + + function o(e, t) { + var n = []; + for (var r in e.path) { + if (e.path[r] !== t.path[r]) break; + n.push(e.path[r]) + } + return n + } + + function a(e) { + if (Object.keys) return Object.keys(e); + var t = []; + return H(e, function(e, n) { + t.push(n) + }), t + } + + function s(e, t) { + if (Array.prototype.indexOf) return e.indexOf(t, Number(arguments[2]) || 0); + var n = e.length >>> 0, + r = Number(arguments[2]) || 0; + for (r = r < 0 ? Math.ceil(r) : Math.floor(r), r < 0 && (r += n); r < n; r++) + if (r in e && e[r] === t) return r; + return -1 + } + + function l(e, t, n, r) { + var i, l = o(n, r), + u = {}, + c = []; + for (var f in l) + if (l[f] && l[f].params && (i = a(l[f].params), i.length)) + for (var d in i) s(c, i[d]) >= 0 || (c.push(i[d]), u[i[d]] = e[i[d]]); + return U({}, u, t) + } + + function u(e, t, n) { + if (!n) { + n = []; + for (var r in e) n.push(r) + } + for (var i = 0; i < n.length; i++) { + var o = n[i]; + if (e[o] != t[o]) return !1 + } + return !0 + } + + function c(e, t) { + var n = {}; + return H(e, function(e) { + n[e] = t[e] + }), n + } + + function f(e) { + var t = {}, + n = Array.prototype.concat.apply(Array.prototype, Array.prototype.slice.call(arguments, 1)); + return H(n, function(n) { + n in e && (t[n] = e[n]) + }), t + } + + function d(e) { + var t = {}, + n = Array.prototype.concat.apply(Array.prototype, Array.prototype.slice.call(arguments, 1)); + for (var r in e) s(n, r) == -1 && (t[r] = e[r]); + return t + } + + function h(e, t) { + var n = W(e), + r = n ? [] : {}; + return H(e, function(e, i) { + t(e, i) && (r[n ? r.length : i] = e) + }), r + } + + function p(e, t) { + var n = W(e) ? [] : {}; + return H(e, function(e, r) { + n[r] = t(e, r) + }), n + } + + function v(e, t) { + var r = 1, + o = 2, + l = {}, + u = [], + c = l, + f = U(e.when(l), { + $$promises: l, + $$values: l + }); + this.study = function(l) { + function h(e, n) { + if (y[n] !== o) { + if (g.push(n), y[n] === r) throw g.splice(0, s(g, n)), new Error("Cyclic dependency: " + g.join(" -> ")); + if (y[n] = r, I(e)) m.push(n, [function() { + return t.get(e) + }], u); + else { + var i = t.annotate(e); + H(i, function(e) { + e !== n && l.hasOwnProperty(e) && h(l[e], e) + }), m.push(n, e, i) + } + g.pop(), y[n] = o + } + } + + function p(e) { + return V(e) && e.then && e.$$promises + } + if (!V(l)) throw new Error("'invocables' must be an object"); + var v = a(l || {}), + m = [], + g = [], + y = {}; + return H(l, h), l = g = y = null, + function(r, o, a) { + function s() { + --$ || (w || i(b, o.$$values), g.$$values = b, g.$$promises = g.$$promises || !0, delete g.$$inheritedValues, h.resolve(b)) + } + + function l(e) { + g.$$failure = e, h.reject(e) + } + + function u(n, i, o) { + function u(e) { + f.reject(e), l(e) + } + + function c() { + if (!D(g.$$failure)) try { + f.resolve(t.invoke(i, a, b)), f.promise.then(function(e) { + b[n] = e, s() + }, u) + } catch (e) { + u(e) + } + } + var f = e.defer(), + d = 0; + H(o, function(e) { + y.hasOwnProperty(e) && !r.hasOwnProperty(e) && (d++, y[e].then(function(t) { + b[e] = t, --d || c() + }, u)) + }), d || c(), y[n] = f.promise + } + if (p(r) && a === n && (a = o, o = r, r = null), r) { + if (!V(r)) throw new Error("'locals' must be an object") + } else r = c; + if (o) { + if (!p(o)) throw new Error("'parent' must be a promise returned by $resolve.resolve()") + } else o = f; + var h = e.defer(), + g = h.promise, + y = g.$$promises = {}, + b = U({}, r), + $ = 1 + m.length / 3, + w = !1; + if (D(o.$$failure)) return l(o.$$failure), g; + o.$$inheritedValues && i(b, d(o.$$inheritedValues, v)), U(y, o.$$promises), o.$$values ? (w = i(b, d(o.$$values, v)), g.$$inheritedValues = d(o.$$values, v), s()) : (o.$$inheritedValues && (g.$$inheritedValues = d(o.$$inheritedValues, v)), o.then(s, l)); + for (var x = 0, _ = m.length; x < _; x += 3) r.hasOwnProperty(m[x]) ? s() : u(m[x], m[x + 1], m[x + 2]); + return g + } + }, this.resolve = function(e, t, n, r) { + return this.study(e)(t, n, r) + } + } + + function m(e, t, n) { + this.fromConfig = function(e, t, n) { + return D(e.template) ? this.fromString(e.template, t) : D(e.templateUrl) ? this.fromUrl(e.templateUrl, t) : D(e.templateProvider) ? this.fromProvider(e.templateProvider, t, n) : null + }, this.fromString = function(e, t) { + return N(e) ? e(t) : e + }, this.fromUrl = function(n, r) { + return N(n) && (n = n(r)), null == n ? null : e.get(n, { + cache: t, + headers: { + Accept: "text/html" + } + }) + .then(function(e) { + return e.data + }) + }, this.fromProvider = function(e, t, r) { + return n.invoke(e, null, r || { + params: t + }) + } + } + + function g(e, t, i) { + function o(t, n, r, i) { + if (m.push(t), p[t]) return p[t]; + if (!/^\w+([-.]+\w+)*(?:\[\])?$/.test(t)) throw new Error("Invalid parameter name '" + t + "' in pattern '" + e + "'"); + if (v[t]) throw new Error("Duplicate parameter name '" + t + "' in pattern '" + e + "'"); + return v[t] = new B.Param(t, n, r, i), v[t] + } + + function a(e, t, n, r) { + var i = ["", ""], + o = e.replace(/[\\\[\]\^$*+?.()|{}]/g, "\\$&"); + if (!t) return o; + switch (n) { + case !1: + i = ["(", ")" + (r ? "?" : "")]; + break; + case !0: + o = o.replace(/\/$/, ""), i = ["(?:/(", ")|/)?"]; + break; + default: + i = ["(" + n + "|", ")?"] + } + return o + i[0] + t + i[1] + } + + function s(i, o) { + var a, s, l, u, c; + return a = i[2] || i[3], c = t.params[a], l = e.substring(d, i.index), s = o ? i[4] : i[4] || ("*" == i[1] ? ".*" : null), s && (u = B.type(s) || r(B.type("string"), { + pattern: new RegExp(s, t.caseInsensitive ? "i" : n) + })), { + id: a, + regexp: s, + segment: l, + type: u, + cfg: c + } + } + t = U({ + params: {} + }, V(t) ? t : {}); + var l, u = /([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g, + c = /([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g, + f = "^", + d = 0, + h = this.segments = [], + p = i ? i.params : {}, + v = this.params = i ? i.params.$$new() : new B.ParamSet, + m = []; + this.source = e; + for (var g, y, b; + (l = u.exec(e)) && (g = s(l, !1), !(g.segment.indexOf("?") >= 0));) y = o(g.id, g.type, g.cfg, "path"), f += a(g.segment, y.type.pattern.source, y.squash, y.isOptional), h.push(g.segment), d = u.lastIndex; + b = e.substring(d); + var $ = b.indexOf("?"); + if ($ >= 0) { + var w = this.sourceSearch = b.substring($); + if (b = b.substring(0, $), this.sourcePath = e.substring(0, d + $), w.length > 0) + for (d = 0; l = c.exec(w);) g = s(l, !0), y = o(g.id, g.type, g.cfg, "search"), d = u.lastIndex + } else this.sourcePath = e, this.sourceSearch = ""; + f += a(b) + (t.strict === !1 ? "/?" : "") + "$", h.push(b), this.regexp = new RegExp(f, t.caseInsensitive ? "i" : n), this.prefix = h[0], this.$$paramNames = m + } + + function y(e) { + U(this, e) + } + + function b() { + function e(e) { + return null != e ? e.toString() + .replace(/~/g, "~~") + .replace(/\//g, "~2F") : e + } + + function i(e) { + return null != e ? e.toString() + .replace(/~2F/g, "/") + .replace(/~~/g, "~") : e + } + + function o() { + return { + strict: v, + caseInsensitive: d + } + } + + function l(e) { + return N(e) || W(e) && N(e[e.length - 1]) + } + + function u() { + for (; x.length;) { + var e = x.shift(); + if (e.pattern) throw new Error("You cannot override a type's .pattern at runtime."); + t.extend($[e.name], f.invoke(e.def)) + } + } + + function c(e) { + U(this, e || {}) + } + B = this; + var f, d = !1, + v = !0, + m = !1, + $ = {}, + w = !0, + x = [], + _ = { + string: { + encode: e, + decode: i, + is: function(e) { + return null == e || !D(e) || "string" == typeof e + }, + pattern: /[^\/]*/ + }, + int: { + encode: e, + decode: function(e) { + return parseInt(e, 10) + }, + is: function(e) { + return D(e) && this.decode(e.toString()) === e + }, + pattern: /\d+/ + }, + bool: { + encode: function(e) { + return e ? 1 : 0 + }, + decode: function(e) { + return 0 !== parseInt(e, 10) + }, + is: function(e) { + return e === !0 || e === !1 + }, + pattern: /0|1/ + }, + date: { + encode: function(e) { + return this.is(e) ? [e.getFullYear(), ("0" + (e.getMonth() + 1)) + .slice(-2), ("0" + e.getDate()) + .slice(-2)].join("-") : n + }, + decode: function(e) { + if (this.is(e)) return e; + var t = this.capture.exec(e); + return t ? new Date(t[1], t[2] - 1, t[3]) : n + }, + is: function(e) { + return e instanceof Date && !isNaN(e.valueOf()) + }, + equals: function(e, t) { + return this.is(e) && this.is(t) && e.toISOString() === t.toISOString() + }, + pattern: /[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/, + capture: /([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/ + }, + json: { + encode: t.toJson, + decode: t.fromJson, + is: t.isObject, + equals: t.equals, + pattern: /[^\/]*/ + }, + any: { + encode: t.identity, + decode: t.identity, + equals: t.equals, + pattern: /.*/ + } + }; + b.$$getDefaultValue = function(e) { + if (!l(e.value)) return e.value; + if (!f) throw new Error("Injectable functions cannot be called at configuration time"); + return f.invoke(e.value) + }, this.caseInsensitive = function(e) { + return D(e) && (d = e), d + }, this.strictMode = function(e) { + return D(e) && (v = e), v + }, this.defaultSquashPolicy = function(e) { + if (!D(e)) return m; + if (e !== !0 && e !== !1 && !I(e)) throw new Error("Invalid squash policy: " + e + ". Valid policies: false, true, arbitrary-string"); + return m = e, e + }, this.compile = function(e, t) { + return new g(e, U(o(), t)) + }, this.isMatcher = function(e) { + if (!V(e)) return !1; + var t = !0; + return H(g.prototype, function(n, r) { + N(n) && (t = t && D(e[r]) && N(e[r])) + }), t + }, this.type = function(e, t, n) { + if (!D(t)) return $[e]; + if ($.hasOwnProperty(e)) throw new Error("A type named '" + e + "' has already been defined."); + return $[e] = new y(U({ + name: e + }, t)), n && (x.push({ + name: e, + def: n + }), w || u()), this + }, H(_, function(e, t) { + $[t] = new y(U({ + name: t + }, e)) + }), $ = r($, {}), this.$get = ["$injector", function(e) { + return f = e, w = !1, u(), H(_, function(e, t) { + $[t] || ($[t] = new y(e)) + }), this + }], this.Param = function(e, r, i, o) { + function u(e) { + var t = V(e) ? a(e) : [], + n = s(t, "value") === -1 && s(t, "type") === -1 && s(t, "squash") === -1 && s(t, "array") === -1; + return n && (e = { + value: e + }), e.$$fn = l(e.value) ? e.value : function() { + return e.value + }, e + } + + function c(n, r, i) { + if (n.type && r) throw new Error("Param '" + e + "' has two type configurations."); + return r ? r : n.type ? t.isString(n.type) ? $[n.type] : n.type instanceof y ? n.type : new y(n.type) : "config" === i ? $.any : $.string + } + + function d() { + var t = { + array: "search" === o && "auto" + }, + n = e.match(/\[\]$/) ? { + array: !0 + } : {}; + return U(t, n, i) + .array + } + + function v(e, t) { + var n = e.squash; + if (!t || n === !1) return !1; + if (!D(n) || null == n) return m; + if (n === !0 || I(n)) return n; + throw new Error("Invalid squash policy: '" + n + "'. Valid policies: false, true, or arbitrary string") + } + + function g(e, t, r, i) { + var o, a, l = [{ + from: "", + to: r || t ? n : "" + }, { + from: null, + to: r || t ? n : "" + }]; + return o = W(e.replace) ? e.replace : [], I(i) && o.push({ + from: i, + to: n + }), a = p(o, function(e) { + return e.from + }), h(l, function(e) { + return s(a, e.from) === -1 + }) + .concat(o) + } + + function b() { + if (!f) throw new Error("Injectable functions cannot be called at configuration time"); + var e = f.invoke(i.$$fn); + if (null !== e && e !== n && !_.type.is(e)) throw new Error("Default value (" + e + ") for parameter '" + _.id + "' is not an instance of Type (" + _.type.name + ")"); + return e + } + + function w(e) { + function t(e) { + return function(t) { + return t.from === e + } + } + + function n(e) { + var n = p(h(_.replace, t(e)), function(e) { + return e.to + }); + return n.length ? n[0] : e + } + return e = n(e), D(e) ? _.type.$normalize(e) : b() + } + + function x() { + return "{Param:" + e + " " + r + " squash: '" + E + "' optional: " + k + "}" + } + var _ = this; + i = u(i), r = c(i, r, o); + var C = d(); + r = C ? r.$asArray(C, "search" === o) : r, "string" !== r.name || C || "path" !== o || i.value !== n || (i.value = ""); + var k = i.value !== n, + E = v(i, k), + S = g(i, C, k, E); + U(this, { + id: e, + type: r, + location: o, + array: C, + squash: E, + replace: S, + isOptional: k, + value: w, + dynamic: n, + config: i, + toString: x + }) + }, c.prototype = { + $$new: function() { + return r(this, U(new c, { + $$parent: this + })) + }, + $$keys: function() { + for (var e = [], t = [], n = this, r = a(c.prototype); n;) t.push(n), n = n.$$parent; + return t.reverse(), H(t, function(t) { + H(a(t), function(t) { + s(e, t) === -1 && s(r, t) === -1 && e.push(t) + }) + }), e + }, + $$values: function(e) { + var t = {}, + n = this; + return H(n.$$keys(), function(r) { + t[r] = n[r].value(e && e[r]) + }), t + }, + $$equals: function(e, t) { + var n = !0, + r = this; + return H(r.$$keys(), function(i) { + var o = e && e[i], + a = t && t[i]; + r[i].type.equals(o, a) || (n = !1) + }), n + }, + $$validates: function(e) { + var r, i, o, a, s, l = this.$$keys(); + for (r = 0; r < l.length && (i = this[l[r]], o = e[l[r]], o !== n && null !== o || !i.isOptional); r++) { + if (a = i.type.$normalize(o), !i.type.is(a)) return !1; + if (s = i.type.encode(a), t.isString(s) && !i.type.pattern.exec(s)) return !1 + } + return !0 + }, + $$parent: n + }, this.ParamSet = c + } + + function $(e, r) { + function i(e) { + var t = /^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(e.source); + return null != t ? t[1].replace(/\\(.)/g, "$1") : "" + } + + function o(e, t) { + return e.replace(/\$(\$|\d{1,2})/, function(e, n) { + return t["$" === n ? 0 : Number(n)] + }) + } + + function a(e, t, n) { + if (!n) return !1; + var r = e.invoke(t, t, { + $match: n + }); + return !D(r) || r + } + + function s(r, i, o, a, s) { + function d(e, t, n) { + return "/" === m ? e : t ? m.slice(0, -1) + e : n ? m.slice(1) + e : e + } + + function h(e) { + function t(e) { + var t = e(o, r); + return !!t && (I(t) && r.replace() + .url(t), !0) + } + if (!e || !e.defaultPrevented) { + v && r.url() === v; + v = n; + var i, a = u.length; + for (i = 0; i < a; i++) + if (t(u[i])) return; + c && t(c) + } + } + + function p() { + return l = l || i.$on("$locationChangeSuccess", h) + } + var v, m = a.baseHref(), + g = r.url(); + return f || p(), { + sync: function() { + h() + }, + listen: function() { + return p() + }, + update: function(e) { + return e ? void(g = r.url()) : void(r.url() !== g && (r.url(g), r.replace())) + }, + push: function(e, t, i) { + var o = e.format(t || {}); + null !== o && t && t["#"] && (o += "#" + t["#"]), r.url(o), v = i && i.$$avoidResync ? r.url() : n, i && i.replace && r.replace() + }, + href: function(n, i, o) { + if (!n.validates(i)) return null; + var a = e.html5Mode(); + t.isObject(a) && (a = a.enabled), a = a && s.history; + var l = n.format(i); + if (o = o || {}, a || null === l || (l = "#" + e.hashPrefix() + l), null !== l && i && i["#"] && (l += "#" + i["#"]), l = d(l, a, o.absolute), !o.absolute || !l) return l; + var u = !a && l ? "/" : "", + c = r.port(); + return c = 80 === c || 443 === c ? "" : ":" + c, [r.protocol(), "://", r.host(), c, u, l].join("") + } + } + } + var l, u = [], + c = null, + f = !1; + this.rule = function(e) { + if (!N(e)) throw new Error("'rule' must be a function"); + return u.push(e), this + }, this.otherwise = function(e) { + if (I(e)) { + var t = e; + e = function() { + return t + } + } else if (!N(e)) throw new Error("'rule' must be a function"); + return c = e, this + }, this.when = function(e, t) { + var n, s = I(t); + if (I(e) && (e = r.compile(e)), !s && !N(t) && !W(t)) throw new Error("invalid 'handler' in when()"); + var l = { + matcher: function(e, t) { + return s && (n = r.compile(t), t = ["$match", function(e) { + return n.format(e) + }]), U(function(n, r) { + return a(n, t, e.exec(r.path(), r.search())) + }, { + prefix: I(e.prefix) ? e.prefix : "" + }) + }, + regex: function(e, t) { + if (e.global || e.sticky) throw new Error("when() RegExp must not be global or sticky"); + return s && (n = t, t = ["$match", function(e) { + return o(n, e) + }]), U(function(n, r) { + return a(n, t, e.exec(r.path())) + }, { + prefix: i(e) + }) + } + }, + u = { + matcher: r.isMatcher(e), + regex: e instanceof RegExp + }; + for (var c in u) + if (u[c]) return this.rule(l[c](e, t)); + throw new Error("invalid 'what' in when()") + }, this.deferIntercept = function(e) { + e === n && (e = !0), f = e + }, this.$get = s, s.$inject = ["$location", "$rootScope", "$injector", "$browser", "$sniffer"] + } + + function w(e, i) { + function o(e) { + return 0 === e.indexOf(".") || 0 === e.indexOf("^") + } + + function d(e, t) { + if (!e) return n; + var r = I(e), + i = r ? e : e.name, + a = o(i); + if (a) { + if (!t) throw new Error("No reference point given for path '" + i + "'"); + t = d(t); + for (var s = i.split("."), l = 0, u = s.length, c = t; l < u; l++) + if ("" !== s[l] || 0 !== l) { + if ("^" !== s[l]) break; + if (!c.parent) throw new Error("Path '" + i + "' not valid for state '" + t.name + "'"); + c = c.parent + } else c = t; + s = s.slice(l) + .join("."), i = c.name + (c.name && s ? "." : "") + s + } + var f = k[i]; + return !f || !r && (r || f !== e && f.self !== e) ? n : f + } + + function h(e, t) { + E[e] || (E[e] = []), E[e].push(t) + } + + function v(e) { + for (var t = E[e] || []; t.length;) m(t.shift()) + } + + function m(t) { + t = r(t, { + self: t, + resolve: t.resolve || {}, + toString: function() { + return this.name + } + }); + var n = t.name; + if (!I(n) || n.indexOf("@") >= 0) throw new Error("State must have a valid name"); + if (k.hasOwnProperty(n)) throw new Error("State '" + n + "' is already defined"); + var i = n.indexOf(".") !== -1 ? n.substring(0, n.lastIndexOf(".")) : I(t.parent) ? t.parent : V(t.parent) && I(t.parent.name) ? t.parent.name : ""; + if (i && !k[i]) return h(i, t.self); + for (var o in O) N(O[o]) && (t[o] = O[o](t, O.$delegates[o])); + return k[n] = t, !t[S] && t.url && e.when(t.url, ["$match", "$stateParams", function(e, n) { + C.$current.navigable == t && u(e, n) || C.transitionTo(t, e, { + inherit: !0, + location: !1 + }) + }]), v(n), t + } + + function g(e) { + return e.indexOf("*") > -1 + } + + function y(e) { + for (var t = e.split("."), n = C.$current.name.split("."), r = 0, i = t.length; r < i; r++) "*" === t[r] && (n[r] = "*"); + return "**" === t[0] && (n = n.slice(s(n, t[1])), n.unshift("**")), "**" === t[t.length - 1] && (n.splice(s(n, t[t.length - 2]) + 1, Number.MAX_VALUE), n.push("**")), t.length == n.length && n.join("") === t.join("") + } + + function b(e, t) { + return I(e) && !D(t) ? O[e] : N(t) && I(e) ? (O[e] && !O.$delegates[e] && (O.$delegates[e] = O[e]), O[e] = t, this) : this + } + + function $(e, t) { + return V(e) ? t = e : t.name = e, m(t), this + } + + function w(e, i, o, s, f, h, v, m, b) { + function $(t, n, r, o) { + var a = e.$broadcast("$stateNotFound", t, n, r); + if (a.defaultPrevented) return v.update(), M; + if (!a.retry) return null; + if (o.$retry) return v.update(), T; + var s = C.transition = i.when(a.retry); + return s.then(function() { + return s !== C.transition ? E : (t.options.$retry = !0, C.transitionTo(t.to, t.toParams, t.options)) + }, function() { + return M + }), v.update(), s + } + + function w(e, n, r, a, l, u) { + function d() { + var n = []; + return H(e.views, function(r, i) { + var a = r.resolve && r.resolve !== e.resolve ? r.resolve : {}; + a.$template = [function() { + return o.load(i, { + view: r, + locals: l.globals, + params: h, + notify: u.notify + }) || "" + }], n.push(f.resolve(a, l.globals, l.resolve, e) + .then(function(n) { + if (N(r.controllerProvider) || W(r.controllerProvider)) { + var o = t.extend({}, a, l.globals); + n.$$controller = s.invoke(r.controllerProvider, null, o) + } else n.$$controller = r.controller; + n.$$state = e, n.$$controllerAs = r.controllerAs, l[i] = n + })) + }), i.all(n) + .then(function() { + return l.globals + }) + } + var h = r ? n : c(e.params.$$keys(), n), + p = { + $stateParams: h + }; + l.resolve = f.resolve(e.resolve, p, l.resolve, e); + var v = [l.resolve.then(function(e) { + l.globals = e + })]; + return a && v.push(a), i.all(v) + .then(d) + .then(function(e) { + return l + }) + } + var E = i.reject(new Error("transition superseded")), + O = i.reject(new Error("transition prevented")), + M = i.reject(new Error("transition aborted")), + T = i.reject(new Error("transition failed")); + return _.locals = { + resolve: null, + globals: { + $stateParams: {} + } + }, C = { + params: {}, + current: _.self, + $current: _, + transition: null + }, C.reload = function(e) { + return C.transitionTo(C.current, h, { + reload: e || !0, + inherit: !1, + notify: !0 + }) + }, C.go = function(e, t, n) { + return C.transitionTo(e, t, U({ + inherit: !0, + relative: C.$current + }, n)) + }, C.transitionTo = function(t, n, o) { + n = n || {}, o = U({ + location: !0, + inherit: !1, + relative: null, + notify: !0, + reload: !1, + $retry: !1 + }, o || {}); + var a, u = C.$current, + f = C.params, + p = u.path, + m = d(t, o.relative), + g = n["#"]; + if (!D(m)) { + var y = { + to: t, + toParams: n, + options: o + }, + b = $(y, u.self, f, o); + if (b) return b; + if (t = y.to, n = y.toParams, o = y.options, m = d(t, o.relative), !D(m)) { + if (!o.relative) throw new Error("No such state '" + t + "'"); + throw new Error("Could not resolve '" + t + "' from state '" + o.relative + "'") + } + } + if (m[S]) throw new Error("Cannot transition to abstract state '" + t + "'"); + if (o.inherit && (n = l(h, n || {}, C.$current, m)), !m.params.$$validates(n)) return T; + n = m.params.$$values(n), t = m; + var k = t.path, + M = 0, + P = k[M], + A = _.locals, + j = []; + if (o.reload) { + if (I(o.reload) || V(o.reload)) { + if (V(o.reload) && !o.reload.name) throw new Error("Invalid reload state object"); + var F = o.reload === !0 ? p[0] : d(o.reload); + if (o.reload && !F) throw new Error("No such reload state '" + (I(o.reload) ? o.reload : o.reload.name) + "'"); + for (; P && P === p[M] && P !== F;) A = j[M] = P.locals, M++, P = k[M] + } + } else + for (; P && P === p[M] && P.ownParams.$$equals(n, f);) A = j[M] = P.locals, M++, P = k[M]; + if (x(t, n, u, f, A, o)) return g && (n["#"] = g), C.params = n, z(C.params, h), z(c(t.params.$$keys(), h), t.locals.globals.$stateParams), o.location && t.navigable && t.navigable.url && (v.push(t.navigable.url, n, { + $$avoidResync: !0, + replace: "replace" === o.location + }), v.update(!0)), C.transition = null, i.when(C.current); + if (n = c(t.params.$$keys(), n || {}), g && (n["#"] = g), o.notify && e.$broadcast("$stateChangeStart", t.self, n, u.self, f, o) + .defaultPrevented) return e.$broadcast("$stateChangeCancel", t.self, n, u.self, f), null == C.transition && v.update(), O; + for (var L = i.when(A), R = M; R < k.length; R++, P = k[R]) A = j[R] = r(A), L = w(P, n, P === t, L, A, o); + var N = C.transition = L.then(function() { + var r, i, a; + if (C.transition !== N) return E; + for (r = p.length - 1; r >= M; r--) a = p[r], a.self.onExit && s.invoke(a.self.onExit, a.self, a.locals.globals), a.locals = null; + for (r = M; r < k.length; r++) i = k[r], i.locals = j[r], i.self.onEnter && s.invoke(i.self.onEnter, i.self, i.locals.globals); + return C.transition !== N ? E : (C.$current = t, C.current = t.self, C.params = n, z(C.params, h), C.transition = null, o.location && t.navigable && v.push(t.navigable.url, t.navigable.locals.globals.$stateParams, { + $$avoidResync: !0, + replace: "replace" === o.location + }), o.notify && e.$broadcast("$stateChangeSuccess", t.self, n, u.self, f), v.update(!0), C.current) + }, function(r) { + return C.transition !== N ? E : (C.transition = null, a = e.$broadcast("$stateChangeError", t.self, n, u.self, f, r), a.defaultPrevented || v.update(), i.reject(r)) + }); + return N + }, C.is = function(e, t, r) { + r = U({ + relative: C.$current + }, r || {}); + var i = d(e, r.relative); + return D(i) ? C.$current === i && (!t || u(i.params.$$values(t), h)) : n + }, C.includes = function(e, t, r) { + if (r = U({ + relative: C.$current + }, r || {}), I(e) && g(e)) { + if (!y(e)) return !1; + e = C.$current.name + } + var i = d(e, r.relative); + return D(i) ? !!D(C.$current.includes[i.name]) && (!t || u(i.params.$$values(t), h, a(t))) : n + }, C.href = function(e, t, r) { + r = U({ + lossy: !0, + inherit: !0, + absolute: !1, + relative: C.$current + }, r || {}); + var i = d(e, r.relative); + if (!D(i)) return null; + r.inherit && (t = l(h, t || {}, C.$current, i)); + var o = i && r.lossy ? i.navigable : i; + return o && o.url !== n && null !== o.url ? v.href(o.url, c(i.params.$$keys() + .concat("#"), t || {}), { + absolute: r.absolute + }) : null + }, C.get = function(e, t) { + if (0 === arguments.length) return p(a(k), function(e) { + return k[e].self + }); + var n = d(e, t || C.$current); + return n && n.self ? n.self : null + }, C + } + + function x(e, t, n, r, i, o) { + function a(e, t, n) { + function r(t) { + return "search" != e.params[t].location + } + var i = e.params.$$keys() + .filter(r), + o = f.apply({}, [e.params].concat(i)), + a = new B.ParamSet(o); + return a.$$equals(t, n) + } + if (!o.reload && e === n && (i === n.locals || e.self.reloadOnSearch === !1 && a(n, r, t))) return !0 + } + var _, C, k = {}, + E = {}, + S = "abstract", + O = { + parent: function(e) { + if (D(e.parent) && e.parent) return d(e.parent); + var t = /^(.+)\.[^.]+$/.exec(e.name); + return t ? d(t[1]) : _ + }, + data: function(e) { + return e.parent && e.parent.data && (e.data = e.self.data = r(e.parent.data, e.data)), e.data + }, + url: function(e) { + var t = e.url, + n = { + params: e.params || {} + }; + if (I(t)) return "^" == t.charAt(0) ? i.compile(t.substring(1), n) : (e.parent.navigable || _) + .url.concat(t, n); + if (!t || i.isMatcher(t)) return t; + throw new Error("Invalid url '" + t + "' in state '" + e + "'") + }, + navigable: function(e) { + return e.url ? e : e.parent ? e.parent.navigable : null + }, + ownParams: function(e) { + var t = e.url && e.url.params || new B.ParamSet; + return H(e.params || {}, function(e, n) { + t[n] || (t[n] = new B.Param(n, null, e, "config")) + }), t + }, + params: function(e) { + var t = f(e.ownParams, e.ownParams.$$keys()); + return e.parent && e.parent.params ? U(e.parent.params.$$new(), t) : new B.ParamSet + }, + views: function(e) { + var t = {}; + return H(D(e.views) ? e.views : { + "": e + }, function(n, r) { + r.indexOf("@") < 0 && (r += "@" + e.parent.name), t[r] = n + }), t + }, + path: function(e) { + return e.parent ? e.parent.path.concat(e) : [] + }, + includes: function(e) { + var t = e.parent ? U({}, e.parent.includes) : {}; + return t[e.name] = !0, t + }, + $delegates: {} + }; + _ = m({ + name: "", + url: "^", + views: null, + abstract: !0 + }), _.navigable = null, this.decorator = b, this.state = $, this.$get = w, w.$inject = ["$rootScope", "$q", "$view", "$injector", "$resolve", "$stateParams", "$urlRouter", "$location", "$urlMatcherFactory"] + } + + function x() { + function e(e, t) { + return { + load: function(e, n) { + var r, i = { + template: null, + controller: null, + view: null, + locals: null, + notify: !0, + async: !0, + params: {} + }; + return n = U(i, n), n.view && (r = t.fromConfig(n.view, n.params, n.locals)), r + } + } + } + this.$get = e, e.$inject = ["$rootScope", "$templateFactory"] + } + + function _() { + var e = !1; + this.useAnchorScroll = function() { + e = !0 + }, this.$get = ["$anchorScroll", "$timeout", function(t, n) { + return e ? t : function(e) { + return n(function() { + e[0].scrollIntoView() + }, 0, !1) + } + }] + } + + function C(e, n, r, i) { + function o() { + return n.has ? function(e) { + return n.has(e) ? n.get(e) : null + } : function(e) { + try { + return n.get(e) + } catch (e) { + return null + } + } + } + + function a(e, n) { + function r(e) { + return 1 === G && K >= 4 ? !!u.enabled(e) : 1 === G && K >= 2 ? !!u.enabled() : !!l + } + var i = { + enter: function(e, t, n) { + t.after(e), n() + }, + leave: function(e, t) { + e.remove(), t() + } + }; + if (e.noanimation) return i; + if (u) return { + enter: function(e, n, o) { + r(e) ? t.version.minor > 2 ? u.enter(e, null, n) + .then(o) : u.enter(e, null, n, o) : i.enter(e, n, o) + }, + leave: function(e, n) { + r(e) ? t.version.minor > 2 ? u.leave(e) + .then(n) : u.leave(e, n) : i.leave(e, n) + } + }; + if (l) { + var o = l && l(n, e); + return { + enter: function(e, t, n) { + o.enter(e, null, t), n() + }, + leave: function(e, t) { + o.leave(e), t() + } + } + } + return i + } + var s = o(), + l = s("$animator"), + u = s("$animate"), + c = { + restrict: "ECA", + terminal: !0, + priority: 400, + transclude: "element", + compile: function(n, o, s) { + return function(n, o, l) { + function u() { + function e() { + t && t.remove(), n && n.$destroy() + } + var t = f, + n = h; + n && (n._willBeDestroyed = !0), d ? (g.leave(d, function() { + e(), f = null + }), f = d) : (e(), f = null), d = null, h = null + } + + function c(a) { + var c, f = E(n, l, o, i), + y = f && e.$current && e.$current.locals[f]; + if ((a || y !== p) && !n._willBeDestroyed) { + c = n.$new(), p = e.$current.locals[f], c.$emit("$viewContentLoading", f); + var b = s(c, function(e) { + g.enter(e, o, function() { + h && h.$emit("$viewContentAnimationEnded"), (t.isDefined(m) && !m || n.$eval(m)) && r(e) + }), u() + }); + d = b, h = c, h.$emit("$viewContentLoaded", f), h.$eval(v) + } + } + var f, d, h, p, v = l.onload || "", + m = l.autoscroll, + g = a(l, n); + n.$on("$stateChangeSuccess", function() { + c(!1) + }), c(!0) + } + } + }; + return c + } + + function k(e, t, n, r) { + return { + restrict: "ECA", + priority: -400, + compile: function(i) { + var o = i.html(); + return function(i, a, s) { + var l = n.$current, + u = E(i, s, a, r), + c = l && l.locals[u]; + if (c) { + a.data("$uiView", { + name: u, + state: c.$$state + }), a.html(c.$template ? c.$template : o); + var f = e(a.contents()); + if (c.$$controller) { + c.$scope = i, c.$element = a; + var d = t(c.$$controller, c); + c.$$controllerAs && (i[c.$$controllerAs] = d), a.data("$ngControllerController", d), a.children() + .data("$ngControllerController", d) + } + f(i) + } + } + } + } + } + + function E(e, t, n, r) { + var i = r(t.uiView || t.name || "")(e), + o = n.inheritedData("$uiView"); + return i.indexOf("@") >= 0 ? i : i + "@" + (o ? o.state.name : "") + } + + function S(e, t) { + var n, r = e.match(/^\s*({[^}]*})\s*$/); + if (r && (e = t + "(" + r[1] + ")"), n = e.replace(/\n/g, " ") + .match(/^([^(]+?)\s*(\((.*)\))?$/), !n || 4 !== n.length) throw new Error("Invalid state ref '" + e + "'"); + return { + state: n[1], + paramExpr: n[3] || null + } + } + + function O(e) { + var t = e.parent() + .inheritedData("$uiView"); + if (t && t.state && t.state.name) return t.state + } + + function M(e) { + var t = "[object SVGAnimatedString]" === Object.prototype.toString.call(e.prop("href")), + n = "FORM" === e[0].nodeName; + return { + attr: n ? "action" : t ? "xlink:href" : "href", + isAnchor: "A" === e.prop("tagName") + .toUpperCase(), + clickable: !n + } + } + + function T(e, t, n, r, i) { + return function(o) { + var a = o.which || o.button, + s = i(); + if (!(a > 1 || o.ctrlKey || o.metaKey || o.shiftKey || e.attr("target"))) { + var l = n(function() { + t.go(s.state, s.params, s.options) + }); + o.preventDefault(); + var u = r.isAnchor && !s.href ? 1 : 0; + o.preventDefault = function() { + u-- <= 0 && n.cancel(l) + } + } + } + } + + function P(e, t) { + return { + relative: O(e) || t.$current, + inherit: !0 + } + } + + function A(e, n) { + return { + restrict: "A", + require: ["?^uiSrefActive", "?^uiSrefActiveEq"], + link: function(r, i, o, a) { + var s = S(o.uiSref, e.current.name), + l = { + state: s.state, + href: null, + params: null + }, + u = M(i), + c = a[1] || a[0]; + l.options = U(P(i, e), o.uiSrefOpts ? r.$eval(o.uiSrefOpts) : {}); + var f = function(n) { + n && (l.params = t.copy(n)), l.href = e.href(s.state, l.params, l.options), c && c.$$addStateInfo(s.state, l.params), null !== l.href && o.$set(u.attr, l.href) + }; + s.paramExpr && (r.$watch(s.paramExpr, function(e) { + e !== l.params && f(e) + }, !0), l.params = t.copy(r.$eval(s.paramExpr))), f(), u.clickable && i.bind("click", T(i, e, n, u, function() { + return l + })) + } + } + } + + function j(e, t) { + return { + restrict: "A", + require: ["?^uiSrefActive", "?^uiSrefActiveEq"], + link: function(n, r, i, o) { + function a(t) { + f.state = t[0], f.params = t[1], f.options = t[2], f.href = e.href(f.state, f.params, f.options), l && l.$$addStateInfo(f.state, f.params), f.href && i.$set(s.attr, f.href) + } + var s = M(r), + l = o[1] || o[0], + u = [i.uiState, i.uiStateParams || null, i.uiStateOpts || null], + c = "[" + u.map(function(e) { + return e || "null" + }) + .join(", ") + "]", + f = { + state: null, + params: null, + options: null, + href: null + }; + n.$watch(c, a, !0), a(n.$eval(c)), s.clickable && r.bind("click", T(r, e, t, s, function() { + return f + })) + } + } + } + + function F(e, t, n) { + return { + restrict: "A", + controller: ["$scope", "$element", "$attrs", "$timeout", function(t, r, i, o) { + function a(t, n, i) { + var o = e.get(t, O(r)), + a = s(t, n); + v.push({ + state: o || { + name: t + }, + params: n, + hash: a + }), m[a] = i + } + + function s(e, n) { + if (!I(e)) throw new Error("state should be a string"); + return V(n) ? e + q(n) : (n = t.$eval(n), V(n) ? e + q(n) : e) + } + + function l() { + for (var e = 0; e < v.length; e++) f(v[e].state, v[e].params) ? u(r, m[v[e].hash]) : c(r, m[v[e].hash]), d(v[e].state, v[e].params) ? u(r, h) : c(r, h) + } + + function u(e, t) { + o(function() { + e.addClass(t) + }) + } + + function c(e, t) { + e.removeClass(t) + } + + function f(t, n) { + return e.includes(t.name, n) + } + + function d(t, n) { + return e.is(t.name, n) + } + var h, p, v = [], + m = {}; + h = n(i.uiSrefActiveEq || "", !1)(t); + try { + p = t.$eval(i.uiSrefActive) + } catch (e) {} + p = p || n(i.uiSrefActive || "", !1)(t), V(p) && H(p, function(n, r) { + if (I(n)) { + var i = S(n, e.current.name); + a(i.state, t.$eval(i.paramExpr), r) + } + }), this.$$addStateInfo = function(e, t) { + V(p) && v.length > 0 || (a(e, t, p), l()) + }, t.$on("$stateChangeSuccess", l), l() + }] + } + } + + function L(e) { + var t = function(t, n) { + return e.is(t, n) + }; + return t.$stateful = !0, t + } + + function R(e) { + var t = function(t, n, r) { + return e.includes(t, n, r) + }; + return t.$stateful = !0, t + } + var D = t.isDefined, + N = t.isFunction, + I = t.isString, + V = t.isObject, + W = t.isArray, + H = t.forEach, + U = t.extend, + z = t.copy, + q = t.toJson; + t.module("ui.router.util", ["ng"]), t.module("ui.router.router", ["ui.router.util"]), t.module("ui.router.state", ["ui.router.router", "ui.router.util"]), t.module("ui.router", ["ui.router.state"]), t.module("ui.router.compat", ["ui.router"]), v.$inject = ["$q", "$injector"], t.module("ui.router.util") + .service("$resolve", v), m.$inject = ["$http", "$templateCache", "$injector"], t.module("ui.router.util") + .service("$templateFactory", m); + var B; + g.prototype.concat = function(e, t) { + var n = { + caseInsensitive: B.caseInsensitive(), + strict: B.strictMode(), + squash: B.defaultSquashPolicy() + }; + return new g(this.sourcePath + e + this.sourceSearch, U(n, t), this) + }, g.prototype.toString = function() { + return this.source + }, g.prototype.exec = function(e, t) { + function n(e) { + function t(e) { + return e.split("") + .reverse() + .join("") + } + + function n(e) { + return e.replace(/\\-/g, "-") + } + var r = t(e) + .split(/-(?!\\)/), + i = p(r, t); + return p(i, n) + .reverse() + } + var r = this.regexp.exec(e); + if (!r) return null; + t = t || {}; + var i, o, a, s = this.parameters(), + l = s.length, + u = this.segments.length - 1, + c = {}; + if (u !== r.length - 1) throw new Error("Unbalanced capture group in route '" + this.source + "'"); + var f, d; + for (i = 0; i < u; i++) { + for (a = s[i], f = this.params[a], d = r[i + 1], o = 0; o < f.replace.length; o++) f.replace[o].from === d && (d = f.replace[o].to); + d && f.array === !0 && (d = n(d)), D(d) && (d = f.type.decode(d)), c[a] = f.value(d) + } + for (; i < l; i++) { + for (a = s[i], c[a] = this.params[a].value(t[a]), f = this.params[a], d = t[a], o = 0; o < f.replace.length; o++) f.replace[o].from === d && (d = f.replace[o].to); + D(d) && (d = f.type.decode(d)), c[a] = f.value(d) + } + return c + }, g.prototype.parameters = function(e) { + return D(e) ? this.params[e] || null : this.$$paramNames + }, g.prototype.validates = function(e) { + return this.params.$$validates(e) + }, g.prototype.format = function(e) { + function t(e) { + return encodeURIComponent(e) + .replace(/-/g, function(e) { + return "%5C%" + e.charCodeAt(0) + .toString(16) + .toUpperCase() + }) + } + e = e || {}; + var n = this.segments, + r = this.parameters(), + i = this.params; + if (!this.validates(e)) return null; + var o, a = !1, + s = n.length - 1, + l = r.length, + u = n[0]; + for (o = 0; o < l; o++) { + var c = o < s, + f = r[o], + d = i[f], + h = d.value(e[f]), + v = d.isOptional && d.type.equals(d.value(), h), + m = !!v && d.squash, + g = d.type.encode(h); + if (c) { + var y = n[o + 1], + b = o + 1 === s; + if (m === !1) null != g && (u += W(g) ? p(g, t) + .join("-") : encodeURIComponent(g)), u += y; + else if (m === !0) { + var $ = u.match(/\/$/) ? /\/?(.*)/ : /(.*)/; + u += y.match($)[1] + } else I(m) && (u += m + y); + b && d.squash === !0 && "/" === u.slice(-1) && (u = u.slice(0, -1)) + } else { + if (null == g || v && m !== !1) continue; + if (W(g) || (g = [g]), 0 === g.length) continue; + g = p(g, encodeURIComponent) + .join("&" + f + "="), u += (a ? "&" : "?") + (f + "=" + g), a = !0 + } + } + return u + }, y.prototype.is = function(e, t) { + return !0 + }, y.prototype.encode = function(e, t) { + return e + }, y.prototype.decode = function(e, t) { + return e + }, y.prototype.equals = function(e, t) { + return e == t + }, y.prototype.$subPattern = function() { + var e = this.pattern.toString(); + return e.substr(1, e.length - 2) + }, y.prototype.pattern = /.*/, y.prototype.toString = function() { + return "{Type:" + this.name + "}" + }, y.prototype.$normalize = function(e) { + return this.is(e) ? e : this.decode(e) + }, y.prototype.$asArray = function(e, t) { + function r(e, t) { + function r(e, t) { + return function() { + return e[t].apply(e, arguments) + } + } + + function i(e) { + return W(e) ? e : D(e) ? [e] : [] + } + + function o(e) { + switch (e.length) { + case 0: + return n; + case 1: + return "auto" === t ? e[0] : e; + default: + return e + } + } + + function a(e) { + return !e + } + + function s(e, t) { + return function(n) { + if (W(n) && 0 === n.length) return n; + n = i(n); + var r = p(n, e); + return t === !0 ? 0 === h(r, a) + .length : o(r) + } + } + + function l(e) { + return function(t, n) { + var r = i(t), + o = i(n); + if (r.length !== o.length) return !1; + for (var a = 0; a < r.length; a++) + if (!e(r[a], o[a])) return !1; + return !0 + } + } + this.encode = s(r(e, "encode")), this.decode = s(r(e, "decode")), this.is = s(r(e, "is"), !0), this.equals = l(r(e, "equals")), this.pattern = e.pattern, this.$normalize = s(r(e, "$normalize")), this.name = e.name, this.$arrayMode = t + } + if (!e) return this; + if ("auto" === e && !t) throw new Error("'auto' array mode is for query parameters only"); + return new r(this, e) + }, t.module("ui.router.util") + .provider("$urlMatcherFactory", b), t.module("ui.router.util") + .run(["$urlMatcherFactory", function(e) {}]), $.$inject = ["$locationProvider", "$urlMatcherFactoryProvider"], t.module("ui.router.router") + .provider("$urlRouter", $), w.$inject = ["$urlRouterProvider", "$urlMatcherFactoryProvider"], t.module("ui.router.state") + .factory("$stateParams", function() { + return {} + }) + .provider("$state", w), x.$inject = [], t.module("ui.router.state") + .provider("$view", x), t.module("ui.router.state") + .provider("$uiViewScroll", _); + var G = t.version.major, + K = t.version.minor; + C.$inject = ["$state", "$injector", "$uiViewScroll", "$interpolate"], k.$inject = ["$compile", "$controller", "$state", "$interpolate"], t.module("ui.router.state") + .directive("uiView", C), t.module("ui.router.state") + .directive("uiView", k), A.$inject = ["$state", "$timeout"], j.$inject = ["$state", "$timeout"], F.$inject = ["$state", "$stateParams", "$interpolate"], t.module("ui.router.state") + .directive("uiSref", A) + .directive("uiSrefActive", F) + .directive("uiSrefActiveEq", F) + .directive("uiState", j), + L.$inject = ["$state"], R.$inject = ["$state"], t.module("ui.router.state") + .filter("isState", L) + .filter("includedByState", R) + }(window, window.angular) +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var o = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + a = n(17), + s = r(a), + l = n(12), + u = r(l), + c = n(13), + f = r(c), + d = n(20), + h = r(d), + p = function() { + function e() { + var t = arguments.length <= 0 || void 0 === arguments[0] ? "ng-admin" : arguments[0], + n = arguments.length <= 1 || void 0 === arguments[1] || arguments[1]; + i(this, e), this._baseApiUrl = "", this._customTemplate = function(e) {}, this._title = t, this._menu = null, this._dashboard = null, this._layout = !1, this._header = !1, this._entities = [], this._errorMessage = this.defaultErrorMessage, this._debug = n + } + return o(e, [{ + key: "defaultErrorMessage", + value: function(e) { + var t = e.data; + return "object" == typeof t && (t = JSON.stringify(t)), "Oops, an error occured : (code: " + e.status + ") " + t + } + }, { + key: "getViewsOfType", + value: function(e) { + return h.default.order(this.entities.map(function(t) { + return t.views[e] + }) + .filter(function(e) { + return e.enabled + })) + } + }, { + key: "getRouteFor", + value: function(e, t, n, r, i) { + var o = e.baseApiUrl() || this.baseApiUrl(), + a = t || e.getUrl(n, r, i); + return a ? /^(?:[a-z]+:)?\/\//.test(a) || (a = o + a) : (a = o + encodeURIComponent(e.name()), null != r && (a += "/" + encodeURIComponent(r))), a + } + }, { + key: "debug", + value: function(e) { + return arguments.length ? (this._debug = e, this) : this._debug + } + }, { + key: "layout", + value: function(e) { + return arguments.length ? (this._layout = e, this) : this._layout + } + }, { + key: "header", + value: function(e) { + return arguments.length ? (this._header = e, this) : this._header + } + }, { + key: "title", + value: function(e) { + return arguments.length ? (this._title = e, this) : this._title + } + }, { + key: "menu", + value: function(e) { + return arguments.length ? (this._menu = e, this) : (this._menu || (this._menu = this.buildMenuFromEntities()), this._menu) + } + }, { + key: "buildMenuFromEntities", + value: function() { + return (new s.default) + .children(this.entities.filter(function(e) { + return e.menuView() + .enabled + }) + .sort(function(e, t) { + return e.menuView() + .order() - t.menuView() + .order() + }) + .map(function(e) { + return (new s.default) + .populateFromEntity(e) + })) + } + }, { + key: "dashboard", + value: function(e) { + return arguments.length ? (this._dashboard = e, this) : (this._dashboard || (this._dashboard = this.buildDashboardFromEntities()), this._dashboard) + } + }, { + key: "buildDashboardFromEntities", + value: function() { + var e = new f.default; + return this.entities.filter(function(e) { + return e.dashboardView() + .enabled + }) + .map(function(t) { + e.addCollection(t.dashboardView()) + }), e.hasCollections() || this.entities.filter(function(e) { + return e.listView() + .enabled + }) + .map(function(t, n) { + var r = new u.default, + i = t.listView(); + r.setEntity(t), r.perPage(i.perPage()), r.sortField(i.sortField()), r.sortDir(i.sortDir()), r.order(n), r.fields(i.fields() + .filter(function(e, t) { + return t < 3 + })), e.addCollection(r) + }), e + } + }, { + key: "customTemplate", + value: function(e) { + return arguments.length ? (this._customTemplate = e, this) : this._customTemplate + } + }, { + key: "baseApiUrl", + value: function(e) { + return arguments.length ? (this._baseApiUrl = e, this) : this._baseApiUrl + } + }, { + key: "addEntity", + value: function(e) { + if (!e) throw new Error("No entity given"); + return this._entities.push(e), this + } + }, { + key: "getEntity", + value: function(e) { + var t = this._entities.filter(function(t) { + return t.name() === e + })[0]; + if (!t) throw new Error('Unable to find entity "' + e + '"'); + return t + } + }, { + key: "hasEntity", + value: function(e) { + return !!this._entities.filter(function(t) { + return t.name() === e + }) + .length + } + }, { + key: "getViewByEntityAndType", + value: function(e, t) { + return this._entities.filter(function(t) { + return t.name() === e + })[0].views[t] + } + }, { + key: "getErrorMessage", + value: function(e) { + return "function" == typeof this._errorMessage ? this._errorMessage(e) : this._errorMessage + } + }, { + key: "errorMessage", + value: function(e) { + return arguments.length ? (this._errorMessage = e, this) : this._errorMessage + } + }, { + key: "getErrorMessageFor", + value: function(e, t) { + return e.getErrorMessage(t) || e.getEntity() + .getErrorMessage(t) || this.getErrorMessage(t) + } + }, { + key: "getEntityNames", + value: function() { + return this.entities.map(function(e) { + return e.name() + }) + } + }, { + key: "entities", + get: function() { + return this._entities + } + }]), e + }(); + t.default = p, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var o = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + a = n(23), + s = r(a), + l = n(7), + u = r(l), + c = n(14), + f = r(c), + d = n(41), + h = r(d), + p = n(39), + v = r(p), + m = n(40), + g = r(m), + y = n(1), + b = r(y), + $ = n(25), + w = r($), + x = n(8), + _ = r(x), + C = n(26), + k = r(C), + E = n(15), + S = r(E), + O = n(27), + M = r(O), + T = n(28), + P = r(T), + A = n(29), + j = r(A), + F = n(31), + L = r(F), + R = n(30), + D = r(R), + N = n(32), + I = r(N), + V = n(16), + W = r(V), + H = n(33), + U = r(H), + z = n(9), + q = r(z), + B = n(35), + G = r(B), + K = n(34), + Y = r(K), + Q = n(36), + J = r(Q), + X = n(37), + Z = r(X), + ee = n(38), + te = r(ee), + ne = n(17), + re = r(ne), + ie = n(12), + oe = r(ie), + ae = n(13), + se = r(ae), + le = n(2), + ue = r(le), + ce = function() { + function e() { + i(this, e), this._fieldTypes = [], this._init() + } + return o(e, [{ + key: "application", + value: function(e, t) { + return new s.default(e, t) + } + }, { + key: "entity", + value: function(e) { + return new u.default(e) + } + }, { + key: "field", + value: function(e, t) { + if (t = t || "string", !(t in this._fieldTypes)) throw new Error('Unknown field type "' + t + '".'); + return new this._fieldTypes[t](e) + } + }, { + key: "registerFieldType", + value: function(e, t) { + this._fieldTypes[e] = t + } + }, { + key: "getFieldConstructor", + value: function(e) { + return this._fieldTypes[e] + } + }, { + key: "menu", + value: function e(t) { + var e = new re.default; + return t && e.populateFromEntity(t), e + } + }, { + key: "dashboard", + value: function() { + return new se.default + } + }, { + key: "collection", + value: function e(t) { + var e = new oe.default; + return t && e.setEntity(t), e + } + }, { + key: "getEntryConstructor", + value: function() { + return ue.default + } + }, { + key: "getDataStore", + value: function() { + return new f.default + } + }, { + key: "getReadQueries", + value: function(e, t, n) { + return new v.default(e, t, n) + } + }, { + key: "getWriteQueries", + value: function(e, t, n) { + return new g.default(e, t, n) + } + }, { + key: "getPromisesResolver", + value: function() { + return h.default + } + }, { + key: "_init", + value: function() { + this.registerFieldType("boolean", w.default), this.registerFieldType("choice", _.default), this.registerFieldType("choices", k.default), this.registerFieldType("date", S.default), this.registerFieldType("datetime", M.default), this.registerFieldType("email", P.default), this.registerFieldType("embedded_list", j.default), this.registerFieldType("float", L.default), this.registerFieldType("string", b.default), this.registerFieldType("file", D.default), this.registerFieldType("json", I.default), this.registerFieldType("number", W.default), this.registerFieldType("password", U.default), this.registerFieldType("reference", q.default), this.registerFieldType("reference_many", Y.default), this.registerFieldType("referenced_list", G.default), this.registerFieldType("template", J.default), this.registerFieldType("text", Z.default), this.registerFieldType("wysiwyg", te.default) + } + }]), e + }(); + t.default = ce, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + s = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + l = n(8), + u = r(l), + c = function(e) { + function t(e) { + i(this, t), s(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "boolean", this._choices = [{ + value: null, + label: "undefined" + }, { + value: !0, + label: "true" + }, { + value: !1, + label: "false" + }], this._filterChoices = [{ + value: !0, + label: "true" + }, { + value: !1, + label: "false" + }] + } + return o(t, e), a(t, [{ + key: "filterChoices", + value: function(e) { + return arguments.length ? (this._filterChoices = e, this) : this._filterChoices + } + }]), t + }(u.default); + t.default = c, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + s = n(8), + l = r(s), + u = function(e) { + function t(e) { + i(this, t), a(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "choices" + } + return o(t, e), t + }(l.default); + t.default = u, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + s = n(15), + l = r(s), + u = function(e) { + function t(e) { + i(this, t), a(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._format = null, this._parse = function(e) { + return e + }, this._type = "datetime" + } + return o(t, e), t + }(l.default); + t.default = u, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + s = n(1), + l = r(s), + u = function(e) { + function t(e) { + i(this, t), a(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "email" + } + return o(t, e), t + }(l.default); + t.default = u, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + s = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + l = n(1), + u = r(l), + c = n(7), + f = r(c), + d = function(e) { + function t(e) { + i(this, t), s(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "embedded_list", this._flattenable = !1, this._targetEntity = new f.default, this._targetFields = [], this._sortField = null, this._sortDir = null, this._permanentFilters = null, this._listActions = [] + } + return o(t, e), a(t, [{ + key: "targetEntity", + value: function(e) { + return arguments.length ? (this._targetEntity = e, this) : this._targetEntity + } + }, { + key: "targetFields", + value: function(e) { + return arguments.length ? (this._targetFields = e, this) : this._targetFields + } + }, { + key: "sortField", + value: function() { + return arguments.length ? (this._sortField = arguments[0], this) : this._sortField ? this._sortField : this.targetEntity() + .identifier() + .name() + } + }, { + key: "sortDir", + value: function() { + return arguments.length ? (this._sortDir = arguments[0], this) : this._sortDir + } + }, { + key: "listActions", + value: function(e) { + return arguments.length ? (this._listActions = e, this) : this._listActions + } + }, { + key: "permanentFilters", + value: function(e) { + return arguments.length ? (this._permanentFilters = e, this) : this._permanentFilters + } + }]), t + }(u.default); + t.default = d, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + s = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + l = n(1), + u = r(l), + c = function(e) { + function t(e) { + i(this, t), s(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "file", this._uploadInformation = { + url: "/upload", + accept: "*" + } + } + return o(t, e), a(t, [{ + key: "uploadInformation", + value: function(e) { + return arguments.length ? (this._uploadInformation = e, this) : this._uploadInformation + } + }]), t + }(u.default); + t.default = c, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + s = n(16), + l = r(s), + u = function(e) { + function t(e) { + i(this, t), a(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "float", this._format = "0.000" + } + return o(t, e), t + }(l.default); + t.default = u, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + s = n(1), + l = r(s), + u = function(e) { + function t(e) { + i(this, t), a(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "json", this._flattenable = !1 + } + return o(t, e), t + }(l.default); + t.default = u, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + s = n(1), + l = r(s), + u = function(e) { + function t(e) { + i(this, t), a(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "password" + } + return o(t, e), t + }(l.default); + t.default = u, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + s = n(9), + l = r(s), + u = function(e) { + function t(e) { + i(this, t), a(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "reference_many" + } + return o(t, e), t + }(l.default); + t.default = u, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + s = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + l = n(9), + u = r(l), + c = n(10), + f = r(c), + d = function(e) { + function t(e) { + i(this, t), s(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "referenced_list", this._targetReferenceField = null, this._targetFields = [], this._detailLink = !1, this._listActions = [], this._entryCssClasses = null + } + return o(t, e), a(t, [{ + key: "targetReferenceField", + value: function(e) { + return arguments.length ? (this._targetReferenceField = e, this) : this._targetReferenceField + } + }, { + key: "targetFields", + value: function(e) { + return arguments.length ? (this._targetFields = e, this) : this._targetFields + } + }, { + key: "getGridColumns", + value: function() { + for (var e = [], t = 0, n = this._targetFields.length; t < n; t++) { + var r = this._targetFields[t]; + e.push({ + field: r, + label: r.label() + }) + } + return e + } + }, { + key: "getSortFieldName", + value: function() { + return this.sortField() ? this._targetEntity.name() + "_ListView." + this.sortField() : null + } + }, { + key: "listActions", + value: function(e) { + return arguments.length ? (this._listActions = e, this) : this._listActions + } + }, { + key: "entryCssClasses", + value: function(e) { + return arguments.length ? (this._entryCssClasses = e, this) : this._entryCssClasses + } + }, { + key: "getReferences", + value: function(e) { + return f.default.getReferences(this._targetFields, e) + } + }, { + key: "getNonOptimizedReferences", + value: function(e) { + return f.default.getNonOptimizedReferences(this._targetFields, e) + } + }, { + key: "getOptimizedReferences", + value: function(e) { + return f.default.getOptimizedReferences(this._targetFields, e) + } + }]), t + }(u.default); + t.default = d, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + s = n(1), + l = r(s), + u = function(e) { + function t(e) { + i(this, t), a(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "template", this._flattenable = !1 + } + return o(t, e), t + }(l.default); + t.default = u, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + s = n(1), + l = r(s), + u = function(e) { + function t(e) { + i(this, t), a(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "text" + } + return o(t, e), t + }(l.default); + t.default = u, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + s = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + l = n(1), + u = r(l), + c = function(e) { + function t(e) { + i(this, t), s(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "wysiwyg", this._stripTags = !1, this._sanitize = !0 + } + return o(t, e), a(t, [{ + key: "stripTags", + value: function(e) { + return arguments.length ? (this._stripTags = e, this) : this._stripTags + } + }, { + key: "sanitize", + value: function(e) { + return arguments.length ? (this._sanitize = e, this) : this._sanitize + } + }]), t + }(u.default); + t.default = c, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + s = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + l = n(18), + u = r(l), + c = n(10), + f = r(c), + d = function(e) { + function t() { + i(this, t), s(Object.getPrototypeOf(t.prototype), "constructor", this) + .apply(this, arguments) + } + return o(t, e), a(t, [{ + key: "getOne", + value: function(e, t, n, r, i) { + return this._restWrapper.getOne(e.name(), this._application.getRouteFor(e, i, t, n, r), e.retrieveMethod()) + } + }, { + key: "getAll", + value: function(e, t, n, r, i) { + t = t || 1, n = n || {}; + var o = e.getUrl(); + r && r.split(".")[0] === e.name() ? (r = r, i = i) : (r = e.getSortFieldName(), i = e.sortDir()); + var a = {}, + s = e.permanentFilters(); + return Object.keys(n) + .forEach(function(e) { + a[e] = n[e] + }), Object.keys(s) + .forEach(function(e) { + a[e] = s[e] + }), this.getRawValues(e.entity, e.name(), e.type, t, e.perPage(), a, e.filters(), r, i, o) + .then(function(e) { + return { + data: e.data, + totalItems: e.totalCount || e.headers("X-Total-Count") || e.data.length + } + }) + } + }, { + key: "getRawValues", + value: function(e, t, n, r, i, o, a, s, l, u) { + var c = {}; + return r !== -1 && (c._page = "undefined" == typeof r ? 1 : parseInt(r, 10), c._perPage = i), s && s.split(".")[0] === t && (c._sortField = s.substr(s.indexOf(".") + 1), c._sortDir = l), o && 0 !== Object.keys(o) + .length && ! function() { + c._filters = {}; + var e = void 0, + t = void 0; + for (e in o) a.hasOwnProperty(e) && a[e].hasMaps() ? (t = a[e].getMappedValue(o[e]), Object.keys(t) + .forEach(function(e) { + c._filters[e] = t[e] + })) : c._filters[e] = o[e] + }(), this._restWrapper.getList(c, e.name(), this._application.getRouteFor(e, u, n), e.retrieveMethod()) + } + }, { + key: "getReferenceData", + value: function(e, t) { + var n = this.getFilteredReferenceData(f.default.getNonOptimizedReferences(e), t), + r = this.getOptimizedReferenceData(f.default.getOptimizedReferences(e), t); + return Promise.all([n, r]) + .then(function(e) { + var t = {}, + n = void 0; + for (n in e[0]) t[n] = e[0][n]; + for (n in e[1]) t[n] = e[1][n]; + return t + }) + } + }, { + key: "getFilteredReferenceData", + value: function(e, t) { + if (!e || !Object.keys(e) + .length) return this._promisesResolver.empty({}); + var n = this.getOne.bind(this), + r = []; + for (var i in e) { + var o = e[i], + a = o.targetEntity(), + s = o.getIdentifierValues(t); + for (var l in s) r.push(n(a, "listView", s[l], o.name())) + } + return this.fillFilteredReferencedData(r, e, t) + } + }, { + key: "getOptimizedReferenceData", + value: function(e, t) { + if (!e || !Object.keys(e) + .length) return this._promisesResolver.empty({}); + var n = this.getRawValues.bind(this), + r = []; + for (var i in e) { + var o = e[i], + a = o.targetEntity(), + s = o.getIdentifierValues(t), + l = o.getSingleApiCall(s); + r.push(n(a, a.name() + "_ListView", "listView", 1, o.perPage(), l, {}, o.sortField(), o.sortDir())) + } + return this.fillOptimizedReferencedData(r, e) + } + }, { + key: "getAllReferencedData", + value: function(e, t) { + if (!e || !Object.keys(e) + .length) return this._promisesResolver.empty({}); + var n = [], + r = this.getRawValues.bind(this), + i = function(i) { + var o = e[i], + a = o.targetEntity(), + s = o.permanentFilters(), + l = s || {}; + if ("function" == typeof s && (console.warn("Reference.permanentFilters() called with a function is deprecated. Use the searchQuery option for remoteComplete() instead"), l = s(t)), t) { + var u = o.remoteCompleteOptions(); + u.searchQuery ? ! function() { + var e = u.searchQuery(t); + Object.keys(e) + .forEach(function(t) { + l[t] = e[t] + }) + }() : l[o.targetField() + .name()] = t + } + var c = {}; + c[o.name()] = o, n.push(r(a, a.name() + "_ListView", "listView", 1, o.perPage(), l, c, o.getSortFieldName(), o.sortDir())) + }; + for (var o in e) i(o); + return this.fillOptimizedReferencedData(n, e) + } + }, { + key: "fillOptimizedReferencedData", + value: function(e, t) { + return this._promisesResolver.allEvenFailed(e) + .then(function(e) { + if (0 === e.length) return {}; + var n = {}, + r = 0; + for (var i in t) { + var o = t[i], + a = e[r++]; + "error" != a.status && (n[o.name()] = a.result.data) + } + return n + }) + } + }, { + key: "fillFilteredReferencedData", + value: function(e, t, n) { + return this._promisesResolver.allEvenFailed(e) + .then(function(e) { + if (0 === e.length) return {}; + var r = {}, + i = void 0, + o = 0; + for (var a in t) { + var s = [], + l = t[a], + u = l.getIdentifierValues(n); + for (var c in u) i = e[o++], "error" != i.status && s.push(i.result); + s.length && (r[l.name()] = s) + } + return r + }) + } + }, { + key: "getReferencedListData", + value: function(e, t, n, r) { + var i = this.getRawValues.bind(this), + o = [], + a = function(a) { + var s = e[a], + l = s.targetEntity(), + u = s.datagridName(), + c = s.getSortFieldName(), + f = s.sortDir(), + d = {}; + t && t.split(".")[0] === u && (c = t, f = n || "ASC"); + var h = s.permanentFilters() || {}; + Object.keys(h) + .forEach(function(e) { + d[e] = h[e] + }), d[s.targetReferenceField()] = r, o.push(i(l, u, "listView", 1, s.perPage(), d, {}, c, f)) + }; + for (var s in e) a(s); + return this._promisesResolver.allEvenFailed(o) + .then(function(t) { + var n = 0, + r = {}; + for (var i in e) { + var o = t[n++]; + "error" != o.status && (r[i] = o.result.data) + } + return r + }) + } + }, { + key: "getRecordsByIds", + value: function(e, t) { + var n = this; + if (!t || !t.length) return this._promisesResolver.empty(); + var r = t.map(function(t) { + return n.getOne(e, "listView", t, e.identifier() + .name()) + }); + return this._promisesResolver.allEvenFailed(r) + .then(function(e) { + return e.filter(function(e) { + return "error" != e.status + }) + .map(function(e) { + return e.result + }) + }) + } + }]), t + }(u.default); + t.default = d, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + s = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + l = n(18), + u = r(l), + c = function(e) { + function t() { + i(this, t), s(Object.getPrototypeOf(t.prototype), "constructor", this) + .apply(this, arguments) + } + return o(t, e), a(t, [{ + key: "createOne", + value: function(e, t) { + return this._restWrapper.createOne(t, e.entity.name(), this._application.getRouteFor(e.entity, e.getUrl(), e.type), e.entity.createMethod()) + } + }, { + key: "updateOne", + value: function(e, t, n) { + var r = n || t[e.entity.identifier() + .name()]; + return this._restWrapper.updateOne(t, e.entity.name(), this._application.getRouteFor(e.entity, e.getUrl(r), e.type, r, e.identifier()), e.entity.updateMethod()) + } + }, { + key: "deleteOne", + value: function(e, t) { + return this._restWrapper.deleteOne(e.entity.name(), this._application.getRouteFor(e.entity, e.getUrl(t), e.type, t, e.identifier()), e.entity.deleteMethod()) + } + }, { + key: "batchDelete", + value: function(e, t) { + var n = this.deleteOne.bind(this), + r = t.map(function(t) { + return n(e, t) + }); + return this._promisesResolver.allEvenFailed(r) + } + }]), t + }(u.default); + t.default = c, e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + i = function() { + function e() { + n(this, e) + } + return r(e, null, [{ + key: "empty", + value: function(e) { + return new Promise(function(t) { + t(e) + }) + } + }, { + key: "allEvenFailed", + value: function(e) { + if (!Array.isArray(e)) throw Error("allEvenFailed can only handle an array of promises"); + return new Promise(function(t, n) { + if (0 === e.length) return t([]); + var r = [], + i = []; + e.forEach(function(e, t) { + r[t] = !1 + }), e.forEach(function(e, n) { + function o(e) { + r[n] = !0, i[n] = e; + for (var o in r) + if (!r[o]) return; + t(i) + } + + function a(e) { + return o({ + status: "success", + result: e + }) + } + + function s(e) { + return o({ + status: "error", + error: e + }) + } + e.then(a, s) + }) + }) + } + }]), e + }(); + t.default = i, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + s = n(3), + l = r(s), + u = function(e) { + function t(e) { + i(this, t), a(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "BatchDeleteView", this._enabled = !0 + } + return o(t, e), t + }(l.default); + t.default = u, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + s = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + l = n(3), + u = r(l), + c = function(e) { + function t(e) { + i(this, t), s(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "CreateView", this._submitCreationSuccess = null, this._submitCreationError = null + } + return o(t, e), a(t, [{ + key: "onSubmitSuccess", + value: function(e) { + return arguments.length ? (this._onSubmitSuccess = e, this) : this._onSubmitSuccess + } + }, { + key: "onSubmitError", + value: function(e) { + return arguments.length ? (this._onSubmitError = e, this) : this._onSubmitError + } + }]), t + }(u.default); + t.default = c, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + s = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + l = n(6), + u = r(l), + c = function(e) { + function t() { + i(this, t), s(Object.getPrototypeOf(t.prototype), "constructor", this) + .apply(this, arguments) + } + return o(t, e), a(t, [{ + key: "setEntity", + value: function(e) { + return this.entity = e, this._name || (this._name = e.name()), this + } + }]), t + }(u.default); + t.default = c, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + s = n(3), + l = r(s), + u = function(e) { + function t(e) { + i(this, t), a(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "DeleteView", this._enabled = !0 + } + return o(t, e), t + }(l.default); + t.default = u, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + s = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + l = n(3), + u = r(l), + c = function(e) { + function t(e) { + i(this, t), s(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "EditView", this._submitCreationSuccess = null, this._submitCreationError = null + } + return o(t, e), a(t, [{ + key: "onSubmitSuccess", + value: function(e) { + return arguments.length ? (this._onSubmitSuccess = e, this) : this._onSubmitSuccess + } + }, { + key: "onSubmitError", + value: function(e) { + return arguments.length ? (this._onSubmitError = e, this) : this._onSubmitError + } + }]), t + }(u.default); + t.default = c, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + s = n(6), + l = r(s), + u = function(e) { + function t(e) { + i(this, t), a(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._fields = [], this._type = "ExportView" + } + return o(t, e), t + }(l.default); + t.default = u, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + s = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + l = n(3), + u = r(l), + c = function(e) { + function t(e) { + i(this, t), s(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "MenuView", this._icon = null + } + return o(t, e), a(t, [{ + key: "icon", + value: function() { + return arguments.length ? (console.warn("entity.menuView() is deprecated. Please use the Menu class instead"), this._icon = arguments[0], this) : null === this._icon ? '' : this._icon + } + }, { + key: "enabled", + get: function() { + return this._enabled || this.entity.views.ListView.enabled + } + }]), t + }(u.default); + t.default = c, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function o(e, t) { + if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var a = function(e, t, n) { + for (var r = !0; r;) { + var i = e, + o = t, + a = n; + r = !1, null === i && (i = Function.prototype); + var s = Object.getOwnPropertyDescriptor(i, o); + if (void 0 !== s) { + if ("value" in s) return s.value; + var l = s.get; + if (void 0 === l) return; + return l.call(a) + } + var u = Object.getPrototypeOf(i); + if (null === u) return; + e = u, t = o, n = a, r = !0, s = u = void 0 + } + }, + s = n(3), + l = r(s), + u = function(e) { + function t(e) { + i(this, t), a(Object.getPrototypeOf(t.prototype), "constructor", this) + .call(this, e), this._type = "ShowView" + } + return o(t, e), t + }(l.default); + t.default = u, e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + var i = n(24), + o = r(i); + n(176) + .polyfill(), n(143), n(51); + var a = angular.module("AdminDescriptionModule", []); + a.constant("AdminDescription", new o.default); + var s = angular.module("ng-admin", ["ui.select", "main", "crud", "AdminDescriptionModule"]); + s.config(["NgAdminConfigurationProvider", "AdminDescription", function(e, t) { + e.setAdminDescription(t) + }]), s.config(["uiSelectConfig", function(e) { + e.theme = "bootstrap" + }]) +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var i = n(5), + o = r(i), + a = o.default.module("crud", ["ui.router", "ui.bootstrap", "ngSanitize", "textAngular", "ngInflection", "ui.codemirror", "ngFileUpload", "ngNumeraljs"]); + a.controller("ListLayoutController", n(122)), a.controller("ListController", n(121)), a.controller("ShowController", n(140)), a.controller("FormController", n(120)), a.controller("DeleteController", n(81)), a.controller("BatchDeleteController", n(80)), a.service("EntryFormatter", n(132)), a.service("PromisesResolver", n(133)), a.service("ReadQueries", n(136)), a.service("ReferenceRefresher", n(137)), a.service("WriteQueries", n(138)), a.service("RestWrapper", n(134)), a.directive("maJsonValidator", n(142)), a.directive("maField", n(88)), a.directive("maButtonField", n(82)), a.directive("maChoiceField", n(84)), a.directive("maChoicesField", n(85)), a.directive("maDateField", n(86)), a.directive("maEmbeddedListField", n(87)), a.directive("maInputField", n(90)), a.directive("maJsonField", n(91)), a.directive("maFileField", n(89)), a.directive("maCheckboxField", n(83)), a.directive("maReferenceField", n(92)), a.directive("maReferenceManyField", n(93)), a.directive("maTextField", n(95)), a.directive("maWysiwygField", n(96)), a.directive("maTemplateField", n(94)), a.directive("uiSelectRequired", n(97)), a.provider("FieldViewConfiguration", n(105)), a.directive("maListActions", n(130)), a.directive("maDatagrid", n(123)), a.directive("maDatagridPagination", n(128)), a.directive("maDatagridInfinitePagination", n(125)), a.directive("maDatagridItemSelector", n(126)), a.directive("maDatagridMultiSelector", n(127)), a.directive("maFilterForm", n(119)), a.directive("maFilter", n(118)), a.directive("maColumn", n(66)), a.directive("maBooleanColumn", n(64)), a.directive("maChoicesColumn", n(65)), a.directive("maDateColumn", n(67)), a.directive("maEmbeddedListColumn", n(68)), a.directive("maJsonColumn", n(69)), a.directive("maNumberColumn", n(70)), a.directive("maReferenceColumn", n(71)), a.directive("maReferencedListColumn", n(75)), a.directive("maReferenceLinkColumn", n(72)), a.directive("maReferenceManyColumn", n(73)), a.directive("maReferenceManyLinkColumn", n(74)), a.directive("maStringColumn", n(76)), a.directive("maTemplateColumn", n(77)), a.directive("maWysiwygColumn", n(78)), a.directive("maBackButton", n(52)), a.directive("maCreateButton", n(54)), a.directive("maEditButton", n(56)), a.directive("maFilterButton", n(58)), a.directive("maFilteredListButton", n(59)), a.directive("maShowButton", n(61)), a.directive("maListButton", n(60)), a.directive("maDeleteButton", n(55)), a.directive("maBatchDeleteButton", n(53)), a.directive("maExportToCsvButton", n(57)), a.directive("maSubmitButton", n(62)), a.directive("maViewBatchActions", n(63)), a.directive("maShowItem", n(141)), a.directive("maViewActions", n(135)), a.directive("compile", n(131)), a.config(n(139)), a.config(n(79)), a.factory("Papa", function() { + return n(180) + }), a.factory("notification", function() { + var e = n(177); + return e.timeout = 5e3, e.clickToClose = !0, e + }), a.factory("progression", function() { + return n(179) + }), a.run(["Restangular", "NgAdminConfiguration", function(e, t) { + e.setBaseUrl(t() + .baseApiUrl()) + }]), t.default = a, e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + return { + restrict: "E", + scope: { + size: "@", + label: "@" + }, + link: function(t) { + t.label = t.label || "BACK", t.back = function() { + return e.history.back() + } + }, + template: ' \n \n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["$window"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + return { + restrict: "E", + scope: { + entity: "&", + selection: "&", + label: "@" + }, + link: function(t) { + t.label = t.label || "DELETE", t.gotoBatchDelete = function() { + var n = t.selection() + .map(function(e) { + return e.identifierValue + }); + e.go("batchDelete", angular.extend({ + ids: n, + entity: t.entity() + .name() + }, e.params)) + } + }, + template: '\n \n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["$state"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + return { + restrict: "E", + scope: { + entity: "&", + entityName: "@", + defaultValues: "&", + size: "@", + label: "@" + }, + link: function(t, n, i) { + t.label = t.label || "CREATE"; + var o = t.entity() ? t.entity() + .name() : i.entityName, + a = o == e.params.entity ? r({}, e.params) : {}; + a.entity = o, a.defaultValues = t.defaultValues(), t.stateParams = a + }, + template: ' \n \n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = Object.assign || function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) + } + return e + }; + t.default = n, n.$inject = ["$state"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + return { + restrict: "E", + scope: { + entity: "&", + entityName: "@", + entry: "&", + size: "@", + label: "@" + }, + link: function(t, n, i) { + t.label = t.label || "DELETE"; + var o = t.entity() ? t.entity() + .name() : i.entityName, + a = o == e.params.entity ? r({}, e.params) : {}; + a.entity = o, a.id = t.entry() + .identifierValue, t.stateParams = a + }, + template: ' \n \n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = Object.assign || function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) + } + return e + }; + t.default = n, n.$inject = ["$state"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + return { + restrict: "E", + scope: { + entity: "&", + entityName: "@", + entry: "&", + size: "@", + label: "@" + }, + link: function(t, n, i) { + t.label = t.label || "EDIT"; + var o = t.entity() ? t.entity() + .name() : i.entityName, + a = o == e.params.entity ? r({}, e.params) : {}; + a.entity = o, a.id = t.entry() + .identifierValue, t.stateParams = a + }, + template: ' \n \n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = Object.assign || function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) + } + return e + }; + t.default = n, n.$inject = ["$state"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t, n, r, i, o) { + return { + restrict: "E", + scope: { + entity: "&", + label: "@", + datastore: "&" + }, + link: function(a) { + a.label = a.label || "EXPORT", a.datastore = a.datastore(), a.entity = a.entity(); + var s = a.entity.exportView(), + l = a.entity.listView(); + if (0 === s.fields() + .length) { + var u = l.exportFields(); + null === u && (u = l.fields()), s.fields(u), s.filters(l.filters()), s.name(l.name()) + } + a.has_export = s.fields() + .length > 0; + var c = i.getFormatter(s.fields()); + a.exportToCsv = function() { + var i; + o.getAll(s, -1, e.search, e.sortField, e.sortDir) + .then(function(e) { + return i = e.data + }) + .then(function(e) { + return o.getReferenceData(s.fields(), e) + }) + .then(function(e) { + var t = s.getReferences(); + for (var n in e) r.getEntryConstructor() + .createArrayFromRest(e[n], [t[n].targetField()], t[n].targetEntity() + .name(), t[n].targetEntity() + .identifier() + .name()) + .map(function(e) { + return a.datastore.addEntry(t[n].targetEntity() + .uniqueId + "_values", e) + }) + }) + .then(function() { + var e = s.mapEntries(i); + a.datastore.fillReferencesValuesFromCollection(e, s.getReferences(), !0); + for (var n = [], r = e.length - 1; r >= 0; r--) n[r] = c(e[r]); + var o = t.unparse(n, l.exportOptions()), + u = document.createElement("a"); + document.body.appendChild(u), u.setAttribute("href", "data:application/octet-stream;charset=utf-8," + encodeURIComponent(o)), u.setAttribute("download", a.entity.name() + ".csv"), u.click() + }, function(e) { + n.log(e.message, { + addnCls: "humane-flatty-error" + }) + }) + } + }, + template: '\n \n  \n \n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["$stateParams", "Papa", "notification", "AdminDescription", "EntryFormatter", "ReadQueries"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "E", + scope: { + filters: "&", + enabledFilters: "=", + enableFilter: "&", + label: "@" + }, + link: function(e) { + e.label = e.label || "ADD_FILTER", e.notYetEnabledFilters = function() { + return e.filters() + .filter(function(t) { + return e.enabledFilters.indexOf(t) === -1 + }) + }, e.hasFilters = function() { + return e.notYetEnabledFilters() + .length > 0 + } + }, + template: '\n \n \n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "E", + scope: { + entityName: "@", + filter: "&", + label: "@", + size: "@" + }, + link: function(e) { + e.label = e.label || "SEE_RELATED", e.stateParams = { + entity: e.entityName, + search: e.filter() + } + }, + template: ' \n  \n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + return { + restrict: "E", + scope: { + entity: "&", + entityName: "@", + size: "@", + label: "@" + }, + link: function(t, n, i) { + t.label = t.label || "LIST"; + var o = t.entity() ? t.entity() + .name() : i.entityName, + a = o == e.params.entity ? r({}, e.params) : {}; + a.entity = o, t.stateParams = a + }, + template: ' \n \n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = Object.assign || function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) + } + return e + }; + t.default = n, n.$inject = ["$state"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + return { + restrict: "E", + scope: { + entity: "&", + entityName: "@", + entry: "&", + size: "@", + label: "@" + }, + link: function(t, n, i) { + t.label = t.label || "SHOW"; + var o = t.entity() ? t.entity() + .name() : i.entityName, + a = o == e.params.entity ? r({}, e.params) : {}; + a.entity = o, a.id = t.entry() + .identifierValue, t.stateParams = a + }, + template: ' \n \n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = Object.assign || function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) + } + return e + }; + t.default = n, n.$inject = ["$state"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "E", + scope: { + label: "@" + }, + link: function(e) { + e.label = e.label || "SAVE" + }, + template: '' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "E", + scope: { + entity: "=", + selection: "=", + buttons: "&", + label: "@" + }, + link: function(e) { + e.label = e.label || "N_SELECTED", e.isopen = !1, e.toggleDropdown = function(t) { + t.preventDefault(), t.stopPropagation(), e.isopen = !e.isopen + }, e.buttons = e.buttons(), "string" == typeof e.buttons && (e.customTemplate = e.buttons, e.buttons = null) + }, + template: ' \n \n \n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "E", + scope: { + value: "&" + }, + link: function(e) { + e.value = e.value() + }, + template: "" + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "E", + scope: { + values: "&" + }, + template: '{{ ref }}' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t, n, i, o) { + function a(e, t) { + return t.isReadOnly ? !!t.showView() + .enabled && "show" : "edit" == e.detailLinkRoute() && t.editionView() + .enabled ? "edit" : !!t.showView() + .enabled && "show" + } + + function s(e, t) { + if (e.isDetailLink() === !1) return !1; + if ("reference" == e.type() || "reference_many" == e.type()) { + var n = i() + .getEntity(e.targetEntity() + .name()); + return !!n && a(e, n) !== !1 + } + return a(e, t) !== !1 + } + return { + restrict: "E", + scope: { + field: "&", + entry: "&", + entity: "&", + datastore: "&" + }, + link: function(t, i) { + t.datastore = t.datastore(), t.field = t.field(), t.entry = t.entry(), t.value = "undefined" == typeof t.entry ? "" : t.entry.values[t.field.name()], t.entity = t.entity(); + var l = t.field.getTemplateValue(t.entry); + if (l && !t.field.templateIncludesLabel()) i.append(l); + else { + var u = t.field.type(); + s(t.field, t.entity) ? i.append(o[u].getLinkWidget()) : i.append(o[u].getReadWidget()) + } + t.detailState = !1, t.detailStateParams = {}, "undefined" != typeof t.entry && (t.detailState = a(t.field, t.entity), t.detailStateParams = r({}, e.params, { + entity: t.entry.entityName, + id: t.entry.identifierValue + })), n(i.contents())(t) + } + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = Object.assign || function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) + } + return e + }; + t.default = n, n.$inject = ["$state", "$anchorScroll", "$compile", "NgAdminConfiguration", "FieldViewConfiguration"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "E", + scope: { + value: "&", + field: "&" + }, + link: function(e) { + var t = e.field(); + e.format = t.format(), e.format || (e.format = "date" === t.type() ? "yyyy-MM-dd" : "yyyy-MM-dd HH:mm:ss") + }, + template: "{{ value() | date:format }}" + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + return function(n, r) { + var i = "DESC" === t ? -1 : 1; + return n.values[e] > r.values[e] ? i : n.values[e] < r.values[e] ? -1 * i : 0 + } + } + + function o(e) { + var t = e(); + return { + scope: { + field: "&", + value: "&", + datastore: "&" + }, + restrict: "E", + link: { + pre: function(e) { + var n, r = e.field(), + o = r.targetEntity(), + a = o.name(), + l = r.targetFields(), + u = r.sortField(), + c = r.sortDir(); + r.permanentFilters() ? ! function() { + var e = r.permanentFilters(), + t = Object.keys(e); + n = function(n) { + return t.reduce(function(t, r) { + return t && n.values[r] === e[r] + }, !0) + } + }() : n = function() { + return !0 + }; + var f = s.default.createArrayFromRest(e.value() || [], l, a, o.identifier() + .name()) + .sort(i(u, c)) + .filter(n); + a || ! function() { + var e = 0; + f = f.map(function(t) { + return t._identifierValue = e++, t + }) + }(), e.field = r, e.targetFields = l, e.entries = f, e.entity = a ? t.getEntity(a) : o, e.sortField = u, e.sortDir = c, e.sort = function(t) { + var n = "ASC", + r = t.name(); + e.sortField === r && (n = "ASC" === e.sortDir ? "DESC" : "ASC"), e.entries = e.entries.sort(i(r, n)), e.sortField = r, e.sortDir = n + } + } + }, + template: '\n\n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = o; + var a = n(2), + s = r(a); + o.$inject = ["NgAdminConfiguration"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + return { + restrict: "E", + scope: { + value: "&" + }, + link: function(t, n) { + t.guessType = function(e) { + var t = Object.prototype.toString.call(e); + return "[object Object]" === t ? "Object" : "[object Array]" === t ? "Array" : "Literal" + }; + var r = '\n \n \n \n \n \n \n
\n \n \n {{ val }}\n
\n \n \n \n \n \n \n \n
{{ key }}\n \n \n {{ val }}\n
\n
', + i = angular.element(r); + e(i)(t), n.replaceWith(i) + } + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["$compile"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "E", + scope: { + value: "&", + field: "&" + }, + template: "{{ value() | numeraljs:field().format() }}" + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "E", + scope: { + field: "&", + value: "&", + datastore: "&" + }, + link: { + pre: function(e) { + var t = e.value(); + e.field = e.field(), e.targetEntity = e.field.targetEntity(), e.targetField = e.field.targetField(); + var n = e.targetEntity.identifier() + .name(); + e.referencedEntry = e.datastore() + .getFirstEntry(e.targetEntity.uniqueId + "_values", function(e) { + return e.values[n] == t + }) + } + }, + template: '' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + return t.isReadOnly ? !!t.showView() + .enabled && "show" : "edit" == e.detailLinkRoute() && t.editionView() + .enabled ? "edit" : !!t.showView() + .enabled && "show" + } + + function r(e) { + return { + restrict: "E", + scope: { + entry: "&", + field: "&", + value: "&", + datastore: "&" + }, + link: { + pre: function(t) { + var r = t.field(), + i = r.targetEntity() + .name(), + o = e() + .getEntity(i), + a = t.entry() + .values[r.name()]; + t.route = n(r, o), t.stateParams = { + entity: i, + id: a + }, t.field = r + } + }, + template: '' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = r, r.$inject = ["NgAdminConfiguration"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "E", + scope: { + values: "&" + }, + template: '\n {{ ref }}\n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + return { + restrict: "E", + scope: { + field: "&", + values: "&", + ids: "&" + }, + link: function(t) { + t.field = t.field(), t.values = t.values(), t.ids = t.ids(), t.referenceEntity = t.field.targetEntity() + .name(), t.route = e() + .getEntity(t.referenceEntity) + .isReadOnly ? "show" : "edit" + }, + template: '\n {{ ref }}\n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["NgAdminConfiguration"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + return { + scope: { + field: "&", + datastore: "&" + }, + restrict: "E", + link: { + pre: function(t) { + t.field = t.field(); + var n = t.field.targetEntity(); + t.entries = t.datastore() + .getEntries(n.uniqueId + "_list"), t.entity = e() + .getEntity(n.name()) + } + }, + template: '\n\n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["NgAdminConfiguration"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "E", + scope: { + value: "&" + }, + template: "{{ value() | translate }}" + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "E", + scope: { + field: "&", + entry: "&", + entity: "&" + }, + link: function(e) { + e.field = e.field(), e.entry = e.entry(), e.entity = e.entity() + }, + template: '' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + return { + restrict: "E", + scope: { + value: "&", + field: "&" + }, + link: function(t) { + var n = t.value(); + t.field() + .stripTags() && (n = e("stripTags")(n)), t.htmlValue = n + }, + template: '' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["$filter"], e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + e.registerFieldView("boolean", n(98)), e.registerFieldView("choice", n(99)), e.registerFieldView("choices", n(100)), e.registerFieldView("date", n(101)), e.registerFieldView("datetime", n(102)), e.registerFieldView("email", n(103)), e.registerFieldView("embedded_list", n(104)), e.registerFieldView("file", n(106)), e.registerFieldView("float", n(107)), e.registerFieldView("json", n(108)), e.registerFieldView("number", n(109)), e.registerFieldView("password", n(110)), e.registerFieldView("referenced_list", n(113)), e.registerFieldView("reference", n(111)), e.registerFieldView("reference_many", n(112)), e.registerFieldView("string", n(114)), e.registerFieldView("template", n(115)), e.registerFieldView("text", n(116)), e.registerFieldView("wysiwyg", n(117)) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = r, r.$inject = ["FieldViewConfigurationProvider"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + i = function() { + function e(t, r, i, o, a, s) { + n(this, e), this.$scope = t, this.$state = r, this.$translate = i, this.WriteQueries = o, this.notification = a, this.view = s, this.entity = s.getEntity(), this.entityIds = r.params.ids, this.selection = [], this.title = s.title(), this.description = s.description(), this.actions = s.actions(), this.loadingPage = !1, this.fields = s.fields(), t.$on("$destroy", this.destroy.bind(this)) + } + return r(e, [{ + key: "batchDelete", + value: function() { + var e = this, + t = this.entity.name(), + n = this.$translate, + r = this.$state, + i = this.notification; + this.WriteQueries.batchDelete(this.view, this.entityIds) + .then(function() { + r.go(r.get("list"), angular.extend({ + entity: t + }, r.params)), n("BATCH_DELETE_SUCCESS") + .then(function(e) { + return i.log(e, { + addnCls: "humane-flatty-success" + }) + }) + }) + .catch(function(t) { + var r = "ERROR_MESSAGE" | e.config.getErrorMessageFor(e.view, t); + n(r, { + status: t && t.status, + details: t && t.data && "object" == typeof t.data ? JSON.stringify(t.data) : {} + }) + .then(function(e) { + return i.log(e, { + addnCls: "humane-flatty-error" + }) + }) + }) + } + }, { + key: "back", + value: function() { + this.$state.go(this.$state.get("list"), angular.extend({ + entity: this.entity.name() + }, this.$state.params)) + } + }, { + key: "destroy", + value: function() { + this.$scope = void 0, this.$state = void 0, this.$translate = void 0, this.WriteQueries = void 0 + } + }]), e + }(); + t.default = i, i.$inject = ["$scope", "$state", "$translate", "WriteQueries", "notification", "view"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + i = function() { + function e(t, r, i, o, a, s, l, u, c, f, d) { + var h = this; + n(this, e), this.$scope = t, this.$window = r, this.$state = i, this.$translate = a, this.WriteQueries = s, this.config = l(), this.entityLabel = c.entity, this.entityId = c.id, this.view = f, this.title = f.title(), this.description = f.description(), this.actions = f.actions(), this.entity = f.getEntity(), this.notification = u, this.$scope.entry = d, this.$scope.view = f, t.$on("$destroy", this.destroy.bind(this)), this.previousStateParametersDeferred = o.defer(), t.$on("$stateChangeSuccess", function(e, t, n, r, i) { + h.previousStateParametersDeferred.resolve(i) + }) + } + return r(e, [{ + key: "deleteOne", + value: function() { + var e = this, + t = this.entity.name(), + n = this.$translate, + r = this.notification; + return this.WriteQueries.deleteOne(this.view, this.entityId) + .then(function() { + return e.previousStateParametersDeferred.promise + }) + .then(function(i) { + i.entity === t && i.id === e.entityId ? e.$state.go(e.$state.get("list"), angular.extend({ + entity: t + }, e.$state.params)) : e.back(), n("DELETE_SUCCESS") + .then(function(e) { + return r.log(e, { + addnCls: "humane-flatty-success" + }) + }) + }) + .catch(function(t) { + var i = "ERROR_MESSAGE" | e.config.getErrorMessageFor(e.view, t); + n(i, { + status: t && t.status, + details: t && t.data && "object" == typeof t.data ? JSON.stringify(t.data) : {} + }) + .then(function(e) { + return r.log(e, { + addnCls: "humane-flatty-error" + }) + }) + }) + } + }, { + key: "back", + value: function() { + this.$window.history.back() + } + }, { + key: "destroy", + value: function() { + this.$scope = void 0, this.$window = void 0, this.$state = void 0, this.$translate = void 0, this.WriteQueries = void 0, this.view = void 0, this.entity = void 0 + } + }]), e + }(); + t.default = i, i.$inject = ["$scope", "$window", "$state", "$q", "$translate", "WriteQueries", "NgAdminConfiguration", "notification", "params", "view", "entry"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + scope: { + field: "&", + value: "=" + }, + restrict: "E", + link: function(e, t) { + var n = e.field(); + e.name = n.name(), e.label = n.label(), e.value = !!e.value; + var r = t.children()[0], + i = n.attributes(); + for (var o in i) r.setAttribute(o, i[o]); + e.toggle = function() { + this.value = !this.value + }, e.isActive = function() { + return !!this.value + } + }, + template: '{{ label | translate }}' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + scope: { + field: "&", + value: "=" + }, + restrict: "E", + link: function(e, t) { + var n = e.field(); + e.name = n.name(), e.v = n.validation(), e.value = !!e.value; + var r = t.children()[0], + i = n.attributes(); + for (var o in i) r.setAttribute(o, i[o]) + }, + template: '' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + e.choices = t, e.$root.$$phase || e.$digest() + } + + function r(e) { + return { + scope: { + field: "&", + value: "=", + entry: "=?", + datastore: "&?", + refresh: "&", + choices: "&?" + }, + restrict: "E", + compile: function() { + return { + pre: function(t, n) { + var r = t.field(), + i = r.attributes(); + t.placeholder = i && i.placeholder || "FILTER_VALUES", t.name = r.name(), t.v = r.validation(), t.$watch("value", function(e, n) { + e !== n && void 0 === e && (t.value = null) + }); + var o = "", + a = "| filter: {label: $select.search}"; + 0 === r.type() + .indexOf("reference") && r.remoteComplete() && (t.refreshDelay = r.remoteCompleteOptions() + .refreshDelay, o = 'refresh-delay="refreshDelay" refresh="refresh({ $search: $select.search })"', a = ""); + var s = "function" == typeof t.choices && t.choices() ? t.choices() : r.choices ? r.choices() : [], + l = '\n \n {{ $select.selected.label | translate }}\n \n {{ item.label | translate }}\n \n '; + t.choices = "function" == typeof s ? s(t.entry) : s, n.html(l); + var u = n.children()[0]; + for (var c in i) u.setAttribute(c, i[c]); + e(n.contents())(t) + }, + post: function(e) { + e.$on("choices:update", function(t, r) { + n(e, r.choices) + }) + } + } + } + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = r, r.$inject = ["$compile"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + return { + scope: { + field: "&", + value: "=", + entry: "=?", + datastore: "&?", + refresh: "&" + }, + restrict: "E", + compile: function() { + return { + pre: function(t, n) { + var r = t.field(), + i = r.attributes(); + t.placeholder = i && i.placeholder || "FILTER_VALUES", t.name = r.name(), t.v = r.validation(); + var o = "", + a = "| filter: {label: $select.search}"; + 0 === r.type() + .indexOf("reference") && r.remoteComplete() && (t.refreshDelay = r.remoteCompleteOptions() + .refreshDelay, o = 'refresh-delay="refreshDelay" refresh="refresh({ $search: $select.search })"', a = ""); + var s = r.choices ? r.choices() : []; + t.onRemove = function() { + t.refresh({ + $search: this.$select.search + }) + }; + var l = "\n \n {{ $item.label | translate }}\n \n {{ item.label | translate }}\n \n '; + t.choices = "function" == typeof s ? s(t.entry) : s, n.html(l); + var u = n.children()[0]; + for (var c in i) u.setAttribute(c, i[c]); + e(n.contents())(t) + }, + post: function(e) { + e.$on("choices:update", function(t, n) { + e.choices = n.choices, e.$root.$$phase || e.$digest() + }) + } + } + } + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["$compile"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + scope: { + field: "&", + value: "=" + }, + restrict: "E", + link: function(e, t) { + var n = e.field(); + e.name = n.name(), e.rawValue = null == e.value ? null : e.value instanceof Date ? e.value : new Date(e.value), e.$watch("rawValue", function(t) { + e.value = n.parse()(t) + }), e.format = n.format(), e.format || (e.format = "date" === n.type() ? "yyyy-MM-dd" : "yyyy-MM-dd HH:mm:ss"), e.v = n.validation(), e.isOpen = !1; + var r = t.find("input") + .eq(0), + i = n.attributes(); + for (var o in i) r.attr(o, i[o]); + e.toggleDatePicker = function(t) { + t.preventDefault(), t.stopPropagation(), e.isOpen = !e.isOpen + } + }, + template: '
\n \n \n \n \n
' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i() { + return { + scope: { + field: "&", + value: "=", + datastore: "&" + }, + restrict: "E", + link: { + pre: function(e) { + var t, n = e.field(), + r = n.targetEntity(), + i = r.name(), + o = n.targetFields(), + s = n.sortField(), + l = "DESC" === n.sortDir() ? -1 : 1; + n.permanentFilters() ? ! function() { + var e = n.permanentFilters(), + r = Object.keys(e); + t = function(t) { + return r.reduce(function(n, r) { + return n && t.values[r] === e[r] + }, !0) + } + }() : t = function() { + return !0 + }, e.fields = o, e.targetEntity = r, e.entries = a.default.createArrayFromRest(e.value || [], o, i, r.identifier() + .name()) + .sort(function(e, t) { + return e.values[s] > t.values[s] ? l : e.values[s] < t.values[s] ? -1 * l : 0 + }) + .filter(t), e.addNew = function() { + return e.entries.push(a.default.createForFields(o)) + }, e.remove = function(t) { + e.entries = e.entries.filter(function(e) { + return e !== t + }) + }, e.$watch("entries", function(t, n) { + t !== n && (e.value = t.map(function(e) { + return e.transformToRest(o) + })) + }, !0) + } + }, + template: '\n
\n \n
\n  \n
\n
\n \n
\n
\n
\n
\n
\n  \n
\n
\n
' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = i; + var o = n(2), + a = r(o); + i.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + return { + restrict: "E", + scope: { + field: "&", + entry: "=", + value: "=", + entity: "&", + form: "&", + datastore: "&" + }, + link: function(n, r) { + var i = n.field(), + o = i.type(); + n.field = i, n.type = o, n.entity = n.entity(), n.form = n.form(), n.datastore = n.datastore(), n.getCssClasses = function(e) { + return "ng-admin-field-" + i.name() + .replace(".", "_") + " ng-admin-type-" + o + " " + (i.getCssClasses(e) || "col-sm-10 col-md-8 col-lg-7") + }, n.getInput = function() { + return n.form[i.name()] + }, n.fieldHasValidation = function() { + var e = this.getInput(); + return e && e.$dirty + }, n.fieldIsValid = function() { + var e = this.getInput(); + return e && e.$valid + }, n.getFieldValidationClass = function() { + if (this.fieldHasValidation()) return this.fieldIsValid() ? "has-success" : "has-error" + }; + var a; + a = n.field.editable() ? '
\n ' + (!i.templateIncludesLabel() && i.getTemplateValue(n.entry) || e[o].getWriteWidget()) + '\n \n
' : '
\n

\n \n

\n
'; + var s = '
\n \n ' + a + "\n
"; + r.append(s), t(r.contents())(n) + } + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["FieldViewConfiguration", "$compile"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + return { + scope: { + field: "&", + value: "=" + }, + restrict: "E", + link: { + pre: function(e) { + var t = e.field() + .uploadInformation(); + if (!t.hasOwnProperty("url")) throw new Error("You must provide a URL property to allow the upload of files."); + e.multiple = !!t.hasOwnProperty("multiple") && t.multiple, e.accept = "*", t.hasOwnProperty("accept") && (e.accept = t.accept), e.apifilename = !!t.hasOwnProperty("apifilename") && t.apifilename; + var n = e.value ? e.value.split(",") : []; + e.files = {}; + for (var r in n) e.files[n[r]] = { + name: n[r], + progress: 0 + } + }, + post: function(t, n) { + var r = t.field(); + t.name = r.name(), t.v = r.validation(), t.value && (t.v.required = !1); + var i = n.find("input")[0], + o = r.attributes(); + for (var a in o) i.setAttribute(a, o[a]); + t.fileSelected = function(n) { + if (n && n.length) { + var r; + t.files = {}; + for (var i in n) r = angular.copy(t.field() + .uploadInformation()), r.file = n[i], e.upload(r) + .progress(function(e) { + t.files[e.config.file.name] = { + name: e.config.file.name, + progress: Math.min(100, parseInt(100 * e.loaded / e.total)) + } + }) + .success(function(e, n, r, i) { + if (t.files[i.file.name] = { + name: t.apifilename ? e[t.apifilename] : i.file.name, + progress: 0 + }, t.apifilename) { + var o = Object.keys(t.files) + .map(function(e) { + return t.files[e].name + }); + t.value = o.join(",") + } else t.value = Object.keys(t.files) + .join(",") + }) + .error(function(e, n, r, i) { + delete t.files[i.file.name], t.value = Object.keys(t.files) + .join(",") + }) + } + }, t.selectFile = function() { + i.click() + } + } + }, + template: '
\n
\n \n \n \n
\n
\n
\n
\n
\n
\n \n
\n
\n
\n
{{ file.name }}
\n
\n
\n
\n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["Upload"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + scope: { + type: "@", + step: "@?", + field: "&", + value: "=" + }, + restrict: "E", + link: function(e, t) { + var n = e.field(); + e.name = n.name(), e.v = n.validation(); + var r = t.children()[0], + i = n.attributes(); + for (var o in i) "step" !== o ? r.setAttribute(o, i[o]) : e.step = i[o] + }, + template: '' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t, n) { + (function(r) { + "use strict"; + + function i() { + return { + scope: { + field: "&", + value: "=" + }, + restrict: "E", + link: function(e, t) { + var n = e.field(); + e.name = n.name(), e.v = n.validation(), e.jsonValue = null === e.value ? "" : angular.toJson(e.value, !0); + var r = t.children()[0], + i = n.attributes(); + for (var o in i) r.setAttribute(o, i[o]); + e.$watch("jsonValue", function(t) { + if ("" == t || "undefined" == typeof t) return void(e.value = null); + try { + var n = angular.fromJson(t); + e.value = n + } catch (e) {} + }) + }, + template: '' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = i; + var o = n(4); + r.jsonlint = n(178), n(170), n(171), n(173), n(172), n(174), n(175), o.defineOption("matchBrackets", !0), o.defineOption("autoCloseBrackets", !0), o.defineOption("lineWrapping", !0), o.defineOption("tabSize", 2), o.defineOption("mode", "application/json"), o.defineOption("gutters", ["CodeMirror-lint-markers"]), o.defineOption("lint", !0), o.defineOption("styleActiveLine", !0), r.CodeMirror = o, i.$inject = [], e.exports = t.default + }) + .call(t, function() { + return this + }()) +}, function(e, t) { + "use strict"; + + function n(e) { + return { + scope: { + field: "&", + value: "=", + entry: "=?", + datastore: "&?" + }, + restrict: "E", + link: function(t) { + var n = t.field(), + r = n.targetEntity() + .identifier() + .name(); + if (t.name = n.name(), t.v = n.validation(), n.remoteComplete()) t.refresh = function(i) { + return e.refresh(n, t.value, i) + .then(function(e) { + if (!i && t.value) { + var o = e.filter(function(e) { + return e.value === t.value + }) + .length > 0; + if (!o) { + var a = t.datastore() + .getEntries(n.targetEntity() + .uniqueId + "_values") + .find(function(e) { + return e.values[r] == t.value + }); + e.unshift({ + value: a.values[r], + label: a.values[n.targetField() + .name()] + }) + } + } + return e + }) + .then(function(e) { + t.$broadcast("choices:update", { + choices: e + }) + }) + }; + else { + var i = t.datastore() + .getEntries(n.targetEntity() + .uniqueId + "_choices"); + if (t.value) { + var o = i.filter(function(e) { + return e.identifierValue === t.value + }) + .length > 0; + o || i.unshift(t.datastore() + .getEntries(n.targetEntity() + .uniqueId + "_values") + .find(function(e) { + return e.values[r] == t.value + })) + } + var a = i.map(function(e) { + return { + value: e.values[r], + label: e.values[n.targetField() + .name()] + } + }); + t.$broadcast("choices:update", { + choices: a + }) + } + }, + template: '\n ' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["ReferenceRefresher"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + return { + scope: { + field: "&", + value: "=", + entry: "=?", + datastore: "&?" + }, + restrict: "E", + link: function(t) { + var n = t.field(), + r = n.targetEntity() + .identifier() + .name(); + t.name = n.name(), t.v = n.validation(), t.choices = []; + var i = function(e) { + t.value && t.value.length && t.value.map(function(i) { + var o = e.filter(function(e) { + return e.identifierValue === i + }) + .length > 0; + i && !o && e.push(t.datastore() + .getEntries(n.targetEntity() + .uniqueId + "_values") + .filter(function(e) { + return e.values[r] == i + }) + .pop()) + }); + var i = e.map(function(e) { + return { + value: e.values[r], + label: e.values[n.targetField() + .name()] + } + }); + t.$broadcast("choices:update", { + choices: i + }) + }; + if (n.remoteComplete()) { + var o = []; + i(o), t.refresh = function(r) { + return e.refresh(n, t.value, r) + .then(function(e) { + t.$broadcast("choices:update", { + choices: e + }) + }) + } + } else { + var o = t.datastore() + .getEntries(n.targetEntity() + .uniqueId + "_choices"); + i(o) + } + }, + template: '\n ' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["ReferenceRefresher"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "E", + scope: { + field: "&", + entry: "&", + entity: "&", + value: "=", + values: "=" + }, + link: function(e) { + e.field = e.field(), e.entry = e.entry(), e.entity = e.entity() + }, + template: '' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + scope: { + field: "&", + value: "=" + }, + restrict: "E", + link: function(e, t) { + var n = e.field(); + e.name = n.name(), e.v = n.validation(); + var r = t.children()[0], + i = n.attributes(); + for (var o in i) r.setAttribute(o, i[o]) + }, + template: '' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + scope: { + field: "&", + value: "=" + }, + restrict: "E", + link: function(e, t) { + var n = e.field(); + e.name = n.name() + }, + template: '
' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "A", + require: "ngModel", + link: function(e, t, n, r) { + r.$validators.uiSelectRequired = function(e, t) { + var n; + if (angular.isArray(e)) n = e; + else { + if (!angular.isArray(t)) return !1; + n = t + } + return n.length > 0 + } + } + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return '' + }, + getLinkWidget: function() { + return '' + e.exports.getReadWidget() + "" + }, + getFilterWidget: function() { + return '' + }, + getWriteWidget: function() { + return '
\n \n \n
' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return '' + }, + getLinkWidget: function() { + return '' + e.exports.getReadWidget() + "" + }, + getFilterWidget: function() { + return '' + }, + getWriteWidget: function() { + return '' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return '' + }, + getLinkWidget: function() { + return '' + e.exports.getReadWidget() + "" + }, + getFilterWidget: function() { + return '' + }, + getWriteWidget: function() { + return '' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return '' + }, + getLinkWidget: function() { + return '' + e.exports.getReadWidget() + "" + }, + getFilterWidget: function() { + return '' + }, + getWriteWidget: function() { + return '
' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return '' + }, + getLinkWidget: function() { + return '' + e.exports.getReadWidget() + "" + }, + getFilterWidget: function() { + return '' + }, + getWriteWidget: function() { + return '
' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return '' + }, + getLinkWidget: function() { + return '' + e.exports.getReadWidget() + "" + }, + getFilterWidget: function() { + return '' + }, + getWriteWidget: function() { + return '' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return '' + }, + getLinkWidget: function() { + return "error: cannot display referenced_list field as linkable" + }, + getFilterWidget: function() { + return "error: cannot display referenced_list field as filter" + }, + getWriteWidget: function() { + return '' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + i = function() { + function e() { + n(this, e), this.fieldViews = {} + } + return r(e, [{ + key: "registerFieldView", + value: function(e, t) { + this.fieldViews[e] = t + } + }, { + key: "$get", + value: function() { + return this.fieldViews + } + }]), e + }(); + t.default = i, i.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return "error: cannot display file field as readable" + }, + getLinkWidget: function() { + return "error: cannot display file field as linkable" + }, + getFilterWidget: function() { + return "error: cannot display file field as filter" + }, + getWriteWidget: function() { + return '' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return '' + }, + getLinkWidget: function() { + return '' + e.exports.getReadWidget() + "" + }, + getFilterWidget: function() { + return '' + }, + getWriteWidget: function() { + return '' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return '' + }, + getLinkWidget: function() { + return "error: cannot display a json field as linkable" + }, + getFilterWidget: function() { + return '' + }, + getWriteWidget: function() { + return '' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return '' + }, + getLinkWidget: function() { + return '' + e.exports.getReadWidget() + "" + }, + getFilterWidget: function() { + return '' + }, + getWriteWidget: function() { + return '' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return "error: cannot display password field as readable" + }, + getLinkWidget: function() { + return "error: cannot display password field as linkable" + }, + getFilterWidget: function() { + return "error: cannot display password field as filter" + }, + getWriteWidget: function() { + return '' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return '' + }, + getLinkWidget: function() { + return '' + }, + getFilterWidget: function() { + return '' + }, + getWriteWidget: function() { + return '' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return '' + }, + getLinkWidget: function() { + return '' + }, + getFilterWidget: function() { + return '' + }, + getWriteWidget: function() { + return '' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return '' + }, + getLinkWidget: function() { + return "error: cannot display referenced_list field as linkable" + }, + getFilterWidget: function() { + return "error: cannot display referenced_list field as filter" + }, + getWriteWidget: function() { + return '' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return '' + }, + getLinkWidget: function() { + return '' + e.exports.getReadWidget() + "" + }, + getFilterWidget: function() { + return '' + }, + getWriteWidget: function() { + return '' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return '' + }, + getLinkWidget: function() { + return '' + e.exports.getReadWidget() + "" + }, + getFilterWidget: function() { + return '' + }, + getWriteWidget: function() { + return '' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return '' + }, + getLinkWidget: function() { + return '' + e.exports.getReadWidget() + "" + }, + getFilterWidget: function() { + return '' + }, + getWriteWidget: function() { + return '' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = { + getReadWidget: function() { + return '' + }, + getLinkWidget: function() { + return '' + e.exports.getReadWidget() + "" + }, + getFilterWidget: function() { + return '' + }, + getWriteWidget: function() { + return '' + } + }, e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + return { + restrict: "E", + scope: { + field: "=", + datastore: "&", + values: "=", + value: "=" + }, + link: function(n, r) { + n.datastore = n.datastore(), r.append(n.field.getTemplateValue(n.values) || e[n.field.type()].getFilterWidget()), t(r.contents())(n) + } + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["FieldViewConfiguration", "$compile"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "E", + scope: { + filters: "=", + datastore: "&", + values: "=", + removeFilter: "&" + }, + link: function(e) { + e.datastore = e.datastore(), e.removeFilter = e.removeFilter(), e.shouldFilter = function() { + return Object.keys(e.filters) + .length + } + }, + template: '
\n
\n
\n
\n \n
\n \n
\n \n
\n
\n
\n
' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + i = function() { + function e(t, r, i, o, a, s, l, u, c, f, d) { + n(this, e), this.$scope = t, this.$state = r, this.$injector = i, this.$translate = o, this.previousState = a, this.WriteQueries = s, this.dataStore = d, this.progression = u, this.notification = c, this.title = f.title(), this.description = f.description(), this.actions = f.actions(), this.fields = f.fields(), this.config = l(), this.view = f, this.entity = this.view.getEntity(), this.$scope.entry = d.getFirstEntry(this.entity.uniqueId), this.$scope.view = f, this.$scope.entity = this.entity, this.originEntityId = this.$scope.entry.values[this.entity.identifier() + .name()], t.$on("$destroy", this.destroy.bind(this)) + } + return r(e, [{ + key: "validateEntry", + value: function() { + if (!this.form.$valid) return this.$translate("INVALID_FORM") + .then(function(e) { + return notification.log(e, { + addnCls: "humane-flatty-error" + }) + }), !1; + try { + this.view.validate(this.$scope.entry) + } catch (e) { + return this.notification.log(e, { + addnCls: "humane-flatty-error" + }), !1 + } + return !0 + } + }, { + key: "submitCreation", + value: function(e) { + var t = this; + if (e.preventDefault(), this.validateEntry()) { + var n = this.entity, + r = this.view, + i = this.$state, + o = this.progression, + a = this.notification, + s = this.$translate, + l = n.showView() + .enabled ? "show" : "list", + u = this.$scope.entry.transformToRest(r.fields()), + c = null; + o.start(), this.WriteQueries.createOne(r, u) + .then(function(e) { + return c = r.mapEntry(e) + }) + .then(function(i) { + return r.onSubmitSuccess() && t.$injector.invoke(r.onSubmitSuccess(), r, { + $event: e, + entity: n, + entry: i, + route: l, + controller: t, + form: t.form, + progression: o, + notification: a + }) + }) + .then(function(e) { + e !== !1 && i.go(t.$state.get(l), { + entity: n.name(), + id: c.identifierValue + }) + .then(function() { + return o.done() + }) + .then(function() { + return s("CREATION_SUCCESS") + }) + .then(function(e) { + return a.log(e, { + addnCls: "humane-flatty-success" + }) + }) + }) + .catch(function(i) { + var u = "ERROR_MESSAGE" | t.config.getErrorMessageFor(t.view, i), + f = r.onSubmitError() && t.$injector.invoke(r.onSubmitError(), r, { + $event: e, + error: i, + errorMessage: u, + entity: n, + entry: c, + route: l, + controller: t, + form: t.form, + progression: o, + notification: a + }); + f !== !1 && (o.done(), s(u, { + status: i && i.status, + details: i && i.data && "object" == typeof i.data ? JSON.stringify(i.data) : {} + }) + .then(function(e) { + return a.log(e, { + addnCls: "humane-flatty-error" + }) + })) + }) + } + } + }, { + key: "submitEdition", + value: function(e) { + var t = this; + if (e.preventDefault(), this.validateEntry()) { + var n = this.view, + r = this.$state, + i = this.previousState, + o = this.progression, + a = this.notification, + s = this.$translate, + l = this.$scope.entry.transformToRest(n.fields()), + u = null; + o.start(), this.WriteQueries.updateOne(n, l, this.originEntityId) + .then(function(e) { + return u = n.mapEntry(e) + }) + .then(function(r) { + return n.onSubmitSuccess() && t.$injector.invoke(n.onSubmitSuccess(), n, { + $event: e, + entity: t.entity, + entry: r, + controller: t, + form: t.form, + progression: o, + notification: a + }) + }) + .then(function(e) { + e !== !1 && r.go(i.name, i.params) + .then(function() { + return o.done() + }) + .then(function() { + return s("EDITION_SUCCESS") + }) + .then(function(e) { + return a.log(e, { + addnCls: "humane-flatty-success" + }) + }) + }) + .catch(function(r) { + var i = "ERROR_MESSAGE" | t.config.getErrorMessageFor(t.view, r), + l = n.onSubmitError() && t.$injector.invoke(n.onSubmitError(), n, { + $event: e, + error: r, + errorMessage: i, + entity: t.entity, + entry: u, + controller: t, + form: t.form, + progression: o, + notification: a + }); + l !== !1 && (o.done(), s(i, { + status: r && r.status, + details: r && r.data && "object" == typeof r.data ? JSON.stringify(r.data) : {} + }) + .then(function(e) { + return a.log(e, { + addnCls: "humane-flatty-error" + }) + })) + }) + } + } + }, { + key: "destroy", + value: function() { + this.$scope = void 0, this.$state = void 0, this.$injector = void 0, this.$translate = void 0, this.previousState = void 0, this.WriteQueries = void 0, this.dataStore = void 0, this.view = void 0, this.entity = void 0 + } + }]), e + }(); + t.default = i, i.$inject = ["$scope", "$state", "$injector", "$translate", "previousState", "WriteQueries", "NgAdminConfiguration", "progression", "notification", "view", "dataStore"], e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var o = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + a = n(2), + s = r(a), + l = function() { + function e(t, n, r, o, a, s, l, u, c) { + i(this, e), this.$scope = t, this.$stateParams = n, this.$location = r, this.$anchorScroll = o, this.ReadQueries = a, this.progression = s, this.view = l, this.entity = l.getEntity(), this.loadingPage = !1, this.search = n.search, this.dataStore = u, this.fields = l.fields(), this.listActions = l.listActions(), this.totalItems = c, this.page = n.page || 1, this.infinitePagination = this.view.infinitePagination(), this.entryCssClasses = this.view.getEntryCssClasses.bind(this.view), this.nextPageCallback = this.nextPage.bind(this), this.setPageCallback = this.setPage.bind(this), this.sortField = this.$stateParams.sortField || this.view.getSortFieldName(), this.sortDir = this.$stateParams.sortDir || this.view.sortDir(), t.selectionUpdater ? (t.selection = t.selection || [], t.$watch("selection", t.selectionUpdater)) : t.selection = null, t.$on("$destroy", this.destroy.bind(this)) + } + return o(e, [{ + key: "nextPage", + value: function(e) { + var t = this; + if (!this.loadingPage) { + var n = this.view, + r = this.dataStore; + this.progression.start(); + var i = n.getReferences(), + o = void 0; + this.ReadQueries.getAll(n, e, this.search, this.sortField, this.sortDir) + .then(function(e) { + return o = e.data, t.ReadQueries.getReferenceData(n.fields(), o) + }) + .then(function(e) { + t.progression.done(); + for (var n in e) s.default.createArrayFromRest(e[n], [i[n].targetField()], i[n].targetEntity() + .name(), i[n].targetEntity() + .identifier() + .name()) + .map(function(e) { + return r.addEntry(i[n].targetEntity() + .uniqueId + "_values", e) + }) + }) + .then(function() { + n.mapEntries(o) + .map(function(e) { + r.fillReferencesValuesFromEntry(e, i, !0), r.addEntry(t.entity.uniqueId, e) + }), t.loadingPage = !1 + }) + } + } + }, { + key: "setPage", + value: function(e) { + this.$location.search("page", e), this.$anchorScroll(0) + } + }, { + key: "destroy", + value: function() { + this.$scope = void 0, this.$stateParams = void 0, this.$location = void 0, this.$anchorScroll = void 0, this.dataStore = void 0 + } + }]), e + }(); + t.default = l, l.$inject = ["$scope", "$stateParams", "$location", "$anchorScroll", "ReadQueries", "progression", "view", "dataStore", "totalItems"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + + function r(e, t) { + var n = e.search() + .search ? JSON.parse(e.search() + .search) : {}; + return t.map(function(e) { + n[e.name()] && (n[e.name()] = e.getMappedValue(n[e.name()])) + }), n + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var i = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + o = function() { + function e(t, i, o, a, s, l, u) { + var c = this; + n(this, e), this.$scope = t, this.$state = o, this.$stateParams = i, this.$timeout = s, this.view = l, this.dataStore = u, this.entity = l.getEntity(), this.actions = l.actions(), this.batchActions = l.batchActions(), this.loadingPage = !1, this.filters = l.filters(), this.search = r(a, this.filters), this.path = a.path(), t.$watch(function() { + return a.search() && a.search() + .search + }, function(e, t) { + e !== t && a.path() === c.path && (c.search = r(a, c.filters), c.enabledFilters = c.getEnabledFilters()) + }), t.$watch(function() { + return c.search + }, _.debounce(function(e, t) { + e != t && c.updateFilters() + }, 500), !0), this.filters = l.filters(), this.enabledFilters = this.getEnabledFilters(), this.hasFilters = Object.keys(this.filters) + .length > 0, this.focusedFilterId = null, this.enableFilter = this.enableFilter.bind(this), this.removeFilter = this.removeFilter.bind(this), this.batchActions.length && (t.selectionUpdater = function(e) { + return t.selection = e + }, t.selection = []), t.$on("$destroy", this.destroy.bind(this)) + } + return i(e, [{ + key: "enableFilter", + value: function(e) { + var t = this, + n = e.defaultValue(); + null !== n && (this.search[e.name()] = n), this.enabledFilters.push(e), this.focusedFilterId = e.name(), this.$timeout(function() { + var e = window.document.getElementById(t.focusedFilterId); + e && e.focus && e.focus() + }, 200, !1) + } + }, { + key: "getEnabledFilters", + value: function() { + var e = this; + return this.filters.filter(function(t) { + return !!t.pinned() || e.search && t.name() in e.search + }) + } + }, { + key: "updateFilters", + value: function() { + var e, t, n, r = {}, + i = this.enabledFilters; + for (n in i) t = i[n], e = t.name(), "" !== this.search[e] ? ("boolean" === t.type() && e in this.search || "boolean" !== t.type() && null !== this.search[e]) && (r[e] = t.getTransformedValue(this.search[e])) : delete this.search[e]; + this.$stateParams.search = r, this.$stateParams.page = 1, this.$state.go("list", this.$stateParams) + } + }, { + key: "removeFilter", + value: function(e) { + delete this.search[e.name()], this.enabledFilters = this.enabledFilters.filter(function(t) { + return t !== e + }) + } + }, { + key: "destroy", + value: function() { + this.$scope = void 0, this.$state = void 0, this.$stateParams = void 0, this.$timeout = void 0, this.dataStore = void 0 + } + }]), e + }(); + t.default = o, o.$inject = ["$scope", "$stateParams", "$state", "$location", "$timeout", "view", "dataStore"], e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i() { + return { + restrict: "E", + scope: { + name: "@", + entries: "=", + selection: "=", + fields: "&", + listActions: "&", + entity: "&", + entryCssClasses: "&?", + datastore: "&", + sortField: "@", + sortDir: "@", + sort: "&" + }, + controllerAs: "datagrid", + controller: a.default, + template: '
\n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n
\n \n \n \n \n {{ field.label() | translate }}\n \n
\n \n \n \n \n \n
\n
' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = i; + var o = n(124), + a = r(o); + i.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + i = function() { + function e(t, r, i, o, a) { + var s = this; + n(this, e), t.entity = t.entity(), this.$scope = t, this.$location = r, this.$anchorScroll = o, this.datastore = this.$scope.datastore(), this.filters = {}, this.shouldDisplayActions = this.$scope.listActions() && this.$scope.listActions() + .length > 0, t.getEntryCssClasses = this.getEntryCssClasses.bind(this), t.toggleSelect = this.toggleSelect.bind(this), t.toggleSelectAll = this.toggleSelectAll.bind(this), t.sortField = a.sortField, t.sortDir = a.sortDir, this.sortField = "sortField" in i ? i.sortField : a.sortField, this.sortDir = "sortDir" in i ? i.sortDir : a.sortDir, a.$observe("sortDir", function(e) { + return s.sortDir = e + }), a.$observe("sortField", function(e) { + return s.sortField = e + }), this.sortCallback = t.sort() ? t.sort() : this.sort.bind(this) + } + return r(e, [{ + key: "isSorting", + value: function(e) { + return this.sortField === this.getSortName(e) + } + }, { + key: "itemClass", + value: function(e) { + return e % 2 === 0 ? "even" : "odd" + } + }, { + key: "sort", + value: function(e) { + var t = "ASC", + n = this.getSortName(e); + this.sortField === n && (t = "ASC" === this.sortDir ? "DESC" : "ASC"), this.$location.search("sortField", n), this.$location.search("sortDir", t) + } + }, { + key: "getSortName", + value: function(e) { + return this.$scope.name ? this.$scope.name + "." + e.name() : e.name() + } + }, { + key: "getEntryCssClasses", + value: function e(t) { + var n = this.$scope.entryCssClasses; + if ("function" == typeof n) { + var e = n(); + if ("function" == typeof e) return e(t.values) + } + } + }, { + key: "toggleSelect", + value: function(e) { + var t = this.$scope.selection.slice(), + n = t.indexOf(e); + return n === -1 ? void(this.$scope.selection = t.concat(e)) : (t.splice(n, 1), void(this.$scope.selection = t)) + } + }, { + key: "toggleSelectAll", + value: function() { + return this.$scope.selection.length < this.$scope.entries.length ? void(this.$scope.selection = this.$scope.entries) : void(this.$scope.selection = []) + } + }]), e + }(); + t.default = i, i.$inject = ["$scope", "$location", "$stateParams", "$anchorScroll", "$attrs"], e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + var n = a.default.element(e), + r = 100, + i = t[0].body; + return { + restrict: "E", + scope: { + perPage: "@", + totalItems: "@", + nextPage: "&" + }, + link: function(t) { + function o() { + if (i.offsetHeight - e.innerHeight - e.scrollY < r) { + if (u >= l) return; + u++, t.nextPage()(u) + } + } + var a = parseInt(t.perPage, 10) || 1, + s = parseInt(t.totalItems, 10), + l = Math.ceil(s / a) || 1, + u = 1; + n.bind("scroll", o), t.$on("$destroy", function() { + n.unbind("scroll", o) + }) + } + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = i; + var o = n(5), + a = r(o); + i.$inject = ["$window", "$document"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "E", + scope: { + entry: "=", + selection: "=", + toggleSelect: "&" + }, + template: '', + link: function(e) { + e.toggle = function(t) { + return e.toggleSelect({ + entry: t + }) + }; + var t = e.entry; + e.isInSelection = function() { + return e.selection.filter(function(e) { + return e._entityName == t._entityName && e._identifierValue == t._identifierValue + }) + .length > 0 + } + } + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "E", + scope: { + entries: "=", + selection: "=", + toggleSelectAll: "&" + }, + template: '', + link: function(e, t) { + e.$watch("selection", function(n) { + t.children()[0].indeterminate = n.length > 0 && n.length != e.entries.length + }), e.$watch("entries", function(n) { + t.children()[0].indeterminate = e.selection.length > 0 && e.selection.length != n.length + }) + } + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i() { + return { + restrict: "E", + scope: { + page: "@", + perPage: "@", + totalItems: "@", + setPage: "&" + }, + template: a.default, + controllerAs: "paginationCtrl", + controller: l.default + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = i; + var o = n(163), + a = r(o), + s = n(129), + l = r(s); + i.$inject = [], e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var o = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + a = n(5), + s = (r(a), function() { + function e(t) { + i(this, e), this.$scope = t; + var n = parseInt(this.$scope.perPage, 10) || 1, + r = parseInt(this.$scope.totalItems, 10), + o = Math.max(parseInt(this.$scope.page, 10), 1); + this.nbPages = Math.ceil(r / n) || 1, this.page = Math.min(this.nbPages, o), this.offsetEnd = Math.min(this.page * n, r), this.offsetBegin = Math.min((this.page - 1) * n + 1, this.offsetEnd), this.totalItems = r, this.displayPagination = n < r, t.$on("$destroy", this.destroy.bind(this)) + } + return o(e, [{ + key: "range", + value: function(e) { + var t = [], + n = this.nbPages; + return e > 2 && t.push("1"), 4 == e && t.push("2"), e > 4 && t.push("."), e > 1 && t.push(e - 1), t.push(e), e < n && t.push(e + 1), e == n - 3 && t.push(n - 1), e < n - 3 && t.push("."), e < n - 1 && t.push(n), t + } + }, { + key: "setPage", + value: function(e) { + e <= 0 || e > this.nbPages || this.$scope.setPage()(e) + } + }, { + key: "destroy", + value: function() { + this.$scope = void 0 + } + }]), e + }()); + t.default = s, s.$inject = ["$scope"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "E", + transclude: !0, + scope: { + buttons: "&", + entry: "&", + entity: "&" + }, + link: function(e) { + e.buttons = e.buttons(), e.entry = e.entry(), e.entity = e.entity(), e.customTemplate = !1, "string" == typeof e.buttons && (e.customTemplate = e.buttons, e.buttons = null) + }, + template: '\n \n \n \n \n \n \n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + var t = e.get("$compile"); + return { + transclude: !0, + link: function(e, n, r, i, o) { + var a = e.$watch(function(e) { + return e.$eval(r.compile) + }, function(i) { + return !1 === i ? void o(e, function(e) { + n.append(e) + }) : (n.html(i), t(n.contents())(e), void("true" == r.compileOnce && a())) + }) + } + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["$injector"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + i = function() { + function e(t) { + n(this, e), this.formatDate = function(e) { + return function(n) { + return t("date")(n, e) + } + }, this.formatNumber = function(e) { + return function(n) { + return t("numeraljs")(n, e) + } + } + } + return r(e, [{ + key: "formatField", + value: function(e) { + var t = e.label() || e.name(), + n = e.type(); + switch (n) { + case "boolean": + case "choice": + case "choices": + case "string": + case "text": + case "wysiwyg": + case "email": + case "json": + case "file": + return function(n) { + return { + name: t, + value: n.values[e.name()] + } + }; + case "template": + return function(n) { + return { + name: t, + value: e.getTemplateValue(n) + } + }; + case "number": + case "float": + var r = this.formatNumber(e.format()); + return function(n) { + return { + name: t, + value: r(n.values[e.name()]) + } + }; + case "date": + case "datetime": + var i = e.format(); + i || (i = "date" === n ? "yyyy-MM-dd" : "yyyy-MM-dd HH:mm:ss"); + var o = this.formatDate(i); + return function(n) { + return { + name: t, + value: o(n.values[e.name()]) + } + }; + case "reference": + return function(n) { + return { + name: t, + value: n.listValues[e.name()] + } + }; + case "referenced_many": + case "referenced_list": + return + } + } + }, { + key: "getFormatter", + value: function(e) { + var t = e.map(this.formatField.bind(this)); + return function(e) { + var n = {}; + return t.map(function(t) { + if (t) return t(e) + }) + .forEach(function(e) { + e && (n[e.name] = e.value) + }), n + } + } + }]), e + }(); + t.default = i, i.$inject = ["$filter"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + return e.getPromisesResolver() + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["AdminDescription"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + i = function() { + function e(t) { + n(this, e), this.Restangular = t, t.setFullResponse(!0) + } + return r(e, [{ + key: "getOne", + value: function(e, t) { + return this.Restangular.oneUrl(e, t) + .get() + .then(function(e) { + return e.data + }) + } + }, { + key: "getList", + value: function(e, t, n) { + return this.Restangular.allUrl(t, n) + .getList(e) + } + }, { + key: "createOne", + value: function(e, t, n, r) { + var i = this.Restangular.oneUrl(t, n), + o = r ? i.customOperation(r, null, {}, {}, e) : i.customPOST(e); + return o.then(function(e) { + return e.data + }) + } + }, { + key: "updateOne", + value: function(e, t, n, r) { + var i = this.Restangular.oneUrl(t, n), + o = r ? i.customOperation(r, null, {}, {}, e) : i.customPUT(e); + return o.then(function(e) { + return e.data + }) + } + }, { + key: "deleteOne", + value: function(e, t) { + return this.Restangular.oneUrl(e, t) + .customDELETE() + } + }]), e + }(); + t.default = i, i.$inject = ["Restangular"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + var t = e.get("$compile"); + return { + restrict: "E", + transclude: !0, + scope: { + override: "&", + entry: "=", + entity: "=", + selection: "=", + batchButtons: "&", + datastore: "=", + search: "=", + filters: "&", + enabledFilters: "=", + enableFilter: "&" + }, + link: function(e, n, r, i, o) { + var a = e.override(); + return a ? "string" == typeof a ? (n.html(a), void t(n.contents())(e)) : void(e.buttons = a) : void o(e, function(e) { + n.append(e) + }) + }, + template: '\n \n \n \n \n \n \n \n \n \n \n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["$injector"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t, n, r) { + return n.getReadQueries(e, r, t()) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["RestWrapper", "NgAdminConfiguration", "AdminDescription", "PromisesResolver"], e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var o = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + a = n(2), + s = r(a), + l = function() { + function e(t) { + i(this, e), this.ReadQueries = t + } + return o(e, [{ + key: "refresh", + value: function(e, t, n) { + var r = this, + i = {}; + i[e.name()] = e; + var o = this.ReadQueries.getAllReferencedData(i, n) + .then(function(t) { + return t[e.name()] + }) + .then(function(t) { + return r._transformRecords(e, t) + }); + return "reference_many" !== e.type() && "choices" !== e.type() || (o = o.then(function(e) { + return r._removeDuplicates(e, t) + })), o + } + }, { + key: "_removeDuplicates", + value: function(e, t) { + return t ? (Array.isArray(t) || (t = [t]), e.filter(function(e) { + return t.indexOf(e.value) === -1 + })) : e + } + }, { + key: "_transformRecords", + value: function(e, t) { + var n = e.targetEntity(), + r = e.targetField(), + i = n.identifier() + .name(), + o = r.name(); + return s.default.createArrayFromRest(t, [r], n.name(), i) + .map(function(e) { + return { + value: e.values[i], + label: e.values[o] + } + }) + } + }]), e + }(); + t.default = l, l.$inject = ["ReadQueries"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t, n, r) { + return n.getWriteQueries(e, r, t()) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["RestWrapper", "NgAdminConfiguration", "AdminDescription", "PromisesResolver"], e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t) { + return ["$stateParams", "NgAdminConfiguration", function(n, r) { + var i, o = r() + .getViewByEntityAndType(n.entity, e); + return (i = o.template()) ? i : (i = r() + .customTemplate()(e), i ? i : t) + }] + } + + function o(e) { + return ["$stateParams", "NgAdminConfiguration", function(t, n) { + var r; + try { + r = n() + .getViewByEntityAndType(t.entity, e) + } catch (e) { + var i = new Error("Unknown view or entity name"); + throw i.status = 404, i + } + if (!r.enabled) throw new Error("The " + e + " is disabled for this entity"); + return r + }] + } + + function a(e) { + e.state("listLayout", { + abstract: !0, + url: "/:entity/list", + params: { + entity: null + }, + parent: "main", + controller: "ListLayoutController", + controllerAs: "llCtrl", + templateProvider: i("ListView", x.default), + resolve: { + dataStore: function() { + return new l.default + }, + view: o("ListView"), + filterData: ["ReadQueries", "view", function(e, t) { + return e.getAllReferencedData(t.getFilterReferences(!1)) + }], + filterEntries: ["dataStore", "view", "filterData", function(e, t, n) { + var r = t.getFilterReferences(!1); + for (var i in n) c.default.createArrayFromRest(n[i], [r[i].targetField()], r[i].targetEntity() + .name(), r[i].targetEntity() + .identifier() + .name()) + .map(function(t) { + return e.addEntry(r[i].targetEntity() + .uniqueId + "_choices", t) + }) + }] + } + }) + .state("list", { + url: "?{search:json}&{page:int}&sortField&sortDir", + params: { + page: { + value: 1, + squash: !0 + }, + search: { + value: {}, + squash: !0 + }, + sortField: null, + sortDir: null + }, + parent: "listLayout", + views: { + grid: { + controller: "ListController", + controllerAs: "listController", + template: $.default, + resolve: { + dataStore: function() { + return new l.default + }, + view: o("ListView"), + response: ["$stateParams", "ReadQueries", "view", function(e, t, n) { + var r = e.page, + i = e.search, + o = e.sortField, + a = e.sortDir; + return t.getAll(n, r, i, o, a) + }], + totalItems: ["response", function(e) { + return e.totalItems + }], + referenceData: ["ReadQueries", "view", "response", function(e, t, n) { + return e.getReferenceData(t.fields(), n.data) + }], + referenceEntries: ["dataStore", "view", "referenceData", function(e, t, n) { + var r = t.getReferences(); + for (var i in n) c.default.createArrayFromRest(n[i], [r[i].targetField()], r[i].targetEntity() + .name(), r[i].targetEntity() + .identifier() + .name()) + .map(function(t) { + return e.addEntry(r[i].targetEntity() + .uniqueId + "_values", t) + }) + }], + entries: ["dataStore", "view", "response", "referenceEntries", function(e, t, n, r) { + var i = t.mapEntries(n.data); + return e.fillReferencesValuesFromCollection(i, t.getReferences(), !0), e.setEntries(t.getEntity() + .uniqueId, i), i + }], + prepare: ["view", "$stateParams", "dataStore", "entries", "$window", "$injector", function(e, t, n, r, i, o) { + return e.prepare() && o.invoke(e.prepare(), e, { + query: t, + datastore: n, + view: e, + Entry: c.default, + entries: r, + window: i + }) + }] + } + } + } + }), e.state("show", { + parent: "main", + url: "/:entity/show/:id?sortField&sortDir", + controller: "ShowController", + controllerAs: "showController", + templateProvider: i("ShowView", C.default), + params: { + entity: null, + id: null, + page: { + value: 1, + squash: !0 + }, + search: { + value: {}, + squash: !0 + }, + sortField: null, + sortDir: null + }, + resolve: { + dataStore: function() { + return new l.default + }, + view: o("ShowView"), + rawEntry: ["$stateParams", "ReadQueries", "view", function(e, t, n) { + return t.getOne(n.getEntity(), n.type, e.id, n.identifier(), n.getUrl()) + }], + entry: ["view", "rawEntry", function(e, t) { + return e.mapEntry(t) + }], + referenceData: ["ReadQueries", "view", "entry", function(e, t, n) { + return e.getReferenceData(t.fields(), [n.values]) + }], + referenceEntries: ["dataStore", "view", "referenceData", function(e, t, n) { + var r = t.getReferences(); + for (var i in n) c.default.createArrayFromRest(n[i], [r[i].targetField()], r[i].targetEntity() + .name(), r[i].targetEntity() + .identifier() + .name()) + .map(function(t) { + return e.addEntry(r[i].targetEntity() + .uniqueId + "_values", t) + }) + }], + referencedListData: ["$stateParams", "ReadQueries", "view", "entry", function(e, t, n, r) { + return t.getReferencedListData(n.getReferencedLists(), e.sortField, e.sortDir, r.identifierValue) + }], + referencedListEntries: ["dataStore", "view", "referencedListData", function(e, t, n) { + var r = t.getReferencedLists(); + for (var i in r) c.default.createArrayFromRest(n[i], r[i].targetFields(), r[i].targetEntity() + .name(), r[i].targetEntity() + .identifier() + .name()) + .map(function(t) { + return e.addEntry(r[i].targetEntity() + .uniqueId + "_list", t) + }) + }], + entryWithReferences: ["dataStore", "view", "entry", "referenceEntries", function(e, t, n, r) { + e.fillReferencesValuesFromEntry(n, t.getReferences(), !0), e.addEntry(t.getEntity() + .uniqueId, n) + }], + referenceDataForReferencedLists: ["$q", "ReadQueries", "view", "referencedListData", function(e, t, n, r) { + var i = n.getReferencedLists(), + o = {}; + return Object.keys(i) + .map(function(e) { + o[e] = t.getReferenceData(i[e].targetFields(), r[e]) + }), e.all(o) + }], + referenceEntriesForReferencedLists: ["dataStore", "view", "referenceDataForReferencedLists", function(e, t, n) { + var r = t.getReferencedLists(); + return Object.keys(r) + .map(function(t) { + var i = r[t].getReferences(); + for (var o in i) n[t][o] && c.default.createArrayFromRest(n[t][o], [i[o].targetField()], i[o].targetEntity() + .name(), i[o].targetEntity() + .identifier() + .name()) + .map(function(t) { + return e.addEntry(i[o].targetEntity() + .uniqueId + "_values", t) + }) + }), !0 + }], + prepare: ["view", "$stateParams", "dataStore", "entry", "entryWithReferences", "referencedListEntries", "referenceEntriesForReferencedLists", "$window", "$injector", function(e, t, n, r, i, o, a, s, l) { + return e.prepare() && l.invoke(e.prepare(), e, { + query: t, + datastore: n, + view: e, + Entry: c.default, + entry: r, + window: s + }) + }] + } + }), e.state("create", { + parent: "main", + url: "/:entity/create?{defaultValues:json}", + controller: "FormController", + controllerAs: "formController", + templateProvider: i("CreateView", m.default), + params: { + page: { + value: 1, + squash: !0 + }, + search: { + value: {}, + squash: !0 + }, + defaultValues: { + value: {}, + squash: !0 + }, + sortField: null, + sortDir: null + }, + resolve: { + dataStore: function() { + return new l.default + }, + previousState: ["$state", "$stateParams", function(e, t) { + return { + name: e.current.name || "edit", + params: Object.keys(e.params) + .length > 0 ? e.params : t + } + }], + view: o("CreateView"), + entry: ["$stateParams", "dataStore", "view", function(e, t, n) { + var r = c.default.createForFields(n.getFields(), n.entity.name()); + return Object.keys(e.defaultValues) + .forEach(function(t) { + return r.values[t] = e.defaultValues[t] + }), t.addEntry(n.getEntity() + .uniqueId, r), r + }], + choiceData: ["ReadQueries", "view", function(e, t) { + return e.getAllReferencedData(t.getReferences(!1)) + }], + choiceEntries: ["dataStore", "view", "choiceData", function(e, t, n) { + var r = t.getReferences(!1); + for (var i in n) c.default.createArrayFromRest(n[i], [r[i].targetField()], r[i].targetEntity() + .name(), r[i].targetEntity() + .identifier() + .name()) + .map(function(t) { + return e.addEntry(r[i].targetEntity() + .uniqueId + "_choices", t) + }) + }], + prepare: ["view", "$stateParams", "dataStore", "entry", "choiceEntries", "$window", "$injector", function(e, t, n, r, i, o, a) { + return e.prepare() && a.invoke(e.prepare(), e, { + query: t, + datastore: n, + view: e, + Entry: c.default, + entry: r, + window: o + }) + }] + } + }), e.state("edit", { + parent: "main", + url: "/:entity/edit/:id?sortField&sortDir", + controller: "FormController", + controllerAs: "formController", + templateProvider: i("EditView", y.default), + params: { + entity: null, + id: null, + page: { + value: 1, + squash: !0 + }, + search: { + value: {}, + squash: !0 + }, + sortField: null, + sortDir: null + }, + resolve: { + dataStore: function() { + return new l.default + }, + previousState: ["$state", "$stateParams", function(e, t) { + return { + name: e.current.name || "edit", + params: Object.keys(e.params) + .length > 0 ? e.params : t + } + }], + view: o("EditView"), + rawEntry: ["$stateParams", "ReadQueries", "view", function(e, t, n) { + return t.getOne(n.getEntity(), n.type, e.id, n.identifier(), n.getUrl(e.id)) + }], + entry: ["view", "rawEntry", function(e, t) { + return e.mapEntry(t) + }], + referenceData: ["ReadQueries", "view", "entry", function(e, t, n) { + return e.getReferenceData(t.fields(), [n.values]) + }], + referenceEntries: ["dataStore", "view", "referenceData", function(e, t, n) { + var r = t.getReferences(); + for (var i in n) c.default.createArrayFromRest(n[i], [r[i].targetField()], r[i].targetEntity() + .name(), r[i].targetEntity() + .identifier() + .name()) + .map(function(t) { + return e.addEntry(r[i].targetEntity() + .uniqueId + "_values", t) + }) + }], + referencedListData: ["$stateParams", "ReadQueries", "view", "entry", function(e, t, n, r) { + return t.getReferencedListData(n.getReferencedLists(), e.sortField, e.sortDir, r.identifierValue) + }], + referencedListEntries: ["dataStore", "view", "referencedListData", function(e, t, n) { + var r = t.getReferencedLists(); + for (var i in r) c.default.createArrayFromRest(n[i], r[i].targetFields(), r[i].targetEntity() + .name(), r[i].targetEntity() + .identifier() + .name()) + .map(function(t) { + return e.addEntry(r[i].targetEntity() + .uniqueId + "_list", t) + }) + }], + entryWithReferences: ["dataStore", "view", "entry", "referenceEntries", function(e, t, n, r) { + e.fillReferencesValuesFromEntry(n, t.getReferences(), !0), e.addEntry(t.getEntity() + .uniqueId, n) + }], + choiceData: ["ReadQueries", "view", function(e, t) { + return e.getAllReferencedData(t.getReferences(!1)) + }], + choiceEntries: ["dataStore", "view", "choiceData", function(e, t, n) { + var r = t.getReferences(!1); + for (var i in n) c.default.createArrayFromRest(n[i], [r[i].targetField()], r[i].targetEntity() + .name(), r[i].targetEntity() + .identifier() + .name()) + .map(function(t) { + return e.addEntry(r[i].targetEntity() + .uniqueId + "_choices", t) + }) + }], + referenceDataForReferencedLists: ["$q", "ReadQueries", "view", "referencedListData", function(e, t, n, r) { + var i = n.getReferencedLists(), + o = {}; + return Object.keys(i) + .map(function(e) { + o[e] = t.getReferenceData(i[e].targetFields(), r[e]) + }), e.all(o) + }], + referenceEntriesForReferencedLists: ["dataStore", "view", "referenceDataForReferencedLists", function(e, t, n) { + var r = t.getReferencedLists(); + return Object.keys(r) + .map(function(t) { + var i = r[t].getReferences(); + for (var o in i) n[t][o] && c.default.createArrayFromRest(n[t][o], [i[o].targetField()], i[o].targetEntity() + .name(), i[o].targetEntity() + .identifier() + .name()) + .map(function(t) { + return e.addEntry(i[o].targetEntity() + .uniqueId + "_values", t) + }) + }), !0 + }], + prepare: ["view", "$stateParams", "dataStore", "entry", "referenceEntriesForReferencedLists", "choiceEntries", "entryWithReferences", "$window", "$injector", function(e, t, n, r, i, o, a, s, l) { + return e.prepare() && l.invoke(e.prepare(), e, { + query: t, + datastore: n, + view: e, + Entry: c.default, + entry: r, + window: s + }) + }] + } + }), e.state("delete", { + parent: "main", + url: "/:entity/delete/:id", + controller: "DeleteController", + controllerAs: "deleteController", + templateProvider: i("DeleteView", p.default), + params: { + page: { + value: 1, + squash: !0 + }, + search: { + value: {}, + squash: !0 + }, + sortField: null, + sortDir: null + }, + resolve: { + dataStore: function() { + return new l.default + }, + view: o("DeleteView"), + params: ["$stateParams", function(e) { + return e + }], + rawEntry: ["$stateParams", "ReadQueries", "view", function(e, t, n) { + return t.getOne(n.getEntity(), n.type, e.id, n.identifier(), n.getUrl()) + }], + entry: ["view", "rawEntry", function(e, t) { + return e.mapEntry(t) + }], + prepare: ["view", "$stateParams", "dataStore", "entry", "$window", "$injector", function(e, t, n, r, i, o) { + return e.prepare() && o.invoke(e.prepare(), e, { + query: t, + datastore: n, + view: e, + Entry: c.default, + entry: r, + window: i + }) + }] + } + }), e.state("batchDelete", { + parent: "main", + url: "/:entity/batch-delete/{ids:json}", + controller: "BatchDeleteController", + controllerAs: "batchDeleteController", + templateProvider: i("BatchDeleteView", d.default), + params: { + entity: null, + ids: [], + page: { + value: 1, + squash: !0 + }, + search: { + value: {}, + squash: !0 + }, + sortField: null, + sortDir: null + }, + resolve: { + view: o("BatchDeleteView"), + params: ["$stateParams", function(e) { + return e + }] + } + }) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var s = n(14), + l = r(s), + u = n(2), + c = r(u), + f = n(157), + d = r(f), + h = n(158), + p = r(h), + v = n(159), + m = r(v), + g = n(160), + y = r(g), + b = n(161), + $ = r(b), + w = n(162), + x = r(w), + _ = n(164), + C = r(_); + a.$inject = ["$stateProvider"], t.default = a, e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + i = function() { + function e(t, r, i, o) { + n(this, e), this.$scope = t, this.$location = r, this.title = i.title(), this.description = i.description(), this.actions = i.actions(), this.fields = i.fields(), this.$scope.entry = o.getFirstEntry(i.getEntity() + .uniqueId), this.$scope.view = i, this.view = i, this.entity = this.view.getEntity(), this.dataStore = o, t.$on("$destroy", this.destroy.bind(this)) + } + return r(e, [{ + key: "destroy", + value: function() { + this.$scope = void 0, this.$location = void 0, this.view = void 0, this.entity = void 0, this.dataStore = void 0 + } + }]), e + }(); + t.default = i, i.$inject = ["$scope", "$location", "view", "dataStore"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + restrict: "E", + scope: { + field: "&", + entry: "&", + entity: "&", + datastore: "&" + }, + link: { + pre: function(e) { + e.field = e.field(), e.entry = e.entry(), e.entity = e.entity(), e.datastore = e.datastore() + } + }, + template: '
\n \n
\n
\n \n
\n
\n
' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return { + require: "ngModel", + link: function(e, t, n, r) { + r.$validators.json = function(e) { + if (r.$isEmpty(e)) return !0; + try { + return angular.fromJson(e), !0 + } catch (e) { + return !1 + } + } + } + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + var i = n(5), + o = r(i); + n(22), n(181); + var a = o.default.module("main", ["ui.router", "restangular", "pascalprecht.translate"]); + a.controller("AppController", n(144)), a.controller("DashboardController", n(145)), a.provider("NgAdminConfiguration", n(150)), a.filter("orderElement", n(148)), a.filter("stripTags", n(149)), a.directive("maDashboardPanel", n(146)), a.directive("maMenuBar", n(147)), a.config(n(151)), a.config(n(152)), a.config(n(153)), a.run(n(154)), a.run(n(155)) +}, function(e, t) { + "use strict"; + + function n(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + i = function() { + function e(t, r, i) { + n(this, e); + var o = i(); + this.$scope = t, this.$state = r, this.$scope.isCollapsed = !0, this.menu = o.menu(), this.applicationName = o.title(), this.header = o.header(), t.$on("$destroy", this.destroy.bind(this)) + } + return r(e, [{ + key: "displayHome", + value: function() { + this.$state.go(this.$state.get("dashboard")) + } + }, { + key: "destroy", + value: function() { + this.$scope = void 0, this.$state = void 0 + } + }]), e + }(); + t.default = i, i.$inject = ["$scope", "$state", "NgAdminConfiguration"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + i = function() { + function e(t, r, i, o, a, s) { + n(this, e), this.$state = r, this.collections = i, this.entries = o, this.hasEntities = a, this.datastore = s, t.$on("$destroy", this.destroy.bind(this)) + } + return r(e, [{ + key: "gotoList", + value: function(e) { + this.$state.go(this.$state.get("list"), { + entity: e + }) + } + }, { + key: "destroy", + value: function() { + this.$state = void 0 + } + }]), e + }(); + t.default = i, i.$inject = ["$scope", "$state", "collections", "entries", "hasEntities", "dataStore"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + return { + restrict: "E", + scope: { + collection: "&", + entries: "&", + datastore: "&" + }, + link: function(t) { + t.gotoList = function() { + e.go(e.get("list"), { + entity: t.collection() + .entity.name() + }) + } + }, + template: '\n\n' + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["$state"], e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i(e, t, n) { + return { + restrict: "E", + scope: { + menu: "&" + }, + link: function(r, i) { + function o(e) { + console.log(e), s = e + } + + function s() { + return s + } + + function u() { + return window.innerWidth <= 1200 + } + + function c() { + return window.innerWidth <= 500 + } + + function f() { + i.html(a.default), n(i.contents())(r) + } + + function d(e) { + var t = p(e); + t.ul.addClass("collapsed"), t.arrow.removeClass("glyphicon-menu-down"), t.arrow.addClass("glyphicon-menu-right"); + var n = t.ul.parents(".al-sidebar-list-item"); + n.removeClass("ba-sidebar-item-expanded") + } + + function h(e) { + var t = p(e); + t.ul.removeClass("collapsed"), t.arrow.removeClass("glyphicon-menu-right"), t.arrow.addClass("glyphicon-menu-down"); + var n = t.ul.parents(".al-sidebar-list-item"); + n.addClass("ba-sidebar-item-expanded") + } + + function p(e) { + var t; + return l.default.forEach(i.find("li"), function(n) { + var r = l.default.element(n); + r.attr("data-menu-id") == e.uuid && (t = r) + }), { + arrow: l.default.element(t.find("a")[0].getElementsByClassName("arrow")[0]), + ul: t.find("ul") + .eq(0) + } + } + + function v(e) { + m(i[0], e.target) && !e.originalEvent.$sidebarEventProcessed && !s() && c() && (e.originalEvent.$sidebarEventProcessed = !0, $timeout(function() { + o(!0) + }, 10)) + } + + function m(e, t) { + for (var n = t.parentNode; null != n;) { + if (n == e) return !0; + n = n.parentNode + } + return !1 + } + + function g() { + var e = u(), + t = y(); + e == s() && r.menuHeight == t || r.$apply(function() { + r.menuHeight = t, o(e) + }) + } + + function y() { + return i[0].childNodes[0].clientHeight - 84 + } + r.menu = r.menu(), r.path = e.path(); + var b = $(window), + w = r.menu.children() + .filter(function(e) { + return e.isChildActive(r.path) + }), + x = t.$on("$locationChangeSuccess", function() { + r.path = e.path(), f() + }); + t.$on("$destroy", x), r.toggleMenu = function(e) { + if (w.indexOf(e) !== -1) { + if (e.isChildActive(r.path)) return; + w.splice(w.indexOf(e), 1), d(e) + } else w.push(e), h(e) + }, r.activateLink = function(e) { + e.link() && e.autoClose() && (w = []) + }, r.hoverItem = function(e) { + r.showHoverElem = !0, r.hoverElemHeight = e.currentTarget.clientHeight; + var t = 66; + r.hoverElemTop = e.currentTarget.getBoundingClientRect() + .top - t + }, r.isOpen = function(e) { + return e.isChildActive(r.path) || w.indexOf(e) !== -1 + }, f(), r.shouldMenuBeCollapsed = u, r.canSidebarBeHidden = c, r.$on("$stateChangeSuccess", function() { + c() && o(!0) + }), r.menuHeight = i[0].childNodes[0].clientHeight - 84, b.on("click", v), b.on("resize", g), r.$on("$destroy", function() { + b.off("click", v), b.off("resize", g) + }) + } + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = i; + var o = n(168), + a = r(o), + s = n(5), + l = r(s); + i.$inject = ["$location", "$rootScope", "$compile"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return function(e) { + var t, n = []; + for (t in e) n.push(e[t]); + return n.sort(function(e, t) { + return "function" == typeof e.order ? e.order() - t.order() : e.order - t.order + }), n + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n() { + return function(e) { + return e.replace(/(<([^>]+)>)/gi, "") + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = [], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t + } + }(), + i = function() { + function e(t) { + n(this, e), this.config = null, this.adminDescription = null, this.$compileProvider = t + } + return r(e, [{ + key: "setAdminDescription", + value: function(e) { + this.adminDescription = e + } + }, { + key: "configure", + value: function(e) { + this.config = e, this.$compileProvider.debugInfoEnabled(this.config.debug()) + } + }, { + key: "$get", + value: function() { + var e = this.config; + return function() { + return e + } + } + }, { + key: "application", + value: function(e, t) { + return this.adminDescription.application(e, t) + } + }, { + key: "entity", + value: function(e) { + return this.adminDescription.entity(e) + } + }, { + key: "field", + value: function(e, t) { + return this.adminDescription.field(e, t) + } + }, { + key: "registerFieldType", + value: function(e, t) { + return this.adminDescription.registerFieldType(e, t) + } + }, { + key: "getFieldConstructor", + value: function(e) { + return this.adminDescription.getFieldConstructor(e) + } + }, { + key: "menu", + value: function(e) { + return this.adminDescription.menu(e) + } + }, { + key: "collection", + value: function(e) { + return this.adminDescription.collection(e) + } + }, { + key: "dashboard", + value: function(e) { + return this.adminDescription.dashboard(e) + } + }]), e + }(); + t.default = i, i.$inject = ["$compileProvider"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + e.useApplyAsync(!0) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["$httpProvider"], e.exports = t.default +}, function(e, t, n) { + "use strict"; + + function r(e) { + return e && e.__esModule ? e : { + default: e + } + } + + function i() { + return ["AdminDescription", function(e) { + return e.getDataStore() + }] + } + + function o() { + return ["AdminDescription", function(e) { + return e.getEntryConstructor() + }] + } + + function a(e, t) { + e.state("main", { + abstract: !0, + controller: "AppController", + controllerAs: "appController", + templateProvider: ["NgAdminConfiguration", function(e) { + return e() + .layout() || l.default + }] + }), e.state("dashboard", { + parent: "main", + url: "/dashboard?sortField&sortDir", + params: { + sortField: null, + sortDir: null + }, + controller: "DashboardController", + controllerAs: "dashboardController", + templateProvider: ["NgAdminConfiguration", function(e) { + return e() + .dashboard() + .template() || c.default + }], + resolve: { + dataStore: i(), + Entry: o(), + hasEntities: ["NgAdminConfiguration", function(e) { + return e() + .entities.length > 0 + }], + collections: ["NgAdminConfiguration", function(e) { + return e() + .dashboard() + .collections() + }], + responses: ["$stateParams", "$q", "collections", "dataStore", "Entry", "ReadQueries", function(e, t, n, r, i, o) { + var a, s, l, u, c = "sortField" in e ? e.sortField : null, + f = "sortDir" in e ? e.sortDir : null, + d = {}; + for (u in n) a = n[u], s = a.getSortFieldName(), l = a.sortDir(), c && c.split(".")[0] === a.name() && (s = c, l = f), d[u] = function(e, t, n) { + var a; + return o.getAll(e, 1, {}, t, n) + .then(function(e) { + return a = e.data + }) + .then(function(t) { + return o.getReferenceData(e.fields(), t) + }) + .then(function(t) { + var n = e.getReferences(); + for (var o in t) i.createArrayFromRest(t[o], [n[o].targetField()], n[o].targetEntity() + .name(), n[o].targetEntity() + .identifier() + .name()) + .map(function(e) { + return r.addEntry(n[o].targetEntity() + .uniqueId + "_values", e) + }) + }) + .then(function() { + var t = e.mapEntries(a); + return r.fillReferencesValuesFromCollection(t, e.getReferences(), !0), t + }) + }(a, s, l); + return t.all(d) + }], + entries: ["responses", "collections", function(e, t) { + var n, r = {}; + for (n in e) r[t[n].name()] = e[n]; + return r + }] + } + }), e.state("ma-404", { + parent: "main", + template: d.default + }), t.when("", "/dashboard"), t.otherwise(function(e, t) { + var n = e.get("$state"); + return n.go("ma-404"), t.path() + }) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var s = n(167), + l = r(s), + u = n(166), + c = r(u), + f = n(165), + d = r(f); + a.$inject = ["$stateProvider", "$urlRouterProvider"], t.default = a, e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e) { + e.translations("en", { + BACK: "Back", + DELETE: "Delete", + CREATE: "Create", + EDIT: "Edit", + EXPORT: "Export", + ADD_FILTER: "Add filter", + SEE_RELATED: "See all related {{ entityName }}", + LIST: "List", + SHOW: "Show", + SAVE: "Save", + N_SELECTED: "{{ length }} Selected", + ARE_YOU_SURE: "Are you sure?", + YES: "Yes", + NO: "No", + FILTER_VALUES: "Filter values", + CLOSE: "Close", + CLEAR: "Clear", + CURRENT: "Current", + REMOVE: "Remove", + ADD_NEW: "Add new {{ name }}", + BROWSE: "Browse", + N_COMPLETE: "{{ progress }}% Complete", + CREATE_NEW: "Create new", + SUBMIT: "Submit", + SAVE_CHANGES: "Save changes", + BATCH_DELETE_SUCCESS: "Elements successfully deleted", + DELETE_SUCCESS: "Element successfully deleted", + ERROR_MESSAGE: "Oops, an error occurred (code: {{ status }})", + INVALID_FORM: "Invalid form", + CREATION_SUCCESS: "Element successfully created", + EDITION_SUCCESS: "Changes successfully saved", + ACTIONS: "Actions", + PAGINATION: "{{ begin }} - {{ end }} of {{ total }}", + NO_PAGINATION: "No record found", + PREVIOUS: "« Prev", + NEXT: "Next »", + DETAIL: "Detail", + STATE_CHANGE_ERROR: "State change error: {{ message }}", + NOT_FOUND: "Not Found", + NOT_FOUND_DETAILS: "The page you are looking for cannot be found. Take a break before trying again." + }), e.preferredLanguage("en"), e.useSanitizeValueStrategy("sanitize") + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["$translateProvider"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t, n, r) { + e.$on("$stateChangeError", function(e, i, o, a, s, l) { + if (404 != l.status) throw n("STATE_CHANGE_ERROR", { + message: l.message + }) + .then(function(e) { + return r.log(e, { + addnCls: "humane-flatty-error" + }) + }), l; + t.go("ma-404"), e.preventDefault() + }) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["$rootScope", "$state", "$translate", "notification"], e.exports = t.default +}, function(e, t) { + "use strict"; + + function n(e, t, n) { + e.$on("$stateChangeStart", function() { + n.start() + }), e.$on("$stateChangeSuccess", function() { + n.done(), t.scrollTo(0, 0) + }), e.$on("$stateChangeError", function() { + n.done() + }) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.$inject = ["$rootScope", "$window", "progression"], e.exports = t.default +}, function(e, t) {}, function(e, t) { + e.exports = '

' +}, function(e, t) { + e.exports = '

' +}, function(e, t) { + e.exports = '

{{ \'CREATE_NEW\' | translate }} {{ ::formController.view.entity.label() | humanize:true | singularize | translate }}

{{ ::formController.description }}

' +}, function(e, t) { + e.exports = '

{{ \'EDIT\' | translate }} {{ ::formController.entity.label() | humanize:true | singularize | translate }} #{{ ::entry.identifierValue }}

{{ ::formController.description }}

' +}, function(e, t) { + e.exports = '

{{ ::llCtrl.view.entity.label() | humanize | pluralize | translate }} {{ \'LIST\' | translate }}




'; +}, function(e, t) { + e.exports = '

{{ ::llCtrl.view.entity.label() | humanize | pluralize | translate }} {{ \'LIST\' | translate }}

{{ ::llCtrl.view.description() }}

' +}, function(e, t) { + e.exports = '' +}, function(e, t) { + e.exports = '

{{ ::showController.view.entity.label() | humanize | singularize | translate }} #{{ ::entry.identifierValue }} {{ \'DETAIL\' | translate }}

{{ ::showController.description }}

' +}, function(e, t) { + e.exports = "
{{ 'NOT_FOUND_DETAILS' | translate }}



\n\n       |\\      _,,,---,,_\n       /,`.-'`'    -.  ;-;;,_\n      |,4-  ) )-,_..;\\ (  `'-'\n     '---''(_/--'  `-'\\_)\n\n    
" +}, function(e, t) { + e.exports = '

All dependencies are set, ng-admin is ready to run!

Now you can update the configuration: add entities to the admin, then refresh.

' +}, function(e, t) { + e.exports = '' +}, function(e, t) { + e.exports = '' +}, function(e, t) { + /** + * @license AngularJS v1.4.14 + * (c) 2010-2015 Google, Inc. http://angularjs.org + * License: MIT + */ + ! function(e, t, n) { + "use strict"; + + function r(e, t) { + return t = t || Error, + function() { + var n, r, i = 2, + o = arguments, + a = o[0], + s = "[" + (e ? e + ":" : "") + a + "] ", + l = o[1]; + for (s += l.replace(/\{\d+\}/g, function(e) { + var t = +e.slice(1, -1), + n = t + i; + return n < o.length ? be(o[n]) : e + }), s += "\nhttp://errors.angularjs.org/1.4.14/" + (e ? e + "/" : "") + a, r = i, n = "?"; r < o.length; r++, n = "&") s += n + "p" + (r - i) + "=" + encodeURIComponent(be(o[r])); + return new t(s) + } + } + + function i(e) { + if (null == e || O(e)) return !1; + if (zr(e) || _(e) || Ar && e instanceof Ar) return !0; + var t = "length" in Object(e) && e.length; + return C(t) && (t >= 0 && (t - 1 in e || e instanceof Array) || "function" == typeof e.item) + } + + function o(e, t, n) { + var r, a; + if (e) + if (E(e)) + for (r in e) "prototype" == r || "length" == r || "name" == r || e.hasOwnProperty && !e.hasOwnProperty(r) || t.call(n, e[r], r, e); + else if (zr(e) || i(e)) { + var s = "object" != typeof e; + for (r = 0, a = e.length; r < a; r++)(s || r in e) && t.call(n, e[r], r, e) + } else if (e.forEach && e.forEach !== o) e.forEach(t, n, e); + else if (x(e)) + for (r in e) t.call(n, e[r], r, e); + else if ("function" == typeof e.hasOwnProperty) + for (r in e) e.hasOwnProperty(r) && t.call(n, e[r], r, e); + else + for (r in e) Sr.call(e, r) && t.call(n, e[r], r, e); + return e + } + + function a(e, t, n) { + for (var r = Object.keys(e) + .sort(), i = 0; i < r.length; i++) t.call(n, e[r[i]], r[i]); + return r + } + + function s(e) { + return function(t, n) { + e(n, t) + } + } + + function l() { + return ++Hr + } + + function u(e, t) { + t ? e.$$hashKey = t : delete e.$$hashKey + } + + function c(e, t, n) { + for (var r = e.$$hashKey, i = 0, o = t.length; i < o; ++i) { + var a = t[i]; + if (w(a) || E(a)) + for (var s = Object.keys(a), l = 0, f = s.length; l < f; l++) { + var d = s[l], + h = a[d]; + n && w(h) ? k(h) ? e[d] = new Date(h.valueOf()) : S(h) ? e[d] = new RegExp(h) : h.nodeName ? e[d] = h.cloneNode(!0) : R(h) ? e[d] = h.clone() : (w(e[d]) || (e[d] = zr(h) ? [] : {}), c(e[d], [h], !0)) : e[d] = h + } + } + return u(e, r), e + } + + function f(e) { + return c(e, Lr.call(arguments, 1), !1) + } + + function d(e) { + return c(e, Lr.call(arguments, 1), !0) + } + + function h(e) { + return parseInt(e, 10) + } + + function p(e, t) { + return f(Object.create(e), t) + } + + function v() {} + + function m(e) { + return e + } + + function g(e) { + return function() { + return e + } + } + + function y(e) { + return E(e.toString) && e.toString !== Nr + } + + function b(e) { + return "undefined" == typeof e + } + + function $(e) { + return "undefined" != typeof e + } + + function w(e) { + return null !== e && "object" == typeof e + } + + function x(e) { + return null !== e && "object" == typeof e && !Ir(e) + } + + function _(e) { + return "string" == typeof e + } + + function C(e) { + return "number" == typeof e + } + + function k(e) { + return "[object Date]" === Nr.call(e) + } + + function E(e) { + return "function" == typeof e + } + + function S(e) { + return "[object RegExp]" === Nr.call(e) + } + + function O(e) { + return e && e.window === e + } + + function M(e) { + return e && e.$evalAsync && e.$watch + } + + function T(e) { + return "[object File]" === Nr.call(e) + } + + function P(e) { + return "[object FormData]" === Nr.call(e) + } + + function A(e) { + return "[object Blob]" === Nr.call(e) + } + + function j(e) { + return "boolean" == typeof e + } + + function F(e) { + return e && E(e.then) + } + + function L(e) { + return e && C(e.length) && qr.test(Nr.call(e)) + } + + function R(e) { + return !(!e || !(e.nodeName || e.prop && e.attr && e.find)) + } + + function D(e) { + var t, n = {}, + r = e.split(","); + for (t = 0; t < r.length; t++) n[r[t]] = !0; + return n + } + + function N(e) { + return Er(e.nodeName || e[0] && e[0].nodeName) + } + + function I(e, t) { + var n = e.indexOf(t); + return n >= 0 && e.splice(n, 1), n + } + + function V(e, t) { + function n(e, t) { + var n, i = t.$$hashKey; + if (zr(e)) + for (var o = 0, a = e.length; o < a; o++) t.push(r(e[o])); + else if (x(e)) + for (n in e) t[n] = r(e[n]); + else if (e && "function" == typeof e.hasOwnProperty) + for (n in e) e.hasOwnProperty(n) && (t[n] = r(e[n])); + else + for (n in e) Sr.call(e, n) && (t[n] = r(e[n])); + return u(t, i), t + } + + function r(e) { + if (!w(e)) return e; + var t = i.indexOf(e); + if (t !== -1) return a[t]; + if (O(e) || M(e)) throw Vr("cpws", "Can't copy! Making copies of Window or Scope instances is not supported."); + var r, o = !1; + return zr(e) ? (r = [], o = !0) : L(e) ? r = new e.constructor(e) : k(e) ? r = new Date(e.getTime()) : S(e) ? (r = new RegExp(e.source, e.toString() + .match(/[^\/]*$/)[0]), r.lastIndex = e.lastIndex) : A(e) ? r = new e.constructor([e], { + type: e.type + }) : E(e.cloneNode) ? r = e.cloneNode(!0) : (r = Object.create(Ir(e)), o = !0), i.push(e), a.push(r), o ? n(e, r) : r + } + var i = [], + a = []; + if (t) { + if (L(t)) throw Vr("cpta", "Can't copy! TypedArray destination cannot be mutated."); + if (e === t) throw Vr("cpi", "Can't copy! Source and destination are identical."); + return zr(t) ? t.length = 0 : o(t, function(e, n) { + "$$hashKey" !== n && delete t[n] + }), i.push(e), a.push(t), n(e, t) + } + return r(e) + } + + function W(e, t) { + if (zr(e)) { + t = t || []; + for (var n = 0, r = e.length; n < r; n++) t[n] = e[n] + } else if (w(e)) { + t = t || {}; + for (var i in e) "$" === i.charAt(0) && "$" === i.charAt(1) || (t[i] = e[i]) + } + return t || e + } + + function H(e, t) { + if (e === t) return !0; + if (null === e || null === t) return !1; + if (e !== e && t !== t) return !0; + var n, r, i, o = typeof e, + a = typeof t; + if (o == a && "object" == o) { + if (!zr(e)) { + if (k(e)) return !!k(t) && H(e.getTime(), t.getTime()); + if (S(e)) return !!S(t) && e.toString() == t.toString(); + if (M(e) || M(t) || O(e) || O(t) || zr(t) || k(t) || S(t)) return !1; + i = me(); + for (r in e) + if ("$" !== r.charAt(0) && !E(e[r])) { + if (!H(e[r], t[r])) return !1; + i[r] = !0 + } + for (r in t) + if (!(r in i) && "$" !== r.charAt(0) && $(t[r]) && !E(t[r])) return !1; + return !0 + } + if (!zr(t)) return !1; + if ((n = e.length) == t.length) { + for (r = 0; r < n; r++) + if (!H(e[r], t[r])) return !1; + return !0 + } + } + return !1 + } + + function U(e, t, n) { + return e.concat(Lr.call(t, n)) + } + + function z(e, t) { + return Lr.call(e, t || 0) + } + + function q(e, t) { + var n = arguments.length > 2 ? z(arguments, 2) : []; + return !E(t) || t instanceof RegExp ? t : n.length ? function() { + return arguments.length ? t.apply(e, U(n, arguments, 0)) : t.apply(e, n) + } : function() { + return arguments.length ? t.apply(e, arguments) : t.call(e) + } + } + + function B(e, r) { + var i = r; + return "string" == typeof e && "$" === e.charAt(0) && "$" === e.charAt(1) ? i = n : O(r) ? i = "$WINDOW" : r && t === r ? i = "$DOCUMENT" : M(r) && (i = "$SCOPE"), i + } + + function G(e, t) { + return b(e) ? n : (C(t) || (t = t ? 2 : null), JSON.stringify(e, B, t)) + } + + function K(e) { + return _(e) ? JSON.parse(e) : e + } + + function Y(e, t) { + e = e.replace(Qr, ""); + var n = Date.parse("Jan 01, 1970 00:00:00 " + e) / 6e4; + return isNaN(n) ? t : n + } + + function Q(e, t) { + return e = new Date(e.getTime()), e.setMinutes(e.getMinutes() + t), e + } + + function J(e, t, n) { + n = n ? -1 : 1; + var r = e.getTimezoneOffset(), + i = Y(t, r); + return Q(e, n * (i - r)) + } + + function X(e) { + e = Ar(e) + .clone(); + try { + e.empty() + } catch (e) {} + var t = Ar("
") + .append(e) + .html(); + try { + return e[0].nodeType === ni ? Er(t) : t.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/, function(e, t) { + return "<" + Er(t) + }) + } catch (e) { + return Er(t) + } + } + + function Z(e) { + try { + return decodeURIComponent(e) + } catch (e) {} + } + + function ee(e) { + var t = {}; + return o((e || "") + .split("&"), + function(e) { + var n, r, i; + e && (r = e = e.replace(/\+/g, "%20"), n = e.indexOf("="), n !== -1 && (r = e.substring(0, n), i = e.substring(n + 1)), r = Z(r), $(r) && (i = !$(i) || Z(i), Sr.call(t, r) ? zr(t[r]) ? t[r].push(i) : t[r] = [t[r], i] : t[r] = i)) + }), t + } + + function te(e) { + var t = []; + return o(e, function(e, n) { + zr(e) ? o(e, function(e) { + t.push(re(n, !0) + (e === !0 ? "" : "=" + re(e, !0))) + }) : t.push(re(n, !0) + (e === !0 ? "" : "=" + re(e, !0))) + }), t.length ? t.join("&") : "" + } + + function ne(e) { + return re(e, !0) + .replace(/%26/gi, "&") + .replace(/%3D/gi, "=") + .replace(/%2B/gi, "+") + } + + function re(e, t) { + return encodeURIComponent(e) + .replace(/%40/gi, "@") + .replace(/%3A/gi, ":") + .replace(/%24/g, "$") + .replace(/%2C/gi, ",") + .replace(/%3B/gi, ";") + .replace(/%20/g, t ? "%20" : "+") + } + + function ie(e, t) { + var n, r, i = Jr.length; + for (r = 0; r < i; ++r) + if (n = Jr[r] + t, _(n = e.getAttribute(n))) return n; + return null + } + + function oe(e, t) { + var n, r, i = {}; + o(Jr, function(t) { + var i = t + "app"; + !n && e.hasAttribute && e.hasAttribute(i) && (n = e, r = e.getAttribute(i)) + }), o(Jr, function(t) { + var i, o = t + "app"; + !n && (i = e.querySelector("[" + o.replace(":", "\\:") + "]")) && (n = i, r = i.getAttribute(o)) + }), n && (i.strictDi = null !== ie(n, "strict-di"), t(n, r ? [r] : [], i)) + } + + function ae(n, r, i) { + w(i) || (i = {}); + var a = { + strictDi: !1 + }; + i = f(a, i); + var s = function() { + if (n = Ar(n), n.injector()) { + var e = n[0] === t ? "document" : X(n); + throw Vr("btstrpd", "App already bootstrapped with this element '{0}'", e.replace(//, ">")) + } + r = r || [], r.unshift(["$provide", function(e) { + e.value("$rootElement", n) + }]), i.debugInfoEnabled && r.push(["$compileProvider", function(e) { + e.debugInfoEnabled(!0) + }]), r.unshift("ng"); + var o = tt(r, i.strictDi); + return o.invoke(["$rootScope", "$rootElement", "$compile", "$injector", function(e, t, n, r) { + e.$apply(function() { + t.data("$injector", r), n(t)(e) + }) + }]), o + }, + l = /^NG_ENABLE_DEBUG_INFO!/, + u = /^NG_DEFER_BOOTSTRAP!/; + return e && l.test(e.name) && (i.debugInfoEnabled = !0, e.name = e.name.replace(l, "")), e && !u.test(e.name) ? s() : (e.name = e.name.replace(u, ""), Wr.resumeBootstrap = function(e) { + return o(e, function(e) { + r.push(e) + }), s() + }, void(E(Wr.resumeDeferredBootstrap) && Wr.resumeDeferredBootstrap())) + } + + function se() { + e.name = "NG_ENABLE_DEBUG_INFO!" + e.name, e.location.reload() + } + + function le(e) { + var t = Wr.element(e) + .injector(); + if (!t) throw Vr("test", "no injector found for element argument to getTestability"); + return t.get("$$testability") + } + + function ue(e, t) { + return t = t || "_", e.replace(Xr, function(e, n) { + return (n ? t : "") + e.toLowerCase() + }) + } + + function ce() { + var t; + if (!Zr) { + var r = Yr(); + jr = b(r) ? e.jQuery : r ? e[r] : n, jr && jr.fn.on ? (Ar = jr, f(jr.fn, { + scope: wi.scope, + isolateScope: wi.isolateScope, + controller: wi.controller, + injector: wi.injector, + inheritedData: wi.inheritedData + }), t = jr.cleanData, jr.cleanData = function(e) { + var n; + if (Ur) Ur = !1; + else + for (var r, i = 0; null != (r = e[i]); i++) n = jr._data(r, "events"), n && n.$destroy && jr(r) + .triggerHandler("$destroy"); + t(e) + }) : Ar = Me, Wr.element = Ar, Zr = !0 + } + } + + function fe(e, t, n) { + if (!e) throw Vr("areq", "Argument '{0}' is {1}", t || "?", n || "required"); + return e + } + + function de(e, t, n) { + return n && zr(e) && (e = e[e.length - 1]), fe(E(e), t, "not a function, got " + (e && "object" == typeof e ? e.constructor.name || "Object" : typeof e)), e + } + + function he(e, t) { + if ("hasOwnProperty" === e) throw Vr("badname", "hasOwnProperty is not a valid {0} name", t) + } + + function pe(e, t, n) { + if (!t) return e; + for (var r, i = t.split("."), o = e, a = i.length, s = 0; s < a; s++) r = i[s], e && (e = (o = e)[r]); + return !n && E(e) ? q(o, e) : e + } + + function ve(e) { + for (var t, n = e[0], r = e[e.length - 1], i = 1; n !== r && (n = n.nextSibling); i++)(t || e[i] !== n) && (t || (t = Ar(Lr.call(e, 0, i))), t.push(n)); + return t || e + } + + function me() { + return Object.create(null) + } + + function ge(e) { + function t(e, t, n) { + return e[t] || (e[t] = n()) + } + var n = r("$injector"), + i = r("ng"), + o = t(e, "angular", Object); + return o.$$minErr = o.$$minErr || r, t(o, "module", function() { + var e = {}; + return function(r, o, a) { + var s = function(e, t) { + if ("hasOwnProperty" === e) throw i("badname", "hasOwnProperty is not a valid {0} name", t) + }; + return s(r, "module"), o && e.hasOwnProperty(r) && (e[r] = null), t(e, r, function() { + function e(e, t, n, r) { + return r || (r = i), + function() { + return r[n || "push"]([e, t, arguments]), c + } + } + + function t(e, t) { + return function(n, o) { + return o && E(o) && (o.$$moduleName = r), i.push([e, t, arguments]), c + } + } + if (!o) throw n("nomod", "Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.", r); + var i = [], + s = [], + l = [], + u = e("$injector", "invoke", "push", s), + c = { + _invokeQueue: i, + _configBlocks: s, + _runBlocks: l, + requires: o, + name: r, + provider: t("$provide", "provider"), + factory: t("$provide", "factory"), + service: t("$provide", "service"), + value: e("$provide", "value"), + constant: e("$provide", "constant", "unshift"), + decorator: t("$provide", "decorator"), + animation: t("$animateProvider", "register"), + filter: t("$filterProvider", "register"), + controller: t("$controllerProvider", "register"), + directive: t("$compileProvider", "directive"), + config: u, + run: function(e) { + return l.push(e), this + } + }; + return a && u(a), c + }) + } + }) + } + + function ye(e) { + var t = []; + return JSON.stringify(e, function(e, n) { + if (n = B(e, n), w(n)) { + if (t.indexOf(n) >= 0) return "..."; + t.push(n) + } + return n + }) + } + + function be(e) { + return "function" == typeof e ? e.toString() + .replace(/ \{[\s\S]*$/, "") : b(e) ? "undefined" : "string" != typeof e ? ye(e) : e + } + + function $e(t) { + f(t, { + bootstrap: ae, + copy: V, + extend: f, + merge: d, + equals: H, + element: Ar, + forEach: o, + injector: tt, + noop: v, + bind: q, + toJson: G, + fromJson: K, + identity: m, + isUndefined: b, + isDefined: $, + isString: _, + isFunction: E, + isObject: w, + isNumber: C, + isElement: R, + isArray: zr, + version: ai, + isDate: k, + lowercase: Er, + uppercase: Or, + callbacks: { + counter: 0 + }, + getTestability: le, + $$minErr: r, + $$csp: Kr, + reloadWithDebugInfo: se + }), (Fr = ge(e))("ng", ["ngLocale"], ["$provide", function(e) { + e.provider({ + $$sanitizeUri: $n + }), e.provider("$compile", ft) + .directive({ + a: Eo, + input: qo, + textarea: qo, + form: Po, + script: Da, + select: Va, + style: Ha, + option: Wa, + ngBind: Ko, + ngBindHtml: Qo, + ngBindTemplate: Yo, + ngClass: Xo, + ngClassEven: ea, + ngClassOdd: Zo, + ngCloak: ta, + ngController: na, + ngForm: Ao, + ngHide: Pa, + ngIf: oa, + ngInclude: aa, + ngInit: la, + ngNonBindable: xa, + ngPluralize: Ea, + ngRepeat: Sa, + ngShow: Ta, + ngStyle: Aa, + ngSwitch: ja, + ngSwitchWhen: Fa, + ngSwitchDefault: La, + ngOptions: ka, + ngTransclude: Ra, + ngModel: ba, + ngList: ua, + ngChange: Jo, + pattern: za, + ngPattern: za, + required: Ua, + ngRequired: Ua, + minlength: Ba, + ngMinlength: Ba, + maxlength: qa, + ngMaxlength: qa, + ngValue: Go, + ngModelOptions: wa + }) + .directive({ + ngInclude: sa + }) + .directive(So) + .directive(ra), e.provider({ + $anchorScroll: nt, + $animate: Ri, + $animateCss: Ii, + $$animateJs: Fi, + $$animateQueue: Li, + $$AnimateRunner: Ni, + $$animateAsyncRun: Di, + $browser: lt, + $cacheFactory: ut, + $controller: mt, + $document: gt, + $exceptionHandler: yt, + $filter: Fn, + $$forceReflow: zi, + $interpolate: At, + $interval: jt, + $http: Ot, + $httpParamSerializer: $t, + $httpParamSerializerJQLike: wt, + $httpBackend: Tt, + $xhrFactory: Mt, + $location: Gt, + $log: Kt, + $parse: pn, + $rootScope: bn, + $q: vn, + $$q: mn, + $sce: Cn, + $sceDelegate: _n, + $sniffer: kn, + $templateCache: ct, + $templateRequest: En, + $$testability: Sn, + $timeout: On, + $window: Pn, + $$rAF: yn, + $$jqLite: Qe, + $$HashMap: ki, + $$cookieReader: jn + }) + }]) + } + + function we() { + return ++li + } + + function xe(e) { + return e.replace(fi, function(e, t, n, r) { + return r ? n.toUpperCase() : n + }) + .replace(di, "Moz$1") + } + + function _e(e) { + return !mi.test(e) + } + + function Ce(e) { + var t = e.nodeType; + return t === ei || !t || t === ii + } + + function ke(e) { + for (var t in si[e.ng339]) return !0; + return !1 + } + + function Ee(e, t) { + var n, r, i, a, s = t.createDocumentFragment(), + l = []; + if (_e(e)) l.push(t.createTextNode(e)); + else { + for (n = n || s.appendChild(t.createElement("div")), r = (gi.exec(e) || ["", ""])[1].toLowerCase(), i = bi[r] || bi._default, n.innerHTML = i[1] + e.replace(yi, "<$1>") + i[2], a = i[0]; a--;) n = n.lastChild; + l = U(l, n.childNodes), n = s.firstChild, n.textContent = "" + } + return s.textContent = "", s.innerHTML = "", o(l, function(e) { + s.appendChild(e) + }), s + } + + function Se(e, n) { + n = n || t; + var r; + return (r = vi.exec(e)) ? [n.createElement(r[1])] : (r = Ee(e, n)) ? r.childNodes : [] + } + + function Oe(e, t) { + var n = e.parentNode; + n && n.replaceChild(t, e), t.appendChild(e) + } + + function Me(e) { + if (e instanceof Me) return e; + var t; + if (_(e) && (e = Br(e), t = !0), !(this instanceof Me)) { + if (t && "<" != e.charAt(0)) throw pi("nosel", "Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element"); + return new Me(e) + } + t ? Ie(this, Se(e)) : Ie(this, e) + } + + function Te(e) { + return e.cloneNode(!0) + } + + function Pe(e, t) { + if (t || je(e), e.querySelectorAll) + for (var n = e.querySelectorAll("*"), r = 0, i = n.length; r < i; r++) je(n[r]) + } + + function Ae(e, t, n, r) { + if ($(r)) throw pi("offargs", "jqLite#off() does not support the `selector` argument"); + var i = Fe(e), + a = i && i.events, + s = i && i.handle; + if (s) + if (t) { + var l = function(t) { + var r = a[t]; + $(n) && I(r || [], n), $(n) && r && r.length > 0 || (ci(e, t, s), delete a[t]) + }; + o(t.split(" "), function(e) { + l(e), hi[e] && l(hi[e]) + }) + } else + for (t in a) "$destroy" !== t && ci(e, t, s), delete a[t] + } + + function je(e, t) { + var r = e.ng339, + i = r && si[r]; + if (i) { + if (t) return void delete i.data[t]; + i.handle && (i.events.$destroy && i.handle({}, "$destroy"), Ae(e)), delete si[r], e.ng339 = n + } + } + + function Fe(e, t) { + var r = e.ng339, + i = r && si[r]; + return t && !i && (e.ng339 = r = we(), i = si[r] = { + events: {}, + data: {}, + handle: n + }), i + } + + function Le(e, t, n) { + if (Ce(e)) { + var r = $(n), + i = !r && t && !w(t), + o = !t, + a = Fe(e, !i), + s = a && a.data; + if (r) s[t] = n; + else { + if (o) return s; + if (i) return s && s[t]; + f(s, t) + } + } + } + + function Re(e, t) { + return !!e.getAttribute && (" " + (e.getAttribute("class") || "") + " ") + .replace(/[\n\t]/g, " ") + .indexOf(" " + t + " ") > -1 + } + + function De(e, t) { + t && e.setAttribute && o(t.split(" "), function(t) { + e.setAttribute("class", Br((" " + (e.getAttribute("class") || "") + " ") + .replace(/[\n\t]/g, " ") + .replace(" " + Br(t) + " ", " "))) + }) + } + + function Ne(e, t) { + if (t && e.setAttribute) { + var n = (" " + (e.getAttribute("class") || "") + " ") + .replace(/[\n\t]/g, " "); + o(t.split(" "), function(e) { + e = Br(e), n.indexOf(" " + e + " ") === -1 && (n += e + " ") + }), e.setAttribute("class", Br(n)) + } + } + + function Ie(e, t) { + if (t) + if (t.nodeType) e[e.length++] = t; + else { + var n = t.length; + if ("number" == typeof n && t.window !== t) { + if (n) + for (var r = 0; r < n; r++) e[e.length++] = t[r] + } else e[e.length++] = t + } + } + + function Ve(e, t) { + return We(e, "$" + (t || "ngController") + "Controller") + } + + function We(e, t, n) { + e.nodeType == ii && (e = e.documentElement); + for (var r = zr(t) ? t : [t]; e;) { + for (var i = 0, o = r.length; i < o; i++) + if ($(n = Ar.data(e, r[i]))) return n; + e = e.parentNode || e.nodeType === oi && e.host + } + } + + function He(e) { + for (Pe(e, !0); e.firstChild;) e.removeChild(e.firstChild) + } + + function Ue(e, t) { + t || Pe(e); + var n = e.parentNode; + n && n.removeChild(e) + } + + function ze(t, n) { + n = n || e, "complete" === n.document.readyState ? n.setTimeout(t) : Ar(n) + .on("load", t) + } + + function qe(e, t) { + var n = xi[t.toLowerCase()]; + return n && _i[N(e)] && n + } + + function Be(e) { + return Ci[e] + } + + function Ge(e, t) { + var n = function(n, r) { + n.isDefaultPrevented = function() { + return n.defaultPrevented + }; + var i = t[r || n.type], + o = i ? i.length : 0; + if (o) { + if (b(n.immediatePropagationStopped)) { + var a = n.stopImmediatePropagation; + n.stopImmediatePropagation = function() { + n.immediatePropagationStopped = !0, n.stopPropagation && n.stopPropagation(), a && a.call(n) + } + } + n.isImmediatePropagationStopped = function() { + return n.immediatePropagationStopped === !0 + }; + var s = i.specialHandlerWrapper || Ke; + o > 1 && (i = W(i)); + for (var l = 0; l < o; l++) n.isImmediatePropagationStopped() || s(e, n, i[l]) + } + }; + return n.elem = e, n + } + + function Ke(e, t, n) { + n.call(e, t) + } + + function Ye(e, t, n) { + var r = t.relatedTarget; + r && (r === e || $i.call(e, r)) || n.call(e, t) + } + + function Qe() { + this.$get = function() { + return f(Me, { + hasClass: function(e, t) { + return e.attr && (e = e[0]), Re(e, t) + }, + addClass: function(e, t) { + return e.attr && (e = e[0]), Ne(e, t) + }, + removeClass: function(e, t) { + return e.attr && (e = e[0]), De(e, t) + } + }) + } + } + + function Je(e, t) { + var n = e && e.$$hashKey; + if (n) return "function" == typeof n && (n = e.$$hashKey()), n; + var r = typeof e; + return n = "function" == r || "object" == r && null !== e ? e.$$hashKey = r + ":" + (t || l)() : r + ":" + e + } + + function Xe(e, t) { + if (t) { + var n = 0; + this.nextUid = function() { + return ++n + } + } + o(e, this.put, this) + } + + function Ze(e) { + var t = e.toString() + .replace(Mi, ""), + n = t.match(Ei); + return n ? "function(" + (n[1] || "") + .replace(/[\s\r\n]+/, " ") + ")" : "fn" + } + + function et(e, t, n) { + var r, i, a, s; + if ("function" == typeof e) { + if (!(r = e.$inject)) { + if (r = [], e.length) { + if (t) throw _(n) && n || (n = e.name || Ze(e)), Ti("strictdi", "{0} is not using explicit annotation and cannot be invoked in strict mode", n); + i = e.toString() + .replace(Mi, ""), a = i.match(Ei), o(a[1].split(Si), function(e) { + e.replace(Oi, function(e, t, n) { + r.push(n) + }) + }) + } + e.$inject = r + } + } else zr(e) ? (s = e.length - 1, de(e[s], "fn"), r = e.slice(0, s)) : de(e, "fn", !0); + return r + } + + function tt(e, t) { + function r(e) { + return function(t, n) { + return w(t) ? void o(t, s(e)) : e(t, n) + } + } + + function i(e, t) { + if (he(e, "service"), (E(t) || zr(t)) && (t = C.instantiate(t)), !t.$get) throw Ti("pget", "Provider '{0}' must define $get factory method.", e); + return x[e + m] = t + } + + function a(e, t) { + return function() { + var n = S.invoke(t, this); + if (b(n)) throw Ti("undef", "Provider '{0}' must return a value from $get factory method.", e); + return n + } + } + + function l(e, t, n) { + return i(e, { + $get: n !== !1 ? a(e, t) : t + }) + } + + function u(e, t) { + return l(e, ["$injector", function(e) { + return e.instantiate(t) + }]) + } + + function c(e, t) { + return l(e, g(t), !1) + } + + function f(e, t) { + he(e, "constant"), x[e] = t, k[e] = t + } + + function d(e, t) { + var n = C.get(e + m), + r = n.$get; + n.$get = function() { + var e = S.invoke(r, n); + return S.invoke(t, null, { + $delegate: e + }) + } + } + + function h(e) { + fe(b(e) || zr(e), "modulesToLoad", "not an array"); + var t, n = []; + return o(e, function(e) { + function r(e) { + var t, n; + for (t = 0, n = e.length; t < n; t++) { + var r = e[t], + i = C.get(r[0]); + i[r[1]].apply(i, r[2]) + } + } + if (!$.get(e)) { + $.put(e, !0); + try { + _(e) ? (t = Fr(e), n = n.concat(h(t.requires)) + .concat(t._runBlocks), r(t._invokeQueue), r(t._configBlocks)) : E(e) ? n.push(C.invoke(e)) : zr(e) ? n.push(C.invoke(e)) : de(e, "module") + } catch (t) { + throw zr(e) && (e = e[e.length - 1]), t.message && t.stack && t.stack.indexOf(t.message) == -1 && (t = t.message + "\n" + t.stack), Ti("modulerr", "Failed to instantiate module {0} due to:\n{1}", e, t.stack || t.message || t) + } + } + }), n + } + + function p(e, n) { + function r(t, r) { + if (e.hasOwnProperty(t)) { + if (e[t] === v) throw Ti("cdep", "Circular dependency found: {0}", t + " <- " + y.join(" <- ")); + return e[t] + } + try { + return y.unshift(t), e[t] = v, e[t] = n(t, r) + } catch (n) { + throw e[t] === v && delete e[t], n + } finally { + y.shift() + } + } + + function i(e, n, i, o) { + "string" == typeof i && (o = i, i = null); + var a, s, l, u = [], + c = tt.$$annotate(e, t, o); + for (s = 0, a = c.length; s < a; s++) { + if (l = c[s], "string" != typeof l) throw Ti("itkn", "Incorrect injection token! Expected service name as string, got {0}", l); + u.push(i && i.hasOwnProperty(l) ? i[l] : r(l, o)) + } + return zr(e) && (e = e[a]), e.apply(n, u) + } + + function o(e, t, n) { + var r = Object.create((zr(e) ? e[e.length - 1] : e) + .prototype || null), + o = i(e, r, t, n); + return w(o) || E(o) ? o : r + } + return { + invoke: i, + instantiate: o, + get: r, + annotate: tt.$$annotate, + has: function(t) { + return x.hasOwnProperty(t + m) || e.hasOwnProperty(t) + } + } + } + t = t === !0; + var v = {}, + m = "Provider", + y = [], + $ = new Xe([], !0), + x = { + $provide: { + provider: r(i), + factory: r(l), + service: r(u), + value: r(c), + constant: r(f), + decorator: d + } + }, + C = x.$injector = p(x, function(e, t) { + throw Wr.isString(t) && y.push(t), Ti("unpr", "Unknown provider: {0}", y.join(" <- ")) + }), + k = {}, + S = k.$injector = p(k, function(e, t) { + var r = C.get(e + m, t); + return S.invoke(r.$get, r, n, e) + }); + return o(h(e), function(e) { + e && S.invoke(e) + }), S + } + + function nt() { + var e = !0; + this.disableAutoScrolling = function() { + e = !1 + }, this.$get = ["$window", "$location", "$rootScope", function(t, n, r) { + function i(e) { + var t = null; + return Array.prototype.some.call(e, function(e) { + if ("a" === N(e)) return t = e, !0 + }), t + } + + function o() { + var e = s.yOffset; + if (E(e)) e = e(); + else if (R(e)) { + var n = e[0], + r = t.getComputedStyle(n); + e = "fixed" !== r.position ? 0 : n.getBoundingClientRect() + .bottom + } else C(e) || (e = 0); + return e + } + + function a(e) { + if (e) { + e.scrollIntoView(); + var n = o(); + if (n) { + var r = e.getBoundingClientRect() + .top; + t.scrollBy(0, r - n) + } + } else t.scrollTo(0, 0) + } + + function s(e) { + e = _(e) ? e : n.hash(); + var t; + e ? (t = l.getElementById(e)) ? a(t) : (t = i(l.getElementsByName(e))) ? a(t) : "top" === e && a(null) : a(null) + } + var l = t.document; + return e && r.$watch(function() { + return n.hash() + }, function(e, t) { + e === t && "" === e || ze(function() { + r.$evalAsync(s) + }) + }), s + }] + } + + function rt(e, t) { + return e || t ? e ? t ? (zr(e) && (e = e.join(" ")), zr(t) && (t = t.join(" ")), e + " " + t) : e : t : "" + } + + function it(e) { + for (var t = 0; t < e.length; t++) { + var n = e[t]; + if (n.nodeType === Ai) return n + } + } + + function ot(e) { + _(e) && (e = e.split(" ")); + var t = me(); + return o(e, function(e) { + e.length && (t[e] = !0) + }), t + } + + function at(e) { + return w(e) ? e : {} + } + + function st(e, t, n, r) { + function i(e) { + try { + e.apply(null, z(arguments, 1)) + } finally { + if (y--, 0 === y) + for (; $.length;) try { + $.pop()() + } catch (e) { + n.error(e) + } + } + } + + function a(e) { + var t = e.indexOf("#"); + return t === -1 ? "" : e.substr(t) + } + + function s() { + k = null, u(), c() + } + + function l() { + try { + return h.state + } catch (e) {} + } + + function u() { + w = l(), w = b(w) ? null : w, H(w, O) && (w = O), O = w + } + + function c() { + _ === f.url() && x === w || (_ = f.url(), x = w, o(E, function(e) { + e(f.url(), w) + })) + } + var f = this, + d = (t[0], e.location), + h = e.history, + p = e.setTimeout, + m = e.clearTimeout, + g = {}; + f.isMock = !1; + var y = 0, + $ = []; + f.$$completeOutstandingRequest = i, f.$$incOutstandingRequestCount = function() { + y++ + }, f.notifyWhenNoOutstandingRequests = function(e) { + 0 === y ? e() : $.push(e) + }; + var w, x, _ = d.href, + C = t.find("base"), + k = null; + u(), x = w, f.url = function(t, n, i) { + if (b(i) && (i = null), d !== e.location && (d = e.location), h !== e.history && (h = e.history), t) { + var o = x === i; + if (_ === t && (!r.history || o)) return f; + var s = _ && Nt(_) === Nt(t); + return _ = t, x = i, !r.history || s && o ? (s && !k || (k = t), n ? d.replace(t) : s ? d.hash = a(t) : d.href = t, d.href !== t && (k = t)) : (h[n ? "replaceState" : "pushState"](i, "", t), u(), x = w), f + } + return k || d.href.replace(/%27/g, "'") + }, f.state = function() { + return w + }; + var E = [], + S = !1, + O = null; + f.onUrlChange = function(t) { + return S || (r.history && Ar(e) + .on("popstate", s), Ar(e) + .on("hashchange", s), S = !0), E.push(t), t + }, f.$$applicationDestroyed = function() { + Ar(e) + .off("hashchange popstate", s) + }, f.$$checkUrlChange = c, f.baseHref = function() { + var e = C.attr("href"); + return e ? e.replace(/^(https?\:)?\/\/[^\/]*/, "") : "" + }, f.defer = function(e, t) { + var n; + return y++, n = p(function() { + delete g[n], i(e) + }, t || 0), g[n] = !0, n + }, f.defer.cancel = function(e) { + return !!g[e] && (delete g[e], m(e), i(v), !0) + } + } + + function lt() { + this.$get = ["$window", "$log", "$sniffer", "$document", function(e, t, n, r) { + return new st(e, r, t, n) + }] + } + + function ut() { + this.$get = function() { + function e(e, n) { + function i(e) { + e != d && (h ? h == e && (h = e.n) : h = e, o(e.n, e.p), o(e, d), d = e, d.n = null) + } + + function o(e, t) { + e != t && (e && (e.p = t), t && (t.n = e)) + } + if (e in t) throw r("$cacheFactory")("iid", "CacheId '{0}' is already taken!", e); + var a = 0, + s = f({}, n, { + id: e + }), + l = me(), + u = n && n.capacity || Number.MAX_VALUE, + c = me(), + d = null, + h = null; + return t[e] = { + put: function(e, t) { + if (!b(t)) { + if (u < Number.MAX_VALUE) { + var n = c[e] || (c[e] = { + key: e + }); + i(n) + } + return e in l || a++, l[e] = t, a > u && this.remove(h.key), t + } + }, + get: function(e) { + if (u < Number.MAX_VALUE) { + var t = c[e]; + if (!t) return; + i(t) + } + return l[e] + }, + remove: function(e) { + if (u < Number.MAX_VALUE) { + var t = c[e]; + if (!t) return; + t == d && (d = t.p), t == h && (h = t.n), o(t.n, t.p), delete c[e] + } + e in l && (delete l[e], a--) + }, + removeAll: function() { + l = me(), a = 0, c = me(), d = h = null + }, + destroy: function() { + l = null, s = null, c = null, delete t[e] + }, + info: function() { + return f({}, s, { + size: a + }) + } + } + } + var t = {}; + return e.info = function() { + var e = {}; + return o(t, function(t, n) { + e[n] = t.info() + }), e + }, e.get = function(e) { + return t[e] + }, e + } + } + + function ct() { + this.$get = ["$cacheFactory", function(e) { + return e("templates") + }] + } + + function ft(e, r) { + function i(e, t, n) { + var r = /^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/, + i = me(); + return o(e, function(e, o) { + if (e in k) return void(i[o] = k[e]); + var a = e.match(r); + if (!a) throw Vi("iscp", "Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}", t, o, e, n ? "controller bindings definition" : "isolate scope definition"); + i[o] = { + mode: a[1][0], + collection: "*" === a[2], + optional: "?" === a[3], + attrName: a[4] || o + }, a[4] && (k[e] = i[o]) + }), i + } + + function a(e, t) { + var n = { + isolateScope: null, + bindToController: null + }; + if (w(e.scope) && (e.bindToController === !0 ? (n.bindToController = i(e.scope, t, !0), n.isolateScope = {}) : n.isolateScope = i(e.scope, t, !1)), w(e.bindToController) && (n.bindToController = i(e.bindToController, t, !0)), w(n.bindToController)) { + var r = e.controller, + o = e.controllerAs; + if (!r) throw Vi("noctrl", "Cannot bind to controller without directive '{0}'s controller.", t); + if (!vt(r, o)) throw Vi("noident", "Cannot bind to controller without identifier for directive '{0}'.", t) + } + return n + } + + function l(e) { + var t = e.charAt(0); + if (!t || t !== Er(t)) throw Vi("baddir", "Directive name '{0}' is invalid. The first character must be a lowercase letter", e); + if (e !== e.trim()) throw Vi("baddir", "Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces", e) + } + var u = {}, + c = "Directive", + d = /^\s*directive\:\s*([\w\-]+)\s+(.*)$/, + h = /(([\w\-]+)(?:\:([^;]+))?;?)/, + y = D("ngSrc,ngSrcset,src,srcset"), + x = /^(?:(\^\^?)?(\?)?(\^\^?)?)?/, + C = /^(on[a-z]+|formaction)$/, + k = me(); + this.directive = function t(n, r) { + return he(n, "directive"), _(n) ? (l(n), fe(r, "directiveFactory"), u.hasOwnProperty(n) || (u[n] = [], e.factory(n + c, ["$injector", "$exceptionHandler", function(e, t) { + var r = []; + return o(u[n], function(i, o) { + try { + var a = e.invoke(i); + E(a) ? a = { + compile: g(a) + } : !a.compile && a.link && (a.compile = g(a.link)), a.priority = a.priority || 0, a.index = o, a.name = a.name || n, a.require = a.require || a.controller && a.name, a.restrict = a.restrict || "EA", a.$$moduleName = i.$$moduleName, r.push(a) + } catch (e) { + t(e) + } + }), r + }])), u[n].push(r)) : o(n, s(t)), this + }, this.aHrefSanitizationWhitelist = function(e) { + return $(e) ? (r.aHrefSanitizationWhitelist(e), this) : r.aHrefSanitizationWhitelist() + }, this.imgSrcSanitizationWhitelist = function(e) { + return $(e) ? (r.imgSrcSanitizationWhitelist(e), this) : r.imgSrcSanitizationWhitelist() + }; + var S = !0; + this.debugInfoEnabled = function(e) { + return $(e) ? (S = e, this) : S + }, this.$get = ["$injector", "$interpolate", "$exceptionHandler", "$templateRequest", "$parse", "$controller", "$rootScope", "$sce", "$animate", "$$sanitizeUri", function(e, r, i, s, l, g, k, O, T, P) { + function A(e, t) { + try { + e.addClass(t) + } catch (e) {} + } + + function F(e, n, r, i, o) { + e instanceof Ar || (e = Ar(e)); + for (var a = /\S+/, s = 0, l = e.length; s < l; s++) { + var u = e[s]; + u.nodeType === ni && u.nodeValue.match(a) && Oe(u, e[s] = t.createElement("span")) + } + var c = R(e, n, e, r, i, o); + F.$$addScopeClass(e); + var f = null; + return function(t, n, r) { + fe(t, "scope"), o && o.needsNewScope && (t = t.$parent.$new()), r = r || {}; + var i = r.parentBoundTranscludeFn, + a = r.transcludeControllers, + s = r.futureParentElement; + i && i.$$boundTransclude && (i = i.$$boundTransclude), f || (f = L(s)); + var l; + if (l = "html" !== f ? Ar(te(f, Ar("
") + .append(e) + .html())) : n ? wi.clone.call(e) : e, a) + for (var u in a) l.data("$" + u + "Controller", a[u].instance); + return F.$$addScopeInfo(l, t), n && n(l, t), c && c(t, l, l, i), l + } + } + + function L(e) { + var t = e && e[0]; + return t && "foreignobject" !== N(t) && t.toString() + .match(/SVG/) ? "svg" : "html" + } + + function R(e, t, r, i, o, a) { + function s(e, r, i, o) { + var a, s, l, u, c, f, d, h, m; + if (p) { + var g = r.length; + for (m = new Array(g), c = 0; c < v.length; c += 3) d = v[c], m[d] = r[d] + } else m = r; + for (c = 0, f = v.length; c < f;) l = m[v[c++]], a = v[c++], s = v[c++], a ? (a.scope ? (u = e.$new(), F.$$addScopeInfo(Ar(l), u)) : u = e, h = a.transcludeOnThisElement ? D(e, a.transclude, o) : !a.templateOnThisElement && o ? o : !o && t ? D(e, t) : null, a(s, u, l, i, h)) : s && s(e, l.childNodes, n, o) + } + for (var l, u, c, f, d, h, p, v = [], m = 0; m < e.length; m++) l = new le, u = V(e[m], [], l, 0 === m ? i : n, o), c = u.length ? q(u, e[m], l, t, r, null, [], [], a) : null, c && c.scope && F.$$addScopeClass(l.$$element), d = c && c.terminal || !(f = e[m].childNodes) || !f.length ? null : R(f, c ? (c.transcludeOnThisElement || !c.templateOnThisElement) && c.transclude : t), (c || d) && (v.push(m, c, d), h = !0, p = p || c), a = null; + return h ? s : null + } + + function D(e, t, n) { + var r = function(r, i, o, a, s) { + return r || (r = e.$new(!1, s), r.$$transcluded = !0), t(r, i, { + parentBoundTranscludeFn: n, + transcludeControllers: o, + futureParentElement: a + }) + }; + return r + } + + function V(e, t, n, r, i) { + var o, a, s, l = e.nodeType, + u = n.$attr; + switch (l) { + case ei: + a = N(e), G(t, dt(a), "E", r, i); + for (var c, f, p, v, m, g, y = e.attributes, b = 0, $ = y && y.length; b < $; b++) { + var x = !1, + C = !1; + c = y[b], f = c.name, m = Br(c.value), v = dt(f), (g = pe.test(v)) && (f = f.replace(Wi, "") + .substr(8) + .replace(/_(.)/g, function(e, t) { + return t.toUpperCase() + })); + var k = v.match(ve); + k && K(k[1]) && (x = f, C = f.substr(0, f.length - 5) + "end", f = f.substr(0, f.length - 6)), p = dt(f.toLowerCase()), u[p] = f, !g && n.hasOwnProperty(p) || (n[p] = m, qe(e, p) && (n[p] = !0)), re(e, t, m, p, g), G(t, p, "A", r, i, x, C) + } + if ("input" === a && "hidden" === e.getAttribute("type") && e.setAttribute("autocomplete", "off"), s = e.className, w(s) && (s = s.animVal), _(s) && "" !== s) + for (; o = h.exec(s);) p = dt(o[2]), G(t, p, "C", r, i) && (n[p] = Br(o[3])), s = s.substr(o.index + o[0].length); + break; + case ni: + if (11 === Pr) + for (; e.parentNode && e.nextSibling && e.nextSibling.nodeType === ni;) e.nodeValue = e.nodeValue + e.nextSibling.nodeValue, e.parentNode.removeChild(e.nextSibling); + ee(t, e.nodeValue); + break; + case ri: + try { + o = d.exec(e.nodeValue), o && (p = dt(o[1]), G(t, p, "M", r, i) && (n[p] = Br(o[2]))) + } catch (e) {} + } + return t.sort(J), t + } + + function W(e, t, n) { + var r = [], + i = 0; + if (t && e.hasAttribute && e.hasAttribute(t)) { + do { + if (!e) throw Vi("uterdir", "Unterminated attribute, found '{0}' but no matching '{1}' found.", t, n); + e.nodeType == ei && (e.hasAttribute(t) && i++, e.hasAttribute(n) && i--), r.push(e), e = e.nextSibling + } while (i > 0) + } else r.push(e); + return Ar(r) + } + + function U(e, t, n) { + return function(r, i, o, a, s) { + return i = W(i[0], t, n), e(r, i, o, a, s) + } + } + + function q(e, r, o, a, s, l, u, c, f) { + function d(e, t, n, r) { + e && (n && (e = U(e, n, r)), e.require = m.require, e.directiveName = y, (T === m || m.$$isolateScope) && (e = oe(e, { + isolateScope: !0 + })), u.push(e)), t && (n && (t = U(t, n, r)), t.require = m.require, t.directiveName = y, (T === m || m.$$isolateScope) && (t = oe(t, { + isolateScope: !0 + })), c.push(t)) + } + + function h(e, t, n, r) { + var i; + if (_(t)) { + var o = t.match(x), + a = t.substring(o[0].length), + s = o[1] || o[3], + l = "?" === o[2]; + if ("^^" === s ? n = n.parent() : (i = r && r[a], i = i && i.instance), !i) { + var u = "$" + a + "Controller"; + i = s ? n.inheritedData(u) : n.data(u) + } + if (!i && !l) throw Vi("ctreq", "Controller '{0}', required by directive '{1}', can't be found!", a, e) + } else if (zr(t)) { + i = []; + for (var c = 0, f = t.length; c < f; c++) i[c] = h(e, t[c], n, r) + } + return i || null + } + + function p(e, t, n, r, i, o) { + var a = me(); + for (var s in r) { + var l = r[s], + u = { + $scope: l === T || l.$$isolateScope ? i : o, + $element: e, + $attrs: t, + $transclude: n + }, + c = l.controller; + "@" == c && (c = t[l.name]); + var f = g(c, u, !0, l.controllerAs); + a[l.name] = f, e.data("$" + l.name + "Controller", f.instance) + } + return a + } + + function v(e, t, i, a, s) { + function l(e, t, r) { + var i; + return M(e) || (r = t, t = e, e = n), R && (i = m), r || (r = R ? y.parent() : y), s(e, t, i, r, A) + } + var f, d, v, m, g, y, b, $, w; + r === i ? (b = o, y = o.$$element) : (y = Ar(i), b = new le(y, o)), v = t, T ? d = t.$new(!0) : S && (v = t.$parent), s && (g = l, g.$$boundTransclude = s), O && (m = p(y, b, g, O, d, t)), T && (F.$$addScopeInfo(y, d, !0, !(P && (P === T || P === T.$$originalDirective))), F.$$addScopeClass(y, !0), d.$$isolateBindings = T.$$isolateBindings, $ = se(t, b, d, d.$$isolateBindings, T), $ && d.$on("$destroy", $)); + for (var x in m) { + var _ = O[x], + C = m[x], + k = _.$$bindings.bindToController; + C.identifier && k && (w = se(v, b, C.instance, k, _)); + var E = C(); + E !== C.instance && (C.instance = E, y.data("$" + _.name + "Controller", E), w && w(), w = se(v, b, C.instance, k, _)) + } + for (H = 0, q = u.length; H < q; H++) f = u[H], ae(f, f.isolateScope ? d : t, y, b, f.require && h(f.directiveName, f.require, y, m), g); + var A = t; + for (T && (T.template || null === T.templateUrl) && (A = d), e && e(A, i.childNodes, n, s), H = c.length - 1; H >= 0; H--) f = c[H], ae(f, f.isolateScope ? d : t, y, b, f.require && h(f.directiveName, f.require, y, m), g) + } + f = f || {}; + for (var m, y, b, $, C, k = -Number.MAX_VALUE, S = f.newScopeDirective, O = f.controllerDirectives, T = f.newIsolateScopeDirective, P = f.templateDirective, A = f.nonTlbTranscludeDirective, j = !1, L = !1, R = f.hasElementTranscludeDirective, D = o.$$element = Ar(r), N = l, I = a, H = 0, q = e.length; H < q; H++) { + m = e[H]; + var G = m.$$start, + K = m.$$end; + if (G && (D = W(r, G, K)), b = n, k > m.priority) break; + if ((C = m.scope) && (m.templateUrl || (w(C) ? (Z("new/isolated scope", T || S, m, D), T = m) : Z("new/isolated scope", T, m, D)), S = S || m), y = m.name, !m.templateUrl && m.controller && (C = m.controller, O = O || me(), Z("'" + y + "' controller", O[y], m, D), O[y] = m), (C = m.transclude) && (j = !0, m.$$tlb || (Z("transclusion", A, m, D), A = m), "element" == C ? (R = !0, k = m.priority, b = D, D = o.$$element = Ar(t.createComment(" " + y + ": " + o[y] + " ")), r = D[0], ie(s, z(b), r), I = F(b, a, k, N && N.name, { + nonTlbTranscludeDirective: A + })) : (b = Ar(Te(r)) + .contents(), D.empty(), I = F(b, a, n, n, { + needsNewScope: m.$$isolateScope || m.$$newScope + }))), m.template) + if (L = !0, Z("template", P, m, D), P = m, C = E(m.template) ? m.template(D, o) : m.template, C = he(C), m.replace) { + if (N = m, b = _e(C) ? [] : pt(te(m.templateNamespace, Br(C))), r = b[0], 1 != b.length || r.nodeType !== ei) throw Vi("tplrt", "Template for directive '{0}' must have exactly one root element. {1}", y, ""); + ie(s, D, r); + var J = { + $attr: {} + }, + ee = V(r, [], J), + ne = e.splice(H + 1, e.length - (H + 1)); + (T || S) && B(ee, T, S), e = e.concat(ee) + .concat(ne), Y(o, J), q = e.length + } else D.html(C); + if (m.templateUrl) L = !0, Z("template", P, m, D), P = m, m.replace && (N = m), v = Q(e.splice(H, e.length - H), D, o, s, j && I, u, c, { + controllerDirectives: O, + newScopeDirective: S !== m && S, + newIsolateScopeDirective: T, + templateDirective: P, + nonTlbTranscludeDirective: A + }), q = e.length; + else if (m.compile) try { + $ = m.compile(D, o, I), E($) ? d(null, $, G, K) : $ && d($.pre, $.post, G, K) + } catch (e) { + i(e, X(D)) + } + m.terminal && (v.terminal = !0, k = Math.max(k, m.priority)) + } + return v.scope = S && S.scope === !0, v.transcludeOnThisElement = j, v.templateOnThisElement = L, v.transclude = I, f.hasElementTranscludeDirective = R, v + } + + function B(e, t, n) { + for (var r = 0, i = e.length; r < i; r++) e[r] = p(e[r], { + $$isolateScope: t, + $$newScope: n + }) + } + + function G(t, n, r, o, s, l, f) { + if (n === s) return null; + var d = null; + if (u.hasOwnProperty(n)) + for (var h, v = e.get(n + c), m = 0, g = v.length; m < g; m++) try { + if (h = v[m], (b(o) || o > h.priority) && h.restrict.indexOf(r) != -1) { + if (l && (h = p(h, { + $$start: l, + $$end: f + })), !h.$$bindings) { + var y = h.$$bindings = a(h, h.name); + w(y.isolateScope) && (h.$$isolateBindings = y.isolateScope) + } + t.push(h), d = h + } + } catch (e) { + i(e) + } + return d + } + + function K(t) { + if (u.hasOwnProperty(t)) + for (var n, r = e.get(t + c), i = 0, o = r.length; i < o; i++) + if (n = r[i], n.multiElement) return !0; + return !1 + } + + function Y(e, t) { + var n = t.$attr, + r = e.$attr, + i = e.$$element; + o(e, function(r, i) { + "$" != i.charAt(0) && (t[i] && t[i] !== r && (r += ("style" === i ? ";" : " ") + t[i]), e.$set(i, r, !0, n[i])) + }), o(t, function(t, o) { + "class" == o ? (A(i, t), e.class = (e.class ? e.class + " " : "") + t) : "style" == o ? (i.attr("style", i.attr("style") + ";" + t), e.style = (e.style ? e.style + ";" : "") + t) : "$" == o.charAt(0) || e.hasOwnProperty(o) || (e[o] = t, r[o] = n[o]) + }) + } + + function Q(e, t, n, r, i, a, l, u) { + var c, f, d = [], + h = t[0], + v = e.shift(), + m = p(v, { + templateUrl: null, + transclude: null, + replace: null, + $$originalDirective: v + }), + g = E(v.templateUrl) ? v.templateUrl(t, n) : v.templateUrl, + y = v.templateNamespace; + return t.empty(), s(g) + .then(function(s) { + var p, b, $, x; + if (s = he(s), v.replace) { + if ($ = _e(s) ? [] : pt(te(y, Br(s))), p = $[0], 1 != $.length || p.nodeType !== ei) throw Vi("tplrt", "Template for directive '{0}' must have exactly one root element. {1}", v.name, g); + b = { + $attr: {} + }, ie(r, t, p); + var _ = V(p, [], b); + w(v.scope) && B(_, !0), e = _.concat(e), Y(n, b) + } else p = h, t.html(s); + for (e.unshift(m), c = q(e, p, n, i, t, v, a, l, u), o(r, function(e, n) { + e == p && (r[n] = t[0]) + }), f = R(t[0].childNodes, i); d.length;) { + var C = d.shift(), + k = d.shift(), + E = d.shift(), + S = d.shift(), + O = t[0]; + if (!C.$$destroyed) { + if (k !== h) { + var M = k.className; + u.hasElementTranscludeDirective && v.replace || (O = Te(p)), ie(E, Ar(k), O), A(Ar(O), M) + } + x = c.transcludeOnThisElement ? D(C, c.transclude, S) : S, c(f, C, O, r, x) + } + } + d = null + }), + function(e, t, n, r, i) { + var o = i; + t.$$destroyed || (d ? d.push(t, n, r, o) : (c.transcludeOnThisElement && (o = D(t, c.transclude, i)), c(f, t, n, r, o))) + } + } + + function J(e, t) { + var n = t.priority - e.priority; + return 0 !== n ? n : e.name !== t.name ? e.name < t.name ? -1 : 1 : e.index - t.index + } + + function Z(e, t, n, r) { + function i(e) { + return e ? " (module: " + e + ")" : "" + } + if (t) throw Vi("multidir", "Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}", t.name, i(t.$$moduleName), n.name, i(n.$$moduleName), e, X(r)) + } + + function ee(e, t) { + var n = r(t, !0); + n && e.push({ + priority: 0, + compile: function(e) { + var t = e.parent(), + r = !!t.length; + return r && F.$$addBindingClass(t), + function(e, t) { + var i = t.parent(); + r || F.$$addBindingClass(i), F.$$addBindingInfo(i, n.expressions), e.$watch(n, function(e) { + t[0].nodeValue = e + }) + } + } + }) + } + + function te(e, n) { + switch (e = Er(e || "html")) { + case "svg": + case "math": + var r = t.createElement("div"); + return r.innerHTML = "<" + e + ">" + n + "", r.childNodes[0].childNodes; + default: + return n + } + } + + function ne(e, t) { + if ("srcdoc" == t) return O.HTML; + var n = N(e); + return "xlinkHref" == t || "form" == n && "action" == t || "img" != n && ("src" == t || "ngSrc" == t) ? O.RESOURCE_URL : void 0 + } + + function re(e, t, n, i, o) { + var a = ne(e, i); + o = y[i] || o; + var s = r(n, !0, a, o); + if (s) { + if ("multiple" === i && "select" === N(e)) throw Vi("selmulti", "Binding to the 'multiple' attribute is not supported. Element: {0}", X(e)); + t.push({ + priority: 100, + compile: function() { + return { + pre: function(e, t, l) { + var u = l.$$observers || (l.$$observers = me()); + if (C.test(i)) throw Vi("nodomevents", "Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead."); + var c = l[i]; + c !== n && (s = c && r(c, !0, a, o), n = c), s && (l[i] = s(e), (u[i] || (u[i] = [])) + .$$inter = !0, (l.$$observers && l.$$observers[i].$$scope || e) + .$watch(s, function(e, t) { + "class" === i && e != t ? l.$updateClass(e, t) : l.$set(i, e) + })) + } + } + } + }) + } + } + + function ie(e, n, r) { + var i, o, a = n[0], + s = n.length, + l = a.parentNode; + if (e) + for (i = 0, o = e.length; i < o; i++) + if (e[i] == a) { + e[i++] = r; + for (var u = i, c = u + s - 1, f = e.length; u < f; u++, c++) c < f ? e[u] = e[c] : delete e[u]; + e.length -= s - 1, e.context === a && (e.context = r); + break + } + l && l.replaceChild(r, a); + var d = t.createDocumentFragment(); + d.appendChild(a), Ar.hasData(a) && (Ar.data(r, Ar.data(a)), jr ? (Ur = !0, jr.cleanData([a])) : delete Ar.cache[a[Ar.expando]]); + for (var h = 1, p = n.length; h < p; h++) { + var v = n[h]; + Ar(v) + .remove(), d.appendChild(v), delete n[h] + } + n[0] = r, n.length = 1 + } + + function oe(e, t) { + return f(function() { + return e.apply(null, arguments) + }, e, t) + } + + function ae(e, t, n, r, o, a) { + try { + e(t, n, r, o, a) + } catch (e) { + i(e, X(n)) + } + } + + function se(e, t, n, i, a) { + var s = []; + return o(i, function(i, o) { + var u, c, f, d, h = i.attrName, + p = i.optional, + m = i.mode; + switch (m) { + case "@": + p || Sr.call(t, h) || (n[o] = t[h] = void 0), t.$observe(h, function(e) { + _(e) && (n[o] = e) + }), t.$$observers[h].$$scope = e, u = t[h], _(u) ? n[o] = r(u)(e) : j(u) && (n[o] = u); + break; + case "=": + if (!Sr.call(t, h)) { + if (p) break; + t[h] = void 0 + } + if (p && !t[h]) break; + c = l(t[h]), d = c.literal ? H : function(e, t) { + return e === t || e !== e && t !== t + }, f = c.assign || function() { + throw u = n[o] = c(e), Vi("nonassign", "Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!", t[h], h, a.name) + }, u = n[o] = c(e); + var g = function(t) { + return d(t, n[o]) || (d(t, u) ? f(e, t = n[o]) : n[o] = t), u = t + }; + g.$stateful = !0; + var y; + y = i.collection ? e.$watchCollection(t[h], g) : e.$watch(l(t[h], g), null, c.literal), s.push(y); + break; + case "&": + if (c = t.hasOwnProperty(h) ? l(t[h]) : v, c === v && p) break; + n[o] = function(t) { + return c(e, t) + } + } + }), s.length && function() { + for (var e = 0, t = s.length; e < t; ++e) s[e]() + } + } + var le = function(e, t) { + if (t) { + var n, r, i, o = Object.keys(t); + for (n = 0, r = o.length; n < r; n++) i = o[n], this[i] = t[i] + } else this.$attr = {}; + this.$$element = e + }; + le.prototype = { + $normalize: dt, + $addClass: function(e) { + e && e.length > 0 && T.addClass(this.$$element, e) + }, + $removeClass: function(e) { + e && e.length > 0 && T.removeClass(this.$$element, e) + }, + $updateClass: function(e, t) { + var n = ht(e, t); + n && n.length && T.addClass(this.$$element, n); + var r = ht(t, e); + r && r.length && T.removeClass(this.$$element, r) + }, + $set: function(e, t, n, r) { + var a, s = this.$$element[0], + l = qe(s, e), + u = Be(e), + c = e; + if (l ? (this.$$element.prop(e, t), r = l) : u && (this[u] = t, c = u), this[e] = t, r ? this.$attr[e] = r : (r = this.$attr[e], r || (this.$attr[e] = r = ue(e, "-"))), a = N(this.$$element), "a" === a && "href" === e || "img" === a && "src" === e) this[e] = t = P(t, "src" === e); + else if ("img" === a && "srcset" === e && $(t)) { + for (var f = "", d = Br(t), h = /(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/, p = /\s/.test(d) ? h : /(,)/, v = d.split(p), m = Math.floor(v.length / 2), g = 0; g < m; g++) { + var y = 2 * g; + f += P(Br(v[y]), !0), f += " " + Br(v[y + 1]) + } + var w = Br(v[2 * g]) + .split(/\s/); + f += P(Br(w[0]), !0), 2 === w.length && (f += " " + Br(w[1])), this[e] = t = f + } + n !== !1 && (null === t || b(t) ? this.$$element.removeAttr(r) : this.$$element.attr(r, t)); + var x = this.$$observers; + x && o(x[c], function(e) { + try { + e(t) + } catch (e) { + i(e) + } + }) + }, + $observe: function(e, t) { + var n = this, + r = n.$$observers || (n.$$observers = me()), + i = r[e] || (r[e] = []); + return i.push(t), k.$evalAsync(function() { + i.$$inter || !n.hasOwnProperty(e) || b(n[e]) || t(n[e]) + }), + function() { + I(i, t) + } + } + }; + var ce = r.startSymbol(), + de = r.endSymbol(), + he = "{{" == ce && "}}" == de ? m : function(e) { + return e.replace(/\{\{/g, ce) + .replace(/}}/g, de) + }, + pe = /^ngAttr[A-Z]/, + ve = /^(.+)Start$/; + return F.$$addBindingInfo = S ? function(e, t) { + var n = e.data("$binding") || []; + zr(t) ? n = n.concat(t) : n.push(t), e.data("$binding", n) + } : v, F.$$addBindingClass = S ? function(e) { + A(e, "ng-binding") + } : v, F.$$addScopeInfo = S ? function(e, t, n, r) { + var i = n ? r ? "$isolateScopeNoTemplate" : "$isolateScope" : "$scope"; + e.data(i, t) + } : v, F.$$addScopeClass = S ? function(e, t) { + A(e, t ? "ng-isolate-scope" : "ng-scope") + } : v, F + }] + } + + function dt(e) { + return xe(e.replace(Wi, "")) + } + + function ht(e, t) { + var n = "", + r = e.split(/\s+/), + i = t.split(/\s+/); + e: for (var o = 0; o < r.length; o++) { + for (var a = r[o], s = 0; s < i.length; s++) + if (a == i[s]) continue e; + n += (n.length > 0 ? " " : "") + a + } + return n + } + + function pt(e) { + e = Ar(e); + var t = e.length; + if (t <= 1) return e; + for (; t--;) { + var n = e[t]; + n.nodeType === ri && Rr.call(e, t, 1) + } + return e + } + + function vt(e, t) { + if (t && _(t)) return t; + if (_(e)) { + var n = Ui.exec(e); + if (n) return n[3] + } + } + + function mt() { + var e = {}, + t = !1; + this.register = function(t, n) { + he(t, "controller"), w(t) ? f(e, t) : e[t] = n + }, this.allowGlobals = function() { + t = !0 + }, this.$get = ["$injector", "$window", function(i, o) { + function a(e, t, n, i) { + if (!e || !w(e.$scope)) throw r("$controller")("noscp", "Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.", i, t); + e.$scope[t] = n + } + return function(r, s, l, u) { + var c, d, h, p; + if (l = l === !0, u && _(u) && (p = u), _(r)) { + if (d = r.match(Ui), !d) throw Hi("ctrlfmt", "Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.", r); + h = d[1], p = p || d[3], r = e.hasOwnProperty(h) ? e[h] : pe(s.$scope, h, !0) || (t ? pe(o, h, !0) : n), de(r, h, !0) + } + if (l) { + var v = (zr(r) ? r[r.length - 1] : r) + .prototype; + c = Object.create(v || null), p && a(s, p, c, h || r.name); + var m; + return m = f(function() { + var e = i.invoke(r, c, s, h); + return e !== c && (w(e) || E(e)) && (c = e, p && a(s, p, c, h || r.name)), c + }, { + instance: c, + identifier: p + }) + } + return c = i.instantiate(r, s, h), p && a(s, p, c, h || r.name), c + } + }] + } + + function gt() { + this.$get = ["$window", function(e) { + return Ar(e.document) + }] + } + + function yt() { + this.$get = ["$log", function(e) { + return function(t, n) { + e.error.apply(e, arguments) + } + }] + } + + function bt(e) { + return w(e) ? k(e) ? e.toISOString() : G(e) : e + } + + function $t() { + this.$get = function() { + return function(e) { + if (!e) return ""; + var t = []; + return a(e, function(e, n) { + null === e || b(e) || (zr(e) ? o(e, function(e, r) { + t.push(re(n) + "=" + re(bt(e))) + }) : t.push(re(n) + "=" + re(bt(e)))) + }), t.join("&") + } + } + } + + function wt() { + this.$get = function() { + return function(e) { + function t(e, r, i) { + null === e || b(e) || (zr(e) ? o(e, function(e, n) { + t(e, r + "[" + (w(e) ? n : "") + "]") + }) : w(e) && !k(e) ? a(e, function(e, n) { + t(e, r + (i ? "" : "[") + n + (i ? "" : "]")) + }) : n.push(re(r) + "=" + re(bt(e)))) + } + if (!e) return ""; + var n = []; + return t(e, "", !0), n.join("&") + } + } + } + + function xt(e, t) { + if (_(e)) { + var n = e.replace(Yi, "") + .trim(); + if (n) { + var r = t("Content-Type"); + (r && 0 === r.indexOf(qi) || _t(n)) && (e = K(n)) + } + } + return e + } + + function _t(e) { + var t = e.match(Gi); + return t && Ki[t[0]].test(e) + } + + function Ct(e) { + function t(e, t) { + e && (r[e] = r[e] ? r[e] + ", " + t : t) + } + var n, r = me(); + return _(e) ? o(e.split("\n"), function(e) { + n = e.indexOf(":"), t(Er(Br(e.substr(0, n))), Br(e.substr(n + 1))) + }) : w(e) && o(e, function(e, n) { + t(Er(n), Br(e)) + }), r + } + + function kt(e) { + var t; + return function(n) { + if (t || (t = Ct(e)), n) { + var r = t[Er(n)]; + return void 0 === r && (r = null), r + } + return t + } + } + + function Et(e, t, n, r) { + return E(r) ? r(e, t, n) : (o(r, function(r) { + e = r(e, t, n) + }), e) + } + + function St(e) { + return 200 <= e && e < 300 + } + + function Ot() { + var e = this.defaults = { + transformResponse: [xt], + transformRequest: [function(e) { + return !w(e) || T(e) || A(e) || P(e) ? e : G(e) + }], + headers: { + common: { + Accept: "application/json, text/plain, */*" + }, + post: W(Bi), + put: W(Bi), + patch: W(Bi) + }, + xsrfCookieName: "XSRF-TOKEN", + xsrfHeaderName: "X-XSRF-TOKEN", + paramSerializer: "$httpParamSerializer" + }, + t = !1; + this.useApplyAsync = function(e) { + return $(e) ? (t = !!e, this) : t + }; + var i = !0; + this.useLegacyPromiseExtensions = function(e) { + return $(e) ? (i = !!e, this) : i + }; + var a = this.interceptors = []; + this.$get = ["$httpBackend", "$$cookieReader", "$cacheFactory", "$rootScope", "$q", "$injector", function(s, l, u, c, d, h) { + function p(t) { + function a(e) { + var t = f({}, e); + return t.data = Et(e.data, e.headers, e.status, u.transformResponse), St(e.status) ? t : d.reject(t) + } + + function s(e, t) { + var n, r = {}; + return o(e, function(e, i) { + E(e) ? (n = e(t), null != n && (r[i] = n)) : r[i] = e + }), r + } + + function l(t) { + var n, r, i, o = e.headers, + a = f({}, t.headers); + o = f({}, o.common, o[Er(t.method)]); + e: for (n in o) { + r = Er(n); + for (i in a) + if (Er(i) === r) continue e; + a[n] = o[n] + } + return s(a, W(t)) + } + if (!Wr.isObject(t)) throw r("$http")("badreq", "Http request configuration must be an object. Received: {0}", t); + if (!_(t.url)) throw r("$http")("badreq", "Http request configuration url must be a string. Received: {0}", t.url); + var u = f({ + method: "get", + transformRequest: e.transformRequest, + transformResponse: e.transformResponse, + paramSerializer: e.paramSerializer + }, t); + u.headers = l(t), u.method = Or(u.method), u.paramSerializer = _(u.paramSerializer) ? h.get(u.paramSerializer) : u.paramSerializer; + var c = function(t) { + var r = t.headers, + i = Et(t.data, kt(r), n, t.transformRequest); + return b(i) && o(r, function(e, t) { + "content-type" === Er(t) && delete r[t] + }), b(t.withCredentials) && !b(e.withCredentials) && (t.withCredentials = e.withCredentials), g(t, i) + .then(a, a) + }, + p = [c, n], + v = d.when(u); + for (o(C, function(e) { + (e.request || e.requestError) && p.unshift(e.request, e.requestError), (e.response || e.responseError) && p.push(e.response, e.responseError) + }); p.length;) { + var m = p.shift(), + y = p.shift(); + v = v.then(m, y) + } + return i ? (v.success = function(e) { + return de(e, "fn"), v.then(function(t) { + e(t.data, t.status, t.headers, u) + }), v + }, v.error = function(e) { + return de(e, "fn"), v.then(null, function(t) { + e(t.data, t.status, t.headers, u) + }), v + }) : (v.success = Ji("success"), v.error = Ji("error")), v + } + + function v(e) { + o(arguments, function(e) { + p[e] = function(t, n) { + return p(f({}, n || {}, { + method: e, + url: t + })) + } + }) + } + + function m(e) { + o(arguments, function(e) { + p[e] = function(t, n, r) { + return p(f({}, r || {}, { + method: e, + url: t, + data: n + })) + } + }) + } + + function g(r, i) { + function o(e, n, r, i) { + function o() { + a(n, e, r, i) + } + h && (St(e) ? h.put(C, [e, n, Ct(r), i]) : h.remove(C)), t ? c.$applyAsync(o) : (o(), c.$$phase || c.$apply()) + } + + function a(e, t, n, i) { + t = t >= -1 ? t : 0, (St(t) ? m.resolve : m.reject)({ + data: e, + status: t, + headers: kt(n), + config: r, + statusText: i + }) + } + + function u(e) { + a(e.data, e.status, W(e.headers()), e.statusText) + } + + function f() { + var e = p.pendingRequests.indexOf(r); + e !== -1 && p.pendingRequests.splice(e, 1) + } + var h, v, m = d.defer(), + g = m.promise, + _ = r.headers, + C = y(r.url, r.paramSerializer(r.params)); + if (p.pendingRequests.push(r), g.then(f, f), !r.cache && !e.cache || r.cache === !1 || "GET" !== r.method && "JSONP" !== r.method || (h = w(r.cache) ? r.cache : w(e.cache) ? e.cache : x), h && (v = h.get(C), $(v) ? F(v) ? v.then(u, u) : zr(v) ? a(v[1], v[0], W(v[2]), v[3]) : a(v, 200, {}, "OK") : h.put(C, g)), b(v)) { + var k = Tn(r.url) ? l()[r.xsrfCookieName || e.xsrfCookieName] : n; + k && (_[r.xsrfHeaderName || e.xsrfHeaderName] = k), s(r.method, C, i, o, _, r.timeout, r.withCredentials, r.responseType) + } + return g + } + + function y(e, t) { + return t.length > 0 && (e += (e.indexOf("?") == -1 ? "?" : "&") + t), e + } + var x = u("$http"); + e.paramSerializer = _(e.paramSerializer) ? h.get(e.paramSerializer) : e.paramSerializer; + var C = []; + return o(a, function(e) { + C.unshift(_(e) ? h.get(e) : h.invoke(e)) + }), p.pendingRequests = [], v("get", "delete", "head", "jsonp"), m("post", "put", "patch"), p.defaults = e, p + }] + } + + function Mt() { + this.$get = function() { + return function() { + return new e.XMLHttpRequest + } + } + } + + function Tt() { + this.$get = ["$browser", "$window", "$document", "$xhrFactory", function(e, t, n, r) { + return Pt(e, r, e.defer, t.angular.callbacks, n[0]) + }] + } + + function Pt(e, t, n, r, i) { + function a(e, t, n) { + var o = i.createElement("script"), + a = null; + return o.type = "text/javascript", o.src = e, o.async = !0, a = function(e) { + ci(o, "load", a), ci(o, "error", a), i.body.removeChild(o), o = null; + var s = -1, + l = "unknown"; + e && ("load" !== e.type || r[t].called || (e = { + type: "error" + }), l = e.type, s = "error" === e.type ? 404 : 200), n && n(s, l) + }, ui(o, "load", a), ui(o, "error", a), i.body.appendChild(o), a + } + return function(i, s, l, u, c, f, d, h) { + function p() { + y && y(), w && w.abort() + } + + function m(t, r, i, o, a) { + $(_) && n.cancel(_), y = w = null, t(r, i, o, a), e.$$completeOutstandingRequest(v) + } + if (e.$$incOutstandingRequestCount(), s = s || e.url(), "jsonp" == Er(i)) { + var g = "_" + (r.counter++) + .toString(36); + r[g] = function(e) { + r[g].data = e, r[g].called = !0 + }; + var y = a(s.replace("JSON_CALLBACK", "angular.callbacks." + g), g, function(e, t) { + m(u, e, r[g].data, "", t), r[g] = v + }) + } else { + var w = t(i, s); + w.open(i, s, !0), o(c, function(e, t) { + $(e) && w.setRequestHeader(t, e) + }), w.onload = function() { + var e = w.statusText || "", + t = "response" in w ? w.response : w.responseText, + n = 1223 === w.status ? 204 : w.status; + 0 === n && (n = t ? 200 : "file" == Mn(s) + .protocol ? 404 : 0), m(u, n, t, w.getAllResponseHeaders(), e) + }; + var x = function() { + m(u, -1, null, null, "") + }; + if (w.onerror = x, w.onabort = x, d && (w.withCredentials = !0), h) try { + w.responseType = h + } catch (e) { + if ("json" !== h) throw e + } + w.send(b(l) ? null : l) + } + if (f > 0) var _ = n(p, f); + else F(f) && f.then(p) + } + } + + function At() { + var e = "{{", + t = "}}"; + this.startSymbol = function(t) { + return t ? (e = t, this) : e + }, this.endSymbol = function(e) { + return e ? (t = e, this) : t + }, this.$get = ["$parse", "$exceptionHandler", "$sce", function(n, r, i) { + function o(e) { + return "\\\\\\" + e + } + + function a(n) { + return n.replace(d, e) + .replace(h, t) + } + + function s(e) { + if (null == e) return ""; + switch (typeof e) { + case "string": + break; + case "number": + e = "" + e; + break; + default: + e = G(e) + } + return e + } + + function l(o, l, d, h) { + function p(e) { + try { + return e = O(e), h && !$(e) ? e : s(e) + } catch (e) { + r(Xi.interr(o, e)) + } + } + h = !!h; + for (var v, m, g, y = 0, w = [], x = [], _ = o.length, C = [], k = []; y < _;) { + if ((v = o.indexOf(e, y)) == -1 || (m = o.indexOf(t, v + u)) == -1) { + y !== _ && C.push(a(o.substring(y))); + break + } + y !== v && C.push(a(o.substring(y, v))), g = o.substring(v + u, m), w.push(g), x.push(n(g, p)), y = m + c, k.push(C.length), C.push("") + } + if (d && C.length > 1 && Xi.throwNoconcat(o), !l || w.length) { + var S = function(e) { + for (var t = 0, n = w.length; t < n; t++) { + if (h && b(e[t])) return; + C[k[t]] = e[t] + } + return C.join("") + }, + O = function(e) { + return d ? i.getTrusted(d, e) : i.valueOf(e) + }; + return f(function(e) { + var t = 0, + n = w.length, + i = new Array(n); + try { + for (; t < n; t++) i[t] = x[t](e); + return S(i) + } catch (e) { + r(Xi.interr(o, e)) + } + }, { + exp: o, + expressions: w, + $$watchDelegate: function(e, t) { + var n; + return e.$watchGroup(x, function(r, i) { + var o = S(r); + E(t) && t.call(this, o, r !== i ? n : o, e), n = o + }) + } + }) + } + } + var u = e.length, + c = t.length, + d = new RegExp(e.replace(/./g, o), "g"), + h = new RegExp(t.replace(/./g, o), "g"); + return l.startSymbol = function() { + return e + }, l.endSymbol = function() { + return t + }, l + }] + } + + function jt() { + this.$get = ["$rootScope", "$window", "$q", "$$q", function(e, t, n, r) { + function i(i, a, s, l) { + var u = arguments.length > 4, + c = u ? z(arguments, 4) : [], + f = t.setInterval, + d = t.clearInterval, + h = 0, + p = $(l) && !l, + v = (p ? r : n) + .defer(), + m = v.promise; + return s = $(s) ? s : 0, m.then(null, null, u ? function() { + i.apply(null, c) + } : i), m.$$intervalId = f(function() { + v.notify(h++), s > 0 && h >= s && (v.resolve(h), d(m.$$intervalId), delete o[m.$$intervalId]), p || e.$apply() + }, a), o[m.$$intervalId] = v, m + } + var o = {}; + return i.cancel = function(e) { + return !!(e && e.$$intervalId in o) && (o[e.$$intervalId].reject("canceled"), t.clearInterval(e.$$intervalId), delete o[e.$$intervalId], !0) + }, i + }] + } + + function Ft(e) { + for (var t = e.split("/"), n = t.length; n--;) t[n] = ne(t[n]); + return t.join("/") + } + + function Lt(e, t) { + var n = Mn(e); + t.$$protocol = n.protocol, t.$$host = n.hostname, t.$$port = h(n.port) || eo[n.protocol] || null + } + + function Rt(e, t) { + var n = "/" !== e.charAt(0); + n && (e = "/" + e); + var r = Mn(e); + t.$$path = decodeURIComponent(n && "/" === r.pathname.charAt(0) ? r.pathname.substring(1) : r.pathname), t.$$search = ee(r.search), t.$$hash = decodeURIComponent(r.hash), t.$$path && "/" != t.$$path.charAt(0) && (t.$$path = "/" + t.$$path) + } + + function Dt(e, t) { + if (0 === t.indexOf(e)) return t.substr(e.length) + } + + function Nt(e) { + var t = e.indexOf("#"); + return t == -1 ? e : e.substr(0, t) + } + + function It(e) { + return e.replace(/(#.+)|#$/, "$1") + } + + function Vt(e) { + return e.substr(0, Nt(e) + .lastIndexOf("/") + 1) + } + + function Wt(e) { + return e.substring(0, e.indexOf("/", e.indexOf("//") + 2)) + } + + function Ht(e, t, n) { + this.$$html5 = !0, n = n || "", Lt(e, this), this.$$parse = function(e) { + var n = Dt(t, e); + if (!_(n)) throw to("ipthprfx", 'Invalid url "{0}", missing path prefix "{1}".', e, t); + Rt(n, this), this.$$path || (this.$$path = "/"), this.$$compose() + }, this.$$compose = function() { + var e = te(this.$$search), + n = this.$$hash ? "#" + ne(this.$$hash) : ""; + this.$$url = Ft(this.$$path) + (e ? "?" + e : "") + n, this.$$absUrl = t + this.$$url.substr(1) + }, this.$$parseLinkUrl = function(r, i) { + if (i && "#" === i[0]) return this.hash(i.slice(1)), !0; + var o, a, s; + return $(o = Dt(e, r)) ? (a = o, s = $(o = Dt(n, o)) ? t + (Dt("/", o) || o) : e + a) : $(o = Dt(t, r)) ? s = t + o : t == r + "/" && (s = t), s && this.$$parse(s), !!s + } + } + + function Ut(e, t, n) { + Lt(e, this), this.$$parse = function(r) { + function i(e, t, n) { + var r, i = /^\/[A-Z]:(\/.*)/; + return 0 === t.indexOf(n) && (t = t.replace(n, "")), i.exec(t) ? e : (r = i.exec(e), r ? r[1] : e) + } + var o, a = Dt(e, r) || Dt(t, r); + b(a) || "#" !== a.charAt(0) ? this.$$html5 ? o = a : (o = "", b(a) && (e = r, this.replace())) : (o = Dt(n, a), b(o) && (o = a)), Rt(o, this), this.$$path = i(this.$$path, o, e), this.$$compose() + }, this.$$compose = function() { + var t = te(this.$$search), + r = this.$$hash ? "#" + ne(this.$$hash) : ""; + this.$$url = Ft(this.$$path) + (t ? "?" + t : "") + r, this.$$absUrl = e + (this.$$url ? n + this.$$url : "") + }, this.$$parseLinkUrl = function(t, n) { + return Nt(e) == Nt(t) && (this.$$parse(t), !0) + } + } + + function zt(e, t, n) { + this.$$html5 = !0, Ut.apply(this, arguments), this.$$parseLinkUrl = function(r, i) { + if (i && "#" === i[0]) return this.hash(i.slice(1)), !0; + var o, a; + return e == Nt(r) ? o = r : (a = Dt(t, r)) ? o = e + n + a : t === r + "/" && (o = t), o && this.$$parse(o), !!o + }, this.$$compose = function() { + var t = te(this.$$search), + r = this.$$hash ? "#" + ne(this.$$hash) : ""; + this.$$url = Ft(this.$$path) + (t ? "?" + t : "") + r, this.$$absUrl = e + n + this.$$url + } + } + + function qt(e) { + return function() { + return this[e] + } + } + + function Bt(e, t) { + return function(n) { + return b(n) ? this[e] : (this[e] = t(n), this.$$compose(), this) + } + } + + function Gt() { + var e = "", + t = { + enabled: !1, + requireBase: !0, + rewriteLinks: !0 + }; + this.hashPrefix = function(t) { + return $(t) ? (e = t, this) : e + }, this.html5Mode = function(e) { + return j(e) ? (t.enabled = e, this) : w(e) ? (j(e.enabled) && (t.enabled = e.enabled), j(e.requireBase) && (t.requireBase = e.requireBase), j(e.rewriteLinks) && (t.rewriteLinks = e.rewriteLinks), this) : t + }, this.$get = ["$rootScope", "$browser", "$sniffer", "$rootElement", "$window", function(n, r, i, o, a) { + function s(e, t, n) { + var i = u.url(), + o = u.$$state; + try { + r.url(e, t, n), u.$$state = r.state() + } catch (e) { + throw u.url(i), u.$$state = o, e + } + } + + function l(e, t) { + n.$broadcast("$locationChangeSuccess", u.absUrl(), e, u.$$state, t) + } + var u, c, f, d = r.baseHref(), + h = r.url(); + if (t.enabled) { + if (!d && t.requireBase) throw to("nobase", "$location in HTML5 mode requires a tag to be present!"); + f = Wt(h) + (d || "/"), c = i.history ? Ht : zt + } else f = Nt(h), c = Ut; + var p = Vt(f); + u = new c(f, p, "#" + e), u.$$parseLinkUrl(h, h), u.$$state = r.state(); + var v = /^\s*(javascript|mailto):/i; + o.on("click", function(e) { + if (t.rewriteLinks && !e.ctrlKey && !e.metaKey && !e.shiftKey && 2 != e.which && 2 != e.button) { + for (var i = Ar(e.target); + "a" !== N(i[0]);) + if (i[0] === o[0] || !(i = i.parent())[0]) return; + var s = i.prop("href"), + l = i.attr("href") || i.attr("xlink:href"); + w(s) && "[object SVGAnimatedString]" === s.toString() && (s = Mn(s.animVal) + .href), v.test(s) || !s || i.attr("target") || e.isDefaultPrevented() || u.$$parseLinkUrl(s, l) && (e.preventDefault(), u.absUrl() != r.url() && (n.$apply(), a.angular["ff-684208-preventDefault"] = !0)) + } + }), It(u.absUrl()) != It(h) && r.url(u.absUrl(), !0); + var m = !0; + return r.onUrlChange(function(e, t) { + return b(Dt(p, e)) ? void(a.location.href = e) : (n.$evalAsync(function() { + var r, i = u.absUrl(), + o = u.$$state; + e = It(e), u.$$parse(e), u.$$state = t, r = n.$broadcast("$locationChangeStart", e, i, t, o) + .defaultPrevented, u.absUrl() === e && (r ? (u.$$parse(i), u.$$state = o, s(i, !1, o)) : (m = !1, l(i, o))) + }), void(n.$$phase || n.$digest())) + }), n.$watch(function() { + var e = It(r.url()), + t = It(u.absUrl()), + o = r.state(), + a = u.$$replace, + c = e !== t || u.$$html5 && i.history && o !== u.$$state; + (m || c) && (m = !1, n.$evalAsync(function() { + var t = u.absUrl(), + r = n.$broadcast("$locationChangeStart", t, e, u.$$state, o) + .defaultPrevented; + u.absUrl() === t && (r ? (u.$$parse(e), u.$$state = o) : (c && s(t, a, o === u.$$state ? null : u.$$state), l(e, o))) + })), u.$$replace = !1 + }), u + }] + } + + function Kt() { + var e = !0, + t = this; + this.debugEnabled = function(t) { + return $(t) ? (e = t, this) : e + }, this.$get = ["$window", function(n) { + function r(e) { + return e instanceof Error && (e.stack ? e = e.message && e.stack.indexOf(e.message) === -1 ? "Error: " + e.message + "\n" + e.stack : e.stack : e.sourceURL && (e = e.message + "\n" + e.sourceURL + ":" + e.line)), e + } + + function i(e) { + var t = n.console || {}, + i = t[e] || t.log || v, + a = !1; + try { + a = !!i.apply + } catch (e) {} + return a ? function() { + var e = []; + return o(arguments, function(t) { + e.push(r(t)) + }), i.apply(t, e) + } : function(e, t) { + i(e, null == t ? "" : t) + } + } + return { + log: i("log"), + info: i("info"), + warn: i("warn"), + error: i("error"), + debug: function() { + var n = i("debug"); + return function() { + e && n.apply(t, arguments) + } + }() + } + }] + } + + function Yt(e, t) { + if ("__defineGetter__" === e || "__defineSetter__" === e || "__lookupGetter__" === e || "__lookupSetter__" === e || "__proto__" === e) throw ro("isecfld", "Attempting to access a disallowed field in Angular expressions! Expression: {0}", t); + return e + } + + function Qt(e, t) { + if (e += "", !_(e)) throw ro("iseccst", "Cannot convert object to primitive value! Expression: {0}", t); + return e + } + + function Jt(e, t) { + if (e) { + if (e.constructor === e) throw ro("isecfn", "Referencing Function in Angular expressions is disallowed! Expression: {0}", t); + if (e.window === e) throw ro("isecwindow", "Referencing the Window in Angular expressions is disallowed! Expression: {0}", t); + if (e.children && (e.nodeName || e.prop && e.attr && e.find)) throw ro("isecdom", "Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}", t); + if (e === Object) throw ro("isecobj", "Referencing Object in Angular expressions is disallowed! Expression: {0}", t) + } + return e + } + + function Xt(e, t) { + if (e) { + if (e.constructor === e) throw ro("isecfn", "Referencing Function in Angular expressions is disallowed! Expression: {0}", t); + if (e === io || e === oo || e === ao) throw ro("isecff", "Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}", t) + } + } + + function Zt(e, t) { + if (e && (e === (0) + .constructor || e === (!1) + .constructor || e === "".constructor || e === {}.constructor || e === [].constructor || e === Function.constructor)) throw ro("isecaf", "Assigning to a constructor is disallowed! Expression: {0}", t) + } + + function en(e, t) { + return "undefined" != typeof e ? e : t + } + + function tn(e, t) { + return "undefined" == typeof e ? t : "undefined" == typeof t ? e : e + t + } + + function nn(e, t) { + var n = e(t); + return !n.$stateful + } + + function rn(e, t) { + var n, r; + switch (e.type) { + case co.Program: + n = !0, o(e.body, function(e) { + rn(e.expression, t), n = n && e.expression.constant + }), e.constant = n; + break; + case co.Literal: + e.constant = !0, e.toWatch = []; + break; + case co.UnaryExpression: + rn(e.argument, t), e.constant = e.argument.constant, e.toWatch = e.argument.toWatch; + break; + case co.BinaryExpression: + rn(e.left, t), rn(e.right, t), e.constant = e.left.constant && e.right.constant, e.toWatch = e.left.toWatch.concat(e.right.toWatch); + break; + case co.LogicalExpression: + rn(e.left, t), rn(e.right, t), e.constant = e.left.constant && e.right.constant, e.toWatch = e.constant ? [] : [e]; + break; + case co.ConditionalExpression: + rn(e.test, t), rn(e.alternate, t), rn(e.consequent, t), e.constant = e.test.constant && e.alternate.constant && e.consequent.constant, e.toWatch = e.constant ? [] : [e]; + break; + case co.Identifier: + e.constant = !1, e.toWatch = [e]; + break; + case co.MemberExpression: + rn(e.object, t), e.computed && rn(e.property, t), e.constant = e.object.constant && (!e.computed || e.property.constant), e.toWatch = [e]; + break; + case co.CallExpression: + n = !!e.filter && nn(t, e.callee.name), r = [], o(e.arguments, function(e) { + rn(e, t), n = n && e.constant, e.constant || r.push.apply(r, e.toWatch) + }), e.constant = n, e.toWatch = e.filter && nn(t, e.callee.name) ? r : [e]; + break; + case co.AssignmentExpression: + rn(e.left, t), rn(e.right, t), e.constant = e.left.constant && e.right.constant, e.toWatch = [e]; + break; + case co.ArrayExpression: + n = !0, r = [], o(e.elements, function(e) { + rn(e, t), n = n && e.constant, e.constant || r.push.apply(r, e.toWatch) + }), e.constant = n, e.toWatch = r; + break; + case co.ObjectExpression: + n = !0, r = [], o(e.properties, function(e) { + rn(e.value, t), n = n && e.value.constant, e.value.constant || r.push.apply(r, e.value.toWatch) + }), e.constant = n, e.toWatch = r; + break; + case co.ThisExpression: + e.constant = !1, e.toWatch = [] + } + } + + function on(e) { + if (1 == e.length) { + var t = e[0].expression, + r = t.toWatch; + return 1 !== r.length ? r : r[0] !== t ? r : n + } + } + + function an(e) { + return e.type === co.Identifier || e.type === co.MemberExpression + } + + function sn(e) { + if (1 === e.body.length && an(e.body[0].expression)) return { + type: co.AssignmentExpression, + left: e.body[0].expression, + right: { + type: co.NGValueParameter + }, + operator: "=" + } + } + + function ln(e) { + return 0 === e.body.length || 1 === e.body.length && (e.body[0].expression.type === co.Literal || e.body[0].expression.type === co.ArrayExpression || e.body[0].expression.type === co.ObjectExpression) + } + + function un(e) { + return e.constant + } + + function cn(e, t) { + this.astBuilder = e, this.$filter = t + } + + function fn(e, t) { + this.astBuilder = e, this.$filter = t + } + + function dn(e) { + return "constructor" == e + } + + function hn(e) { + return E(e.valueOf) ? e.valueOf() : ho.call(e) + } + + function pn() { + var e = me(), + t = me(); + this.$get = ["$filter", function(r) { + function i(n, i, o) { + var s, h, y; + switch (o = o || g, typeof n) { + case "string": + n = n.trim(), y = n; + var b = o ? t : e; + if (s = b[y], !s) { + ":" === n.charAt(0) && ":" === n.charAt(1) && (h = !0, n = n.substring(2)); + var $ = o ? m : p, + w = new uo($), + x = new fo(w, r, $); + s = x.parse(n), s.constant ? s.$$watchDelegate = f : h ? s.$$watchDelegate = s.literal ? c : u : s.inputs && (s.$$watchDelegate = l), o && (s = a(s)), b[y] = s + } + return d(s, i); + case "function": + return d(n, i); + default: + return d(v, i) + } + } + + function a(e) { + function t(t, n, r, i) { + var o = g; + g = !0; + try { + return e(t, n, r, i) + } finally { + g = o + } + } + if (!e) return e; + t.$$watchDelegate = e.$$watchDelegate, t.assign = a(e.assign), t.constant = e.constant, t.literal = e.literal; + for (var n = 0; e.inputs && n < e.inputs.length; ++n) e.inputs[n] = a(e.inputs[n]); + return t.inputs = e.inputs, t + } + + function s(e, t) { + return null == e || null == t ? e === t : ("object" != typeof e || (e = hn(e), "object" != typeof e)) && (e === t || e !== e && t !== t) + } + + function l(e, t, r, i, o) { + var a, l = i.inputs; + if (1 === l.length) { + var u = s; + return l = l[0], e.$watch(function(e) { + var t = l(e); + return s(t, u) || (a = i(e, n, n, [t]), u = t && hn(t)), a + }, t, r, o) + } + for (var c = [], f = [], d = 0, h = l.length; d < h; d++) c[d] = s, f[d] = null; + return e.$watch(function(e) { + for (var t = !1, r = 0, o = l.length; r < o; r++) { + var u = l[r](e); + (t || (t = !s(u, c[r]))) && (f[r] = u, c[r] = u && hn(u)) + } + return t && (a = i(e, n, n, f)), a + }, t, r, o) + } + + function u(e, t, n, r) { + var i, o; + return i = e.$watch(function(e) { + return r(e) + }, function(e, n, r) { + o = e, E(t) && t.apply(this, arguments), $(e) && r.$$postDigest(function() { + $(o) && i() + }) + }, n) + } + + function c(e, t, n, r) { + function i(e) { + var t = !0; + return o(e, function(e) { + $(e) || (t = !1) + }), t + } + var a, s; + return a = e.$watch(function(e) { + return r(e) + }, function(e, n, r) { + s = e, E(t) && t.call(this, e, n, r), i(e) && r.$$postDigest(function() { + i(s) && a() + }) + }, n) + } + + function f(e, t, n, r) { + var i; + return i = e.$watch(function(e) { + return r(e) + }, function(e, n, r) { + E(t) && t.apply(this, arguments), i() + }, n) + } + + function d(e, t) { + if (!t) return e; + var n = e.$$watchDelegate, + r = !1, + i = n !== c && n !== u, + o = i ? function(n, i, o, a) { + var s = r && a ? a[0] : e(n, i, o, a); + return t(s, n, i) + } : function(n, r, i, o) { + var a = e(n, r, i, o), + s = t(a, n, r); + return $(a) ? s : a + }; + return e.$$watchDelegate && e.$$watchDelegate !== l ? o.$$watchDelegate = e.$$watchDelegate : t.$stateful || (o.$$watchDelegate = l, r = !e.inputs, o.inputs = e.inputs ? e.inputs : [e]), o + } + var h = Kr() + .noUnsafeEval, + p = { + csp: h, + expensiveChecks: !1 + }, + m = { + csp: h, + expensiveChecks: !0 + }, + g = !1; + return i.$$runningExpensiveChecks = function() { + return g + }, i + }] + } + + function vn() { + this.$get = ["$rootScope", "$exceptionHandler", function(e, t) { + return gn(function(t) { + e.$evalAsync(t) + }, t) + }] + } + + function mn() { + this.$get = ["$browser", "$exceptionHandler", function(e, t) { + return gn(function(t) { + e.defer(t) + }, t) + }] + } + + function gn(e, t) { + function i(e, t, n) { + function r(t) { + return function(n) { + i || (i = !0, t.call(e, n)) + } + } + var i = !1; + return [r(t), r(n)] + } + + function a() { + this.$$state = { + status: 0 + } + } + + function s(e, t) { + return function(n) { + t.call(e, n) + } + } + + function l(e) { + var r, i, o; + o = e.pending, e.processScheduled = !1, e.pending = n; + for (var a = 0, s = o.length; a < s; ++a) { + i = o[a][0], r = o[a][e.status]; + try { + E(r) ? i.resolve(r(e.value)) : 1 === e.status ? i.resolve(e.value) : i.reject(e.value) + } catch (e) { + i.reject(e), t(e) + } + } + } + + function u(t) { + !t.processScheduled && t.pending && (t.processScheduled = !0, e(function() { + l(t) + })) + } + + function c() { + this.promise = new a, this.resolve = s(this, this.resolve), this.reject = s(this, this.reject), this.notify = s(this, this.notify) + } + + function d(e) { + var t = new c, + n = 0, + r = zr(e) ? [] : {}; + return o(e, function(e, i) { + n++, y(e) + .then(function(e) { + r.hasOwnProperty(i) || (r[i] = e, --n || t.resolve(r)) + }, function(e) { + r.hasOwnProperty(i) || t.reject(e) + }) + }), 0 === n && t.resolve(r), t.promise + } + var h = r("$q", TypeError), + p = function() { + return new c + }; + f(a.prototype, { + then: function(e, t, n) { + if (b(e) && b(t) && b(n)) return this; + var r = new c; + return this.$$state.pending = this.$$state.pending || [], this.$$state.pending.push([r, e, t, n]), this.$$state.status > 0 && u(this.$$state), r.promise + }, + catch: function(e) { + return this.then(null, e) + }, + finally: function(e, t) { + return this.then(function(t) { + return g(t, !0, e) + }, function(t) { + return g(t, !1, e) + }, t) + } + }), f(c.prototype, { + resolve: function(e) { + this.promise.$$state.status || (e === this.promise ? this.$$reject(h("qcycle", "Expected promise to be resolved with value other than itself '{0}'", e)) : this.$$resolve(e)); + }, + $$resolve: function(e) { + var n, r; + r = i(this, this.$$resolve, this.$$reject); + try { + (w(e) || E(e)) && (n = e && e.then), E(n) ? (this.promise.$$state.status = -1, n.call(e, r[0], r[1], this.notify)) : (this.promise.$$state.value = e, this.promise.$$state.status = 1, u(this.promise.$$state)) + } catch (e) { + r[1](e), t(e) + } + }, + reject: function(e) { + this.promise.$$state.status || this.$$reject(e) + }, + $$reject: function(e) { + this.promise.$$state.value = e, this.promise.$$state.status = 2, u(this.promise.$$state) + }, + notify: function(n) { + var r = this.promise.$$state.pending; + this.promise.$$state.status <= 0 && r && r.length && e(function() { + for (var e, i, o = 0, a = r.length; o < a; o++) { + i = r[o][0], e = r[o][3]; + try { + i.notify(E(e) ? e(n) : n) + } catch (e) { + t(e) + } + } + }) + } + }); + var v = function(e) { + var t = new c; + return t.reject(e), t.promise + }, + m = function(e, t) { + var n = new c; + return t ? n.resolve(e) : n.reject(e), n.promise + }, + g = function(e, t, n) { + var r = null; + try { + E(n) && (r = n()) + } catch (e) { + return m(e, !1) + } + return F(r) ? r.then(function() { + return m(e, t) + }, function(e) { + return m(e, !1) + }) : m(e, t) + }, + y = function(e, t, n, r) { + var i = new c; + return i.resolve(e), i.promise.then(t, n, r) + }, + $ = y, + x = function e(t) { + function n(e) { + i.resolve(e) + } + + function r(e) { + i.reject(e) + } + if (!E(t)) throw h("norslvr", "Expected resolverFn, got '{0}'", t); + if (!(this instanceof e)) return new e(t); + var i = new c; + return t(n, r), i.promise + }; + return x.defer = p, x.reject = v, x.when = y, x.resolve = $, x.all = d, x + } + + function yn() { + this.$get = ["$window", "$timeout", function(e, t) { + var n = e.requestAnimationFrame || e.webkitRequestAnimationFrame, + r = e.cancelAnimationFrame || e.webkitCancelAnimationFrame || e.webkitCancelRequestAnimationFrame, + i = !!n, + o = i ? function(e) { + var t = n(e); + return function() { + r(t) + } + } : function(e) { + var n = t(e, 16.66, !1); + return function() { + t.cancel(n) + } + }; + return o.supported = i, o + }] + } + + function bn() { + function e(e) { + function t() { + this.$$watchers = this.$$nextSibling = this.$$childHead = this.$$childTail = null, this.$$listeners = {}, this.$$listenerCount = {}, this.$$watchersCount = 0, this.$id = l(), this.$$ChildScope = null + } + return t.prototype = e, t + } + var t = 10, + n = r("$rootScope"), + a = null, + s = null; + this.digestTtl = function(e) { + return arguments.length && (t = e), t + }, this.$get = ["$injector", "$exceptionHandler", "$parse", "$browser", function(r, u, c, f) { + function d(e) { + e.currentScope.$$destroyed = !0 + } + + function h(e) { + 9 === Pr && (e.$$childHead && h(e.$$childHead), e.$$nextSibling && h(e.$$nextSibling)), e.$parent = e.$$nextSibling = e.$$prevSibling = e.$$childHead = e.$$childTail = e.$root = e.$$watchers = null + } + + function p() { + this.$id = l(), this.$$phase = this.$parent = this.$$watchers = this.$$nextSibling = this.$$prevSibling = this.$$childHead = this.$$childTail = null, this.$root = this, this.$$destroyed = !1, this.$$listeners = {}, this.$$listenerCount = {}, this.$$watchersCount = 0, this.$$isolateBindings = null + } + + function m(e) { + if (k.$$phase) throw n("inprog", "{0} already in progress", k.$$phase); + k.$$phase = e + } + + function g() { + k.$$phase = null + } + + function y(e, t) { + do e.$$watchersCount += t; while (e = e.$parent) + } + + function $(e, t, n) { + do e.$$listenerCount[n] -= t, 0 === e.$$listenerCount[n] && delete e.$$listenerCount[n]; while (e = e.$parent) + } + + function x() {} + + function _() { + for (; M.length;) try { + M.shift()() + } catch (e) { + u(e) + } + s = null + } + + function C() { + null === s && (s = f.defer(function() { + k.$apply(_) + })) + } + p.prototype = { + constructor: p, + $new: function(t, n) { + var r; + return n = n || this, t ? (r = new p, r.$root = this.$root) : (this.$$ChildScope || (this.$$ChildScope = e(this)), r = new this.$$ChildScope), r.$parent = n, r.$$prevSibling = n.$$childTail, n.$$childHead ? (n.$$childTail.$$nextSibling = r, n.$$childTail = r) : n.$$childHead = n.$$childTail = r, (t || n != this) && r.$on("$destroy", d), r + }, + $watch: function(e, t, n, r) { + var i = c(e); + if (i.$$watchDelegate) return i.$$watchDelegate(this, t, n, i, e); + var o = this, + s = o.$$watchers, + l = { + fn: t, + last: x, + get: i, + exp: r || e, + eq: !!n + }; + return a = null, E(t) || (l.fn = v), s || (s = o.$$watchers = []), s.unshift(l), y(this, 1), + function() { + I(s, l) >= 0 && y(o, -1), a = null + } + }, + $watchGroup: function(e, t) { + function n() { + l = !1, u ? (u = !1, t(i, i, s)) : t(i, r, s) + } + var r = new Array(e.length), + i = new Array(e.length), + a = [], + s = this, + l = !1, + u = !0; + if (!e.length) { + var c = !0; + return s.$evalAsync(function() { + c && t(i, i, s) + }), + function() { + c = !1 + } + } + return 1 === e.length ? this.$watch(e[0], function(e, n, o) { + i[0] = e, r[0] = n, t(i, e === n ? i : r, o) + }) : (o(e, function(e, t) { + var o = s.$watch(e, function(e, o) { + i[t] = e, r[t] = o, l || (l = !0, s.$evalAsync(n)) + }); + a.push(o) + }), function() { + for (; a.length;) a.shift()() + }) + }, + $watchCollection: function(e, t) { + function n(e) { + o = e; + var t, n, r, s, l; + if (!b(o)) { + if (w(o)) + if (i(o)) { + a !== h && (a = h, m = a.length = 0, f++), t = o.length, m !== t && (f++, a.length = m = t); + for (var u = 0; u < t; u++) l = a[u], s = o[u], r = l !== l && s !== s, r || l === s || (f++, a[u] = s) + } else { + a !== p && (a = p = {}, m = 0, f++), t = 0; + for (n in o) Sr.call(o, n) && (t++, s = o[n], l = a[n], n in a ? (r = l !== l && s !== s, r || l === s || (f++, a[n] = s)) : (m++, a[n] = s, f++)); + if (m > t) { + f++; + for (n in a) Sr.call(o, n) || (m--, delete a[n]) + } + } + else a !== o && (a = o, f++); + return f + } + } + + function r() { + if (v ? (v = !1, t(o, o, l)) : t(o, s, l), u) + if (w(o)) + if (i(o)) { + s = new Array(o.length); + for (var e = 0; e < o.length; e++) s[e] = o[e] + } else { + s = {}; + for (var n in o) Sr.call(o, n) && (s[n] = o[n]) + } + else s = o + } + n.$stateful = !0; + var o, a, s, l = this, + u = t.length > 1, + f = 0, + d = c(e, n), + h = [], + p = {}, + v = !0, + m = 0; + return this.$watch(d, r) + }, + $digest: function() { + var e, r, i, o, l, c, d, h, p, v, y, b, $ = t, + w = this, + C = []; + m("$digest"), f.$$checkUrlChange(), this === k && null !== s && (f.defer.cancel(s), _()), a = null; + do { + for (h = !1, v = w; S.length;) { + try { + b = S.shift(), b.scope.$eval(b.expression, b.locals) + } catch (e) { + u(e) + } + a = null + } + e: do { + if (c = v.$$watchers) + for (d = c.length; d--;) try { + if (e = c[d]) + if (l = e.get, (r = l(v)) === (i = e.last) || (e.eq ? H(r, i) : "number" == typeof r && "number" == typeof i && isNaN(r) && isNaN(i))) { + if (e === a) { + h = !1; + break e + } + } else h = !0, a = e, e.last = e.eq ? V(r, null) : r, o = e.fn, o(r, i === x ? r : i, v), $ < 5 && (y = 4 - $, C[y] || (C[y] = []), C[y].push({ + msg: E(e.exp) ? "fn: " + (e.exp.name || e.exp.toString()) : e.exp, + newVal: r, + oldVal: i + })) + } catch (e) { + u(e) + } + if (!(p = v.$$watchersCount && v.$$childHead || v !== w && v.$$nextSibling)) + for (; v !== w && !(p = v.$$nextSibling);) v = v.$parent + } while (v = p); + if ((h || S.length) && !$--) throw g(), n("infdig", "{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}", t, C) + } while (h || S.length); + for (g(); O.length;) try { + O.shift()() + } catch (e) { + u(e) + } + }, + $destroy: function() { + if (!this.$$destroyed) { + var e = this.$parent; + this.$broadcast("$destroy"), this.$$destroyed = !0, this === k && f.$$applicationDestroyed(), y(this, -this.$$watchersCount); + for (var t in this.$$listenerCount) $(this, this.$$listenerCount[t], t); + e && e.$$childHead == this && (e.$$childHead = this.$$nextSibling), e && e.$$childTail == this && (e.$$childTail = this.$$prevSibling), this.$$prevSibling && (this.$$prevSibling.$$nextSibling = this.$$nextSibling), this.$$nextSibling && (this.$$nextSibling.$$prevSibling = this.$$prevSibling), this.$destroy = this.$digest = this.$apply = this.$evalAsync = this.$applyAsync = v, this.$on = this.$watch = this.$watchGroup = function() { + return v + }, this.$$listeners = {}, this.$$nextSibling = null, h(this) + } + }, + $eval: function(e, t) { + return c(e)(this, t) + }, + $evalAsync: function(e, t) { + k.$$phase || S.length || f.defer(function() { + S.length && k.$digest() + }), S.push({ + scope: this, + expression: c(e), + locals: t + }) + }, + $$postDigest: function(e) { + O.push(e) + }, + $apply: function(e) { + try { + m("$apply"); + try { + return this.$eval(e) + } finally { + g() + } + } catch (e) { + u(e) + } finally { + try { + k.$digest() + } catch (e) { + throw u(e), e + } + } + }, + $applyAsync: function(e) { + function t() { + n.$eval(e) + } + var n = this; + e && M.push(t), e = c(e), C() + }, + $on: function(e, t) { + var n = this.$$listeners[e]; + n || (this.$$listeners[e] = n = []), n.push(t); + var r = this; + do r.$$listenerCount[e] || (r.$$listenerCount[e] = 0), r.$$listenerCount[e]++; while (r = r.$parent); + var i = this; + return function() { + var r = n.indexOf(t); + r !== -1 && (n[r] = null, $(i, 1, e)) + } + }, + $emit: function(e, t) { + var n, r, i, o = [], + a = this, + s = !1, + l = { + name: e, + targetScope: a, + stopPropagation: function() { + s = !0 + }, + preventDefault: function() { + l.defaultPrevented = !0 + }, + defaultPrevented: !1 + }, + c = U([l], arguments, 1); + do { + for (n = a.$$listeners[e] || o, l.currentScope = a, r = 0, i = n.length; r < i; r++) + if (n[r]) try { + n[r].apply(null, c) + } catch (e) { + u(e) + } else n.splice(r, 1), r--, i--; + if (s) return l.currentScope = null, l; + a = a.$parent + } while (a); + return l.currentScope = null, l + }, + $broadcast: function(e, t) { + var n = this, + r = n, + i = n, + o = { + name: e, + targetScope: n, + preventDefault: function() { + o.defaultPrevented = !0 + }, + defaultPrevented: !1 + }; + if (!n.$$listenerCount[e]) return o; + for (var a, s, l, c = U([o], arguments, 1); r = i;) { + for (o.currentScope = r, a = r.$$listeners[e] || [], s = 0, l = a.length; s < l; s++) + if (a[s]) try { + a[s].apply(null, c) + } catch (e) { + u(e) + } else a.splice(s, 1), s--, l--; + if (!(i = r.$$listenerCount[e] && r.$$childHead || r !== n && r.$$nextSibling)) + for (; r !== n && !(i = r.$$nextSibling);) r = r.$parent + } + return o.currentScope = null, o + } + }; + var k = new p, + S = k.$$asyncQueue = [], + O = k.$$postDigestQueue = [], + M = k.$$applyAsyncQueue = []; + return k + }] + } + + function $n() { + var e = /^\s*(https?|ftp|mailto|tel|file):/, + t = /^\s*((https?|ftp|file|blob):|data:image\/)/; + this.aHrefSanitizationWhitelist = function(t) { + return $(t) ? (e = t, this) : e + }, this.imgSrcSanitizationWhitelist = function(e) { + return $(e) ? (t = e, this) : t + }, this.$get = function() { + return function(n, r) { + var i, o = r ? t : e; + return i = Mn(n) + .href, "" === i || i.match(o) ? n : "unsafe:" + i + } + } + } + + function wn(e) { + if ("self" === e) return e; + if (_(e)) { + if (e.indexOf("***") > -1) throw po("iwcard", "Illegal sequence *** in string matcher. String: {0}", e); + return e = Gr(e) + .replace("\\*\\*", ".*") + .replace("\\*", "[^:/.?&;]*"), new RegExp("^" + e + "$") + } + if (S(e)) return new RegExp("^" + e.source + "$"); + throw po("imatcher", 'Matchers may only be "self", string patterns or RegExp objects') + } + + function xn(e) { + var t = []; + return $(e) && o(e, function(e) { + t.push(wn(e)) + }), t + } + + function _n() { + this.SCE_CONTEXTS = vo; + var e = ["self"], + t = []; + this.resourceUrlWhitelist = function(t) { + return arguments.length && (e = xn(t)), e + }, this.resourceUrlBlacklist = function(e) { + return arguments.length && (t = xn(e)), t + }, this.$get = ["$injector", function(n) { + function r(e, t) { + return "self" === e ? Tn(t) : !!e.exec(t.href) + } + + function i(n) { + var i, o, a = Mn(n.toString()), + s = !1; + for (i = 0, o = e.length; i < o; i++) + if (r(e[i], a)) { + s = !0; + break + } + if (s) + for (i = 0, o = t.length; i < o; i++) + if (r(t[i], a)) { + s = !1; + break + } + return s + } + + function o(e) { + var t = function(e) { + this.$$unwrapTrustedValue = function() { + return e + } + }; + return e && (t.prototype = new e), t.prototype.valueOf = function() { + return this.$$unwrapTrustedValue() + }, t.prototype.toString = function() { + return this.$$unwrapTrustedValue() + .toString() + }, t + } + + function a(e, t) { + var n = f.hasOwnProperty(e) ? f[e] : null; + if (!n) throw po("icontext", "Attempted to trust a value in invalid context. Context: {0}; Value: {1}", e, t); + if (null === t || b(t) || "" === t) return t; + if ("string" != typeof t) throw po("itype", "Attempted to trust a non-string value in a content requiring a string: Context: {0}", e); + return new n(t) + } + + function s(e) { + return e instanceof c ? e.$$unwrapTrustedValue() : e + } + + function l(e, t) { + if (null === t || b(t) || "" === t) return t; + var n = f.hasOwnProperty(e) ? f[e] : null; + if (n && t instanceof n) return t.$$unwrapTrustedValue(); + if (e === vo.RESOURCE_URL) { + if (i(t)) return t; + throw po("insecurl", "Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}", t.toString()) + } + if (e === vo.HTML) return u(t); + throw po("unsafe", "Attempting to use an unsafe value in a safe context.") + } + var u = function(e) { + throw po("unsafe", "Attempting to use an unsafe value in a safe context.") + }; + n.has("$sanitize") && (u = n.get("$sanitize")); + var c = o(), + f = {}; + return f[vo.HTML] = o(c), f[vo.CSS] = o(c), f[vo.URL] = o(c), f[vo.JS] = o(c), f[vo.RESOURCE_URL] = o(f[vo.URL]), { + trustAs: a, + getTrusted: l, + valueOf: s + } + }] + } + + function Cn() { + var e = !0; + this.enabled = function(t) { + return arguments.length && (e = !!t), e + }, this.$get = ["$parse", "$sceDelegate", function(t, n) { + if (e && Pr < 8) throw po("iequirks", "Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information."); + var r = W(vo); + r.isEnabled = function() { + return e + }, r.trustAs = n.trustAs, r.getTrusted = n.getTrusted, r.valueOf = n.valueOf, e || (r.trustAs = r.getTrusted = function(e, t) { + return t + }, r.valueOf = m), r.parseAs = function(e, n) { + var i = t(n); + return i.literal && i.constant ? i : t(n, function(t) { + return r.getTrusted(e, t) + }) + }; + var i = r.parseAs, + a = r.getTrusted, + s = r.trustAs; + return o(vo, function(e, t) { + var n = Er(t); + r[xe("parse_as_" + n)] = function(t) { + return i(e, t) + }, r[xe("get_trusted_" + n)] = function(t) { + return a(e, t) + }, r[xe("trust_as_" + n)] = function(t) { + return s(e, t) + } + }), r + }] + } + + function kn() { + this.$get = ["$window", "$document", function(e, t) { + var n, r, i = {}, + o = h((/android (\d+)/.exec(Er((e.navigator || {}) + .userAgent)) || [])[1]), + a = /Boxee/i.test((e.navigator || {}) + .userAgent), + s = t[0] || {}, + l = /^(Moz|webkit|ms)(?=[A-Z])/, + u = s.body && s.body.style, + c = !1, + f = !1; + if (u) { + for (var d in u) + if (r = l.exec(d)) { + n = r[0], n = n.substr(0, 1) + .toUpperCase() + n.substr(1); + break + } + n || (n = "WebkitOpacity" in u && "webkit"), c = !!("transition" in u || n + "Transition" in u), f = !!("animation" in u || n + "Animation" in u), !o || c && f || (c = _(u.webkitTransition), f = _(u.webkitAnimation)) + } + return { + history: !(!e.history || !e.history.pushState || o < 4 || a), + hasEvent: function(e) { + if ("input" === e && Pr <= 11) return !1; + if (b(i[e])) { + var t = s.createElement("div"); + i[e] = "on" + e in t + } + return i[e] + }, + csp: Kr(), + vendorPrefix: n, + transitions: c, + animations: f, + android: o + } + }] + } + + function En() { + this.$get = ["$templateCache", "$http", "$q", "$sce", function(e, t, n, r) { + function i(o, a) { + function s(e) { + if (!a) throw Vi("tpload", "Failed to load template: {0} (HTTP status: {1} {2})", o, e.status, e.statusText); + return n.reject(e) + } + i.totalPendingRequests++, _(o) && !b(e.get(o)) || (o = r.getTrustedResourceUrl(o)); + var l = t.defaults && t.defaults.transformResponse; + zr(l) ? l = l.filter(function(e) { + return e !== xt + }) : l === xt && (l = null); + var u = { + cache: e, + transformResponse: l + }; + return t.get(o, u) + .finally(function() { + i.totalPendingRequests-- + }) + .then(function(t) { + return e.put(o, t.data), t.data + }, s) + } + return i.totalPendingRequests = 0, i + }] + } + + function Sn() { + this.$get = ["$rootScope", "$browser", "$location", function(e, t, n) { + var r = {}; + return r.findBindings = function(e, t, n) { + var r = e.getElementsByClassName("ng-binding"), + i = []; + return o(r, function(e) { + var r = Wr.element(e) + .data("$binding"); + r && o(r, function(r) { + if (n) { + var o = new RegExp("(^|\\s)" + Gr(t) + "(\\s|\\||$)"); + o.test(r) && i.push(e) + } else r.indexOf(t) != -1 && i.push(e) + }) + }), i + }, r.findModels = function(e, t, n) { + for (var r = ["ng-", "data-ng-", "ng\\:"], i = 0; i < r.length; ++i) { + var o = n ? "=" : "*=", + a = "[" + r[i] + "model" + o + '"' + t + '"]', + s = e.querySelectorAll(a); + if (s.length) return s + } + }, r.getLocation = function() { + return n.url() + }, r.setLocation = function(t) { + t !== n.url() && (n.url(t), e.$digest()) + }, r.whenStable = function(e) { + t.notifyWhenNoOutstandingRequests(e) + }, r + }] + } + + function On() { + this.$get = ["$rootScope", "$browser", "$q", "$$q", "$exceptionHandler", function(e, t, n, r, i) { + function o(o, s, l) { + E(o) || (l = s, s = o, o = v); + var u, c = z(arguments, 3), + f = $(l) && !l, + d = (f ? r : n) + .defer(), + h = d.promise; + return u = t.defer(function() { + try { + d.resolve(o.apply(null, c)) + } catch (e) { + d.reject(e), i(e) + } finally { + delete a[h.$$timeoutId] + } + f || e.$apply() + }, s), h.$$timeoutId = u, a[u] = d, h + } + var a = {}; + return o.cancel = function(e) { + return !!(e && e.$$timeoutId in a) && (a[e.$$timeoutId].reject("canceled"), delete a[e.$$timeoutId], t.defer.cancel(e.$$timeoutId)) + }, o + }] + } + + function Mn(e) { + var t = e; + return Pr && (mo.setAttribute("href", t), t = mo.href), mo.setAttribute("href", t), { + href: mo.href, + protocol: mo.protocol ? mo.protocol.replace(/:$/, "") : "", + host: mo.host, + search: mo.search ? mo.search.replace(/^\?/, "") : "", + hash: mo.hash ? mo.hash.replace(/^#/, "") : "", + hostname: mo.hostname, + port: mo.port, + pathname: "/" === mo.pathname.charAt(0) ? mo.pathname : "/" + mo.pathname + } + } + + function Tn(e) { + var t = _(e) ? Mn(e) : e; + return t.protocol === go.protocol && t.host === go.host + } + + function Pn() { + this.$get = g(e) + } + + function An(e) { + function t(e) { + try { + return decodeURIComponent(e) + } catch (t) { + return e + } + } + var n = e[0] || {}, + r = {}, + i = ""; + return function() { + var e, o, a, s, l, u = n.cookie || ""; + if (u !== i) + for (i = u, e = i.split("; "), r = {}, a = 0; a < e.length; a++) o = e[a], s = o.indexOf("="), s > 0 && (l = t(o.substring(0, s)), b(r[l]) && (r[l] = t(o.substring(s + 1)))); + return r + } + } + + function jn() { + this.$get = An + } + + function Fn(e) { + function t(r, i) { + if (w(r)) { + var a = {}; + return o(r, function(e, n) { + a[n] = t(n, e) + }), a + } + return e.factory(r + n, i) + } + var n = "Filter"; + this.register = t, this.$get = ["$injector", function(e) { + return function(t) { + return e.get(t + n) + } + }], t("currency", In), t("date", er), t("filter", Ln), t("json", tr), t("limitTo", nr), t("lowercase", Co), t("number", Vn), t("orderBy", rr), t("uppercase", ko) + } + + function Ln() { + return function(e, t, n) { + if (!i(e)) { + if (null == e) return e; + throw r("filter")("notarray", "Expected array but received: {0}", e) + } + var o, a, s = Nn(t); + switch (s) { + case "function": + o = t; + break; + case "boolean": + case "null": + case "number": + case "string": + a = !0; + case "object": + o = Rn(t, n, a); + break; + default: + return e + } + return Array.prototype.filter.call(e, o) + } + } + + function Rn(e, t, n) { + var r, i = w(e) && "$" in e; + return t === !0 ? t = H : E(t) || (t = function(e, t) { + return !b(e) && (null === e || null === t ? e === t : !(w(t) || w(e) && !y(e)) && (e = Er("" + e), t = Er("" + t), e.indexOf(t) !== -1)) + }), r = function(r) { + return i && !w(r) ? Dn(r, e.$, t, !1) : Dn(r, e, t, n) + } + } + + function Dn(e, t, n, r, i) { + var o = Nn(e), + a = Nn(t); + if ("string" === a && "!" === t.charAt(0)) return !Dn(e, t.substring(1), n, r); + if (zr(e)) return e.some(function(e) { + return Dn(e, t, n, r) + }); + switch (o) { + case "object": + var s; + if (r) { + for (s in e) + if ("$" !== s.charAt(0) && Dn(e[s], t, n, !0)) return !0; + return !i && Dn(e, t, n, !1) + } + if ("object" === a) { + for (s in t) { + var l = t[s]; + if (!E(l) && !b(l)) { + var u = "$" === s, + c = u ? e : e[s]; + if (!Dn(c, l, n, u, u)) return !1 + } + } + return !0 + } + return n(e, t); + case "function": + return !1; + default: + return n(e, t) + } + } + + function Nn(e) { + return null === e ? "null" : typeof e + } + + function In(e) { + var t = e.NUMBER_FORMATS; + return function(e, n, r) { + return b(n) && (n = t.CURRENCY_SYM), b(r) && (r = t.PATTERNS[1].maxFrac), null == e ? e : Un(e, t.PATTERNS[1], t.GROUP_SEP, t.DECIMAL_SEP, r) + .replace(/\u00A4/g, n) + } + } + + function Vn(e) { + var t = e.NUMBER_FORMATS; + return function(e, n) { + return null == e ? e : Un(e, t.PATTERNS[0], t.GROUP_SEP, t.DECIMAL_SEP, n) + } + } + + function Wn(e) { + var t, n, r, i, o, a = 0; + for ((n = e.indexOf(bo)) > -1 && (e = e.replace(bo, "")), (r = e.search(/e/i)) > 0 ? (n < 0 && (n = r), n += +e.slice(r + 1), e = e.substring(0, r)) : n < 0 && (n = e.length), r = 0; e.charAt(r) == $o; r++); + if (r == (o = e.length)) t = [0], n = 1; + else { + for (o--; e.charAt(o) == $o;) o--; + for (n -= r, t = [], i = 0; r <= o; r++, i++) t[i] = +e.charAt(r) + } + return n > yo && (t = t.splice(0, yo - 1), a = n - 1, n = 1), { + d: t, + e: a, + i: n + } + } + + function Hn(e, t, n, r) { + var i = e.d, + o = i.length - e.i; + t = b(t) ? Math.min(Math.max(n, o), r) : +t; + var a = t + e.i, + s = i[a]; + if (a > 0) i.splice(a); + else { + e.i = 1, i.length = a = t + 1; + for (var l = 0; l < a; l++) i[l] = 0 + } + for (s >= 5 && i[a - 1]++; o < t; o++) i.push(0); + var u = i.reduceRight(function(e, t, n, r) { + return t += e, r[n] = t % 10, Math.floor(t / 10) + }, 0); + u && (i.unshift(u), e.i++) + } + + function Un(e, t, n, r, i) { + if (!_(e) && !C(e) || isNaN(e)) return ""; + var o, a = !isFinite(e), + s = !1, + l = Math.abs(e) + "", + u = ""; + if (a) u = "∞"; + else { + o = Wn(l), Hn(o, i, t.minFrac, t.maxFrac); + var c = o.d, + f = o.i, + d = o.e, + h = []; + for (s = c.reduce(function(e, t) { + return e && !t + }, !0); f < 0;) c.unshift(0), f++; + f > 0 ? h = c.splice(f, c.length) : (h = c, c = [0]); + var p = []; + for (c.length >= t.lgSize && p.unshift(c.splice(-t.lgSize, c.length) + .join("")); c.length > t.gSize;) p.unshift(c.splice(-t.gSize, c.length) + .join("")); + c.length && p.unshift(c.join("")), u = p.join(n), h.length && (u += r + h.join("")), d && (u += "e+" + d) + } + return e < 0 && !s ? t.negPre + u + t.negSuf : t.posPre + u + t.posSuf + } + + function zn(e, t, n) { + var r = ""; + for (e < 0 && (r = "-", e = -e), e = "" + e; e.length < t;) e = $o + e; + return n && (e = e.substr(e.length - t)), r + e + } + + function qn(e, t, n, r) { + return n = n || 0, + function(i) { + var o = i["get" + e](); + return (n > 0 || o > -n) && (o += n), 0 === o && n == -12 && (o = 12), zn(o, t, r) + } + } + + function Bn(e, t) { + return function(n, r) { + var i = n["get" + e](), + o = Or(t ? "SHORT" + e : e); + return r[o][i] + } + } + + function Gn(e, t, n) { + var r = -1 * n, + i = r >= 0 ? "+" : ""; + return i += zn(Math[r > 0 ? "floor" : "ceil"](r / 60), 2) + zn(Math.abs(r % 60), 2) + } + + function Kn(e) { + var t = new Date(e, 0, 1) + .getDay(); + return new Date(e, 0, (t <= 4 ? 5 : 12) - t) + } + + function Yn(e) { + return new Date(e.getFullYear(), e.getMonth(), e.getDate() + (4 - e.getDay())) + } + + function Qn(e) { + return function(t) { + var n = Kn(t.getFullYear()), + r = Yn(t), + i = +r - +n, + o = 1 + Math.round(i / 6048e5); + return zn(o, e) + } + } + + function Jn(e, t) { + return e.getHours() < 12 ? t.AMPMS[0] : t.AMPMS[1] + } + + function Xn(e, t) { + return e.getFullYear() <= 0 ? t.ERAS[0] : t.ERAS[1] + } + + function Zn(e, t) { + return e.getFullYear() <= 0 ? t.ERANAMES[0] : t.ERANAMES[1] + } + + function er(e) { + function t(e) { + var t; + if (t = e.match(n)) { + var r = new Date(0), + i = 0, + o = 0, + a = t[8] ? r.setUTCFullYear : r.setFullYear, + s = t[8] ? r.setUTCHours : r.setHours; + t[9] && (i = h(t[9] + t[10]), o = h(t[9] + t[11])), a.call(r, h(t[1]), h(t[2]) - 1, h(t[3])); + var l = h(t[4] || 0) - i, + u = h(t[5] || 0) - o, + c = h(t[6] || 0), + f = Math.round(1e3 * parseFloat("0." + (t[7] || 0))); + return s.call(r, l, u, c, f), r + } + return e + } + var n = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/; + return function(n, r, i) { + var a, s, l = "", + u = []; + if (r = r || "mediumDate", r = e.DATETIME_FORMATS[r] || r, _(n) && (n = _o.test(n) ? h(n) : t(n)), C(n) && (n = new Date(n)), !k(n) || !isFinite(n.getTime())) return n; + for (; r;) s = xo.exec(r), s ? (u = U(u, s, 1), r = u.pop()) : (u.push(r), r = null); + var c = n.getTimezoneOffset(); + return i && (c = Y(i, c), n = J(n, i, !0)), o(u, function(t) { + a = wo[t], l += a ? a(n, e.DATETIME_FORMATS, c) : "''" === t ? "'" : t.replace(/(^'|'$)/g, "") + .replace(/''/g, "'") + }), l + } + } + + function tr() { + return function(e, t) { + return b(t) && (t = 2), G(e, t) + } + } + + function nr() { + return function(e, t, n) { + return t = Math.abs(Number(t)) === 1 / 0 ? Number(t) : h(t), isNaN(t) ? e : (C(e) && (e = e.toString()), zr(e) || _(e) ? (n = !n || isNaN(n) ? 0 : h(n), n = n < 0 ? Math.max(0, e.length + n) : n, t >= 0 ? e.slice(n, n + t) : 0 === n ? e.slice(t, e.length) : e.slice(Math.max(0, n + t), n)) : e) + } + } + + function rr(e) { + function t(t, n) { + return n = n ? -1 : 1, t.map(function(t) { + var r = 1, + i = m; + if (E(t)) i = t; + else if (_(t) && ("+" != t.charAt(0) && "-" != t.charAt(0) || (r = "-" == t.charAt(0) ? -1 : 1, t = t.substring(1)), "" !== t && (i = e(t), i.constant))) { + var o = i(); + i = function(e) { + return e[o] + } + } + return { + get: i, + descending: r * n + } + }) + } + + function n(e) { + switch (typeof e) { + case "number": + case "boolean": + case "string": + return !0; + default: + return !1 + } + } + + function r(e, t) { + return "function" == typeof e.valueOf && (e = e.valueOf(), n(e)) ? e : y(e) && (e = e.toString(), n(e)) ? e : t + } + + function o(e, t) { + var n = typeof e; + return null === e ? (n = "string", e = "null") : "string" === n ? e = e.toLowerCase() : "object" === n && (e = r(e, t)), { + value: e, + type: n + } + } + + function a(e, t) { + var n = 0; + return e.type === t.type ? e.value !== t.value && (n = e.value < t.value ? -1 : 1) : n = e.type < t.type ? -1 : 1, n + } + return function(e, n, r) { + function s(e, t) { + return { + value: e, + predicateValues: u.map(function(n) { + return o(n.get(e), t) + }) + } + } + + function l(e, t) { + for (var n = 0, r = 0, i = u.length; r < i && !(n = a(e.predicateValues[r], t.predicateValues[r]) * u[r].descending); ++r); + return n + } + if (!i(e)) return e; + zr(n) || (n = [n]), 0 === n.length && (n = ["+"]); + var u = t(n, r); + u.push({ + get: function() { + return {} + }, + descending: r ? -1 : 1 + }); + var c = Array.prototype.map.call(e, s); + return c.sort(l), e = c.map(function(e) { + return e.value + }) + } + } + + function ir(e) { + return E(e) && (e = { + link: e + }), e.restrict = e.restrict || "AC", g(e) + } + + function or(e, t) { + e.$name = t + } + + function ar(e, t, r, i, a) { + var s = this, + l = []; + s.$error = {}, s.$$success = {}, s.$pending = n, s.$name = a(t.name || t.ngForm || "")(r), s.$dirty = !1, s.$pristine = !0, s.$valid = !0, s.$invalid = !1, s.$submitted = !1, s.$$parentForm = Oo, s.$rollbackViewValue = function() { + o(l, function(e) { + e.$rollbackViewValue() + }) + }, s.$commitViewValue = function() { + o(l, function(e) { + e.$commitViewValue() + }) + }, s.$addControl = function(e) { + he(e.$name, "input"), l.push(e), e.$name && (s[e.$name] = e), e.$$parentForm = s + }, s.$$renameControl = function(e, t) { + var n = e.$name; + s[n] === e && delete s[n], s[t] = e, e.$name = t + }, s.$removeControl = function(e) { + e.$name && s[e.$name] === e && delete s[e.$name], o(s.$pending, function(t, n) { + s.$setValidity(n, null, e) + }), o(s.$error, function(t, n) { + s.$setValidity(n, null, e) + }), o(s.$$success, function(t, n) { + s.$setValidity(n, null, e) + }), I(l, e), e.$$parentForm = Oo + }, wr({ + ctrl: this, + $element: e, + set: function(e, t, n) { + var r = e[t]; + if (r) { + var i = r.indexOf(n); + i === -1 && r.push(n) + } else e[t] = [n] + }, + unset: function(e, t, n) { + var r = e[t]; + r && (I(r, n), 0 === r.length && delete e[t]) + }, + $animate: i + }), s.$setDirty = function() { + i.removeClass(e, da), i.addClass(e, ha), s.$dirty = !0, s.$pristine = !1, s.$$parentForm.$setDirty() + }, s.$setPristine = function() { + i.setClass(e, da, ha + " " + Mo), s.$dirty = !1, s.$pristine = !0, s.$submitted = !1, o(l, function(e) { + e.$setPristine() + }) + }, s.$setUntouched = function() { + o(l, function(e) { + e.$setUntouched() + }) + }, s.$setSubmitted = function() { + i.addClass(e, Mo), s.$submitted = !0, s.$$parentForm.$setSubmitted() + } + } + + function sr(e) { + e.$formatters.push(function(t) { + return e.$isEmpty(t) ? t : t.toString() + }) + } + + function lr(e, t, n, r, i, o) { + ur(e, t, n, r, i, o), sr(r) + } + + function ur(e, t, n, r, i, o) { + var a = Er(t[0].type); + if (!i.android) { + var s = !1; + t.on("compositionstart", function(e) { + s = !0 + }), t.on("compositionend", function() { + s = !1, u() + }) + } + var l, u = function(e) { + if (l && (o.defer.cancel(l), l = null), !s) { + var i = t.val(), + u = e && e.type; + "password" === a || n.ngTrim && "false" === n.ngTrim || (i = Br(i)), (r.$viewValue !== i || "" === i && r.$$hasNativeValidators) && r.$setViewValue(i, u) + } + }; + if (i.hasEvent("input")) t.on("input", u); + else { + var c = function(e, t, n) { + l || (l = o.defer(function() { + l = null, t && t.value === n || u(e) + })) + }; + t.on("keydown", function(e) { + var t = e.keyCode; + 91 === t || 15 < t && t < 19 || 37 <= t && t <= 40 || c(e, this, this.value) + }), i.hasEvent("paste") && t.on("paste cut", c) + } + t.on("change", u), Uo[a] && r.$$hasNativeValidators && a === n.type && t.on(Ho, function(e) { + if (!l) { + var t = this[kr], + n = t.badInput, + r = t.typeMismatch; + l = o.defer(function() { + l = null, t.badInput === n && t.typeMismatch === r || u(e) + }) + } + }), r.$render = function() { + var e = r.$isEmpty(r.$viewValue) ? "" : r.$viewValue; + t.val() !== e && t.val(e) + } + } + + function cr(e, t) { + if (k(e)) return e; + if (_(e)) { + Io.lastIndex = 0; + var n = Io.exec(e); + if (n) { + var r = +n[1], + i = +n[2], + o = 0, + a = 0, + s = 0, + l = 0, + u = Kn(r), + c = 7 * (i - 1); + return t && (o = t.getHours(), a = t.getMinutes(), s = t.getSeconds(), l = t.getMilliseconds()), new Date(r, 0, u.getDate() + c, o, a, s, l) + } + } + return NaN + } + + function fr(e, t) { + return function(n, r) { + var i, a; + if (k(n)) return n; + if (_(n)) { + if ('"' == n.charAt(0) && '"' == n.charAt(n.length - 1) && (n = n.substring(1, n.length - 1)), jo.test(n)) return new Date(n); + if (e.lastIndex = 0, i = e.exec(n)) return i.shift(), a = r ? { + yyyy: r.getFullYear(), + MM: r.getMonth() + 1, + dd: r.getDate(), + HH: r.getHours(), + mm: r.getMinutes(), + ss: r.getSeconds(), + sss: r.getMilliseconds() / 1e3 + } : { + yyyy: 1970, + MM: 1, + dd: 1, + HH: 0, + mm: 0, + ss: 0, + sss: 0 + }, o(i, function(e, n) { + n < t.length && (a[t[n]] = +e) + }), new Date(a.yyyy, a.MM - 1, a.dd, a.HH, a.mm, a.ss || 0, 1e3 * a.sss || 0) + } + return NaN + } + } + + function dr(e, t, r, i) { + return function(o, a, s, l, u, c, f) { + function d(e) { + return e && !(e.getTime && e.getTime() !== e.getTime()) + } + + function h(e) { + return $(e) && !k(e) ? r(e) || n : e + } + hr(o, a, s, l), ur(o, a, s, l, u, c); + var p, v = l && l.$options && l.$options.timezone; + if (l.$$parserName = e, l.$parsers.push(function(e) { + if (l.$isEmpty(e)) return null; + if (t.test(e)) { + var i = r(e, p); + return v && (i = J(i, v)), i + } + return n + }), l.$formatters.push(function(e) { + if (e && !k(e)) throw ga("datefmt", "Expected `{0}` to be a date", e); + return d(e) ? (p = e, p && v && (p = J(p, v, !0)), f("date")(e, i, v)) : (p = null, "") + }), $(s.min) || s.ngMin) { + var m; + l.$validators.min = function(e) { + return !d(e) || b(m) || r(e) >= m + }, s.$observe("min", function(e) { + m = h(e), l.$validate() + }) + } + if ($(s.max) || s.ngMax) { + var g; + l.$validators.max = function(e) { + return !d(e) || b(g) || r(e) <= g + }, s.$observe("max", function(e) { + g = h(e), l.$validate() + }) + } + } + } + + function hr(e, t, r, i) { + var o = t[0], + a = i.$$hasNativeValidators = w(o.validity); + a && i.$parsers.push(function(e) { + var r = t.prop(kr) || {}; + return r.badInput && !r.typeMismatch ? n : e + }) + } + + function pr(e, t, r, i, o, a) { + if (hr(e, t, r, i), ur(e, t, r, i, o, a), i.$$parserName = "number", i.$parsers.push(function(e) { + return i.$isEmpty(e) ? null : Ro.test(e) ? parseFloat(e) : n + }), i.$formatters.push(function(e) { + if (!i.$isEmpty(e)) { + if (!C(e)) throw ga("numfmt", "Expected `{0}` to be a number", e); + e = e.toString() + } + return e + }), $(r.min) || r.ngMin) { + var s; + i.$validators.min = function(e) { + return i.$isEmpty(e) || b(s) || e >= s + }, r.$observe("min", function(e) { + $(e) && !C(e) && (e = parseFloat(e, 10)), s = C(e) && !isNaN(e) ? e : n, i.$validate() + }) + } + if ($(r.max) || r.ngMax) { + var l; + i.$validators.max = function(e) { + return i.$isEmpty(e) || b(l) || e <= l + }, r.$observe("max", function(e) { + $(e) && !C(e) && (e = parseFloat(e, 10)), l = C(e) && !isNaN(e) ? e : n, i.$validate() + }) + } + } + + function vr(e, t, n, r, i, o) { + ur(e, t, n, r, i, o), sr(r), r.$$parserName = "url", r.$validators.url = function(e, t) { + var n = e || t; + return r.$isEmpty(n) || Fo.test(n) + } + } + + function mr(e, t, n, r, i, o) { + ur(e, t, n, r, i, o), sr(r), r.$$parserName = "email", r.$validators.email = function(e, t) { + var n = e || t; + return r.$isEmpty(n) || Lo.test(n) + } + } + + function gr(e, t, n, r) { + b(n.name) && t.attr("name", l()); + var i = function(e) { + t[0].checked && r.$setViewValue(n.value, e && e.type) + }; + t.on("click", i), r.$render = function() { + var e = n.value; + t[0].checked = e == r.$viewValue + }, n.$observe("value", r.$render) + } + + function yr(e, t, n, r, i) { + var o; + if ($(r)) { + if (o = e(r), !o.constant) throw ga("constexpr", "Expected constant expression for `{0}`, but saw `{1}`.", n, r); + return o(t) + } + return i + } + + function br(e, t, n, r, i, o, a, s) { + var l = yr(s, e, "ngTrueValue", n.ngTrueValue, !0), + u = yr(s, e, "ngFalseValue", n.ngFalseValue, !1), + c = function(e) { + r.$setViewValue(t[0].checked, e && e.type) + }; + t.on("click", c), r.$render = function() { + t[0].checked = r.$viewValue + }, r.$isEmpty = function(e) { + return e === !1 + }, r.$formatters.push(function(e) { + return H(e, l) + }), r.$parsers.push(function(e) { + return e ? l : u + }) + } + + function $r(e, t) { + return e = "ngClass" + e, ["$animate", function(n) { + function r(e, t) { + var n = []; + e: for (var r = 0; r < e.length; r++) { + for (var i = e[r], o = 0; o < t.length; o++) + if (i == t[o]) continue e; + n.push(i) + } + return n + } + + function i(e) { + var t = []; + return zr(e) ? (o(e, function(e) { + t = t.concat(i(e)) + }), t) : _(e) ? e.split(" ") : w(e) ? (o(e, function(e, n) { + e && (t = t.concat(n.split(" "))) + }), t) : e + } + return { + restrict: "AC", + link: function(a, s, l) { + function u(e) { + var t = f(e, 1); + l.$addClass(t) + } + + function c(e) { + var t = f(e, -1); + l.$removeClass(t) + } + + function f(e, t) { + var n = s.data("$classCounts") || me(), + r = []; + return o(e, function(e) { + (t > 0 || n[e]) && (n[e] = (n[e] || 0) + t, n[e] === +(t > 0) && r.push(e)) + }), s.data("$classCounts", n), r.join(" ") + } + + function d(e, t) { + var i = r(t, e), + o = r(e, t); + i = f(i, 1), o = f(o, -1), i && i.length && n.addClass(s, i), o && o.length && n.removeClass(s, o) + } + + function h(e) { + if (t === !0 || a.$index % 2 === t) { + var n = i(e || []); + if (p) { + if (!H(e, p)) { + var r = i(p); + d(r, n) + } + } else u(n) + } + p = zr(e) ? e.map(function(e) { + return W(e) + }) : W(e) + } + var p; + a.$watch(l[e], h, !0), l.$observe("class", function(t) { + h(a.$eval(l[e])) + }), "ngClass" !== e && a.$watch("$index", function(n, r) { + var o = 1 & n; + if (o !== (1 & r)) { + var s = i(a.$eval(l[e])); + o === t ? u(s) : c(s) + } + }) + } + } + }] + } + + function wr(e) { + function t(e, t, l) { + b(t) ? r("$pending", e, l) : i("$pending", e, l), j(t) ? t ? (f(s.$error, e, l), c(s.$$success, e, l)) : (c(s.$error, e, l), f(s.$$success, e, l)) : (f(s.$error, e, l), f(s.$$success, e, l)), s.$pending ? (o(ma, !0), s.$valid = s.$invalid = n, a("", null)) : (o(ma, !1), s.$valid = xr(s.$error), s.$invalid = !s.$valid, a("", s.$valid)); + var u; + u = s.$pending && s.$pending[e] ? n : !s.$error[e] && (!!s.$$success[e] || null), a(e, u), s.$$parentForm.$setValidity(e, u, s) + } + + function r(e, t, n) { + s[e] || (s[e] = {}), c(s[e], t, n) + } + + function i(e, t, r) { + s[e] && f(s[e], t, r), xr(s[e]) && (s[e] = n) + } + + function o(e, t) { + t && !u[e] ? (d.addClass(l, e), u[e] = !0) : !t && u[e] && (d.removeClass(l, e), u[e] = !1) + } + + function a(e, t) { + e = e ? "-" + ue(e, "-") : "", o(ca + e, t === !0), o(fa + e, t === !1) + } + var s = e.ctrl, + l = e.$element, + u = {}, + c = e.set, + f = e.unset, + d = e.$animate; + u[fa] = !(u[ca] = l.hasClass(ca)), s.$setValidity = t + } + + function xr(e) { + if (e) + for (var t in e) + if (e.hasOwnProperty(t)) return !1; + return !0 + } + + function _r(e) { + e[0].hasAttribute("selected") && (e[0].selected = !0) + } + var Cr = /^\/(.+)\/([a-z]*)$/, + kr = "validity", + Er = function(e) { + return _(e) ? e.toLowerCase() : e + }, + Sr = Object.prototype.hasOwnProperty, + Or = function(e) { + return _(e) ? e.toUpperCase() : e + }, + Mr = function(e) { + return _(e) ? e.replace(/[A-Z]/g, function(e) { + return String.fromCharCode(32 | e.charCodeAt(0)) + }) : e + }, + Tr = function(e) { + return _(e) ? e.replace(/[a-z]/g, function(e) { + return String.fromCharCode(e.charCodeAt(0) & -33) + }) : e + }; + "i" !== "I".toLowerCase() && (Er = Mr, Or = Tr); + var Pr, Ar, jr, Fr, Lr = [].slice, + Rr = [].splice, + Dr = [].push, + Nr = Object.prototype.toString, + Ir = Object.getPrototypeOf, + Vr = r("ng"), + Wr = e.angular || (e.angular = {}), + Hr = 0; + Pr = t.documentMode, v.$inject = [], m.$inject = []; + var Ur, zr = Array.isArray, + qr = /^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/, + Br = function(e) { + return _(e) ? e.trim() : e + }, + Gr = function(e) { + return e.replace(/([-()\[\]{}+?*.$\^|,:#(?:<\/\1>|)$/, + mi = /<|&#?\w+;/, + gi = /<([\w:-]+)/, + yi = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi, + bi = { + option: [1, '"], + thead: [1, "", "
"], + col: [2, "", "
"], + tr: [2, "", "
"], + td: [3, "", "
"], + _default: [0, "", ""] + }; + bi.optgroup = bi.option, bi.tbody = bi.tfoot = bi.colgroup = bi.caption = bi.thead, bi.th = bi.td; + var $i = Node.prototype.contains || function(e) { + return !!(16 & this.compareDocumentPosition(e)) + }, + wi = Me.prototype = { + ready: function(n) { + function r() { + i || (i = !0, n()) + } + var i = !1; + "complete" === t.readyState ? setTimeout(r) : (this.on("DOMContentLoaded", r), Me(e) + .on("load", r)) + }, + toString: function() { + var e = []; + return o(this, function(t) { + e.push("" + t) + }), "[" + e.join(", ") + "]" + }, + eq: function(e) { + return Ar(e >= 0 ? this[e] : this[this.length + e]) + }, + length: 0, + push: Dr, + sort: [].sort, + splice: [].splice + }, + xi = {}; + o("multiple,selected,checked,disabled,readOnly,required,open".split(","), function(e) { + xi[Er(e)] = e + }); + var _i = {}; + o("input,select,option,textarea,button,form,details".split(","), function(e) { + _i[e] = !0 + }); + var Ci = { + ngMinlength: "minlength", + ngMaxlength: "maxlength", + ngMin: "min", + ngMax: "max", + ngPattern: "pattern" + }; + o({ + data: Le, + removeData: je, + hasData: ke + }, function(e, t) { + Me[t] = e + }), o({ + data: Le, + inheritedData: We, + scope: function(e) { + return Ar.data(e, "$scope") || We(e.parentNode || e, ["$isolateScope", "$scope"]) + }, + isolateScope: function(e) { + return Ar.data(e, "$isolateScope") || Ar.data(e, "$isolateScopeNoTemplate") + }, + controller: Ve, + injector: function(e) { + return We(e, "$injector") + }, + removeAttr: function(e, t) { + e.removeAttribute(t) + }, + hasClass: Re, + css: function(e, t, n) { + return t = xe(t), $(n) ? void(e.style[t] = n) : e.style[t] + }, + attr: function(e, t, r) { + var i = e.nodeType; + if (i !== ni && i !== ti && i !== ri) { + var o = Er(t); + if (xi[o]) { + if (!$(r)) return e[t] || (e.attributes.getNamedItem(t) || v) + .specified ? o : n; + r ? (e[t] = !0, e.setAttribute(t, o)) : (e[t] = !1, e.removeAttribute(o)) + } else if ($(r)) e.setAttribute(t, r); + else if (e.getAttribute) { + var a = e.getAttribute(t, 2); + return null === a ? n : a + } + } + }, + prop: function(e, t, n) { + return $(n) ? void(e[t] = n) : e[t] + }, + text: function() { + function e(e, t) { + if (b(t)) { + var n = e.nodeType; + return n === ei || n === ni ? e.textContent : "" + } + e.textContent = t + } + return e.$dv = "", e + }(), + val: function(e, t) { + if (b(t)) { + if (e.multiple && "select" === N(e)) { + var n = []; + return o(e.options, function(e) { + e.selected && n.push(e.value || e.text) + }), 0 === n.length ? null : n + } + return e.value + } + e.value = t + }, + html: function(e, t) { + return b(t) ? e.innerHTML : (Pe(e, !0), void(e.innerHTML = t)) + }, + empty: He + }, function(e, t) { + Me.prototype[t] = function(t, n) { + var r, i, o = this.length; + if (e !== He && b(2 == e.length && e !== Re && e !== Ve ? t : n)) { + if (w(t)) { + for (r = 0; r < o; r++) + if (e === Le) e(this[r], t); + else + for (i in t) e(this[r], i, t[i]); + return this + } + for (var a = e.$dv, s = b(a) ? Math.min(o, 1) : o, l = 0; l < s; l++) { + var u = e(this[l], t, n); + a = a ? a + u : u + } + return a + } + for (r = 0; r < o; r++) e(this[r], t, n); + return this + } + }), o({ + removeData: je, + on: function(e, t, r, i) { + if ($(i)) throw pi("onargs", "jqLite#on() does not support the `selector` or `eventData` parameters"); + if (Ce(e)) { + var o = Fe(e, !0), + a = o.events, + s = o.handle; + s || (s = o.handle = Ge(e, a)); + for (var l = t.indexOf(" ") >= 0 ? t.split(" ") : [t], u = l.length, c = function(t, n, i) { + var o = a[t]; + o || (o = a[t] = [], o.specialHandlerWrapper = n, "$destroy" === t || i || ui(e, t, s)), o.push(r) + }; u--;) t = l[u], hi[t] ? (c(hi[t], Ye), c(t, n, !0)) : c(t) + } + }, + off: Ae, + one: function(e, t, n) { + e = Ar(e), e.on(t, function r() { + e.off(t, n), e.off(t, r) + }), e.on(t, n) + }, + replaceWith: function(e, t) { + var n, r = e.parentNode; + Pe(e), o(new Me(t), function(t) { + n ? r.insertBefore(t, n.nextSibling) : r.replaceChild(t, e), n = t + }) + }, + children: function(e) { + var t = []; + return o(e.childNodes, function(e) { + e.nodeType === ei && t.push(e) + }), t + }, + contents: function(e) { + return e.contentDocument || e.childNodes || [] + }, + append: function(e, t) { + var n = e.nodeType; + if (n === ei || n === oi) { + t = new Me(t); + for (var r = 0, i = t.length; r < i; r++) { + var o = t[r]; + e.appendChild(o) + } + } + }, + prepend: function(e, t) { + if (e.nodeType === ei) { + var n = e.firstChild; + o(new Me(t), function(t) { + e.insertBefore(t, n) + }) + } + }, + wrap: function(e, t) { + Oe(e, Ar(t) + .eq(0) + .clone()[0]) + }, + remove: Ue, + detach: function(e) { + Ue(e, !0) + }, + after: function(e, t) { + var n = e, + r = e.parentNode; + t = new Me(t); + for (var i = 0, o = t.length; i < o; i++) { + var a = t[i]; + r.insertBefore(a, n.nextSibling), n = a + } + }, + addClass: Ne, + removeClass: De, + toggleClass: function(e, t, n) { + t && o(t.split(" "), function(t) { + var r = n; + b(r) && (r = !Re(e, t)), (r ? Ne : De)(e, t) + }) + }, + parent: function(e) { + var t = e.parentNode; + return t && t.nodeType !== oi ? t : null + }, + next: function(e) { + return e.nextElementSibling + }, + find: function(e, t) { + return e.getElementsByTagName ? e.getElementsByTagName(t) : [] + }, + clone: Te, + triggerHandler: function(e, t, n) { + var r, i, a, s = t.type || t, + l = Fe(e), + u = l && l.events, + c = u && u[s]; + c && (r = { + preventDefault: function() { + this.defaultPrevented = !0 + }, + isDefaultPrevented: function() { + return this.defaultPrevented === !0 + }, + stopImmediatePropagation: function() { + this.immediatePropagationStopped = !0 + }, + isImmediatePropagationStopped: function() { + return this.immediatePropagationStopped === !0 + }, + stopPropagation: v, + type: s, + target: e + }, t.type && (r = f(r, t)), i = W(c), a = n ? [r].concat(n) : [r], o(i, function(t) { + r.isImmediatePropagationStopped() || t.apply(e, a) + })) + } + }, function(e, t) { + Me.prototype[t] = function(t, n, r) { + for (var i, o = 0, a = this.length; o < a; o++) b(i) ? (i = e(this[o], t, n, r), $(i) && (i = Ar(i))) : Ie(i, e(this[o], t, n, r)); + return $(i) ? i : this + }, Me.prototype.bind = Me.prototype.on, Me.prototype.unbind = Me.prototype.off + }), Xe.prototype = { + put: function(e, t) { + this[Je(e, this.nextUid)] = t + }, + get: function(e) { + return this[Je(e, this.nextUid)] + }, + remove: function(e) { + var t = this[e = Je(e, this.nextUid)]; + return delete this[e], t + } + }; + var ki = [function() { + this.$get = [function() { + return Xe + }] + }], + Ei = /^[^\(]*\(\s*([^\)]*)\)/m, + Si = /,/, + Oi = /^\s*(_?)(\S+?)\1\s*$/, + Mi = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm, + Ti = r("$injector"); + tt.$$annotate = et; + var Pi = r("$animate"), + Ai = 1, + ji = "ng-animate", + Fi = function() { + this.$get = function() {} + }, + Li = function() { + var e = new Xe, + t = []; + this.$get = ["$$AnimateRunner", "$rootScope", function(n, r) { + function i(e, t, n) { + var r = !1; + return t && (t = _(t) ? t.split(" ") : zr(t) ? t : [], o(t, function(t) { + t && (r = !0, e[t] = n) + })), r + } + + function a() { + o(t, function(t) { + var n = e.get(t); + if (n) { + var r = ot(t.attr("class")), + i = "", + a = ""; + o(n, function(e, t) { + var n = !!r[t]; + e !== n && (e ? i += (i.length ? " " : "") + t : a += (a.length ? " " : "") + t) + }), o(t, function(e) { + i && Ne(e, i), a && De(e, a) + }), e.remove(t) + } + }), t.length = 0 + } + + function s(n, o, s) { + var l = e.get(n) || {}, + u = i(l, o, !0), + c = i(l, s, !1); + (u || c) && (e.put(n, l), t.push(n), 1 === t.length && r.$$postDigest(a)) + } + return { + enabled: v, + on: v, + off: v, + pin: v, + push: function(e, t, r, i) { + i && i(), r = r || {}, r.from && e.css(r.from), r.to && e.css(r.to), (r.addClass || r.removeClass) && s(e, r.addClass, r.removeClass); + var o = new n; + return o.complete(), o + } + } + }] + }, + Ri = ["$provide", function(e) { + var t = this; + this.$$registeredAnimations = Object.create(null), this.register = function(n, r) { + if (n && "." !== n.charAt(0)) throw Pi("notcsel", "Expecting class selector starting with '.' got '{0}'.", n); + var i = n + "-animation"; + t.$$registeredAnimations[n.substr(1)] = i, e.factory(i, r) + }, this.classNameFilter = function(e) { + if (1 === arguments.length && (this.$$classNameFilter = e instanceof RegExp ? e : null, this.$$classNameFilter)) { + var t = new RegExp("(\\s+|\\/)" + ji + "(\\s+|\\/)"); + if (t.test(this.$$classNameFilter.toString())) throw Pi("nongcls", '$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.', ji) + } + return this.$$classNameFilter + }, this.$get = ["$$animateQueue", function(e) { + function t(e, t, n) { + if (n) { + var r = it(n); + !r || r.parentNode || r.previousElementSibling || (n = null) + } + n ? n.after(e) : t.prepend(e) + } + return { + on: e.on, + off: e.off, + pin: e.pin, + enabled: e.enabled, + cancel: function(e) { + e.end && e.end() + }, + enter: function(n, r, i, o) { + return r = r && Ar(r), i = i && Ar(i), r = r || i.parent(), t(n, r, i), e.push(n, "enter", at(o)) + }, + move: function(n, r, i, o) { + return r = r && Ar(r), i = i && Ar(i), r = r || i.parent(), t(n, r, i), e.push(n, "move", at(o)) + }, + leave: function(t, n) { + return e.push(t, "leave", at(n), function() { + t.remove() + }) + }, + addClass: function(t, n, r) { + return r = at(r), r.addClass = rt(r.addclass, n), e.push(t, "addClass", r) + }, + removeClass: function(t, n, r) { + return r = at(r), r.removeClass = rt(r.removeClass, n), e.push(t, "removeClass", r) + }, + setClass: function(t, n, r, i) { + return i = at(i), i.addClass = rt(i.addClass, n), i.removeClass = rt(i.removeClass, r), e.push(t, "setClass", i) + }, + animate: function(t, n, r, i, o) { + return o = at(o), o.from = o.from ? f(o.from, n) : n, o.to = o.to ? f(o.to, r) : r, i = i || "ng-inline-animate", o.tempClasses = rt(o.tempClasses, i), e.push(t, "animate", o) + } + } + }] + }], + Di = function() { + this.$get = ["$$rAF", function(e) { + function t(t) { + n.push(t), n.length > 1 || e(function() { + for (var e = 0; e < n.length; e++) n[e](); + n = [] + }) + } + var n = []; + return function() { + var e = !1; + return t(function() { + e = !0 + }), + function(n) { + e ? n() : t(n) + } + } + }] + }, + Ni = function() { + this.$get = ["$q", "$sniffer", "$$animateAsyncRun", "$document", "$timeout", function(e, t, n, r, i) { + function a(e) { + this.setHost(e); + var t = n(), + o = function(e) { + i(e, 0, !1) + }; + this._doneCallbacks = [], this._tick = function(e) { + var n = r[0]; + n && n.hidden ? o(e) : t(e) + }, this._state = 0 + } + var s = 0, + l = 1, + u = 2; + return a.chain = function(e, t) { + function n() { + return r === e.length ? void t(!0) : void e[r](function(e) { + return e === !1 ? void t(!1) : (r++, void n()) + }) + } + var r = 0; + n() + }, a.all = function(e, t) { + function n(n) { + i = i && n, ++r === e.length && t(i) + } + var r = 0, + i = !0; + o(e, function(e) { + e.done(n) + }) + }, a.prototype = { + setHost: function(e) { + this.host = e || {} + }, + done: function(e) { + this._state === u ? e() : this._doneCallbacks.push(e) + }, + progress: v, + getPromise: function() { + if (!this.promise) { + var t = this; + this.promise = e(function(e, n) { + t.done(function(t) { + t === !1 ? n() : e() + }) + }) + } + return this.promise + }, + then: function(e, t) { + return this.getPromise() + .then(e, t) + }, + catch: function(e) { + return this.getPromise() + .catch(e) + }, + finally: function(e) { + return this.getPromise() + .finally(e) + }, + pause: function() { + this.host.pause && this.host.pause() + }, + resume: function() { + this.host.resume && this.host.resume() + }, + end: function() { + this.host.end && this.host.end(), this._resolve(!0) + }, + cancel: function() { + this.host.cancel && this.host.cancel(), this._resolve(!1) + }, + complete: function(e) { + var t = this; + t._state === s && (t._state = l, t._tick(function() { + t._resolve(e) + })) + }, + _resolve: function(e) { + this._state !== u && (o(this._doneCallbacks, function(t) { + t(e) + }), this._doneCallbacks.length = 0, this._state = u) + } + }, a + }] + }, + Ii = function() { + this.$get = ["$$rAF", "$q", "$$AnimateRunner", function(e, t, n) { + return function(t, r) { + function i() { + return e(function() { + o(), s || l.complete(), s = !0 + }), l + } + + function o() { + a.addClass && (t.addClass(a.addClass), a.addClass = null), a.removeClass && (t.removeClass(a.removeClass), a.removeClass = null), a.to && (t.css(a.to), a.to = null) + } + var a = r || {}; + a.$$prepared || (a = V(a)), a.cleanupStyles && (a.from = a.to = null), a.from && (t.css(a.from), a.from = null); + var s, l = new n; + return { + start: i, + end: i + } + } + }] + }, + Vi = r("$compile"); + ft.$inject = ["$provide", "$$sanitizeUriProvider"]; + var Wi = /^((?:x|data)[\:\-_])/i, + Hi = r("$controller"), + Ui = /^(\S+)(\s+as\s+([\w$]+))?$/, + zi = function() { + this.$get = ["$document", function(e) { + return function(t) { + return t ? !t.nodeType && t instanceof Ar && (t = t[0]) : t = e[0].body, t.offsetWidth + 1 + } + }] + }, + qi = "application/json", + Bi = { + "Content-Type": qi + ";charset=utf-8" + }, + Gi = /^\[|^\{(?!\{)/, + Ki = { + "[": /]$/, + "{": /}$/ + }, + Yi = /^\)\]\}',?\n/, + Qi = r("$http"), + Ji = function(e) { + return function() { + throw Qi("legacy", "The method `{0}` on the promise returned from `$http` has been disabled.", e) + } + }, + Xi = Wr.$interpolateMinErr = r("$interpolate"); + Xi.throwNoconcat = function(e) { + throw Xi("noconcat", "Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce", e) + }, Xi.interr = function(e, t) { + return Xi("interr", "Can't interpolate: {0}\n{1}", e, t.toString()) + }; + var Zi = /^([^\?#]*)(\?([^#]*))?(#(.*))?$/, + eo = { + http: 80, + https: 443, + ftp: 21 + }, + to = r("$location"), + no = { + $$html5: !1, + $$replace: !1, + absUrl: qt("$$absUrl"), + url: function(e) { + if (b(e)) return this.$$url; + var t = Zi.exec(e); + return (t[1] || "" === e) && this.path(decodeURIComponent(t[1])), (t[2] || t[1] || "" === e) && this.search(t[3] || ""), this.hash(t[5] || ""), this + }, + protocol: qt("$$protocol"), + host: qt("$$host"), + port: qt("$$port"), + path: Bt("$$path", function(e) { + return e = null !== e ? e.toString() : "", "/" == e.charAt(0) ? e : "/" + e + }), + search: function(e, t) { + switch (arguments.length) { + case 0: + return this.$$search; + case 1: + if (_(e) || C(e)) e = e.toString(), this.$$search = ee(e); + else { + if (!w(e)) throw to("isrcharg", "The first argument of the `$location#search()` call must be a string or an object."); + e = V(e, {}), o(e, function(t, n) { + null == t && delete e[n] + }), this.$$search = e + } + break; + default: + b(t) || null === t ? delete this.$$search[e] : this.$$search[e] = t + } + return this.$$compose(), this + }, + hash: Bt("$$hash", function(e) { + return null !== e ? e.toString() : "" + }), + replace: function() { + return this.$$replace = !0, this + } + }; + o([zt, Ut, Ht], function(e) { + e.prototype = Object.create(no), e.prototype.state = function(t) { + if (!arguments.length) return this.$$state; + if (e !== Ht || !this.$$html5) throw to("nostate", "History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API"); + return this.$$state = b(t) ? null : t, this + } + }); + var ro = r("$parse"), + io = Function.prototype.call, + oo = Function.prototype.apply, + ao = Function.prototype.bind, + so = me(); + o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "), function(e) { + so[e] = !0 + }); + var lo = { + n: "\n", + f: "\f", + r: "\r", + t: "\t", + v: "\v", + "'": "'", + '"': '"' + }, + uo = function(e) { + this.options = e + }; + uo.prototype = { + constructor: uo, + lex: function(e) { + for (this.text = e, this.index = 0, this.tokens = []; this.index < this.text.length;) { + var t = this.text.charAt(this.index); + if ('"' === t || "'" === t) this.readString(t); + else if (this.isNumber(t) || "." === t && this.isNumber(this.peek())) this.readNumber(); + else if (this.isIdent(t)) this.readIdent(); + else if (this.is(t, "(){}[].,;:?")) this.tokens.push({ + index: this.index, + text: t + }), this.index++; + else if (this.isWhitespace(t)) this.index++; + else { + var n = t + this.peek(), + r = n + this.peek(2), + i = so[t], + o = so[n], + a = so[r]; + if (i || o || a) { + var s = a ? r : o ? n : t; + this.tokens.push({ + index: this.index, + text: s, + operator: !0 + }), this.index += s.length + } else this.throwError("Unexpected next character ", this.index, this.index + 1) + } + } + return this.tokens + }, + is: function(e, t) { + return t.indexOf(e) !== -1 + }, + peek: function(e) { + var t = e || 1; + return this.index + t < this.text.length && this.text.charAt(this.index + t) + }, + isNumber: function(e) { + return "0" <= e && e <= "9" && "string" == typeof e + }, + isWhitespace: function(e) { + return " " === e || "\r" === e || "\t" === e || "\n" === e || "\v" === e || " " === e + }, + isIdent: function(e) { + return "a" <= e && e <= "z" || "A" <= e && e <= "Z" || "_" === e || "$" === e + }, + isExpOperator: function(e) { + return "-" === e || "+" === e || this.isNumber(e) + }, + throwError: function(e, t, n) { + n = n || this.index; + var r = $(t) ? "s " + t + "-" + this.index + " [" + this.text.substring(t, n) + "]" : " " + n; + throw ro("lexerr", "Lexer Error: {0} at column{1} in expression [{2}].", e, r, this.text) + }, + readNumber: function() { + for (var e = "", t = this.index; this.index < this.text.length;) { + var n = Er(this.text.charAt(this.index)); + if ("." == n || this.isNumber(n)) e += n; + else { + var r = this.peek(); + if ("e" == n && this.isExpOperator(r)) e += n; + else if (this.isExpOperator(n) && r && this.isNumber(r) && "e" == e.charAt(e.length - 1)) e += n; + else { + if (!this.isExpOperator(n) || r && this.isNumber(r) || "e" != e.charAt(e.length - 1)) break; + this.throwError("Invalid exponent") + } + } + this.index++ + } + this.tokens.push({ + index: t, + text: e, + constant: !0, + value: Number(e) + }) + }, + readIdent: function() { + for (var e = this.index; this.index < this.text.length;) { + var t = this.text.charAt(this.index); + if (!this.isIdent(t) && !this.isNumber(t)) break; + this.index++ + } + this.tokens.push({ + index: e, + text: this.text.slice(e, this.index), + identifier: !0 + }) + }, + readString: function(e) { + var t = this.index; + this.index++; + for (var n = "", r = e, i = !1; this.index < this.text.length;) { + var o = this.text.charAt(this.index); + if (r += o, i) { + if ("u" === o) { + var a = this.text.substring(this.index + 1, this.index + 5); + a.match(/[\da-f]{4}/i) || this.throwError("Invalid unicode escape [\\u" + a + "]"), this.index += 4, n += String.fromCharCode(parseInt(a, 16)) + } else { + var s = lo[o]; + n += s || o + } + i = !1 + } else if ("\\" === o) i = !0; + else { + if (o === e) return this.index++, void this.tokens.push({ + index: t, + text: r, + constant: !0, + value: n + }); + n += o + } + this.index++ + } + this.throwError("Unterminated quote", t) + } + }; + var co = function(e, t) { + this.lexer = e, this.options = t + }; + co.Program = "Program", co.ExpressionStatement = "ExpressionStatement", co.AssignmentExpression = "AssignmentExpression", co.ConditionalExpression = "ConditionalExpression", co.LogicalExpression = "LogicalExpression", co.BinaryExpression = "BinaryExpression", co.UnaryExpression = "UnaryExpression", co.CallExpression = "CallExpression", co.MemberExpression = "MemberExpression", co.Identifier = "Identifier", co.Literal = "Literal", co.ArrayExpression = "ArrayExpression", co.Property = "Property", co.ObjectExpression = "ObjectExpression", co.ThisExpression = "ThisExpression", co.NGValueParameter = "NGValueParameter", co.prototype = { + ast: function(e) { + this.text = e, this.tokens = this.lexer.lex(e); + var t = this.program(); + return 0 !== this.tokens.length && this.throwError("is an unexpected token", this.tokens[0]), t + }, + program: function() { + for (var e = [];;) + if (this.tokens.length > 0 && !this.peek("}", ")", ";", "]") && e.push(this.expressionStatement()), !this.expect(";")) return { + type: co.Program, + body: e + } + }, + expressionStatement: function() { + return { + type: co.ExpressionStatement, + expression: this.filterChain() + } + }, + filterChain: function() { + for (var e, t = this.expression(); e = this.expect("|");) t = this.filter(t); + return t + }, + expression: function() { + return this.assignment() + }, + assignment: function() { + var e = this.ternary(); + return this.expect("=") && (e = { + type: co.AssignmentExpression, + left: e, + right: this.assignment(), + operator: "=" + }), e + }, + ternary: function() { + var e, t, n = this.logicalOR(); + return this.expect("?") && (e = this.expression(), this.consume(":")) ? (t = this.expression(), { + type: co.ConditionalExpression, + test: n, + alternate: e, + consequent: t + }) : n + }, + logicalOR: function() { + for (var e = this.logicalAND(); this.expect("||");) e = { + type: co.LogicalExpression, + operator: "||", + left: e, + right: this.logicalAND() + }; + return e + }, + logicalAND: function() { + for (var e = this.equality(); this.expect("&&");) e = { + type: co.LogicalExpression, + operator: "&&", + left: e, + right: this.equality() + }; + return e + }, + equality: function() { + for (var e, t = this.relational(); e = this.expect("==", "!=", "===", "!==");) t = { + type: co.BinaryExpression, + operator: e.text, + left: t, + right: this.relational() + }; + return t + }, + relational: function() { + for (var e, t = this.additive(); e = this.expect("<", ">", "<=", ">=");) t = { + type: co.BinaryExpression, + operator: e.text, + left: t, + right: this.additive() + }; + return t + }, + additive: function() { + for (var e, t = this.multiplicative(); e = this.expect("+", "-");) t = { + type: co.BinaryExpression, + operator: e.text, + left: t, + right: this.multiplicative() + }; + return t + }, + multiplicative: function() { + for (var e, t = this.unary(); e = this.expect("*", "/", "%");) t = { + type: co.BinaryExpression, + operator: e.text, + left: t, + right: this.unary() + }; + return t + }, + unary: function() { + var e; + return (e = this.expect("+", "-", "!")) ? { + type: co.UnaryExpression, + operator: e.text, + prefix: !0, + argument: this.unary() + } : this.primary() + }, + primary: function() { + var e; + this.expect("(") ? (e = this.filterChain(), this.consume(")")) : this.expect("[") ? e = this.arrayDeclaration() : this.expect("{") ? e = this.object() : this.constants.hasOwnProperty(this.peek() + .text) ? e = V(this.constants[this.consume() + .text]) : this.peek() + .identifier ? e = this.identifier() : this.peek() + .constant ? e = this.constant() : this.throwError("not a primary expression", this.peek()); + for (var t; t = this.expect("(", "[", ".");) "(" === t.text ? (e = { + type: co.CallExpression, + callee: e, + arguments: this.parseArguments() + }, this.consume(")")) : "[" === t.text ? (e = { + type: co.MemberExpression, + object: e, + property: this.expression(), + computed: !0 + }, this.consume("]")) : "." === t.text ? e = { + type: co.MemberExpression, + object: e, + property: this.identifier(), + computed: !1 + } : this.throwError("IMPOSSIBLE"); + return e + }, + filter: function(e) { + for (var t = [e], n = { + type: co.CallExpression, + callee: this.identifier(), + arguments: t, + filter: !0 + }; this.expect(":");) t.push(this.expression()); + return n + }, + parseArguments: function() { + var e = []; + if (")" !== this.peekToken() + .text) + do e.push(this.expression()); while (this.expect(",")); + return e + }, + identifier: function() { + var e = this.consume(); + return e.identifier || this.throwError("is not a valid identifier", e), { + type: co.Identifier, + name: e.text + } + }, + constant: function() { + return { + type: co.Literal, + value: this.consume() + .value + } + }, + arrayDeclaration: function() { + var e = []; + if ("]" !== this.peekToken() + .text) + do { + if (this.peek("]")) break; + e.push(this.expression()) + } while (this.expect(",")); + return this.consume("]"), { + type: co.ArrayExpression, + elements: e + } + }, + object: function() { + var e, t = []; + if ("}" !== this.peekToken() + .text) + do { + if (this.peek("}")) break; + e = { + type: co.Property, + kind: "init" + }, this.peek() + .constant ? e.key = this.constant() : this.peek() + .identifier ? e.key = this.identifier() : this.throwError("invalid key", this.peek()), this.consume(":"), e.value = this.expression(), t.push(e) + } while (this.expect(",")); + return this.consume("}"), { + type: co.ObjectExpression, + properties: t + } + }, + throwError: function(e, t) { + throw ro("syntax", "Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].", t.text, e, t.index + 1, this.text, this.text.substring(t.index)) + }, + consume: function(e) { + if (0 === this.tokens.length) throw ro("ueoe", "Unexpected end of expression: {0}", this.text); + var t = this.expect(e); + return t || this.throwError("is unexpected, expecting [" + e + "]", this.peek()), t + }, + peekToken: function() { + if (0 === this.tokens.length) throw ro("ueoe", "Unexpected end of expression: {0}", this.text); + return this.tokens[0] + }, + peek: function(e, t, n, r) { + return this.peekAhead(0, e, t, n, r) + }, + peekAhead: function(e, t, n, r, i) { + if (this.tokens.length > e) { + var o = this.tokens[e], + a = o.text; + if (a === t || a === n || a === r || a === i || !t && !n && !r && !i) return o + } + return !1 + }, + expect: function(e, t, n, r) { + var i = this.peek(e, t, n, r); + return !!i && (this.tokens.shift(), i) + }, + constants: { + true: { + type: co.Literal, + value: !0 + }, + false: { + type: co.Literal, + value: !1 + }, + null: { + type: co.Literal, + value: null + }, + undefined: { + type: co.Literal, + value: n + }, + this: { + type: co.ThisExpression + } + } + }, cn.prototype = { + compile: function(e, t) { + var r = this, + i = this.astBuilder.ast(e); + this.state = { + nextId: 0, + filters: {}, + expensiveChecks: t, + fn: { + vars: [], + body: [], + own: {} + }, + assign: { + vars: [], + body: [], + own: {} + }, + inputs: [] + }, rn(i, r.$filter); + var a, s = ""; + if (this.stage = "assign", a = sn(i)) { + this.state.computing = "assign"; + var l = this.nextId(); + this.recurse(a, l), this.return_(l), s = "fn.assign=" + this.generateFunction("assign", "s,v,l") + } + var u = on(i.body); + r.stage = "inputs", o(u, function(e, t) { + var n = "fn" + t; + r.state[n] = { + vars: [], + body: [], + own: {} + }, r.state.computing = n; + var i = r.nextId(); + r.recurse(e, i), r.return_(i), r.state.inputs.push(n), e.watchId = t + }), this.state.computing = "fn", this.stage = "main", this.recurse(i); + var c = '"' + this.USE + " " + this.STRICT + '";\n' + this.filterPrefix() + "var fn=" + this.generateFunction("fn", "s,l,a,i") + s + this.watchFns() + "return fn;", + f = new Function("$filter", "ensureSafeMemberName", "ensureSafeObject", "ensureSafeFunction", "getStringValue", "ensureSafeAssignContext", "ifDefined", "plus", "text", c)(this.$filter, Yt, Jt, Xt, Qt, Zt, en, tn, e); + return this.state = this.stage = n, f.literal = ln(i), f.constant = un(i), f + }, + USE: "use", + STRICT: "strict", + watchFns: function() { + var e = [], + t = this.state.inputs, + n = this; + return o(t, function(t) { + e.push("var " + t + "=" + n.generateFunction(t, "s")) + }), t.length && e.push("fn.inputs=[" + t.join(",") + "];"), e.join("") + }, + generateFunction: function(e, t) { + return "function(" + t + "){" + this.varsPrefix(e) + this.body(e) + "};" + }, + filterPrefix: function() { + var e = [], + t = this; + return o(this.state.filters, function(n, r) { + e.push(n + "=$filter(" + t.escape(r) + ")") + }), e.length ? "var " + e.join(",") + ";" : "" + }, + varsPrefix: function(e) { + return this.state[e].vars.length ? "var " + this.state[e].vars.join(",") + ";" : "" + }, + body: function(e) { + return this.state[e].body.join("") + }, + recurse: function(e, t, r, i, a, s) { + var l, u, c, f, d = this; + if (i = i || v, !s && $(e.watchId)) return t = t || this.nextId(), void this.if_("i", this.lazyAssign(t, this.computedMember("i", e.watchId)), this.lazyRecurse(e, t, r, i, a, !0)); + switch (e.type) { + case co.Program: + o(e.body, function(t, r) { + d.recurse(t.expression, n, n, function(e) { + u = e + }), r !== e.body.length - 1 ? d.current() + .body.push(u, ";") : d.return_(u) + }); + break; + case co.Literal: + f = this.escape(e.value), this.assign(t, f), i(f); + break; + case co.UnaryExpression: + this.recurse(e.argument, n, n, function(e) { + u = e + }), f = e.operator + "(" + this.ifDefined(u, 0) + ")", this.assign(t, f), i(f); + break; + case co.BinaryExpression: + this.recurse(e.left, n, n, function(e) { + l = e + }), this.recurse(e.right, n, n, function(e) { + u = e + }), f = "+" === e.operator ? this.plus(l, u) : "-" === e.operator ? this.ifDefined(l, 0) + e.operator + this.ifDefined(u, 0) : "(" + l + ")" + e.operator + "(" + u + ")", this.assign(t, f), i(f); + break; + case co.LogicalExpression: + t = t || this.nextId(), d.recurse(e.left, t), d.if_("&&" === e.operator ? t : d.not(t), d.lazyRecurse(e.right, t)), i(t); + break; + case co.ConditionalExpression: + t = t || this.nextId(), d.recurse(e.test, t), d.if_(t, d.lazyRecurse(e.alternate, t), d.lazyRecurse(e.consequent, t)), i(t); + break; + case co.Identifier: + t = t || this.nextId(), r && (r.context = "inputs" === d.stage ? "s" : this.assign(this.nextId(), this.getHasOwnProperty("l", e.name) + "?l:s"), r.computed = !1, r.name = e.name), Yt(e.name), d.if_("inputs" === d.stage || d.not(d.getHasOwnProperty("l", e.name)), function() { + d.if_("inputs" === d.stage || "s", function() { + a && 1 !== a && d.if_(d.not(d.nonComputedMember("s", e.name)), d.lazyAssign(d.nonComputedMember("s", e.name), "{}")), d.assign(t, d.nonComputedMember("s", e.name)) + }) + }, t && d.lazyAssign(t, d.nonComputedMember("l", e.name))), (d.state.expensiveChecks || dn(e.name)) && d.addEnsureSafeObject(t), i(t); + break; + case co.MemberExpression: + l = r && (r.context = this.nextId()) || this.nextId(), t = t || this.nextId(), d.recurse(e.object, l, n, function() { + d.if_(d.notNull(l), function() { + a && 1 !== a && d.addEnsureSafeAssignContext(l), e.computed ? (u = d.nextId(), d.recurse(e.property, u), d.getStringValue(u), d.addEnsureSafeMemberName(u), a && 1 !== a && d.if_(d.not(d.computedMember(l, u)), d.lazyAssign(d.computedMember(l, u), "{}")), f = d.ensureSafeObject(d.computedMember(l, u)), d.assign(t, f), r && (r.computed = !0, r.name = u)) : (Yt(e.property.name), a && 1 !== a && d.if_(d.not(d.nonComputedMember(l, e.property.name)), d.lazyAssign(d.nonComputedMember(l, e.property.name), "{}")), f = d.nonComputedMember(l, e.property.name), (d.state.expensiveChecks || dn(e.property.name)) && (f = d.ensureSafeObject(f)), d.assign(t, f), r && (r.computed = !1, r.name = e.property.name)) + }, function() { + d.assign(t, "undefined") + }), i(t) + }, !!a); + break; + case co.CallExpression: + t = t || this.nextId(), e.filter ? (u = d.filter(e.callee.name), c = [], o(e.arguments, function(e) { + var t = d.nextId(); + d.recurse(e, t), c.push(t) + }), f = u + "(" + c.join(",") + ")", d.assign(t, f), i(t)) : (u = d.nextId(), l = {}, c = [], d.recurse(e.callee, u, l, function() { + d.if_(d.notNull(u), function() { + d.addEnsureSafeFunction(u), o(e.arguments, function(e) { + d.recurse(e, d.nextId(), n, function(e) { + c.push(d.ensureSafeObject(e)) + }) + }), l.name ? (d.state.expensiveChecks || d.addEnsureSafeObject(l.context), f = d.member(l.context, l.name, l.computed) + "(" + c.join(",") + ")") : f = u + "(" + c.join(",") + ")", f = d.ensureSafeObject(f), d.assign(t, f) + }, function() { + d.assign(t, "undefined") + }), i(t) + })); + break; + case co.AssignmentExpression: + if (u = this.nextId(), l = {}, !an(e.left)) throw ro("lval", "Trying to assign a value to a non l-value"); + this.recurse(e.left, n, l, function() { + d.if_(d.notNull(l.context), function() { + d.recurse(e.right, u), d.addEnsureSafeObject(d.member(l.context, l.name, l.computed)), d.addEnsureSafeAssignContext(l.context), f = d.member(l.context, l.name, l.computed) + e.operator + u, d.assign(t, f), i(t || f) + }) + }, 1); + break; + case co.ArrayExpression: + c = [], o(e.elements, function(e) { + d.recurse(e, d.nextId(), n, function(e) { + c.push(e) + }) + }), f = "[" + c.join(",") + "]", this.assign(t, f), i(f); + break; + case co.ObjectExpression: + c = [], o(e.properties, function(e) { + d.recurse(e.value, d.nextId(), n, function(t) { + c.push(d.escape(e.key.type === co.Identifier ? e.key.name : "" + e.key.value) + ":" + t) + }) + }), f = "{" + c.join(",") + "}", this.assign(t, f), i(f); + break; + case co.ThisExpression: + this.assign(t, "s"), i("s"); + break; + case co.NGValueParameter: + this.assign(t, "v"), i("v") + } + }, + getHasOwnProperty: function(e, t) { + var n = e + "." + t, + r = this.current() + .own; + return r.hasOwnProperty(n) || (r[n] = this.nextId(!1, e + "&&(" + this.escape(t) + " in " + e + ")")), r[n] + }, + assign: function(e, t) { + if (e) return this.current() + .body.push(e, "=", t, ";"), e + }, + filter: function(e) { + return this.state.filters.hasOwnProperty(e) || (this.state.filters[e] = this.nextId(!0)), this.state.filters[e] + }, + ifDefined: function(e, t) { + return "ifDefined(" + e + "," + this.escape(t) + ")" + }, + plus: function(e, t) { + return "plus(" + e + "," + t + ")" + }, + return_: function(e) { + this.current() + .body.push("return ", e, ";") + }, + if_: function(e, t, n) { + if (e === !0) t(); + else { + var r = this.current() + .body; + r.push("if(", e, "){"), t(), r.push("}"), n && (r.push("else{"), n(), r.push("}")) + } + }, + not: function(e) { + return "!(" + e + ")" + }, + notNull: function(e) { + return e + "!=null" + }, + nonComputedMember: function(e, t) { + return e + "." + t + }, + computedMember: function(e, t) { + return e + "[" + t + "]" + }, + member: function(e, t, n) { + return n ? this.computedMember(e, t) : this.nonComputedMember(e, t) + }, + addEnsureSafeObject: function(e) { + this.current() + .body.push(this.ensureSafeObject(e), ";") + }, + addEnsureSafeMemberName: function(e) { + this.current() + .body.push(this.ensureSafeMemberName(e), ";") + }, + addEnsureSafeFunction: function(e) { + this.current() + .body.push(this.ensureSafeFunction(e), ";") + }, + addEnsureSafeAssignContext: function(e) { + this.current() + .body.push(this.ensureSafeAssignContext(e), ";") + }, + ensureSafeObject: function(e) { + return "ensureSafeObject(" + e + ",text)" + }, + ensureSafeMemberName: function(e) { + return "ensureSafeMemberName(" + e + ",text)" + }, + ensureSafeFunction: function(e) { + return "ensureSafeFunction(" + e + ",text)" + }, + getStringValue: function(e) { + this.assign(e, "getStringValue(" + e + ",text)") + }, + ensureSafeAssignContext: function(e) { + return "ensureSafeAssignContext(" + e + ",text)" + }, + lazyRecurse: function(e, t, n, r, i, o) { + var a = this; + return function() { + a.recurse(e, t, n, r, i, o) + } + }, + lazyAssign: function(e, t) { + var n = this; + return function() { + n.assign(e, t) + } + }, + stringEscapeRegex: /[^ a-zA-Z0-9]/g, + stringEscapeFn: function(e) { + return "\\u" + ("0000" + e.charCodeAt(0) + .toString(16)) + .slice(-4) + }, + escape: function(e) { + if (_(e)) return "'" + e.replace(this.stringEscapeRegex, this.stringEscapeFn) + "'"; + if (C(e)) return e.toString(); + if (e === !0) return "true"; + if (e === !1) return "false"; + if (null === e) return "null"; + if ("undefined" == typeof e) return "undefined"; + throw ro("esc", "IMPOSSIBLE") + }, + nextId: function(e, t) { + var n = "v" + this.state.nextId++; + return e || this.current() + .vars.push(n + (t ? "=" + t : "")), n + }, + current: function() { + return this.state[this.state.computing] + } + }, fn.prototype = { + compile: function(e, t) { + var n = this, + r = this.astBuilder.ast(e); + this.expression = e, this.expensiveChecks = t, rn(r, n.$filter); + var i, a; + (i = sn(r)) && (a = this.recurse(i)); + var s, l = on(r.body); + l && (s = [], o(l, function(e, t) { + var r = n.recurse(e); + e.input = r, s.push(r), e.watchId = t + })); + var u = []; + o(r.body, function(e) { + u.push(n.recurse(e.expression)) + }); + var c = 0 === r.body.length ? function() {} : 1 === r.body.length ? u[0] : function(e, t) { + var n; + return o(u, function(r) { + n = r(e, t) + }), n + }; + return a && (c.assign = function(e, t, n) { + return a(e, n, t) + }), s && (c.inputs = s), c.literal = ln(r), c.constant = un(r), c + }, + recurse: function(e, t, r) { + var i, a, s, l = this; + if (e.input) return this.inputs(e.input, e.watchId); + switch (e.type) { + case co.Literal: + return this.value(e.value, t); + case co.UnaryExpression: + return a = this.recurse(e.argument), this["unary" + e.operator](a, t); + case co.BinaryExpression: + return i = this.recurse(e.left), a = this.recurse(e.right), this["binary" + e.operator](i, a, t); + case co.LogicalExpression: + return i = this.recurse(e.left), a = this.recurse(e.right), this["binary" + e.operator](i, a, t); + case co.ConditionalExpression: + return this["ternary?:"](this.recurse(e.test), this.recurse(e.alternate), this.recurse(e.consequent), t); + case co.Identifier: + return Yt(e.name, l.expression), l.identifier(e.name, l.expensiveChecks || dn(e.name), t, r, l.expression); + case co.MemberExpression: + return i = this.recurse(e.object, !1, !!r), e.computed || (Yt(e.property.name, l.expression), a = e.property.name), e.computed && (a = this.recurse(e.property)), e.computed ? this.computedMember(i, a, t, r, l.expression) : this.nonComputedMember(i, a, l.expensiveChecks, t, r, l.expression); + case co.CallExpression: + return s = [], o(e.arguments, function(e) { + s.push(l.recurse(e)) + }), e.filter && (a = this.$filter(e.callee.name)), e.filter || (a = this.recurse(e.callee, !0)), e.filter ? function(e, r, i, o) { + for (var l = [], u = 0; u < s.length; ++u) l.push(s[u](e, r, i, o)); + var c = a.apply(n, l, o); + return t ? { + context: n, + name: n, + value: c + } : c + } : function(e, n, r, i) { + var o, u = a(e, n, r, i); + if (null != u.value) { + Jt(u.context, l.expression), Xt(u.value, l.expression); + for (var c = [], f = 0; f < s.length; ++f) c.push(Jt(s[f](e, n, r, i), l.expression)); + o = Jt(u.value.apply(u.context, c), l.expression) + } + return t ? { + value: o + } : o + }; + case co.AssignmentExpression: + return i = this.recurse(e.left, !0, 1), a = this.recurse(e.right), + function(e, n, r, o) { + var s = i(e, n, r, o), + u = a(e, n, r, o); + return Jt(s.value, l.expression), Zt(s.context), s.context[s.name] = u, t ? { + value: u + } : u + }; + case co.ArrayExpression: + return s = [], o(e.elements, function(e) { + s.push(l.recurse(e)) + }), + function(e, n, r, i) { + for (var o = [], a = 0; a < s.length; ++a) o.push(s[a](e, n, r, i)); + return t ? { + value: o + } : o + }; + case co.ObjectExpression: + return s = [], o(e.properties, function(e) { + s.push({ + key: e.key.type === co.Identifier ? e.key.name : "" + e.key.value, + value: l.recurse(e.value) + }) + }), + function(e, n, r, i) { + for (var o = {}, a = 0; a < s.length; ++a) o[s[a].key] = s[a].value(e, n, r, i); + return t ? { + value: o + } : o + }; + case co.ThisExpression: + return function(e) { + return t ? { + value: e + } : e + }; + case co.NGValueParameter: + return function(e, n, r, i) { + return t ? { + value: r + } : r + } + } + }, + "unary+": function(e, t) { + return function(n, r, i, o) { + var a = e(n, r, i, o); + return a = $(a) ? +a : 0, t ? { + value: a + } : a + } + }, + "unary-": function(e, t) { + return function(n, r, i, o) { + var a = e(n, r, i, o); + return a = $(a) ? -a : 0, t ? { + value: a + } : a + } + }, + "unary!": function(e, t) { + return function(n, r, i, o) { + var a = !e(n, r, i, o); + return t ? { + value: a + } : a + } + }, + "binary+": function(e, t, n) { + return function(r, i, o, a) { + var s = e(r, i, o, a), + l = t(r, i, o, a), + u = tn(s, l); + return n ? { + value: u + } : u + } + }, + "binary-": function(e, t, n) { + return function(r, i, o, a) { + var s = e(r, i, o, a), + l = t(r, i, o, a), + u = ($(s) ? s : 0) - ($(l) ? l : 0); + return n ? { + value: u + } : u + } + }, + "binary*": function(e, t, n) { + return function(r, i, o, a) { + var s = e(r, i, o, a) * t(r, i, o, a); + return n ? { + value: s + } : s + } + }, + "binary/": function(e, t, n) { + return function(r, i, o, a) { + var s = e(r, i, o, a) / t(r, i, o, a); + return n ? { + value: s + } : s + } + }, + "binary%": function(e, t, n) { + return function(r, i, o, a) { + var s = e(r, i, o, a) % t(r, i, o, a); + return n ? { + value: s + } : s + } + }, + "binary===": function(e, t, n) { + return function(r, i, o, a) { + var s = e(r, i, o, a) === t(r, i, o, a); + return n ? { + value: s + } : s + } + }, + "binary!==": function(e, t, n) { + return function(r, i, o, a) { + var s = e(r, i, o, a) !== t(r, i, o, a); + return n ? { + value: s + } : s + } + }, + "binary==": function(e, t, n) { + return function(r, i, o, a) { + var s = e(r, i, o, a) == t(r, i, o, a); + return n ? { + value: s + } : s + } + }, + "binary!=": function(e, t, n) { + return function(r, i, o, a) { + var s = e(r, i, o, a) != t(r, i, o, a); + return n ? { + value: s + } : s + } + }, + "binary<": function(e, t, n) { + return function(r, i, o, a) { + var s = e(r, i, o, a) < t(r, i, o, a); + return n ? { + value: s + } : s + } + }, + "binary>": function(e, t, n) { + return function(r, i, o, a) { + var s = e(r, i, o, a) > t(r, i, o, a); + return n ? { + value: s + } : s + } + }, + "binary<=": function(e, t, n) { + return function(r, i, o, a) { + var s = e(r, i, o, a) <= t(r, i, o, a); + return n ? { + value: s + } : s + } + }, + "binary>=": function(e, t, n) { + return function(r, i, o, a) { + var s = e(r, i, o, a) >= t(r, i, o, a); + return n ? { + value: s + } : s + } + }, + "binary&&": function(e, t, n) { + return function(r, i, o, a) { + var s = e(r, i, o, a) && t(r, i, o, a); + return n ? { + value: s + } : s + } + }, + "binary||": function(e, t, n) { + return function(r, i, o, a) { + var s = e(r, i, o, a) || t(r, i, o, a); + return n ? { + value: s + } : s + } + }, + "ternary?:": function(e, t, n, r) { + return function(i, o, a, s) { + var l = e(i, o, a, s) ? t(i, o, a, s) : n(i, o, a, s); + return r ? { + value: l + } : l + } + }, + value: function(e, t) { + return function() { + return t ? { + context: n, + name: n, + value: e + } : e + } + }, + identifier: function(e, t, r, i, o) { + return function(a, s, l, u) { + var c = s && e in s ? s : a; + i && 1 !== i && c && !c[e] && (c[e] = {}); + var f = c ? c[e] : n; + return t && Jt(f, o), r ? { + context: c, + name: e, + value: f + } : f + } + }, + computedMember: function(e, t, n, r, i) { + return function(o, a, s, l) { + var u, c, f = e(o, a, s, l); + return null != f && (u = t(o, a, s, l), u = Qt(u), Yt(u, i), r && 1 !== r && (Zt(f), f && !f[u] && (f[u] = {})), c = f[u], Jt(c, i)), n ? { + context: f, + name: u, + value: c + } : c + } + }, + nonComputedMember: function(e, t, r, i, o, a) { + return function(s, l, u, c) { + var f = e(s, l, u, c); + o && 1 !== o && (Zt(f), f && !f[t] && (f[t] = {})); + var d = null != f ? f[t] : n; + return (r || dn(t)) && Jt(d, a), i ? { + context: f, + name: t, + value: d + } : d + } + }, + inputs: function(e, t) { + return function(n, r, i, o) { + return o ? o[t] : e(n, r, i) + } + } + }; + var fo = function(e, t, n) { + this.lexer = e, this.$filter = t, this.options = n, this.ast = new co(this.lexer), this.astCompiler = n.csp ? new fn(this.ast, t) : new cn(this.ast, t) + }; + fo.prototype = { + constructor: fo, + parse: function(e) { + return this.astCompiler.compile(e, this.options.expensiveChecks) + } + }; + var ho = Object.prototype.valueOf, + po = r("$sce"), + vo = { + HTML: "html", + CSS: "css", + URL: "url", + RESOURCE_URL: "resourceUrl", + JS: "js" + }, + Vi = r("$compile"), + mo = t.createElement("a"), + go = Mn(e.location.href); + An.$inject = ["$document"], Fn.$inject = ["$provide"]; + var yo = 22, + bo = ".", + $o = "0"; + In.$inject = ["$locale"], Vn.$inject = ["$locale"]; + var wo = { + yyyy: qn("FullYear", 4), + yy: qn("FullYear", 2, 0, !0), + y: qn("FullYear", 1), + MMMM: Bn("Month"), + MMM: Bn("Month", !0), + MM: qn("Month", 2, 1), + M: qn("Month", 1, 1), + dd: qn("Date", 2), + d: qn("Date", 1), + HH: qn("Hours", 2), + H: qn("Hours", 1), + hh: qn("Hours", 2, -12), + h: qn("Hours", 1, -12), + mm: qn("Minutes", 2), + m: qn("Minutes", 1), + ss: qn("Seconds", 2), + s: qn("Seconds", 1), + sss: qn("Milliseconds", 3), + EEEE: Bn("Day"), + EEE: Bn("Day", !0), + a: Jn, + Z: Gn, + ww: Qn(2), + w: Qn(1), + G: Xn, + GG: Xn, + GGG: Xn, + GGGG: Zn + }, + xo = /((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/, + _o = /^\-?\d+$/; + er.$inject = ["$locale"]; + var Co = g(Er), + ko = g(Or); + rr.$inject = ["$parse"]; + var Eo = g({ + restrict: "E", + compile: function(e, t) { + if (!t.href && !t.xlinkHref) return function(e, t) { + if ("a" === t[0].nodeName.toLowerCase()) { + var n = "[object SVGAnimatedString]" === Nr.call(t.prop("href")) ? "xlink:href" : "href"; + t.on("click", function(e) { + t.attr(n) || e.preventDefault() + }) + } + } + } + }), + So = {}; + o(xi, function(e, t) { + function n(e, n, i) { + e.$watch(i[r], function(e) { + i.$set(t, !!e) + }) + } + if ("multiple" != e) { + var r = dt("ng-" + t), + i = n; + "checked" === e && (i = function(e, t, i) { + i.ngModel !== i[r] && n(e, t, i) + }), So[r] = function() { + return { + restrict: "A", + priority: 100, + link: i + } + } + } + }), o(Ci, function(e, t) { + So[t] = function() { + return { + priority: 100, + link: function(e, n, r) { + if ("ngPattern" === t && "/" == r.ngPattern.charAt(0)) { + var i = r.ngPattern.match(Cr); + if (i) return void r.$set("ngPattern", new RegExp(i[1], i[2])) + } + e.$watch(r[t], function(e) { + r.$set(t, e) + }) + } + } + } + }), o(["src", "srcset", "href"], function(e) { + var t = dt("ng-" + e); + So[t] = function() { + return { + priority: 99, + link: function(n, r, i) { + var o = e, + a = e; + "href" === e && "[object SVGAnimatedString]" === Nr.call(r.prop("href")) && (a = "xlinkHref", i.$attr[a] = "xlink:href", o = null), i.$observe(t, function(t) { + return t ? (i.$set(a, t), void(Pr && o && r.prop(o, i[a]))) : void("href" === e && i.$set(a, null)) + }) + } + } + } + }); + var Oo = { + $addControl: v, + $$renameControl: or, + $removeControl: v, + $setValidity: v, + $setDirty: v, + $setPristine: v, + $setSubmitted: v + }, + Mo = "ng-submitted"; + ar.$inject = ["$element", "$attrs", "$scope", "$animate", "$interpolate"]; + var To = function(e) { + return ["$timeout", "$parse", function(t, r) { + function i(e) { + return "" === e ? r('this[""]') + .assign : r(e) + .assign || v + } + var o = { + name: "form", + restrict: e ? "EAC" : "E", + require: ["form", "^^?form"], + controller: ar, + compile: function(r, o) { + r.addClass(da) + .addClass(ca); + var a = o.name ? "name" : !(!e || !o.ngForm) && "ngForm"; + return { + pre: function(e, r, o, s) { + var l = s[0]; + if (!("action" in o)) { + var u = function(t) { + e.$apply(function() { + l.$commitViewValue(), l.$setSubmitted() + }), t.preventDefault() + }; + ui(r[0], "submit", u), r.on("$destroy", function() { + t(function() { + ci(r[0], "submit", u) + }, 0, !1) + }) + } + var c = s[1] || l.$$parentForm; + c.$addControl(l); + var d = a ? i(l.$name) : v; + a && (d(e, l), o.$observe(a, function(t) { + l.$name !== t && (d(e, n), l.$$parentForm.$$renameControl(l, t), (d = i(l.$name))(e, l)) + })), r.on("$destroy", function() { + l.$$parentForm.$removeControl(l), d(e, n), f(l, Oo) + }) + } + } + } + }; + return o + }] + }, + Po = To(), + Ao = To(!0), + jo = /\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/, + Fo = /^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i, + Lo = /^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i, + Ro = /^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/, + Do = /^(\d{4})-(\d{2})-(\d{2})$/, + No = /^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/, + Io = /^(\d{4})-W(\d\d)$/, + Vo = /^(\d{4})-(\d\d)$/, + Wo = /^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/, + Ho = "keydown wheel mousedown", + Uo = me(); + o("date,datetime-local,month,time,week".split(","), function(e) { + Uo[e] = !0 + }); + var zo = { + text: lr, + date: dr("date", Do, fr(Do, ["yyyy", "MM", "dd"]), "yyyy-MM-dd"), + "datetime-local": dr("datetimelocal", No, fr(No, ["yyyy", "MM", "dd", "HH", "mm", "ss", "sss"]), "yyyy-MM-ddTHH:mm:ss.sss"), + time: dr("time", Wo, fr(Wo, ["HH", "mm", "ss", "sss"]), "HH:mm:ss.sss"), + week: dr("week", Io, cr, "yyyy-Www"), + month: dr("month", Vo, fr(Vo, ["yyyy", "MM"]), "yyyy-MM"), + number: pr, + url: vr, + email: mr, + radio: gr, + checkbox: br, + hidden: v, + button: v, + submit: v, + reset: v, + file: v + }, + qo = ["$browser", "$sniffer", "$filter", "$parse", function(e, t, n, r) { + return { + restrict: "E", + require: ["?ngModel"], + link: { + pre: function(i, o, a, s) { + s[0] && (zo[Er(a.type)] || zo.text)(i, o, a, s[0], t, e, n, r) + } + } + } + }], + Bo = /^(true|false|\d+)$/, + Go = function() { + return { + restrict: "A", + priority: 100, + compile: function(e, t) { + return Bo.test(t.ngValue) ? function(e, t, n) { + n.$set("value", e.$eval(n.ngValue)) + } : function(e, t, n) { + e.$watch(n.ngValue, function(e) { + n.$set("value", e) + }) + } + } + } + }, + Ko = ["$compile", function(e) { + return { + restrict: "AC", + compile: function(t) { + return e.$$addBindingClass(t), + function(t, n, r) { + e.$$addBindingInfo(n, r.ngBind), n = n[0], t.$watch(r.ngBind, function(e) { + n.textContent = b(e) ? "" : e + }) + } + } + } + }], + Yo = ["$interpolate", "$compile", function(e, t) { + return { + compile: function(n) { + return t.$$addBindingClass(n), + function(n, r, i) { + var o = e(r.attr(i.$attr.ngBindTemplate)); + t.$$addBindingInfo(r, o.expressions), r = r[0], i.$observe("ngBindTemplate", function(e) { + r.textContent = b(e) ? "" : e + }) + } + } + } + }], + Qo = ["$sce", "$parse", "$compile", function(e, t, n) { + return { + restrict: "A", + compile: function(r, i) { + var o = t(i.ngBindHtml), + a = t(i.ngBindHtml, function(t) { + return e.valueOf(t) + }); + return n.$$addBindingClass(r), + function(t, r, i) { + n.$$addBindingInfo(r, i.ngBindHtml), t.$watch(a, function() { + var n = o(t); + r.html(e.getTrustedHtml(n) || "") + }) + } + } + } + }], + Jo = g({ + restrict: "A", + require: "ngModel", + link: function(e, t, n, r) { + r.$viewChangeListeners.push(function() { + e.$eval(n.ngChange) + }) + } + }), + Xo = $r("", !0), + Zo = $r("Odd", 0), + ea = $r("Even", 1), + ta = ir({ + compile: function(e, t) { + t.$set("ngCloak", n), e.removeClass("ng-cloak") + } + }), + na = [function() { + return { + restrict: "A", + scope: !0, + controller: "@", + priority: 500 + } + }], + ra = {}, + ia = { + blur: !0, + focus: !0 + }; + o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "), function(e) { + var t = dt("ng-" + e); + ra[t] = ["$parse", "$rootScope", function(n, r) { + return { + restrict: "A", + compile: function(i, o) { + var a = n(o[t], null, !0); + return function(t, n) { + n.on(e, function(n) { + var i = function() { + a(t, { + $event: n + }) + }; + ia[e] && r.$$phase ? t.$evalAsync(i) : t.$apply(i) + }) + } + } + } + }] + }); + var oa = ["$animate", function(e) { + return { + multiElement: !0, + transclude: "element", + priority: 600, + terminal: !0, + restrict: "A", + $$tlb: !0, + link: function(n, r, i, o, a) { + var s, l, u; + n.$watch(i.ngIf, function(n) { + n ? l || a(function(n, o) { + l = o, n[n.length++] = t.createComment(" end ngIf: " + i.ngIf + " "), s = { + clone: n + }, e.enter(n, r.parent(), r) + }) : (u && (u.remove(), u = null), l && (l.$destroy(), l = null), s && (u = ve(s.clone), e.leave(u) + .then(function() { + u = null + }), s = null)) + }) + } + } + }], + aa = ["$templateRequest", "$anchorScroll", "$animate", function(e, t, n) { + return { + restrict: "ECA", + priority: 400, + terminal: !0, + transclude: "element", + controller: Wr.noop, + compile: function(r, i) { + var o = i.ngInclude || i.src, + a = i.onload || "", + s = i.autoscroll; + return function(r, i, l, u, c) { + var f, d, h, p = 0, + v = function() { + d && (d.remove(), d = null), f && (f.$destroy(), f = null), h && (n.leave(h) + .then(function() { + d = null + }), d = h, h = null) + }; + r.$watch(o, function(o) { + var l = function() { + !$(s) || s && !r.$eval(s) || t() + }, + d = ++p; + o ? (e(o, !0) + .then(function(e) { + if (!r.$$destroyed && d === p) { + var t = r.$new(); + u.template = e; + var s = c(t, function(e) { + v(), n.enter(e, null, i) + .then(l) + }); + f = t, h = s, f.$emit("$includeContentLoaded", o), r.$eval(a) + } + }, function() { + r.$$destroyed || d === p && (v(), r.$emit("$includeContentError", o)) + }), r.$emit("$includeContentRequested", o)) : (v(), u.template = null) + }) + } + } + } + }], + sa = ["$compile", function(e) { + return { + restrict: "ECA", + priority: -400, + require: "ngInclude", + link: function(n, r, i, o) { + return /SVG/.test(r[0].toString()) ? (r.empty(), void e(Ee(o.template, t) + .childNodes)(n, function(e) { + r.append(e) + }, { + futureParentElement: r + })) : (r.html(o.template), void e(r.contents())(n)) + } + } + }], + la = ir({ + priority: 450, + compile: function() { + return { + pre: function(e, t, n) { + e.$eval(n.ngInit) + } + } + } + }), + ua = function() { + return { + restrict: "A", + priority: 100, + require: "ngModel", + link: function(e, t, r, i) { + var a = t.attr(r.$attr.ngList) || ", ", + s = "false" !== r.ngTrim, + l = s ? Br(a) : a, + u = function(e) { + if (!b(e)) { + var t = []; + return e && o(e.split(l), function(e) { + e && t.push(s ? Br(e) : e) + }), t + } + }; + i.$parsers.push(u), i.$formatters.push(function(e) { + return zr(e) ? e.join(a) : n + }), i.$isEmpty = function(e) { + return !e || !e.length + } + } + } + }, + ca = "ng-valid", + fa = "ng-invalid", + da = "ng-pristine", + ha = "ng-dirty", + pa = "ng-untouched", + va = "ng-touched", + ma = "ng-pending", + ga = r("ngModel"), + ya = ["$scope", "$exceptionHandler", "$attrs", "$element", "$parse", "$animate", "$timeout", "$rootScope", "$q", "$interpolate", function(e, t, r, i, a, s, l, u, c, f) { + this.$viewValue = Number.NaN, this.$modelValue = Number.NaN, this.$$rawModelValue = n, this.$validators = {}, this.$asyncValidators = {}, this.$parsers = [], this.$formatters = [], this.$viewChangeListeners = [], this.$untouched = !0, this.$touched = !1, this.$pristine = !0, this.$dirty = !1, this.$valid = !0, this.$invalid = !1, this.$error = {}, this.$$success = {}, this.$pending = n, this.$name = f(r.name || "", !1)(e), this.$$parentForm = Oo; + var d, h = a(r.ngModel), + p = h.assign, + m = h, + g = p, + y = null, + w = this; + this.$$setOptions = function(e) { + if (w.$options = e, e && e.getterSetter) { + var t = a(r.ngModel + "()"), + n = a(r.ngModel + "($$$p)"); + m = function(e) { + var n = h(e); + return E(n) && (n = t(e)), n + }, g = function(e, t) { + E(h(e)) ? n(e, { + $$$p: w.$modelValue + }) : p(e, w.$modelValue) + } + } else if (!h.assign) throw ga("nonassign", "Expression '{0}' is non-assignable. Element: {1}", r.ngModel, X(i)) + }, this.$render = v, this.$isEmpty = function(e) { + return b(e) || "" === e || null === e || e !== e + }; + var x = 0; + wr({ + ctrl: this, + $element: i, + set: function(e, t) { + e[t] = !0 + }, + unset: function(e, t) { + delete e[t] + }, + $animate: s + }), this.$setPristine = function() { + w.$dirty = !1, w.$pristine = !0, s.removeClass(i, ha), s.addClass(i, da) + }, this.$setDirty = function() { + w.$dirty = !0, w.$pristine = !1, s.removeClass(i, da), s.addClass(i, ha), w.$$parentForm.$setDirty() + }, this.$setUntouched = function() { + w.$touched = !1, w.$untouched = !0, s.setClass(i, pa, va) + }, this.$setTouched = function() { + w.$touched = !0, w.$untouched = !1, s.setClass(i, va, pa) + }, this.$rollbackViewValue = function() { + l.cancel(y), w.$viewValue = w.$$lastCommittedViewValue, w.$render() + }, this.$validate = function() { + if (!C(w.$modelValue) || !isNaN(w.$modelValue)) { + var e = w.$$lastCommittedViewValue, + t = w.$$rawModelValue, + r = w.$valid, + i = w.$modelValue, + o = w.$options && w.$options.allowInvalid; + w.$$runValidators(t, e, function(e) { + o || r === e || (w.$modelValue = e ? t : n, w.$modelValue !== i && w.$$writeModelToScope()) + }) + } + }, this.$$runValidators = function(e, t, r) { + function i() { + var e = w.$$parserName || "parse"; + return b(d) ? (l(e, null), !0) : (d || (o(w.$validators, function(e, t) { + l(t, null) + }), o(w.$asyncValidators, function(e, t) { + l(t, null) + })), l(e, d), d) + } + + function a() { + var n = !0; + return o(w.$validators, function(r, i) { + var o = r(e, t); + n = n && o, l(i, o) + }), !!n || (o(w.$asyncValidators, function(e, t) { + l(t, null) + }), !1) + } + + function s() { + var r = [], + i = !0; + o(w.$asyncValidators, function(o, a) { + var s = o(e, t); + if (!F(s)) throw ga("nopromise", "Expected asynchronous validator to return a promise but got '{0}' instead.", s); + l(a, n), r.push(s.then(function() { + l(a, !0) + }, function(e) { + i = !1, l(a, !1) + })) + }), r.length ? c.all(r) + .then(function() { + u(i) + }, v) : u(!0) + } + + function l(e, t) { + f === x && w.$setValidity(e, t) + } + + function u(e) { + f === x && r(e) + } + x++; + var f = x; + return i() && a() ? void s() : void u(!1) + }, this.$commitViewValue = function() { + var e = w.$viewValue; + l.cancel(y), (w.$$lastCommittedViewValue !== e || "" === e && w.$$hasNativeValidators) && (w.$$lastCommittedViewValue = e, w.$pristine && this.$setDirty(), this.$$parseAndValidate()) + }, this.$$parseAndValidate = function() { + function t() { + w.$modelValue !== a && w.$$writeModelToScope() + } + var r = w.$$lastCommittedViewValue, + i = r; + if (d = !b(i) || n) + for (var o = 0; o < w.$parsers.length; o++) + if (i = w.$parsers[o](i), b(i)) { + d = !1; + break + } + C(w.$modelValue) && isNaN(w.$modelValue) && (w.$modelValue = m(e)); + var a = w.$modelValue, + s = w.$options && w.$options.allowInvalid; + w.$$rawModelValue = i, s && (w.$modelValue = i, t()), w.$$runValidators(i, w.$$lastCommittedViewValue, function(e) { + s || (w.$modelValue = e ? i : n, t()) + }) + }, this.$$writeModelToScope = function() { + g(e, w.$modelValue), o(w.$viewChangeListeners, function(e) { + try { + e() + } catch (e) { + t(e) + } + }) + }, this.$setViewValue = function(e, t) { + w.$viewValue = e, w.$options && !w.$options.updateOnDefault || w.$$debounceViewValueCommit(t) + }, this.$$debounceViewValueCommit = function(t) { + var n, r = 0, + i = w.$options; + i && $(i.debounce) && (n = i.debounce, C(n) ? r = n : C(n[t]) ? r = n[t] : C(n.default) && (r = n.default)), l.cancel(y), r ? y = l(function() { + w.$commitViewValue() + }, r) : u.$$phase ? w.$commitViewValue() : e.$apply(function() { + w.$commitViewValue() + }) + }, e.$watch(function() { + var t = m(e); + if (t !== w.$modelValue && (w.$modelValue === w.$modelValue || t === t)) { + w.$modelValue = w.$$rawModelValue = t, d = n; + for (var r = w.$formatters, i = r.length, o = t; i--;) o = r[i](o); + w.$viewValue !== o && (w.$viewValue = w.$$lastCommittedViewValue = o, w.$render(), w.$$runValidators(t, o, v)) + } + return t + }) + }], + ba = ["$rootScope", function(e) { + return { + restrict: "A", + require: ["ngModel", "^?form", "^?ngModelOptions"], + controller: ya, + priority: 1, + compile: function(t) { + return t.addClass(da) + .addClass(pa) + .addClass(ca), { + pre: function(e, t, n, r) { + var i = r[0], + o = r[1] || i.$$parentForm; + i.$$setOptions(r[2] && r[2].$options), o.$addControl(i), n.$observe("name", function(e) { + i.$name !== e && i.$$parentForm.$$renameControl(i, e) + }), e.$on("$destroy", function() { + i.$$parentForm.$removeControl(i) + }) + }, + post: function(t, n, r, i) { + var o = i[0]; + o.$options && o.$options.updateOn && n.on(o.$options.updateOn, function(e) { + o.$$debounceViewValueCommit(e && e.type) + }), n.on("blur", function(n) { + o.$touched || (e.$$phase ? t.$evalAsync(o.$setTouched) : t.$apply(o.$setTouched)) + }) + } + } + } + } + }], + $a = /(\s+|^)default(\s+|$)/, + wa = function() { + return { + restrict: "A", + controller: ["$scope", "$attrs", function(e, t) { + var n = this; + this.$options = V(e.$eval(t.ngModelOptions)), $(this.$options.updateOn) ? (this.$options.updateOnDefault = !1, this.$options.updateOn = Br(this.$options.updateOn.replace($a, function() { + return n.$options.updateOnDefault = !0, " " + }))) : this.$options.updateOnDefault = !0 + }] + } + }, + xa = ir({ + terminal: !0, + priority: 1e3 + }), + _a = r("ngOptions"), + Ca = /^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/, + ka = ["$compile", "$parse", function(e, n) { + function r(e, t, r) { + function o(e, t, n, r, i) { + this.selectValue = e, this.viewValue = t, this.label = n, this.group = r, this.disabled = i + } + + function a(e) { + var t; + if (!u && i(e)) t = e; + else { + t = []; + for (var n in e) e.hasOwnProperty(n) && "$" !== n.charAt(0) && t.push(n) + } + return t + } + var s = e.match(Ca); + if (!s) throw _a("iexp", "Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}", e, X(t)); + var l = s[5] || s[7], + u = s[6], + c = / as /.test(s[0]) && s[1], + f = s[9], + d = n(s[2] ? s[1] : l), + h = c && n(c), + p = h || d, + v = f && n(f), + m = f ? function(e, t) { + return v(r, t) + } : function(e) { + return Je(e) + }, + g = function(e, t) { + return m(e, _(e, t)) + }, + y = n(s[2] || s[1]), + b = n(s[3] || ""), + $ = n(s[4] || ""), + w = n(s[8]), + x = {}, + _ = u ? function(e, t) { + return x[u] = t, x[l] = e, x + } : function(e) { + return x[l] = e, x + }; + return { + trackBy: f, + getTrackByValue: g, + getWatchables: n(w, function(e) { + var t = []; + e = e || []; + for (var n = a(e), i = n.length, o = 0; o < i; o++) { + var l = e === n ? o : n[o], + u = (e[l], _(e[l], l)), + c = m(e[l], u); + if (t.push(c), s[2] || s[1]) { + var f = y(r, u); + t.push(f) + } + if (s[4]) { + var d = $(r, u); + t.push(d) + } + } + return t + }), + getOptions: function() { + for (var e = [], t = {}, n = w(r) || [], i = a(n), s = i.length, l = 0; l < s; l++) { + var u = n === i ? l : i[l], + c = n[u], + d = _(c, u), + h = p(r, d), + v = m(h, d), + x = y(r, d), + C = b(r, d), + k = $(r, d), + E = new o(v, h, x, C, k); + e.push(E), t[v] = E + } + return { + items: e, + selectValueMap: t, + getOptionFromViewValue: function(e) { + return t[g(e)] + }, + getViewValueFromOption: function(e) { + return f ? Wr.copy(e.viewValue) : e.viewValue + } + } + } + } + } + + function a(t, n, i, a) { + function u(e, t) { + e.element = t, t.disabled = e.disabled, e.label !== t.label && (t.label = e.label, t.textContent = e.label), e.value !== t.value && (t.value = e.selectValue) + } + + function c(e, t, n, r) { + var i; + return t && Er(t.nodeName) === n ? i = t : (i = r.cloneNode(!1), t ? e.insertBefore(i, t) : e.appendChild(i)), i + } + + function f(e) { + for (var t; e;) t = e.nextSibling, Ue(e), e = t + } + + function d(e) { + var t = v && v[0], + n = x && x[0]; + if (t || n) + for (; e && (e === t || e === n || e.nodeType === ri || "option" === N(e) && "" === e.value);) e = e.nextSibling; + return e + } + + function h() { + var e = _ && m.readValue(); + _ = C.getOptions(); + var t = {}, + r = n[0].firstChild; + if (w && n.prepend(v), r = d(r), _.items.forEach(function(e) { + var i, o, a; + e.group ? (i = t[e.group], i || (o = c(n[0], r, "optgroup", l), r = o.nextSibling, o.label = e.group, i = t[e.group] = { + groupElement: o, + currentOptionElement: o.firstChild + }), a = c(i.groupElement, i.currentOptionElement, "option", s), u(e, a), i.currentOptionElement = a.nextSibling) : (a = c(n[0], r, "option", s), u(e, a), r = a.nextSibling) + }), Object.keys(t) + .forEach(function(e) { + f(t[e].currentOptionElement) + }), f(r), p.$render(), !p.$isEmpty(e)) { + var i = m.readValue(), + o = C.trackBy || g; + (o ? H(e, i) : e === i) || (p.$setViewValue(i), p.$render()) + } + } + var p = a[1]; + if (p) { + for (var v, m = a[0], g = i.multiple, y = 0, b = n.children(), $ = b.length; y < $; y++) + if ("" === b[y].value) { + v = b.eq(y); + break + } + var w = !!v, + x = Ar(s.cloneNode(!1)); + x.val("?"); + var _, C = r(i.ngOptions, n, t), + k = function() { + w || n.prepend(v), n.val(""), v.prop("selected", !0), v.attr("selected", !0) + }, + E = function() { + w || v.remove() + }, + S = function() { + n.prepend(x), n.val("?"), x.prop("selected", !0), x.attr("selected", !0) + }, + O = function() { + x.remove() + }; + g ? (p.$isEmpty = function(e) { + return !e || 0 === e.length + }, m.writeValue = function(e) { + _.items.forEach(function(e) { + e.element.selected = !1 + }), e && e.forEach(function(e) { + var t = _.getOptionFromViewValue(e); + t && !t.disabled && (t.element.selected = !0) + }) + }, m.readValue = function() { + var e = n.val() || [], + t = []; + return o(e, function(e) { + var n = _.selectValueMap[e]; + n && !n.disabled && t.push(_.getViewValueFromOption(n)) + }), t + }, C.trackBy && t.$watchCollection(function() { + if (zr(p.$viewValue)) return p.$viewValue.map(function(e) { + return C.getTrackByValue(e) + }) + }, function() { + p.$render() + })) : (m.writeValue = function(e) { + var t = _.getOptionFromViewValue(e); + t && !t.disabled ? (n[0].value !== t.selectValue && (O(), E(), n[0].value = t.selectValue, t.element.selected = !0), t.element.setAttribute("selected", "selected")) : null === e || w ? (O(), k()) : (E(), S()) + }, m.readValue = function() { + var e = _.selectValueMap[n.val()]; + return e && !e.disabled ? (E(), O(), _.getViewValueFromOption(e)) : null + }, C.trackBy && t.$watch(function() { + return C.getTrackByValue(p.$viewValue) + }, function() { + p.$render() + })), w ? (v.remove(), e(v)(t), v.removeClass("ng-scope")) : v = Ar(s.cloneNode(!1)), h(), t.$watchCollection(C.getWatchables, h) + } + } + var s = t.createElement("option"), + l = t.createElement("optgroup"); + return { + restrict: "A", + terminal: !0, + require: ["select", "?ngModel"], + link: { + pre: function(e, t, n, r) { + r[0].registerOption = v + }, + post: a + } + } + }], + Ea = ["$locale", "$interpolate", "$log", function(e, t, n) { + var r = /{}/g, + i = /^when(Minus)?(.+)$/; + return { + link: function(a, s, l) { + function u(e) { + s.text(e || "") + } + var c, f = l.count, + d = l.$attr.when && s.attr(l.$attr.when), + h = l.offset || 0, + p = a.$eval(d) || {}, + m = {}, + g = t.startSymbol(), + y = t.endSymbol(), + $ = g + f + "-" + h + y, + w = Wr.noop; + o(l, function(e, t) { + var n = i.exec(t); + if (n) { + var r = (n[1] ? "-" : "") + Er(n[2]); + p[r] = s.attr(l.$attr[t]) + } + }), o(p, function(e, n) { + m[n] = t(e.replace(r, $)) + }), a.$watch(f, function(t) { + var r = parseFloat(t), + i = isNaN(r); + if (i || r in p || (r = e.pluralCat(r - h)), r !== c && !(i && C(c) && isNaN(c))) { + w(); + var o = m[r]; + b(o) ? (null != t && n.debug("ngPluralize: no rule defined for '" + r + "' in " + d), w = v, u()) : w = a.$watch(o, u), c = r + } + }) + } + } + }], + Sa = ["$parse", "$animate", function(e, a) { + var s = "$$NG_REMOVED", + l = r("ngRepeat"), + u = function(e, t, n, r, i, o, a) { + e[n] = r, i && (e[i] = o), e.$index = t, e.$first = 0 === t, e.$last = t === a - 1, e.$middle = !(e.$first || e.$last), e.$odd = !(e.$even = 0 === (1 & t)) + }, + c = function(e) { + return e.clone[0] + }, + f = function(e) { + return e.clone[e.clone.length - 1] + }; + return { + restrict: "A", + multiElement: !0, + transclude: "element", + priority: 1e3, + terminal: !0, + $$tlb: !0, + compile: function(r, d) { + var h = d.ngRepeat, + p = t.createComment(" end ngRepeat: " + h + " "), + v = h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/); + if (!v) throw l("iexp", "Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.", h); + var m = v[1], + g = v[2], + y = v[3], + b = v[4]; + if (v = m.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/), !v) throw l("iidexp", "'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.", m); + var $ = v[3] || v[1], + w = v[2]; + if (y && (!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(y) || /^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(y))) throw l("badident", "alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.", y); + var x, _, C, k, E = { + $id: Je + }; + return b ? x = e(b) : (C = function(e, t) { + return Je(t) + }, k = function(e) { + return e + }), + function(e, t, r, d, v) { + x && (_ = function(t, n, r) { + return w && (E[w] = t), E[$] = n, E.$index = r, x(e, E) + }); + var m = me(); + e.$watchCollection(g, function(r) { + var d, g, b, x, E, S, O, M, T, P, A, j, F = t[0], + L = me(); + if (y && (e[y] = r), i(r)) T = r, M = _ || C; + else { + M = _ || k, T = []; + for (var R in r) Sr.call(r, R) && "$" !== R.charAt(0) && T.push(R) + } + for (x = T.length, A = new Array(x), d = 0; d < x; d++) + if (E = r === T ? d : T[d], S = r[E], O = M(E, S, d), m[O]) P = m[O], delete m[O], L[O] = P, A[d] = P; + else { + if (L[O]) throw o(A, function(e) { + e && e.scope && (m[e.id] = e) + }), l("dupes", "Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}", h, O, S); + A[d] = { + id: O, + scope: n, + clone: n + }, L[O] = !0 + } + for (var D in m) { + if (P = m[D], j = ve(P.clone), a.leave(j), j[0].parentNode) + for (d = 0, g = j.length; d < g; d++) j[d][s] = !0; + P.scope.$destroy() + } + for (d = 0; d < x; d++) + if (E = r === T ? d : T[d], S = r[E], P = A[d], P.scope) { + b = F; + do b = b.nextSibling; while (b && b[s]); + c(P) != b && a.move(ve(P.clone), null, F), F = f(P), u(P.scope, d, $, S, w, E, x) + } else v(function(e, t) { + P.scope = t; + var n = p.cloneNode(!1); + e[e.length++] = n, a.enter(e, null, F), F = n, P.clone = e, L[P.id] = P, u(P.scope, d, $, S, w, E, x) + }); + m = L + }) + } + } + } + }], + Oa = "ng-hide", + Ma = "ng-hide-animate", + Ta = ["$animate", function(e) { + return { + restrict: "A", + multiElement: !0, + link: function(t, n, r) { + t.$watch(r.ngShow, function(t) { + e[t ? "removeClass" : "addClass"](n, Oa, { + tempClasses: Ma + }) + }) + } + } + }], + Pa = ["$animate", function(e) { + return { + restrict: "A", + multiElement: !0, + link: function(t, n, r) { + t.$watch(r.ngHide, function(t) { + e[t ? "addClass" : "removeClass"](n, Oa, { + tempClasses: Ma + }) + }) + } + } + }], + Aa = ir(function(e, t, n) { + e.$watch(n.ngStyle, function(e, n) { + n && e !== n && o(n, function(e, n) { + t.css(n, "") + }), e && t.css(e) + }, !0) + }), + ja = ["$animate", function(e) { + return { + require: "ngSwitch", + controller: ["$scope", function() { + this.cases = {} + }], + link: function(n, r, i, a) { + var s = i.ngSwitch || i.on, + l = [], + u = [], + c = [], + f = [], + d = function(e, t) { + return function() { + e.splice(t, 1) + } + }; + n.$watch(s, function(n) { + var r, i; + for (r = 0, i = c.length; r < i; ++r) e.cancel(c[r]); + for (c.length = 0, r = 0, i = f.length; r < i; ++r) { + var s = ve(u[r].clone); + f[r].$destroy(); + var h = c[r] = e.leave(s); + h.then(d(c, r)) + } + u.length = 0, f.length = 0, (l = a.cases["!" + n] || a.cases["?"]) && o(l, function(n) { + n.transclude(function(r, i) { + f.push(i); + var o = n.element; + r[r.length++] = t.createComment(" end ngSwitchWhen: "); + var a = { + clone: r + }; + u.push(a), e.enter(r, o.parent(), o) + }) + }) + }) + } + } + }], + Fa = ir({ + transclude: "element", + priority: 1200, + require: "^ngSwitch", + multiElement: !0, + link: function(e, t, n, r, i) { + r.cases["!" + n.ngSwitchWhen] = r.cases["!" + n.ngSwitchWhen] || [], r.cases["!" + n.ngSwitchWhen].push({ + transclude: i, + element: t + }) + } + }), + La = ir({ + transclude: "element", + priority: 1200, + require: "^ngSwitch", + multiElement: !0, + link: function(e, t, n, r, i) { + r.cases["?"] = r.cases["?"] || [], r.cases["?"].push({ + transclude: i, + element: t + }) + } + }), + Ra = ir({ + restrict: "EAC", + link: function(e, t, n, i, o) { + if (!o) throw r("ngTransclude")("orphan", "Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}", X(t)); + o(function(e) { + t.empty(), t.append(e) + }) + } + }), + Da = ["$templateCache", function(e) { + return { + restrict: "E", + terminal: !0, + compile: function(t, n) { + if ("text/ng-template" == n.type) { + var r = n.id, + i = t[0].text; + e.put(r, i) + } + } + } + }], + Na = { + $setViewValue: v, + $render: v + }, + Ia = ["$element", "$scope", "$attrs", function(e, r, i) { + var o = this, + a = new Xe; + o.ngModelCtrl = Na, o.unknownOption = Ar(t.createElement("option")), o.renderUnknownOption = function(t) { + var n = "? " + Je(t) + " ?"; + o.unknownOption.val(n), e.prepend(o.unknownOption), e.val(n) + }, r.$on("$destroy", function() { + o.renderUnknownOption = v + }), o.removeUnknownOption = function() { + o.unknownOption.parent() && o.unknownOption.remove() + }, o.readValue = function() { + return o.removeUnknownOption(), e.val() + }, o.writeValue = function(t) { + o.hasOption(t) ? (o.removeUnknownOption(), e.val(t), "" === t && o.emptyOption.prop("selected", !0)) : null == t && o.emptyOption ? (o.removeUnknownOption(), e.val("")) : o.renderUnknownOption(t) + }, o.addOption = function(e, t) { + if (t[0].nodeType !== ri) { + he(e, '"option value"'), "" === e && (o.emptyOption = t); + var n = a.get(e) || 0; + a.put(e, n + 1), o.ngModelCtrl.$render(), _r(t) + } + }, o.removeOption = function(e) { + var t = a.get(e); + t && (1 === t ? (a.remove(e), "" === e && (o.emptyOption = n)) : a.put(e, t - 1)) + }, o.hasOption = function(e) { + return !!a.get(e) + }, o.registerOption = function(e, t, n, r, i) { + if (r) { + var a; + n.$observe("value", function(e) { + $(a) && o.removeOption(a), a = e, o.addOption(e, t) + }) + } else i ? e.$watch(i, function(e, r) { + n.$set("value", e), r !== e && o.removeOption(r), o.addOption(e, t) + }) : o.addOption(n.value, t); + t.on("$destroy", function() { + o.removeOption(n.value), o.ngModelCtrl.$render() + }) + } + }], + Va = function() { + function e(e, t, n, r) { + var i = r[1]; + if (i) { + var a = r[0]; + if (a.ngModelCtrl = i, t.on("change", function() { + e.$apply(function() { + i.$setViewValue(a.readValue()) + }) + }), n.multiple) { + a.readValue = function() { + var e = []; + return o(t.find("option"), function(t) { + t.selected && e.push(t.value) + }), e + }, a.writeValue = function(e) { + var n = new Xe(e); + o(t.find("option"), function(e) { + e.selected = $(n.get(e.value)) + }) + }; + var s, l = NaN; + e.$watch(function() { + l !== i.$viewValue || H(s, i.$viewValue) || (s = W(i.$viewValue), i.$render()), l = i.$viewValue + }), i.$isEmpty = function(e) { + return !e || 0 === e.length + } + } + } + } + + function t(e, t, n, r) { + var i = r[1]; + if (i) { + var o = r[0]; + i.$render = function() { + o.writeValue(i.$viewValue) + } + } + } + return { + restrict: "E", + require: ["select", "?ngModel"], + controller: Ia, + priority: 1, + link: { + pre: e, + post: t + } + } + }, + Wa = ["$interpolate", function(e) { + return { + restrict: "E", + priority: 100, + compile: function(t, n) { + if ($(n.value)) var r = e(n.value, !0); + else { + var i = e(t.text(), !0); + i || n.$set("value", t.text()) + } + return function(e, t, n) { + var o = "$selectController", + a = t.parent(), + s = a.data(o) || a.parent() + .data(o); + s && s.registerOption(e, t, n, r, i) + } + } + } + }], + Ha = g({ + restrict: "E", + terminal: !1 + }), + Ua = function() { + return { + restrict: "A", + require: "?ngModel", + link: function(e, t, n, r) { + r && (n.required = !0, r.$validators.required = function(e, t) { + return !n.required || !r.$isEmpty(t) + }, n.$observe("required", function() { + r.$validate() + })) + } + } + }, + za = function() { + return { + restrict: "A", + require: "?ngModel", + link: function(e, t, i, o) { + if (o) { + var a, s = i.ngPattern || i.pattern; + i.$observe("pattern", function(e) { + if (_(e) && e.length > 0 && (e = new RegExp("^" + e + "$")), e && !e.test) throw r("ngPattern")("noregexp", "Expected {0} to be a RegExp but was {1}. Element: {2}", s, e, X(t)); + a = e || n, o.$validate() + }), o.$validators.pattern = function(e, t) { + return o.$isEmpty(t) || b(a) || a.test(t) + } + } + } + } + }, + qa = function() { + return { + restrict: "A", + require: "?ngModel", + link: function(e, t, n, r) { + if (r) { + var i = -1; + n.$observe("maxlength", function(e) { + var t = h(e); + i = isNaN(t) ? -1 : t, r.$validate() + }), r.$validators.maxlength = function(e, t) { + return i < 0 || r.$isEmpty(t) || t.length <= i + } + } + } + } + }, + Ba = function() { + return { + restrict: "A", + require: "?ngModel", + link: function(e, t, n, r) { + if (r) { + var i = 0; + n.$observe("minlength", function(e) { + i = h(e) || 0, r.$validate() + }), r.$validators.minlength = function(e, t) { + return r.$isEmpty(t) || t.length >= i + } + } + } + } + }; + return e.angular.bootstrap ? void(e.console && console.log("WARNING: Tried to load angular more than once.")) : (ce(), $e(Wr), Wr.module("ngLocale", [], ["$provide", function(e) { + function t(e) { + e += ""; + var t = e.indexOf("."); + return t == -1 ? 0 : e.length - t - 1 + } + + function r(e, r) { + var i = r; + n === i && (i = Math.min(t(e), 3)); + var o = Math.pow(10, i), + a = (e * o | 0) % o; + return { + v: i, + f: a + } + } + var i = { + ZERO: "zero", + ONE: "one", + TWO: "two", + FEW: "few", + MANY: "many", + OTHER: "other" + }; + e.value("$locale", { + DATETIME_FORMATS: { + AMPMS: ["AM", "PM"], + DAY: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], + ERANAMES: ["Before Christ", "Anno Domini"], + ERAS: ["BC", "AD"], + FIRSTDAYOFWEEK: 6, + MONTH: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], + SHORTDAY: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], + SHORTMONTH: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], + STANDALONEMONTH: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], + WEEKENDRANGE: [5, 6], + fullDate: "EEEE, MMMM d, y", + longDate: "MMMM d, y", + medium: "MMM d, y h:mm:ss a", + mediumDate: "MMM d, y", + mediumTime: "h:mm:ss a", + short: "M/d/yy h:mm a", + shortDate: "M/d/yy", + shortTime: "h:mm a" + }, + NUMBER_FORMATS: { + CURRENCY_SYM: "$", + DECIMAL_SEP: ".", + GROUP_SEP: ",", + PATTERNS: [{ + gSize: 3, + lgSize: 3, + maxFrac: 3, + minFrac: 0, + minInt: 1, + negPre: "-", + negSuf: "", + posPre: "", + posSuf: "" + }, { + gSize: 3, + lgSize: 3, + maxFrac: 2, + minFrac: 2, + minInt: 1, + negPre: "-¤", + negSuf: "", + posPre: "¤", + posSuf: "" + }] + }, + id: "en-us", + localeID: "en_US", + pluralCat: function(e, t) { + var n = 0 | e, + o = r(e, t); + return 1 == n && 0 == o.v ? i.ONE : i.OTHER + } + }) + }]), void Ar(t) + .ready(function() { + oe(t, ae) + })) + }(window, document), !window.angular.$$csp() + .noInlineStyle && window.angular.element(document.head) + .prepend('') +}, function(e, t, n) { + ! function(e) { + e(n(4)) + }(function(e) { + function t(e, t) { + return "pairs" == t && "string" == typeof e ? e : "object" == typeof e && null != e[t] ? e[t] : d[t] + } + + function n(e) { + return function(t) { + return s(t, e) + } + } + + function r(e) { + var t = e.state.closeBrackets; + if (!t || t.override) return t; + var n = e.getModeAt(e.getCursor()); + return n.closeBrackets || t + } + + function i(n) { + var i = r(n); + if (!i || n.getOption("disableInput")) return e.Pass; + for (var o = t(i, "pairs"), a = n.listSelections(), s = 0; s < a.length; s++) { + if (!a[s].empty()) return e.Pass; + var l = u(n, a[s].head); + if (!l || o.indexOf(l) % 2 != 0) return e.Pass + } + for (var s = a.length - 1; s >= 0; s--) { + var c = a[s].head; + n.replaceRange("", h(c.line, c.ch - 1), h(c.line, c.ch + 1), "+delete") + } + } + + function o(n) { + var i = r(n), + o = i && t(i, "explode"); + if (!o || n.getOption("disableInput")) return e.Pass; + for (var a = n.listSelections(), s = 0; s < a.length; s++) { + if (!a[s].empty()) return e.Pass; + var l = u(n, a[s].head); + if (!l || o.indexOf(l) % 2 != 0) return e.Pass + } + n.operation(function() { + n.replaceSelection("\n\n", null), n.execCommand("goCharLeft"), a = n.listSelections(); + for (var e = 0; e < a.length; e++) { + var t = a[e].head.line; + n.indentLine(t, null, !0), n.indentLine(t + 1, null, !0) + } + }) + } + + function a(t) { + var n = e.cmpPos(t.anchor, t.head) > 0; + return { + anchor: new h(t.anchor.line, t.anchor.ch + (n ? -1 : 1)), + head: new h(t.head.line, t.head.ch + (n ? 1 : -1)) + } + } + + function s(n, i) { + var o = r(n); + if (!o || n.getOption("disableInput")) return e.Pass; + var s = t(o, "pairs"), + u = s.indexOf(i); + if (u == -1) return e.Pass; + for (var d, p = t(o, "triples"), v = s.charAt(u + 1) == i, m = n.listSelections(), g = u % 2 == 0, y = 0; y < m.length; y++) { + var b, $ = m[y], + w = $.head, + x = n.getRange(w, h(w.line, w.ch + 1)); + if (g && !$.empty()) b = "surround"; + else if (!v && g || x != i) + if (v && w.ch > 1 && p.indexOf(i) >= 0 && n.getRange(h(w.line, w.ch - 2), w) == i + i && (w.ch <= 2 || n.getRange(h(w.line, w.ch - 3), h(w.line, w.ch - 2)) != i)) b = "addFour"; + else if (v) { + if (e.isWordChar(x) || !c(n, w, i)) return e.Pass; + b = "both" + } else { + if (!g || n.getLine(w.line) + .length != w.ch && !l(x, s) && !/\s/.test(x)) return e.Pass; + b = "both" + } else b = v && f(n, w) ? "both" : p.indexOf(i) >= 0 && n.getRange(w, h(w.line, w.ch + 3)) == i + i + i ? "skipThree" : "skip"; + if (d) { + if (d != b) return e.Pass + } else d = b + } + var _ = u % 2 ? s.charAt(u - 1) : i, + C = u % 2 ? i : s.charAt(u + 1); + n.operation(function() { + if ("skip" == d) n.execCommand("goCharRight"); + else if ("skipThree" == d) + for (var e = 0; e < 3; e++) n.execCommand("goCharRight"); + else if ("surround" == d) { + for (var t = n.getSelections(), e = 0; e < t.length; e++) t[e] = _ + t[e] + C; + n.replaceSelections(t, "around"), t = n.listSelections() + .slice(); + for (var e = 0; e < t.length; e++) t[e] = a(t[e]); + n.setSelections(t) + } else "both" == d ? (n.replaceSelection(_ + C, null), n.triggerElectric(_ + C), n.execCommand("goCharLeft")) : "addFour" == d && (n.replaceSelection(_ + _ + _ + _, "before"), n.execCommand("goCharRight")) + }) + } + + function l(e, t) { + var n = t.lastIndexOf(e); + return n > -1 && n % 2 == 1 + } + + function u(e, t) { + var n = e.getRange(h(t.line, t.ch - 1), h(t.line, t.ch + 1)); + return 2 == n.length ? n : null + } + + function c(t, n, r) { + var i = t.getLine(n.line), + o = t.getTokenAt(n); + if (/\bstring2?\b/.test(o.type) || f(t, n)) return !1; + var a = new e.StringStream(i.slice(0, n.ch) + r + i.slice(n.ch), 4); + for (a.pos = a.start = o.start;;) { + var s = t.getMode() + .token(a, o.state); + if (a.pos >= n.ch + 1) return /\bstring2?\b/.test(s); + a.start = a.pos + } + } + + function f(e, t) { + var n = e.getTokenAt(h(t.line, t.ch + 1)); + return /\bstring/.test(n.type) && n.start == t.ch + } + var d = { + pairs: "()[]{}''\"\"", + triples: "", + explode: "[]{}" + }, + h = e.Pos; + e.defineOption("autoCloseBrackets", !1, function(t, n, r) { + r && r != e.Init && (t.removeKeyMap(v), t.state.closeBrackets = null), n && (t.state.closeBrackets = n, t.addKeyMap(v)) + }); + for (var p = d.pairs + "`", v = { + Backspace: i, + Enter: o + }, m = 0; m < p.length; m++) v["'" + p.charAt(m) + "'"] = n(p.charAt(m)) + }) +}, function(e, t, n) { + ! function(e) { + e(n(4)) + }(function(e) { + function t(e, t, r, i) { + var o = e.getLineHandle(t.line), + l = t.ch - 1, + u = l >= 0 && s[o.text.charAt(l)] || s[o.text.charAt(++l)]; + if (!u) return null; + var c = ">" == u.charAt(1) ? 1 : -1; + if (r && c > 0 != (l == t.ch)) return null; + var f = e.getTokenTypeAt(a(t.line, l + 1)), + d = n(e, a(t.line, l + (c > 0 ? 1 : 0)), c, f || null, i); + return null == d ? null : { + from: a(t.line, l), + to: d && d.pos, + match: d && d.ch == u.charAt(0), + forward: c > 0 + } + } + + function n(e, t, n, r, i) { + for (var o = i && i.maxScanLineLength || 1e4, l = i && i.maxScanLines || 1e3, u = [], c = i && i.bracketRegex ? i.bracketRegex : /[(){}[\]]/, f = n > 0 ? Math.min(t.line + l, e.lastLine() + 1) : Math.max(e.firstLine() - 1, t.line - l), d = t.line; d != f; d += n) { + var h = e.getLine(d); + if (h) { + var p = n > 0 ? 0 : h.length - 1, + v = n > 0 ? h.length : -1; + if (!(h.length > o)) + for (d == t.line && (p = t.ch - (n < 0 ? 1 : 0)); p != v; p += n) { + var m = h.charAt(p); + if (c.test(m) && (void 0 === r || e.getTokenTypeAt(a(d, p + 1)) == r)) { + var g = s[m]; + if (">" == g.charAt(1) == n > 0) u.push(m); + else { + if (!u.length) return { + pos: a(d, p), + ch: m + }; + u.pop() + } + } + } + } + } + return d - n != (n > 0 ? e.lastLine() : e.firstLine()) && null + } + + function r(e, n, r) { + for (var i = e.state.matchBrackets.maxHighlightLineLength || 1e3, s = [], l = e.listSelections(), u = 0; u < l.length; u++) { + var c = l[u].empty() && t(e, l[u].head, !1, r); + if (c && e.getLine(c.from.line) + .length <= i) { + var f = c.match ? "CodeMirror-matchingbracket" : "CodeMirror-nonmatchingbracket"; + s.push(e.markText(c.from, a(c.from.line, c.from.ch + 1), { + className: f + })), c.to && e.getLine(c.to.line) + .length <= i && s.push(e.markText(c.to, a(c.to.line, c.to.ch + 1), { + className: f + })) + } + } + if (s.length) { + o && e.state.focused && e.focus(); + var d = function() { + e.operation(function() { + for (var e = 0; e < s.length; e++) s[e].clear() + }) + }; + if (!n) return d; + setTimeout(d, 800) + } + } + + function i(e) { + e.operation(function() { + l && (l(), l = null), l = r(e, !1, e.state.matchBrackets) + }) + } + var o = /MSIE \d/.test(navigator.userAgent) && (null == document.documentMode || document.documentMode < 8), + a = e.Pos, + s = { + "(": ")>", + ")": "(<", + "[": "]>", + "]": "[<", + "{": "}>", + "}": "{<" + }, + l = null; + e.defineOption("matchBrackets", !1, function(t, n, r) { + r && r != e.Init && (t.off("cursorActivity", i), l && (l(), l = null)), n && (t.state.matchBrackets = "object" == typeof n ? n : {}, t.on("cursorActivity", i)) + }), e.defineExtension("matchBrackets", function() { + r(this, !0) + }), e.defineExtension("findMatchingBracket", function(e, n, r) { + return t(this, e, n, r) + }), e.defineExtension("scanForBracket", function(e, t, r, i) { + return n(this, e, t, r, i) + }) + }) +}, function(e, t, n) { + ! function(e) { + e(n(4)) + }(function(e) { + "use strict"; + e.registerHelper("lint", "json", function(t) { + var n = []; + jsonlint.parseError = function(t, r) { + var i = r.loc; + n.push({ + from: e.Pos(i.first_line - 1, i.first_column), + to: e.Pos(i.last_line - 1, i.last_column), + message: t + }) + }; + try { + jsonlint.parse(t) + } catch (e) {} + return n + }) + }) +}, function(e, t, n) { + ! function(e) { + e(n(4)) + }(function(e) { + "use strict"; + + function t(t, n) { + function r(t) { + return i.parentNode ? (i.style.top = Math.max(0, t.clientY - i.offsetHeight - 5) + "px", void(i.style.left = t.clientX + 5 + "px")) : e.off(document, "mousemove", r) + } + var i = document.createElement("div"); + return i.className = "CodeMirror-lint-tooltip", i.appendChild(n.cloneNode(!0)), document.body.appendChild(i), e.on(document, "mousemove", r), r(t), null != i.style.opacity && (i.style.opacity = 1), i + } + + function n(e) { + e.parentNode && e.parentNode.removeChild(e) + } + + function r(e) { + e.parentNode && (null == e.style.opacity && n(e), e.style.opacity = 0, setTimeout(function() { + n(e) + }, 600)) + } + + function i(n, i, o) { + function a() { + e.off(o, "mouseout", a), s && (r(s), s = null) + } + var s = t(n, i), + l = setInterval(function() { + if (s) + for (var e = o;; e = e.parentNode) { + if (e && 11 == e.nodeType && (e = e.host), e == document.body) return; + if (!e) { + a(); + break + } + } + if (!s) return clearInterval(l) + }, 400); + e.on(o, "mouseout", a) + } + + function o(e, t, n) { + this.marked = [], this.options = t, this.timeout = null, this.hasGutter = n, this.onMouseOver = function(t) { + g(e, t) + }, this.waitingFor = 0 + } + + function a(e, t) { + return t instanceof Function ? { + getAnnotations: t + } : (t && t !== !0 || (t = {}), t) + } + + function s(e) { + var t = e.state.lint; + t.hasGutter && e.clearGutter(y); + for (var n = 0; n < t.marked.length; ++n) t.marked[n].clear(); + t.marked.length = 0 + } + + function l(t, n, r, o) { + var a = document.createElement("div"), + s = a; + return a.className = "CodeMirror-lint-marker-" + n, r && (s = a.appendChild(document.createElement("div")), s.className = "CodeMirror-lint-marker-multiple"), 0 != o && e.on(s, "mouseover", function(e) { + i(e, t, s) + }), a + } + + function u(e, t) { + return "error" == e ? e : t + } + + function c(e) { + for (var t = [], n = 0; n < e.length; ++n) { + var r = e[n], + i = r.from.line; + (t[i] || (t[i] = [])) + .push(r) + } + return t + } + + function f(e) { + var t = e.severity; + t || (t = "error"); + var n = document.createElement("div"); + return n.className = "CodeMirror-lint-message-" + t, n.appendChild(document.createTextNode(e.message)), n + } + + function d(t, n, r) { + function i() { + a = -1, t.off("change", i) + } + var o = t.state.lint, + a = ++o.waitingFor; + t.on("change", i), n(t.getValue(), function(n, r) { + t.off("change", i), o.waitingFor == a && (r && n instanceof e && (n = r), p(t, n)) + }, r, t) + } + + function h(t) { + var n = t.state.lint, + r = n.options, + i = r.options || r, + o = r.getAnnotations || t.getHelper(e.Pos(0, 0), "lint"); + if (o) + if (r.async || o.async) d(t, o, i); + else { + var a = o(t.getValue(), i, t); + a.then ? a.then(function(e) { + p(t, e) + }) : p(t, a) + } + } + + function p(e, t) { + s(e); + for (var n = e.state.lint, r = n.options, i = c(t), o = 0; o < i.length; ++o) { + var a = i[o]; + if (a) { + for (var d = null, h = n.hasGutter && document.createDocumentFragment(), p = 0; p < a.length; ++p) { + var v = a[p], + m = v.severity; + m || (m = "error"), d = u(d, m), r.formatAnnotation && (v = r.formatAnnotation(v)), n.hasGutter && h.appendChild(f(v)), v.to && n.marked.push(e.markText(v.from, v.to, { + className: "CodeMirror-lint-mark-" + m, + __annotation: v + })) + } + n.hasGutter && e.setGutterMarker(o, y, l(h, d, a.length > 1, n.options.tooltips)) + } + } + r.onUpdateLinting && r.onUpdateLinting(t, i, e) + } + + function v(e) { + var t = e.state.lint; + t && (clearTimeout(t.timeout), t.timeout = setTimeout(function() { + h(e) + }, t.options.delay || 500)) + } + + function m(e, t) { + for (var n = t.target || t.srcElement, r = document.createDocumentFragment(), o = 0; o < e.length; o++) { + var a = e[o]; + r.appendChild(f(a)) + } + i(t, r, n) + } + + function g(e, t) { + var n = t.target || t.srcElement; + if (/\bCodeMirror-lint-mark-/.test(n.className)) { + for (var r = n.getBoundingClientRect(), i = (r.left + r.right) / 2, o = (r.top + r.bottom) / 2, a = e.findMarksAt(e.coordsChar({ + left: i, + top: o + }, "client")), s = [], l = 0; l < a.length; ++l) { + var u = a[l].__annotation; + u && s.push(u) + } + s.length && m(s, t) + } + } + var y = "CodeMirror-lint-markers"; + e.defineOption("lint", !1, function(t, n, r) { + if (r && r != e.Init && (s(t), t.state.lint.options.lintOnChange !== !1 && t.off("change", v), e.off(t.getWrapperElement(), "mouseover", t.state.lint.onMouseOver), clearTimeout(t.state.lint.timeout), delete t.state.lint), n) { + for (var i = t.getOption("gutters"), l = !1, u = 0; u < i.length; ++u) i[u] == y && (l = !0); + var c = t.state.lint = new o(t, a(t, n), l); + c.options.lintOnChange !== !1 && t.on("change", v), 0 != c.options.tooltips && "gutter" != c.options.tooltips && e.on(t.getWrapperElement(), "mouseover", c.onMouseOver), h(t) + } + }), e.defineExtension("performLint", function() { + this.state.lint && h(this) + }) + }) +}, function(e, t, n) { + ! function(e) { + e(n(4)) + }(function(e) { + "use strict"; + + function t(e) { + for (var t = 0; t < e.state.activeLines.length; t++) e.removeLineClass(e.state.activeLines[t], "wrap", o), e.removeLineClass(e.state.activeLines[t], "background", a), e.removeLineClass(e.state.activeLines[t], "gutter", s) + } + + function n(e, t) { + if (e.length != t.length) return !1; + for (var n = 0; n < e.length; n++) + if (e[n] != t[n]) return !1; + return !0 + } + + function r(e, r) { + for (var i = [], l = 0; l < r.length; l++) { + var u = r[l], + c = e.getOption("styleActiveLine"); + if ("object" == typeof c && c.nonEmpty ? u.anchor.line == u.head.line : u.empty()) { + var f = e.getLineHandleVisualStart(u.head.line); + i[i.length - 1] != f && i.push(f) + } + } + n(e.state.activeLines, i) || e.operation(function() { + t(e); + for (var n = 0; n < i.length; n++) e.addLineClass(i[n], "wrap", o), e.addLineClass(i[n], "background", a), e.addLineClass(i[n], "gutter", s); + e.state.activeLines = i + }) + } + + function i(e, t) { + r(e, t.ranges) + } + var o = "CodeMirror-activeline", + a = "CodeMirror-activeline-background", + s = "CodeMirror-activeline-gutter"; + e.defineOption("styleActiveLine", !1, function(n, o, a) { + var s = a != e.Init && a; + o != s && (s && (n.off("beforeSelectionChange", i), t(n), delete n.state.activeLines), o && (n.state.activeLines = [], r(n, n.listSelections()), n.on("beforeSelectionChange", i))) + }) + }) +}, function(e, t, n) { + ! function(e) { + e(n(4)) + }(function(e) { + "use strict"; + + function t(e, t, n) { + return /^(?:operator|sof|keyword c|case|new|export|default|[\[{}\(,;:]|=>)$/.test(t.lastType) || "quasi" == t.lastType && /\{\s*$/.test(e.string.slice(0, e.pos - (n || 0))) + } + e.defineMode("javascript", function(n, r) { + function i(e) { + for (var t, n = !1, r = !1; null != (t = e.next());) { + if (!n) { + if ("/" == t && !r) return; + "[" == t ? r = !0 : r && "]" == t && (r = !1) + } + n = !n && "\\" == t + } + } + + function o(e, t, n) { + return ke = e, Ee = n, t + } + + function a(e, n) { + var r = e.next(); + if ('"' == r || "'" == r) return n.tokenize = s(r), n.tokenize(e, n); + if ("." == r && e.match(/^\d+(?:[eE][+\-]?\d+)?/)) return o("number", "number"); + if ("." == r && e.match("..")) return o("spread", "meta"); + if (/[\[\]{}\(\),;\:\.]/.test(r)) return o(r); + if ("=" == r && e.eat(">")) return o("=>", "operator"); + if ("0" == r && e.eat(/x/i)) return e.eatWhile(/[\da-f]/i), o("number", "number"); + if ("0" == r && e.eat(/o/i)) return e.eatWhile(/[0-7]/i), o("number", "number"); + if ("0" == r && e.eat(/b/i)) return e.eatWhile(/[01]/i), o("number", "number"); + if (/\d/.test(r)) return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/), o("number", "number"); + if ("/" == r) return e.eat("*") ? (n.tokenize = l, l(e, n)) : e.eat("/") ? (e.skipToEnd(), o("comment", "comment")) : t(e, n, 1) ? (i(e), e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/), o("regexp", "string-2")) : (e.eatWhile(Fe), o("operator", "operator", e.current())); + if ("`" == r) return n.tokenize = u, u(e, n); + if ("#" == r) return e.skipToEnd(), o("error", "error"); + if (Fe.test(r)) return ">" == r && n.lexical && ">" == n.lexical.type || e.eatWhile(Fe), o("operator", "operator", e.current()); + if (Ae.test(r)) { + e.eatWhile(Ae); + var a = e.current(), + c = je.propertyIsEnumerable(a) && je[a]; + return c && "." != n.lastType ? o(c.type, c.style, a) : o("variable", "variable", a) + } + } + + function s(e) { + return function(t, n) { + var r, i = !1; + if (Me && "@" == t.peek() && t.match(Le)) return n.tokenize = a, o("jsonld-keyword", "meta"); + for (; null != (r = t.next()) && (r != e || i);) i = !i && "\\" == r; + return i || (n.tokenize = a), o("string", "string") + } + } + + function l(e, t) { + for (var n, r = !1; n = e.next();) { + if ("/" == n && r) { + t.tokenize = a; + break + } + r = "*" == n + } + return o("comment", "comment") + } + + function u(e, t) { + for (var n, r = !1; null != (n = e.next());) { + if (!r && ("`" == n || "$" == n && e.eat("{"))) { + t.tokenize = a; + break + } + r = !r && "\\" == n + } + return o("quasi", "string-2", e.current()) + } + + function c(e, t) { + t.fatArrowAt && (t.fatArrowAt = null); + var n = e.string.indexOf("=>", e.start); + if (!(n < 0)) { + if (Pe) { + var r = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start, n)); + r && (n = r.index) + } + for (var i = 0, o = !1, a = n - 1; a >= 0; --a) { + var s = e.string.charAt(a), + l = Re.indexOf(s); + if (l >= 0 && l < 3) { + if (!i) { + ++a; + break + } + if (0 == --i) { + "(" == s && (o = !0); + break + } + } else if (l >= 3 && l < 6) ++i; + else if (Ae.test(s)) o = !0; + else { + if (/["'\/]/.test(s)) return; + if (o && !i) { + ++a; + break + } + } + } + o && !i && (t.fatArrowAt = a) + } + } + + function f(e, t, n, r, i, o) { + this.indented = e, this.column = t, this.type = n, this.prev = i, this.info = o, null != r && (this.align = r) + } + + function d(e, t) { + for (var n = e.localVars; n; n = n.next) + if (n.name == t) return !0; + for (var r = e.context; r; r = r.prev) + for (var n = r.vars; n; n = n.next) + if (n.name == t) return !0 + } + + function h(e, t, n, r, i) { + var o = e.cc; + for (Ne.state = e, Ne.stream = i, Ne.marked = null, Ne.cc = o, Ne.style = t, e.lexical.hasOwnProperty("align") || (e.lexical.align = !0);;) { + var a = o.length ? o.pop() : Te ? _ : x; + if (a(n, r)) { + for (; o.length && o[o.length - 1].lex;) o.pop()(); + return Ne.marked ? Ne.marked : "variable" == n && d(e, r) ? "variable-2" : t + } + } + } + + function p() { + for (var e = arguments.length - 1; e >= 0; e--) Ne.cc.push(arguments[e]) + } + + function v() { + return p.apply(null, arguments), !0 + } + + function m(e) { + function t(t) { + for (var n = t; n; n = n.next) + if (n.name == e) return !0; + return !1 + } + var n = Ne.state; + if (Ne.marked = "def", n.context) { + if (t(n.localVars)) return; + n.localVars = { + name: e, + next: n.localVars + } + } else { + if (t(n.globalVars)) return; + r.globalVars && (n.globalVars = { + name: e, + next: n.globalVars + }) + } + } + + function g() { + Ne.state.context = { + prev: Ne.state.context, + vars: Ne.state.localVars + }, Ne.state.localVars = Ie + } + + function y() { + Ne.state.localVars = Ne.state.context.vars, Ne.state.context = Ne.state.context.prev + } + + function b(e, t) { + var n = function() { + var n = Ne.state, + r = n.indented; + if ("stat" == n.lexical.type) r = n.lexical.indented; + else + for (var i = n.lexical; i && ")" == i.type && i.align; i = i.prev) r = i.indented; + n.lexical = new f(r, Ne.stream.column(), e, null, n.lexical, t) + }; + return n.lex = !0, n + } + + function $() { + var e = Ne.state; + e.lexical.prev && (")" == e.lexical.type && (e.indented = e.lexical.indented), e.lexical = e.lexical.prev) + } + + function w(e) { + function t(n) { + return n == e ? v() : ";" == e ? p() : v(t) + } + return t + } + + function x(e, t) { + return "var" == e ? v(b("vardef", t.length), X, w(";"), $) : "keyword a" == e ? v(b("form"), k, x, $) : "keyword b" == e ? v(b("form"), x, $) : "{" == e ? v(b("}"), q, $) : ";" == e ? v() : "if" == e ? ("else" == Ne.state.lexical.info && Ne.state.cc[Ne.state.cc.length - 1] == $ && Ne.state.cc.pop()(), v(b("form"), k, x, $, re)) : "function" == e ? v(ue) : "for" == e ? v(b("form"), ie, x, $) : "variable" == e ? v(b("stat"), N) : "switch" == e ? v(b("form"), k, b("}", "switch"), w("{"), q, $, $) : "case" == e ? v(_, w(":")) : "default" == e ? v(w(":")) : "catch" == e ? v(b("form"), g, w("("), ce, w(")"), x, $, y) : "class" == e ? v(b("form"), de, $) : "export" == e ? v(b("stat"), me, $) : "import" == e ? v(b("stat"), ye, $) : "module" == e ? v(b("form"), Z, b("}"), w("{"), q, $, $) : "type" == e ? v(G, w("operator"), G, w(";")) : "async" == e ? v(x) : p(b("stat"), _, w(";"), $) + } + + function _(e) { + return E(e, !1) + } + + function C(e) { + return E(e, !0) + } + + function k(e) { + return "(" != e ? p() : v(b(")"), _, w(")"), $) + } + + function E(e, t) { + if (Ne.state.fatArrowAt == Ne.stream.start) { + var n = t ? F : j; + if ("(" == e) return v(g, b(")"), U(Z, ")"), $, w("=>"), n, y); + if ("variable" == e) return p(g, Z, w("=>"), n, y) + } + var r = t ? T : M; + return De.hasOwnProperty(e) ? v(r) : "function" == e ? v(ue, r) : "class" == e ? v(b("form"), fe, $) : "keyword c" == e || "async" == e ? v(t ? O : S) : "(" == e ? v(b(")"), S, w(")"), $, r) : "operator" == e || "spread" == e ? v(t ? C : _) : "[" == e ? v(b("]"), _e, $, r) : "{" == e ? z(V, "}", null, r) : "quasi" == e ? p(P, r) : "new" == e ? v(L(t)) : v() + } + + function S(e) { + return e.match(/[;\}\)\],]/) ? p() : p(_) + } + + function O(e) { + return e.match(/[;\}\)\],]/) ? p() : p(C) + } + + function M(e, t) { + return "," == e ? v(_) : T(e, t, !1) + } + + function T(e, t, n) { + var r = 0 == n ? M : T, + i = 0 == n ? _ : C; + return "=>" == e ? v(g, n ? F : j, y) : "operator" == e ? /\+\+|--/.test(t) ? v(r) : "?" == t ? v(_, w(":"), i) : v(i) : "quasi" == e ? p(P, r) : ";" != e ? "(" == e ? z(C, ")", "call", r) : "." == e ? v(I, r) : "[" == e ? v(b("]"), S, w("]"), $, r) : void 0 : void 0 + } + + function P(e, t) { + return "quasi" != e ? p() : "${" != t.slice(t.length - 2) ? v(P) : v(_, A) + } + + function A(e) { + if ("}" == e) return Ne.marked = "string-2", Ne.state.tokenize = u, v(P) + } + + function j(e) { + return c(Ne.stream, Ne.state), p("{" == e ? x : _) + } + + function F(e) { + return c(Ne.stream, Ne.state), p("{" == e ? x : C) + } + + function L(e) { + return function(t) { + return "." == t ? v(e ? D : R) : p(e ? C : _) + } + } + + function R(e, t) { + if ("target" == t) return Ne.marked = "keyword", v(M) + } + + function D(e, t) { + if ("target" == t) return Ne.marked = "keyword", v(T) + } + + function N(e) { + return ":" == e ? v($, x) : p(M, w(";"), $) + } + + function I(e) { + if ("variable" == e) return Ne.marked = "property", v() + } + + function V(e, t) { + return "async" == e ? (Ne.marked = "property", v(V)) : "variable" == e || "keyword" == Ne.style ? (Ne.marked = "property", v("get" == t || "set" == t ? W : H)) : "number" == e || "string" == e ? (Ne.marked = Me ? "property" : Ne.style + " property", v(H)) : "jsonld-keyword" == e ? v(H) : "modifier" == e ? v(V) : "[" == e ? v(_, w("]"), H) : "spread" == e ? v(_) : ":" == e ? p(H) : void 0 + } + + function W(e) { + return "variable" != e ? p(H) : (Ne.marked = "property", v(ue)) + } + + function H(e) { + return ":" == e ? v(C) : "(" == e ? p(ue) : void 0 + } + + function U(e, t, n) { + function r(i, o) { + if (n ? n.indexOf(i) > -1 : "," == i) { + var a = Ne.state.lexical; + return "call" == a.info && (a.pos = (a.pos || 0) + 1), v(function(n, r) { + return n == t || r == t ? p() : p(e) + }, r) + } + return i == t || o == t ? v() : v(w(t)) + } + return function(n, i) { + return n == t || i == t ? v() : p(e, r) + } + } + + function z(e, t, n) { + for (var r = 3; r < arguments.length; r++) Ne.cc.push(arguments[r]); + return v(b(t, n), U(e, t), $) + } + + function q(e) { + return "}" == e ? v() : p(x, q) + } + + function B(e, t) { + if (Pe) { + if (":" == e) return v(G); + if ("?" == t) return v(B) + } + } + + function G(e) { + return "variable" == e ? (Ne.marked = "variable-3", v(J)) : "string" == e || "number" == e || "atom" == e ? v(J) : "{" == e ? v(b("}"), U(Y, "}", ",;"), $) : "(" == e ? v(U(Q, ")"), K) : void 0 + } + + function K(e) { + if ("=>" == e) return v(G) + } + + function Y(e, t) { + return "variable" == e || "keyword" == Ne.style ? (Ne.marked = "property", v(Y)) : "?" == t ? v(Y) : ":" == e ? v(G) : void 0 + } + + function Q(e) { + return "variable" == e ? v(Q) : ":" == e ? v(G) : void 0 + } + + function J(e, t) { + return "<" == t ? v(b(">"), U(G, ">"), $, J) : "|" == t || "." == e ? v(G) : "[" == e ? v(w("]"), J) : void 0 + } + + function X() { + return p(Z, B, te, ne) + } + + function Z(e, t) { + return "modifier" == e ? v(Z) : "variable" == e ? (m(t), v()) : "spread" == e ? v(Z) : "[" == e ? z(Z, "]") : "{" == e ? z(ee, "}") : void 0 + } + + function ee(e, t) { + return "variable" != e || Ne.stream.match(/^\s*:/, !1) ? ("variable" == e && (Ne.marked = "property"), "spread" == e ? v(Z) : "}" == e ? p() : v(w(":"), Z, te)) : (m(t), v(te)) + } + + function te(e, t) { + if ("=" == t) return v(C) + } + + function ne(e) { + if ("," == e) return v(X) + } + + function re(e, t) { + if ("keyword b" == e && "else" == t) return v(b("form", "else"), x, $) + } + + function ie(e) { + if ("(" == e) return v(b(")"), oe, w(")"), $) + } + + function oe(e) { + return "var" == e ? v(X, w(";"), se) : ";" == e ? v(se) : "variable" == e ? v(ae) : p(_, w(";"), se) + } + + function ae(e, t) { + return "in" == t || "of" == t ? (Ne.marked = "keyword", v(_)) : v(M, se) + } + + function se(e, t) { + return ";" == e ? v(le) : "in" == t || "of" == t ? (Ne.marked = "keyword", v(_)) : p(_, w(";"), le) + } + + function le(e) { + ")" != e && v(_) + } + + function ue(e, t) { + return "*" == t ? (Ne.marked = "keyword", v(ue)) : "variable" == e ? (m(t), v(ue)) : "(" == e ? v(g, b(")"), U(ce, ")"), $, B, x, y) : void 0 + } + + function ce(e) { + return "spread" == e ? v(ce) : p(Z, B, te) + } + + function fe(e, t) { + return "variable" == e ? de(e, t) : he(e, t) + } + + function de(e, t) { + if ("variable" == e) return m(t), v(he) + } + + function he(e, t) { + return "<" == t ? v(b(">"), U(G, ">"), $, he) : "extends" == t || "implements" == t || Pe && "," == e ? v(Pe ? G : _, he) : "{" == e ? v(b("}"), pe, $) : void 0 + } + + function pe(e, t) { + return "variable" == e || "keyword" == Ne.style ? ("async" == t || "static" == t || "get" == t || "set" == t || Pe && ("public" == t || "private" == t || "protected" == t || "readonly" == t || "abstract" == t)) && Ne.stream.match(/^\s+[\w$\xa1-\uffff]/, !1) ? (Ne.marked = "keyword", v(pe)) : (Ne.marked = "property", v(Pe ? ve : ue, pe)) : "[" == e ? v(_, w("]"), Pe ? ve : ue, pe) : "*" == t ? (Ne.marked = "keyword", v(pe)) : ";" == e ? v(pe) : "}" == e ? v() : void 0 + } + + function ve(e, t) { + return "?" == t ? v(ve) : ":" == e ? v(G, te) : "=" == t ? v(C) : p(ue) + } + + function me(e, t) { + return "*" == t ? (Ne.marked = "keyword", v(xe, w(";"))) : "default" == t ? (Ne.marked = "keyword", v(_, w(";"))) : "{" == e ? v(U(ge, "}"), xe, w(";")) : p(x) + } + + function ge(e, t) { + return "as" == t ? (Ne.marked = "keyword", v(w("variable"))) : "variable" == e ? p(C, ge) : void 0 + } + + function ye(e) { + return "string" == e ? v() : p(be, $e, xe) + } + + function be(e, t) { + return "{" == e ? z(be, "}") : ("variable" == e && m(t), "*" == t && (Ne.marked = "keyword"), v(we)) + } + + function $e(e) { + if ("," == e) return v(be, $e) + } + + function we(e, t) { + if ("as" == t) return Ne.marked = "keyword", v(be) + } + + function xe(e, t) { + if ("from" == t) return Ne.marked = "keyword", v(_) + } + + function _e(e) { + return "]" == e ? v() : p(U(C, "]")) + } + + function Ce(e, t) { + return "operator" == e.lastType || "," == e.lastType || Fe.test(t.charAt(0)) || /[,.]/.test(t.charAt(0)) + } + var ke, Ee, Se = n.indentUnit, + Oe = r.statementIndent, + Me = r.jsonld, + Te = r.json || Me, + Pe = r.typescript, + Ae = r.wordCharacters || /[\w$\xa1-\uffff]/, + je = function() { + function e(e) { + return { + type: e, + style: "keyword" + } + } + var t = e("keyword a"), + n = e("keyword b"), + r = e("keyword c"), + i = e("operator"), + o = { + type: "atom", + style: "atom" + }, + a = { + if: e("if"), + while: t, + with: t, + else: n, + do: n, + try: n, + finally: n, + return: r, + break: r, + continue: r, + new: e("new"), + delete: r, + throw: r, + debugger: r, + var: e("var"), + const: e("var"), + let: e("var"), + function: e("function"), + catch: e("catch"), + for: e("for"), + switch: e("switch"), + case: e("case"), + default: e("default"), + in : i, + typeof: i, + instanceof: i, + true: o, + false: o, + null: o, + undefined: o, + NaN: o, + Infinity: o, + this: e("this"), + class: e("class"), + super: e("atom"), + yield: r, + export: e("export"), + import: e("import"), + extends: r, + await: r, + async: e("async") + }; + if (Pe) { + var s = { + type: "variable", + style: "variable-3" + }, + l = { + interface: e("class"), + implements: r, + namespace: r, + module: e("module"), + enum: e("module"), + type: e("type"), + public: e("modifier"), + private: e("modifier"), + protected: e("modifier"), + abstract: e("modifier"), + as: i, + string: s, + number: s, + boolean: s, + any: s + }; + for (var u in l) a[u] = l[u] + } + return a + }(), + Fe = /[+\-*&%=<>!?|~^]/, + Le = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/, + Re = "([{}])", + De = { + atom: !0, + number: !0, + variable: !0, + string: !0, + regexp: !0, + this: !0, + "jsonld-keyword": !0 + }, + Ne = { + state: null, + column: null, + marked: null, + cc: null + }, + Ie = { + name: "this", + next: { + name: "arguments" + } + }; + return $.lex = !0, { + startState: function(e) { + var t = { + tokenize: a, + lastType: "sof", + cc: [], + lexical: new f((e || 0) - Se, 0, "block", !1), + localVars: r.localVars, + context: r.localVars && { + vars: r.localVars + }, + indented: e || 0 + }; + return r.globalVars && "object" == typeof r.globalVars && (t.globalVars = r.globalVars), t + }, + token: function(e, t) { + if (e.sol() && (t.lexical.hasOwnProperty("align") || (t.lexical.align = !1), t.indented = e.indentation(), c(e, t)), t.tokenize != l && e.eatSpace()) return null; + var n = t.tokenize(e, t); + return "comment" == ke ? n : (t.lastType = "operator" != ke || "++" != Ee && "--" != Ee ? ke : "incdec", h(t, n, ke, Ee, e)) + }, + indent: function(t, n) { + if (t.tokenize == l) return e.Pass; + if (t.tokenize != a) return 0; + var i, o = n && n.charAt(0), + s = t.lexical; + if (!/^\s*else\b/.test(n)) + for (var u = t.cc.length - 1; u >= 0; --u) { + var c = t.cc[u]; + if (c == $) s = s.prev; + else if (c != re) break + } + for (; + ("stat" == s.type || "form" == s.type) && ("}" == o || (i = t.cc[t.cc.length - 1]) && (i == M || i == T) && !/^[,\.=+\-*:?[\(]/.test(n));) s = s.prev; + Oe && ")" == s.type && "stat" == s.prev.type && (s = s.prev); + var f = s.type, + d = o == f; + return "vardef" == f ? s.indented + ("operator" == t.lastType || "," == t.lastType ? s.info + 1 : 0) : "form" == f && "{" == o ? s.indented : "form" == f ? s.indented + Se : "stat" == f ? s.indented + (Ce(t, n) ? Oe || Se : 0) : "switch" != s.info || d || 0 == r.doubleIndentSwitch ? s.align ? s.column + (d ? 0 : 1) : s.indented + (d ? 0 : Se) : s.indented + (/^(?:case|default)\b/.test(n) ? Se : 2 * Se) + }, + electricInput: /^\s*(?:case .*?:|default:|\{|\})$/, + blockCommentStart: Te ? null : "/*", + blockCommentEnd: Te ? null : "*/", + lineComment: Te ? null : "//", + fold: "brace", + closeBrackets: "()[]{}''\"\"``", + helperType: Te ? "json" : "javascript", + jsonldMode: Me, + jsonMode: Te, + expressionAllowed: t, + skipExpression: function(e) { + var t = e.cc[e.cc.length - 1]; + t != _ && t != C || e.cc.pop() + } + } + }), e.registerHelper("wordChars", "javascript", /[\w$]/), e.defineMIME("text/javascript", "javascript"), e.defineMIME("text/ecmascript", "javascript"), e.defineMIME("application/javascript", "javascript"), e.defineMIME("application/x-javascript", "javascript"), e.defineMIME("application/ecmascript", "javascript"), e.defineMIME("application/json", { + name: "javascript", + json: !0 + }), e.defineMIME("application/x-json", { + name: "javascript", + json: !0 + }), e.defineMIME("application/ld+json", { + name: "javascript", + jsonld: !0 + }), e.defineMIME("text/typescript", { + name: "javascript", + typescript: !0 + }), e.defineMIME("application/typescript", { + name: "javascript", + typescript: !0 + }) + }) +}, function(e, t, n) { + var r; + (function(e, i, o, a) { + /*! + * @overview es6-promise - a tiny implementation of Promises/A+. + * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) + * @license Licensed under MIT license + * See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE + * @version 2.3.0 + */ + (function() { + "use strict"; + + function s(e) { + return "function" == typeof e || "object" == typeof e && null !== e + } + + function l(e) { + return "function" == typeof e + } + + function u(e) { + return "object" == typeof e && null !== e + } + + function c(e) { + K = e + } + + function f(e) { + X = e + } + + function d() { + var t = e.nextTick, + n = e.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/); + return Array.isArray(n) && "0" === n[1] && "10" === n[2] && (t = i), + function() { + t(g) + } + } + + function h() { + return function() { + G(g) + } + } + + function p() { + var e = 0, + t = new te(g), + n = document.createTextNode(""); + return t.observe(n, { + characterData: !0 + }), + function() { + n.data = e = ++e % 2 + } + } + + function v() { + var e = new MessageChannel; + return e.port1.onmessage = g, + function() { + e.port2.postMessage(0) + } + } + + function m() { + return function() { + setTimeout(g, 1) + } + } + + function g() { + for (var e = 0; e < J; e += 2) { + var t = ie[e], + n = ie[e + 1]; + t(n), ie[e] = void 0, ie[e + 1] = void 0 + } + J = 0 + } + + function y() { + try { + var e = n(186); + return G = e.runOnLoop || e.runOnContext, h() + } catch (e) { + return m() + } + } + + function b() {} + + function $() { + return new TypeError("You cannot resolve a promise with itself") + } + + function w() { + return new TypeError("A promises callback cannot return that same promise.") + } + + function x(e) { + try { + return e.then + } catch (e) { + return le.error = e, le + } + } + + function _(e, t, n, r) { + try { + e.call(t, n, r) + } catch (e) { + return e + } + } + + function C(e, t, n) { + X(function(e) { + var r = !1, + i = _(n, t, function(n) { + r || (r = !0, t !== n ? S(e, n) : M(e, n)) + }, function(t) { + r || (r = !0, T(e, t)) + }, "Settle: " + (e._label || " unknown promise")); + !r && i && (r = !0, T(e, i)) + }, e) + } + + function k(e, t) { + t._state === ae ? M(e, t._result) : t._state === se ? T(e, t._result) : P(t, void 0, function(t) { + S(e, t) + }, function(t) { + T(e, t) + }) + } + + function E(e, t) { + if (t.constructor === e.constructor) k(e, t); + else { + var n = x(t); + n === le ? T(e, le.error) : void 0 === n ? M(e, t) : l(n) ? C(e, t, n) : M(e, t) + } + } + + function S(e, t) { + e === t ? T(e, $()) : s(t) ? E(e, t) : M(e, t) + } + + function O(e) { + e._onerror && e._onerror(e._result), A(e) + } + + function M(e, t) { + e._state === oe && (e._result = t, e._state = ae, 0 !== e._subscribers.length && X(A, e)) + } + + function T(e, t) { + e._state === oe && (e._state = se, e._result = t, X(O, e)) + } + + function P(e, t, n, r) { + var i = e._subscribers, + o = i.length; + e._onerror = null, i[o] = t, i[o + ae] = n, i[o + se] = r, 0 === o && e._state && X(A, e) + } + + function A(e) { + var t = e._subscribers, + n = e._state; + if (0 !== t.length) { + for (var r, i, o = e._result, a = 0; a < t.length; a += 3) r = t[a], i = t[a + n], r ? L(n, r, i, o) : i(o); + e._subscribers.length = 0 + } + } + + function j() { + this.error = null + } + + function F(e, t) { + try { + return e(t) + } catch (e) { + return ue.error = e, ue + } + } + + function L(e, t, n, r) { + var i, o, a, s, u = l(n); + if (u) { + if (i = F(n, r), i === ue ? (s = !0, o = i.error, i = null) : a = !0, t === i) return void T(t, w()) + } else i = r, a = !0; + t._state !== oe || (u && a ? S(t, i) : s ? T(t, o) : e === ae ? M(t, i) : e === se && T(t, i)) + } + + function R(e, t) { + try { + t(function(t) { + S(e, t) + }, function(t) { + T(e, t) + }) + } catch (t) { + T(e, t) + } + } + + function D(e, t) { + var n = this; + n._instanceConstructor = e, n.promise = new e(b), n._validateInput(t) ? (n._input = t, n.length = t.length, n._remaining = t.length, n._init(), 0 === n.length ? M(n.promise, n._result) : (n.length = n.length || 0, n._enumerate(), 0 === n._remaining && M(n.promise, n._result))) : T(n.promise, n._validationError()) + } + + function N(e) { + return new ce(this, e) + .promise + } + + function I(e) { + function t(e) { + S(i, e) + } + + function n(e) { + T(i, e) + } + var r = this, + i = new r(b); + if (!Q(e)) return T(i, new TypeError("You must pass an array to race.")), i; + for (var o = e.length, a = 0; i._state === oe && a < o; a++) P(r.resolve(e[a]), void 0, t, n); + return i + } + + function V(e) { + var t = this; + if (e && "object" == typeof e && e.constructor === t) return e; + var n = new t(b); + return S(n, e), n + } + + function W(e) { + var t = this, + n = new t(b); + return T(n, e), n + } + + function H() { + throw new TypeError("You must pass a resolver function as the first argument to the promise constructor") + } + + function U() { + throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.") + } + + function z(e) { + this._id = ve++, this._state = void 0, this._result = void 0, this._subscribers = [], b !== e && (l(e) || H(), this instanceof z || U(), R(this, e)) + } + + function q() { + var e; + if ("undefined" != typeof o) e = o; + else if ("undefined" != typeof self) e = self; + else try { + e = Function("return this")() + } catch (e) { + throw new Error("polyfill failed because global object is unavailable in this environment") + } + var t = e.Promise; + t && "[object Promise]" === Object.prototype.toString.call(t.resolve()) && !t.cast || (e.Promise = me) + } + var B; + B = Array.isArray ? Array.isArray : function(e) { + return "[object Array]" === Object.prototype.toString.call(e) + }; + var G, K, Y, Q = B, + J = 0, + X = ({}.toString, function(e, t) { + ie[J] = e, ie[J + 1] = t, J += 2, 2 === J && (K ? K(g) : Y()) + }), + Z = "undefined" != typeof window ? window : void 0, + ee = Z || {}, + te = ee.MutationObserver || ee.WebKitMutationObserver, + ne = "undefined" != typeof e && "[object process]" === {}.toString.call(e), + re = "undefined" != typeof Uint8ClampedArray && "undefined" != typeof importScripts && "undefined" != typeof MessageChannel, + ie = new Array(1e3); + Y = ne ? d() : te ? p() : re ? v() : void 0 === Z ? y() : m(); + var oe = void 0, + ae = 1, + se = 2, + le = new j, + ue = new j; + D.prototype._validateInput = function(e) { + return Q(e) + }, D.prototype._validationError = function() { + return new Error("Array Methods must be provided an Array") + }, D.prototype._init = function() { + this._result = new Array(this.length) + }; + var ce = D; + D.prototype._enumerate = function() { + for (var e = this, t = e.length, n = e.promise, r = e._input, i = 0; n._state === oe && i < t; i++) e._eachEntry(r[i], i) + }, D.prototype._eachEntry = function(e, t) { + var n = this, + r = n._instanceConstructor; + u(e) ? e.constructor === r && e._state !== oe ? (e._onerror = null, n._settledAt(e._state, t, e._result)) : n._willSettleAt(r.resolve(e), t) : (n._remaining--, n._result[t] = e) + }, D.prototype._settledAt = function(e, t, n) { + var r = this, + i = r.promise; + i._state === oe && (r._remaining--, e === se ? T(i, n) : r._result[t] = n), 0 === r._remaining && M(i, r._result) + }, D.prototype._willSettleAt = function(e, t) { + var n = this; + P(e, void 0, function(e) { + n._settledAt(ae, t, e) + }, function(e) { + n._settledAt(se, t, e) + }) + }; + var fe = N, + de = I, + he = V, + pe = W, + ve = 0, + me = z; + z.all = fe, z.race = de, z.resolve = he, z.reject = pe, z._setScheduler = c, z._setAsap = f, z._asap = X, z.prototype = { + constructor: z, + then: function(e, t) { + var n = this, + r = n._state; + if (r === ae && !e || r === se && !t) return this; + var i = new this.constructor(b), + o = n._result; + if (r) { + var a = arguments[r - 1]; + X(function() { + L(r, i, a, o) + }) + } else P(n, i, e, t); + return i + }, + catch: function(e) { + return this.then(null, e) + } + }; + var ge = q, + ye = { + Promise: me, + polyfill: ge + }; + n(185) + .amd ? (r = function() { + return ye + }.call(t, n, t, a), !(void 0 !== r && (a.exports = r))) : "undefined" != typeof a && a.exports ? a.exports = ye : "undefined" != typeof this && (this.ES6Promise = ye), ge() + }) + .call(this) + }) + .call(t, n(11), n(184) + .setImmediate, + function() { + return this + }(), n(183)(e)) +}, function(e, t, n) { + ! function(t, n, r) { + e.exports = r(t, n) + }("humane", this, function(e, t) { + var n = window, + r = document, + i = { + on: function(e, t, r) { + "addEventListener" in n ? e.addEventListener(t, r, !1) : e.attachEvent("on" + t, r) + }, + off: function(e, t, r) { + "removeEventListener" in n ? e.removeEventListener(t, r, !1) : e.detachEvent("on" + t, r) + }, + bind: function(e, t) { + return function() { + e.apply(t, arguments) + } + }, + isArray: Array.isArray || function(e) { + return "[object Array]" === Object.prototype.toString.call(e) + }, + config: function(e, t) { + return null != e ? e : t + }, + transSupport: !1, + useFilter: /msie [678]/i.test(navigator.userAgent), + _checkTransition: function() { + var e = r.createElement("div"), + t = { + webkit: "webkit", + Moz: "", + O: "o", + ms: "MS" + }; + for (var n in t) n + "Transition" in e.style && (this.vendorPrefix = t[n], this.transSupport = !0) + } + }; + i._checkTransition(); + var o = function(e) { + e || (e = {}), this.queue = [], this.baseCls = e.baseCls || "humane", this.addnCls = e.addnCls || "", this.timeout = "timeout" in e ? e.timeout : 2500, this.waitForMove = e.waitForMove || !1, this.clickToClose = e.clickToClose || !1, this.timeoutAfterMove = e.timeoutAfterMove || !1, this.container = e.container; + try { + this._setupEl() + } catch (e) { + i.on(n, "load", i.bind(this._setupEl, this)) + } + }; + return o.prototype = { + constructor: o, + _setupEl: function() { + var e = r.createElement("div"); + if (e.style.display = "none", !this.container) { + if (!r.body) throw "document.body is null"; + this.container = r.body + } + this.container.appendChild(e), this.el = e, this.removeEvent = i.bind(function() { + var e = i.config(this.currentMsg.timeoutAfterMove, this.timeoutAfterMove); + e ? setTimeout(i.bind(this.remove, this), e) : this.remove() + }, this), this.transEvent = i.bind(this._afterAnimation, this), this._run() + }, + _afterTimeout: function() { + i.config(this.currentMsg.waitForMove, this.waitForMove) ? this.removeEventsSet || (i.on(r.body, "mousemove", this.removeEvent), i.on(r.body, "click", this.removeEvent), i.on(r.body, "keypress", this.removeEvent), i.on(r.body, "touchstart", this.removeEvent), this.removeEventsSet = !0) : this.remove() + }, + _run: function() { + if (!this._animating && this.queue.length && this.el) { + this._animating = !0, this.currentTimer && (clearTimeout(this.currentTimer), this.currentTimer = null); + var e = this.queue.shift(), + t = i.config(e.clickToClose, this.clickToClose); + t && (i.on(this.el, "click", this.removeEvent), i.on(this.el, "touchstart", this.removeEvent)); + var n = i.config(e.timeout, this.timeout); + n > 0 && (this.currentTimer = setTimeout(i.bind(this._afterTimeout, this), n)), i.isArray(e.html) && (e.html = "
  • " + e.html.join("
  • ") + "
"), this.el.innerHTML = e.html, this.currentMsg = e, this.el.className = this.baseCls, i.transSupport ? (this.el.style.display = "block", setTimeout(i.bind(this._showMsg, this), 50)) : this._showMsg() + } + }, + _setOpacity: function(e) { + if (i.useFilter) try { + this.el.filters.item("DXImageTransform.Microsoft.Alpha") + .Opacity = 100 * e + } catch (e) {} else this.el.style.opacity = String(e) + }, + _showMsg: function() { + var e = i.config(this.currentMsg.addnCls, this.addnCls); + if (i.transSupport) this.el.className = this.baseCls + " " + e + " " + this.baseCls + "-animate"; + else { + var t = 0; + this.el.className = this.baseCls + " " + e + " " + this.baseCls + "-js-animate", this._setOpacity(0), this.el.style.display = "block"; + var n = this, + r = setInterval(function() { + t < 1 ? (t += .1, t > 1 && (t = 1), n._setOpacity(t)) : clearInterval(r) + }, 30) + } + }, + _hideMsg: function() { + var e = i.config(this.currentMsg.addnCls, this.addnCls); + if (i.transSupport) this.el.className = this.baseCls + " " + e, i.on(this.el, i.vendorPrefix ? i.vendorPrefix + "TransitionEnd" : "transitionend", this.transEvent); + else var t = 1, + n = this, + r = setInterval(function() { + t > 0 ? (t -= .1, t < 0 && (t = 0), n._setOpacity(t)) : (n.el.className = n.baseCls + " " + e, clearInterval(r), n._afterAnimation()) + }, 30) + }, + _afterAnimation: function() { + i.transSupport && i.off(this.el, i.vendorPrefix ? i.vendorPrefix + "TransitionEnd" : "transitionend", this.transEvent), this.currentMsg.cb && this.currentMsg.cb(), this.el.style.display = "none", this._animating = !1, this._run() + }, + remove: function(e) { + var t = "function" == typeof e ? e : null; + i.off(r.body, "mousemove", this.removeEvent), i.off(r.body, "click", this.removeEvent), i.off(r.body, "keypress", this.removeEvent), i.off(r.body, "touchstart", this.removeEvent), i.off(this.el, "click", this.removeEvent), i.off(this.el, "touchstart", this.removeEvent), this.removeEventsSet = !1, t && this.currentMsg && (this.currentMsg.cb = t), this._animating ? this._hideMsg() : t && t() + }, + log: function(e, t, n, r) { + var i = {}; + if (r) + for (var o in r) i[o] = r[o]; + if ("function" == typeof t) n = t; + else if (t) + for (var o in t) i[o] = t[o]; + return i.html = e, n && (i.cb = n), this.queue.push(i), this._run(), this + }, + spawn: function(e) { + var t = this; + return function(n, r, i) { + return t.log.call(t, n, r, i, e), t + } + }, + create: function(e) { + return new o(e) + } + }, new o + }) +}, function(e, t, n) { + (function(e) { + (function() { + var t = !0, + n = !1, + r = {}, + i = function() { + var e = { + trace: function() {}, + yy: {}, + symbols_: { + error: 2, + JSONString: 3, + STRING: 4, + JSONNumber: 5, + NUMBER: 6, + JSONNullLiteral: 7, + NULL: 8, + JSONBooleanLiteral: 9, + TRUE: 10, + FALSE: 11, + JSONText: 12, + JSONValue: 13, + EOF: 14, + JSONObject: 15, + JSONArray: 16, + "{": 17, + "}": 18, + JSONMemberList: 19, + JSONMember: 20, + ":": 21, + ",": 22, + "[": 23, + "]": 24, + JSONElementList: 25, + $accept: 0, + $end: 1 + }, + terminals_: { + 2: "error", + 4: "STRING", + 6: "NUMBER", + 8: "NULL", + 10: "TRUE", + 11: "FALSE", + 14: "EOF", + 17: "{", + 18: "}", + 21: ":", + 22: ",", + 23: "[", + 24: "]" + }, + productions_: [0, [3, 1], [5, 1], [7, 1], [9, 1], [9, 1], [12, 2], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [15, 2], [15, 3], [20, 3], [19, 1], [19, 3], [16, 2], [16, 3], [25, 1], [25, 3]], + performAction: function(e, t, n, r, i, o, a) { + var s = o.length - 1; + switch (i) { + case 1: + this.$ = e.replace(/\\(\\|")/g, "$1") + .replace(/\\n/g, "\n") + .replace(/\\r/g, "\r") + .replace(/\\t/g, "\t") + .replace(/\\v/g, "\v") + .replace(/\\f/g, "\f") + .replace(/\\b/g, "\b"); + break; + case 2: + this.$ = Number(e); + break; + case 3: + this.$ = null; + break; + case 4: + this.$ = !0; + break; + case 5: + this.$ = !1; + break; + case 6: + return this.$ = o[s - 1]; + case 13: + this.$ = {}; + break; + case 14: + this.$ = o[s - 1]; + break; + case 15: + this.$ = [o[s - 2], o[s]]; + break; + case 16: + this.$ = {}, this.$[o[s][0]] = o[s][1]; + break; + case 17: + this.$ = o[s - 2], o[s - 2][o[s][0]] = o[s][1]; + break; + case 18: + this.$ = []; + break; + case 19: + this.$ = o[s - 1]; + break; + case 20: + this.$ = [o[s]]; + break; + case 21: + this.$ = o[s - 2], o[s - 2].push(o[s]) + } + }, + table: [{ + 3: 5, + 4: [1, 12], + 5: 6, + 6: [1, 13], + 7: 3, + 8: [1, 9], + 9: 4, + 10: [1, 10], + 11: [1, 11], + 12: 1, + 13: 2, + 15: 7, + 16: 8, + 17: [1, 14], + 23: [1, 15] + }, { + 1: [3] + }, { + 14: [1, 16] + }, { + 14: [2, 7], + 18: [2, 7], + 22: [2, 7], + 24: [2, 7] + }, { + 14: [2, 8], + 18: [2, 8], + 22: [2, 8], + 24: [2, 8] + }, { + 14: [2, 9], + 18: [2, 9], + 22: [2, 9], + 24: [2, 9] + }, { + 14: [2, 10], + 18: [2, 10], + 22: [2, 10], + 24: [2, 10] + }, { + 14: [2, 11], + 18: [2, 11], + 22: [2, 11], + 24: [2, 11] + }, { + 14: [2, 12], + 18: [2, 12], + 22: [2, 12], + 24: [2, 12] + }, { + 14: [2, 3], + 18: [2, 3], + 22: [2, 3], + 24: [2, 3] + }, { + 14: [2, 4], + 18: [2, 4], + 22: [2, 4], + 24: [2, 4] + }, { + 14: [2, 5], + 18: [2, 5], + 22: [2, 5], + 24: [2, 5] + }, { + 14: [2, 1], + 18: [2, 1], + 21: [2, 1], + 22: [2, 1], + 24: [2, 1] + }, { + 14: [2, 2], + 18: [2, 2], + 22: [2, 2], + 24: [2, 2] + }, { + 3: 20, + 4: [1, 12], + 18: [1, 17], + 19: 18, + 20: 19 + }, { + 3: 5, + 4: [1, 12], + 5: 6, + 6: [1, 13], + 7: 3, + 8: [1, 9], + 9: 4, + 10: [1, 10], + 11: [1, 11], + 13: 23, + 15: 7, + 16: 8, + 17: [1, 14], + 23: [1, 15], + 24: [1, 21], + 25: 22 + }, { + 1: [2, 6] + }, { + 14: [2, 13], + 18: [2, 13], + 22: [2, 13], + 24: [2, 13] + }, { + 18: [1, 24], + 22: [1, 25] + }, { + 18: [2, 16], + 22: [2, 16] + }, { + 21: [1, 26] + }, { + 14: [2, 18], + 18: [2, 18], + 22: [2, 18], + 24: [2, 18] + }, { + 22: [1, 28], + 24: [1, 27] + }, { + 22: [2, 20], + 24: [2, 20] + }, { + 14: [2, 14], + 18: [2, 14], + 22: [2, 14], + 24: [2, 14] + }, { + 3: 20, + 4: [1, 12], + 20: 29 + }, { + 3: 5, + 4: [1, 12], + 5: 6, + 6: [1, 13], + 7: 3, + 8: [1, 9], + 9: 4, + 10: [1, 10], + 11: [1, 11], + 13: 30, + 15: 7, + 16: 8, + 17: [1, 14], + 23: [1, 15] + }, { + 14: [2, 19], + 18: [2, 19], + 22: [2, 19], + 24: [2, 19] + }, { + 3: 5, + 4: [1, 12], + 5: 6, + 6: [1, 13], + 7: 3, + 8: [1, 9], + 9: 4, + 10: [1, 10], + 11: [1, 11], + 13: 31, + 15: 7, + 16: 8, + 17: [1, 14], + 23: [1, 15] + }, { + 18: [2, 17], + 22: [2, 17] + }, { + 18: [2, 15], + 22: [2, 15] + }, { + 22: [2, 21], + 24: [2, 21] + }], + defaultActions: { + 16: [2, 6] + }, + parseError: function(e, t) { + throw new Error(e) + }, + parse: function(e) { + function t(e) { + i.length = i.length - 2 * e, o.length = o.length - e, a.length = a.length - e + } + + function n() { + var e; + return e = r.lexer.lex() || 1, "number" != typeof e && (e = r.symbols_[e] || e), e + } + var r = this, + i = [0], + o = [null], + a = [], + s = this.table, + l = "", + u = 0, + c = 0, + f = 0, + d = 2, + h = 1; + this.lexer.setInput(e), this.lexer.yy = this.yy, this.yy.lexer = this.lexer, "undefined" == typeof this.lexer.yylloc && (this.lexer.yylloc = {}); + var p = this.lexer.yylloc; + a.push(p), "function" == typeof this.yy.parseError && (this.parseError = this.yy.parseError); + for (var v, m, g, y, b, $, w, x, _, C = {};;) { + if (g = i[i.length - 1], this.defaultActions[g] ? y = this.defaultActions[g] : (null == v && (v = n()), y = s[g] && s[g][v]), "undefined" == typeof y || !y.length || !y[0]) { + if (!f) { + _ = []; + for ($ in s[g]) this.terminals_[$] && $ > 2 && _.push("'" + this.terminals_[$] + "'"); + var k = ""; + k = this.lexer.showPosition ? "Parse error on line " + (u + 1) + ":\n" + this.lexer.showPosition() + "\nExpecting " + _.join(", ") + ", got '" + this.terminals_[v] + "'" : "Parse error on line " + (u + 1) + ": Unexpected " + (1 == v ? "end of input" : "'" + (this.terminals_[v] || v) + "'"), this.parseError(k, { + text: this.lexer.match, + token: this.terminals_[v] || v, + line: this.lexer.yylineno, + loc: p, + expected: _ + }) + } + if (3 == f) { + if (v == h) throw new Error(k || "Parsing halted."); + c = this.lexer.yyleng, l = this.lexer.yytext, u = this.lexer.yylineno, p = this.lexer.yylloc, v = n() + } + for (; !(d.toString() in s[g]);) { + if (0 == g) throw new Error(k || "Parsing halted."); + t(1), g = i[i.length - 1] + } + m = v, v = d, g = i[i.length - 1], y = s[g] && s[g][d], f = 3 + } + if (y[0] instanceof Array && y.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + g + ", token: " + v); + switch (y[0]) { + case 1: + i.push(v), o.push(this.lexer.yytext), a.push(this.lexer.yylloc), i.push(y[1]), v = null, m ? (v = m, m = null) : (c = this.lexer.yyleng, l = this.lexer.yytext, u = this.lexer.yylineno, p = this.lexer.yylloc, f > 0 && f--); + break; + case 2: + if (w = this.productions_[y[1]][1], C.$ = o[o.length - w], C._$ = { + first_line: a[a.length - (w || 1)].first_line, + last_line: a[a.length - 1].last_line, + first_column: a[a.length - (w || 1)].first_column, + last_column: a[a.length - 1].last_column + }, b = this.performAction.call(C, l, c, u, this.yy, y[1], o, a), "undefined" != typeof b) return b; + w && (i = i.slice(0, -1 * w * 2), o = o.slice(0, -1 * w), a = a.slice(0, -1 * w)), i.push(this.productions_[y[1]][0]), o.push(C.$), a.push(C._$), x = s[i[i.length - 2]][i[i.length - 1]], i.push(x); + break; + case 3: + return !0 + } + } + return !0 + } + }, + t = function() { + var e = { + EOF: 1, + parseError: function(e, t) { + if (!this.yy.parseError) throw new Error(e); + this.yy.parseError(e, t) + }, + setInput: function(e) { + return this._input = e, this._more = this._less = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = { + first_line: 1, + first_column: 0, + last_line: 1, + last_column: 0 + }, this + }, + input: function() { + var e = this._input[0]; + this.yytext += e, this.yyleng++, this.match += e, this.matched += e; + var t = e.match(/\n/); + return t && this.yylineno++, this._input = this._input.slice(1), e + }, + unput: function(e) { + return this._input = e + this._input, this + }, + more: function() { + return this._more = !0, this + }, + less: function(e) { + this._input = this.match.slice(e) + this._input + }, + pastInput: function() { + var e = this.matched.substr(0, this.matched.length - this.match.length); + return (e.length > 20 ? "..." : "") + e.substr(-20) + .replace(/\n/g, "") + }, + upcomingInput: function() { + var e = this.match; + return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")) + .replace(/\n/g, "") + }, + showPosition: function() { + var e = this.pastInput(), + t = new Array(e.length + 1) + .join("-"); + return e + this.upcomingInput() + "\n" + t + "^" + }, + next: function() { + if (this.done) return this.EOF; + this._input || (this.done = !0); + var e, t, n, r, i; + this._more || (this.yytext = "", this.match = ""); + for (var o = this._currentRules(), a = 0; a < o.length && (n = this._input.match(this.rules[o[a]]), !n || t && !(n[0].length > t[0].length) || (t = n, r = a, this.options.flex)); a++); + return t ? (i = t[0].match(/\n.*/g), i && (this.yylineno += i.length), this.yylloc = { + first_line: this.yylloc.last_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.last_column, + last_column: i ? i[i.length - 1].length - 1 : this.yylloc.last_column + t[0].length + }, this.yytext += t[0], this.match += t[0], this.yyleng = this.yytext.length, this._more = !1, this._input = this._input.slice(t[0].length), this.matched += t[0], e = this.performAction.call(this, this.yy, this, o[r], this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), e ? e : void 0) : "" === this._input ? this.EOF : void this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), { + text: "", + token: null, + line: this.yylineno + }) + }, + lex: function() { + var e = this.next(); + return "undefined" != typeof e ? e : this.lex() + }, + begin: function(e) { + this.conditionStack.push(e) + }, + popState: function() { + return this.conditionStack.pop() + }, + _currentRules: function() { + return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules + }, + topState: function() { + return this.conditionStack[this.conditionStack.length - 2] + }, + pushState: function(e) { + this.begin(e) + } + }; + return e.options = {}, e.performAction = function(e, t, n, r) { + switch (n) { + case 0: + break; + case 1: + return 6; + case 2: + return t.yytext = t.yytext.substr(1, t.yyleng - 2), 4; + case 3: + return 17; + case 4: + return 18; + case 5: + return 23; + case 6: + return 24; + case 7: + return 22; + case 8: + return 21; + case 9: + return 10; + case 10: + return 11; + case 11: + return 8; + case 12: + return 14; + case 13: + return "INVALID" + } + }, e.rules = [/^(?:\s+)/, /^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/, /^(?:"(?:\\[\\"bfnrt\/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/, /^(?:\{)/, /^(?:\})/, /^(?:\[)/, /^(?:\])/, /^(?:,)/, /^(?::)/, /^(?:true\b)/, /^(?:false\b)/, /^(?:null\b)/, /^(?:$)/, /^(?:.)/], e.conditions = { + INITIAL: { + rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], + inclusive: !0 + } + }, e + }(); + return e.lexer = t, e + }(); + return "undefined" != typeof t && "undefined" != typeof r && (r.parser = i, r.parse = function() { + return i.parse.apply(i, arguments) + }, r.main = function(n) { + if (!n[1]) throw new Error("Usage: " + n[0] + " FILE"); + if ("undefined" != typeof e) var i = t("fs") + .readFileSync(t("path") + .join(e.cwd(), n[1]), "utf8"); + else var o = t("file") + .path(t("file") + .cwd()), + i = o.join(n[1]) + .read({ + charset: "utf-8" + }); + return r.parser.parse(i) + }, "undefined" != typeof n && t.main === n && r.main("undefined" != typeof e ? e.argv.slice(1) : t("system") + .args)), r + })() + }) + .call(t, n(11)) +}, function(e, t, n) { + var r, i; + ! function(o, a) { + r = a, i = "function" == typeof r ? r.call(t, n, t, e) : r, !(void 0 !== i && (e.exports = i)) + }(this, function() { + function e(e, t, n) { + return e < t ? t : e > n ? n : e + } + + function t(e) { + return 100 * (-1 + e) + } + + function n(e, n, r) { + var i; + return i = "translate3d" === u.positionUsing ? { + transform: "translate3d(" + t(e) + "%,0,0)" + } : "translate" === u.positionUsing ? { + transform: "translate(" + t(e) + "%,0)" + } : { + "margin-left": t(e) + "%" + }, i.transition = "all " + n + "ms " + r, i + } + + function r(e, t) { + var n = "string" == typeof e ? e : a(e); + return n.indexOf(" " + t + " ") >= 0 + } + + function i(e, t) { + var n = a(e), + i = n + t; + r(n, t) || (e.className = i.substring(1)) + } + + function o(e, t) { + var n, i = a(e); + r(e, t) && (n = i.replace(" " + t + " ", " "), e.className = n.substring(1, n.length - 1)) + } + + function a(e) { + return (" " + (e.className || "") + " ") + .replace(/\s+/gi, " ") + } + + function s(e) { + e && e.parentNode && e.parentNode.removeChild(e) + } + var l = {}; + l.version = "0.2.0"; + var u = l.settings = { + minimum: .08, + easing: "ease", + positionUsing: "", + speed: 200, + trickle: !0, + trickleRate: .02, + trickleSpeed: 800, + showSpinner: !0, + barSelector: '[role="bar"]', + spinnerSelector: '[role="spinner"]', + parent: "body", + template: '
' + }; + l.configure = function(e) { + var t, n; + for (t in e) n = e[t], void 0 !== n && e.hasOwnProperty(t) && (u[t] = n); + return this + }, l.status = null, l.set = function(t) { + var r = l.isStarted(); + t = e(t, u.minimum, 1), l.status = 1 === t ? null : t; + var i = l.render(!r), + o = i.querySelector(u.barSelector), + a = u.speed, + s = u.easing; + return i.offsetWidth, c(function(e) { + "" === u.positionUsing && (u.positionUsing = l.getPositioningCSS()), f(o, n(t, a, s)), 1 === t ? (f(i, { + transition: "none", + opacity: 1 + }), i.offsetWidth, setTimeout(function() { + f(i, { + transition: "all " + a + "ms linear", + opacity: 0 + }), setTimeout(function() { + l.remove(), e() + }, a) + }, a)) : setTimeout(e, a) + }), this + }, l.isStarted = function() { + return "number" == typeof l.status + }, l.start = function() { + l.status || l.set(0); + var e = function() { + setTimeout(function() { + l.status && (l.trickle(), e()) + }, u.trickleSpeed) + }; + return u.trickle && e(), this + }, l.done = function(e) { + return e || l.status ? l.inc(.3 + .5 * Math.random()) + .set(1) : this + }, l.inc = function(t) { + var n = l.status; + return n ? ("number" != typeof t && (t = (1 - n) * e(Math.random() * n, .1, .95)), n = e(n + t, 0, .994), l.set(n)) : l.start() + }, l.trickle = function() { + return l.inc(Math.random() * u.trickleRate) + }, + function() { + var e = 0, + t = 0; + l.promise = function(n) { + return n && "resolved" !== n.state() ? (0 === t && l.start(), e++, t++, n.always(function() { + t--, 0 === t ? (e = 0, l.done()) : l.set((e - t) / e) + }), this) : this + } + }(), l.render = function(e) { + if (l.isRendered()) return document.getElementById("nprogress"); + i(document.documentElement, "nprogress-busy"); + var n = document.createElement("div"); + n.id = "nprogress", n.innerHTML = u.template; + var r, o = n.querySelector(u.barSelector), + a = e ? "-100" : t(l.status || 0), + c = document.querySelector(u.parent); + return f(o, { + transition: "all 0 linear", + transform: "translate3d(" + a + "%,0,0)" + }), u.showSpinner || (r = n.querySelector(u.spinnerSelector), r && s(r)), c != document.body && i(c, "nprogress-custom-parent"), c.appendChild(n), n + }, l.remove = function() { + o(document.documentElement, "nprogress-busy"), o(document.querySelector(u.parent), "nprogress-custom-parent"); + var e = document.getElementById("nprogress"); + e && s(e) + }, l.isRendered = function() { + return !!document.getElementById("nprogress") + }, l.getPositioningCSS = function() { + var e = document.body.style, + t = "WebkitTransform" in e ? "Webkit" : "MozTransform" in e ? "Moz" : "msTransform" in e ? "ms" : "OTransform" in e ? "O" : ""; + return t + "Perspective" in e ? "translate3d" : t + "Transform" in e ? "translate" : "margin" + }; + var c = function() { + function e() { + var n = t.shift(); + n && n(e) + } + var t = []; + return function(n) { + t.push(n), 1 == t.length && e() + } + }(), + f = function() { + function e(e) { + return e.replace(/^-ms-/, "ms-") + .replace(/-([\da-z])/gi, function(e, t) { + return t.toUpperCase() + }) + } + + function t(e) { + var t = document.body.style; + if (e in t) return e; + for (var n, r = i.length, o = e.charAt(0) + .toUpperCase() + e.slice(1); r--;) + if (n = i[r] + o, n in t) return n; + return e + } + + function n(n) { + return n = e(n), o[n] || (o[n] = t(n)) + } + + function r(e, t, r) { + t = n(t), e.style[t] = r + } + var i = ["Webkit", "O", "Moz", "ms"], + o = {}; + return function(e, t) { + var n, i, o = arguments; + if (2 == o.length) + for (n in t) i = t[n], void 0 !== i && t.hasOwnProperty(n) && r(e, n, i); + else r(e, o[1], o[2]) + } + }(); + return l + }) +}, function(e, t, n) { + var r, i, o; + /*! + Papa Parse + v4.2.0 + https://github.com/mholt/PapaParse + */ + ! function(n, a) { + i = [], r = a, o = "function" == typeof r ? r.apply(t, i) : r, !(void 0 !== o && (e.exports = o)) + }(this, function() { + "use strict"; + + function e(e, t) { + if (t = t || {}, t.dynamicTyping = t.dynamicTyping || !1, t.worker && k.WORKERS_SUPPORTED) { + var n = c(); + return n.userStep = t.step, n.userChunk = t.chunk, n.userComplete = t.complete, n.userError = t.error, t.step = g(t.step), t.chunk = g(t.chunk), t.complete = g(t.complete), t.error = g(t.error), delete t.worker, void n.postMessage({ + input: e, + config: t, + workerId: n.id + }) + } + var s = null; + return "string" == typeof e ? s = t.download ? new r(t) : new o(t) : e.readable === !0 && "function" == typeof e.read && "function" == typeof e.on ? s = new a(t) : (b.File && e instanceof File || e instanceof Object) && (s = new i(t)), s.stream(e) + } + + function t(e, t) { + function n() { + "object" == typeof t && ("string" == typeof t.delimiter && 1 === t.delimiter.length && k.BAD_DELIMITERS.indexOf(t.delimiter) === -1 && (u = t.delimiter), ("boolean" == typeof t.quotes || t.quotes instanceof Array) && (s = t.quotes), "string" == typeof t.newline && (c = t.newline), "string" == typeof t.quoteChar && (f = t.quoteChar), "boolean" == typeof t.header && (l = t.header)) + } + + function r(e) { + if ("object" != typeof e) return []; + var t = []; + for (var n in e) t.push(n); + return t + } + + function i(e, t) { + var n = ""; + "string" == typeof e && (e = JSON.parse(e)), "string" == typeof t && (t = JSON.parse(t)); + var r = e instanceof Array && e.length > 0, + i = !(t[0] instanceof Array); + if (r && l) { + for (var a = 0; a < e.length; a++) a > 0 && (n += u), n += o(e[a], a); + t.length > 0 && (n += c) + } + for (var s = 0; s < t.length; s++) { + for (var f = r ? e.length : t[s].length, d = 0; d < f; d++) { + d > 0 && (n += u); + var h = r && i ? e[d] : d; + n += o(t[s][h], d) + } + s < t.length - 1 && (n += c) + } + return n + } + + function o(e, t) { + if ("undefined" == typeof e || null === e) return ""; + e = e.toString() + .replace(d, f + f); + var n = "boolean" == typeof s && s || s instanceof Array && s[t] || a(e, k.BAD_DELIMITERS) || e.indexOf(u) > -1 || " " === e.charAt(0) || " " === e.charAt(e.length - 1); + return n ? f + e + f : e + } + + function a(e, t) { + for (var n = 0; n < t.length; n++) + if (e.indexOf(t[n]) > -1) return !0; + return !1 + } + var s = !1, + l = !0, + u = ",", + c = "\r\n", + f = '"'; + n(); + var d = new RegExp(f, "g"); + if ("string" == typeof e && (e = JSON.parse(e)), e instanceof Array) { + if (!e.length || e[0] instanceof Array) return i(null, e); + if ("object" == typeof e[0]) return i(r(e[0]), e) + } else if ("object" == typeof e) return "string" == typeof e.data && (e.data = JSON.parse(e.data)), e.data instanceof Array && (e.fields || (e.fields = e.meta && e.meta.fields), e.fields || (e.fields = e.data[0] instanceof Array ? e.fields : r(e.data[0])), e.data[0] instanceof Array || "object" == typeof e.data[0] || (e.data = [e.data])), i(e.fields || [], e.data || []); + throw "exception: Unable to serialize unrecognized input" + } + + function n(e) { + function t(e) { + var t = v(e); + t.chunkSize = parseInt(t.chunkSize), e.step || e.chunk || (t.chunkSize = null), this._handle = new s(t), this._handle.streamer = this, this._config = t + } + this._handle = null, this._paused = !1, this._finished = !1, this._input = null, this._baseIndex = 0, this._partialLine = "", this._rowCount = 0, this._start = 0, this._nextChunk = null, this.isFirstChunk = !0, this._completeResults = { + data: [], + errors: [], + meta: {} + }, t.call(this, e), this.parseChunk = function(e) { + if (this.isFirstChunk && g(this._config.beforeFirstChunk)) { + var t = this._config.beforeFirstChunk(e); + void 0 !== t && (e = t) + } + this.isFirstChunk = !1; + var n = this._partialLine + e; + this._partialLine = ""; + var r = this._handle.parse(n, this._baseIndex, !this._finished); + if (!this._handle.paused() && !this._handle.aborted()) { + var i = r.meta.cursor; + this._finished || (this._partialLine = n.substring(i - this._baseIndex), this._baseIndex = i), r && r.data && (this._rowCount += r.data.length); + var o = this._finished || this._config.preview && this._rowCount >= this._config.preview; + if (w) b.postMessage({ + results: r, + workerId: k.WORKER_ID, + finished: o + }); + else if (g(this._config.chunk)) { + if (this._config.chunk(r, this._handle), this._paused) return; + r = void 0, this._completeResults = void 0 + } + return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(r.data), this._completeResults.errors = this._completeResults.errors.concat(r.errors), this._completeResults.meta = r.meta), !o || !g(this._config.complete) || r && r.meta.aborted || this._config.complete(this._completeResults, this._input), o || r && r.meta.paused || this._nextChunk(), r + } + }, this._sendError = function(e) { + g(this._config.error) ? this._config.error(e) : w && this._config.error && b.postMessage({ + workerId: k.WORKER_ID, + error: e, + finished: !1 + }) + } + } + + function r(e) { + function t(e) { + var t = e.getResponseHeader("Content-Range"); + return null === t ? -1 : parseInt(t.substr(t.lastIndexOf("/") + 1)) + } + e = e || {}, e.chunkSize || (e.chunkSize = k.RemoteChunkSize), n.call(this, e); + var r; + $ ? this._nextChunk = function() { + this._readChunk(), this._chunkLoaded() + } : this._nextChunk = function() { + this._readChunk() + }, this.stream = function(e) { + this._input = e, this._nextChunk() + }, this._readChunk = function() { + if (this._finished) return void this._chunkLoaded(); + if (r = new XMLHttpRequest, this._config.withCredentials && (r.withCredentials = this._config.withCredentials), $ || (r.onload = m(this._chunkLoaded, this), r.onerror = m(this._chunkError, this)), r.open("GET", this._input, !$), this._config.chunkSize) { + var e = this._start + this._config.chunkSize - 1; + r.setRequestHeader("Range", "bytes=" + this._start + "-" + e), r.setRequestHeader("If-None-Match", "webkit-no-cache") + } + try { + r.send() + } catch (e) { + this._chunkError(e.message) + } + $ && 0 === r.status ? this._chunkError() : this._start += this._config.chunkSize + }, this._chunkLoaded = function() { + if (4 == r.readyState) { + if (r.status < 200 || r.status >= 400) return void this._chunkError(); + this._finished = !this._config.chunkSize || this._start > t(r), this.parseChunk(r.responseText) + } + }, this._chunkError = function(e) { + var t = r.statusText || e; + this._sendError(t) + } + } + + function i(e) { + e = e || {}, e.chunkSize || (e.chunkSize = k.LocalChunkSize), n.call(this, e); + var t, r, i = "undefined" != typeof FileReader; + this.stream = function(e) { + this._input = e, r = e.slice || e.webkitSlice || e.mozSlice, i ? (t = new FileReader, t.onload = m(this._chunkLoaded, this), t.onerror = m(this._chunkError, this)) : t = new FileReaderSync, this._nextChunk() + }, this._nextChunk = function() { + this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk() + }, this._readChunk = function() { + var e = this._input; + if (this._config.chunkSize) { + var n = Math.min(this._start + this._config.chunkSize, this._input.size); + e = r.call(e, this._start, n) + } + var o = t.readAsText(e, this._config.encoding); + i || this._chunkLoaded({ + target: { + result: o + } + }) + }, this._chunkLoaded = function(e) { + this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(e.target.result) + }, this._chunkError = function() { + this._sendError(t.error) + } + } + + function o(e) { + e = e || {}, n.call(this, e); + var t, r; + this.stream = function(e) { + return t = e, r = e, this._nextChunk() + }, this._nextChunk = function() { + if (!this._finished) { + var e = this._config.chunkSize, + t = e ? r.substr(0, e) : r; + return r = e ? r.substr(e) : "", this._finished = !r, this.parseChunk(t) + } + } + } + + function a(e) { + e = e || {}, n.call(this, e); + var t = [], + r = !0; + this.stream = function(e) { + this._input = e, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError) + }, this._nextChunk = function() { + t.length ? this.parseChunk(t.shift()) : r = !0 + }, this._streamData = m(function(e) { + try { + t.push("string" == typeof e ? e : e.toString(this._config.encoding)), r && (r = !1, this.parseChunk(t.shift())) + } catch (e) { + this._streamError(e) + } + }, this), this._streamError = m(function(e) { + this._streamCleanUp(), this._sendError(e.message) + }, this), this._streamEnd = m(function() { + this._streamCleanUp(), this._finished = !0, this._streamData("") + }, this), this._streamCleanUp = m(function() { + this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError) + }, this) + } + + function s(e) { + function t() { + if (x && h && (c("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + k.DefaultDelimiter + "'"), h = !1), e.skipEmptyLines) + for (var t = 0; t < x.data.length; t++) 1 === x.data[t].length && "" === x.data[t][0] && x.data.splice(t--, 1); + return n() && r(), o() + } + + function n() { + return e.header && 0 === w.length + } + + function r() { + if (x) { + for (var e = 0; n() && e < x.data.length; e++) + for (var t = 0; t < x.data[e].length; t++) w.push(x.data[e][t]); + x.data.splice(0, 1) + } + } + + function i(t, n) { + return (e.dynamicTyping[t] || e.dynamicTyping) === !0 ? "true" === n || "TRUE" === n || "false" !== n && "FALSE" !== n && u(n) : n + } + + function o() { + if (!x || !e.header && !e.dynamicTyping) return x; + for (var t = 0; t < x.data.length; t++) { + for (var n = e.header ? {} : [], r = 0; r < x.data[t].length; r++) { + var o = r, + a = x.data[t][r]; + e.header && (o = r >= w.length ? "__parsed_extra" : w[r]), a = i(o, a), "__parsed_extra" === o ? (n[o] = n[o] || [], n[o].push(a)) : n[o] = a + } + x.data[t] = n, e.header && (r > w.length ? c("FieldMismatch", "TooManyFields", "Too many fields: expected " + w.length + " fields but parsed " + r, t) : r < w.length && c("FieldMismatch", "TooFewFields", "Too few fields: expected " + w.length + " fields but parsed " + r, t)) + } + return e.header && x.meta && (x.meta.fields = w), x + } + + function a(t, n) { + for (var r, i, o, a = [",", "\t", "|", ";", k.RECORD_SEP, k.UNIT_SEP], s = 0; s < a.length; s++) { + var u = a[s], + c = 0, + f = 0; + o = void 0; + for (var d = new l({ + delimiter: u, + newline: n, + preview: 10 + }) + .parse(t), h = 0; h < d.data.length; h++) { + var p = d.data[h].length; + f += p, "undefined" != typeof o ? p > 1 && (c += Math.abs(p - o), o = p) : o = p + } + d.data.length > 0 && (f /= d.data.length), ("undefined" == typeof i || c < i) && f > 1.99 && (i = c, r = u) + } + return e.delimiter = r, { + successful: !!r, + bestDelimiter: r + } + } + + function s(e) { + e = e.substr(0, 1048576); + var t = e.split("\r"), + n = e.split("\n"), + r = n.length > 1 && n[0].length < t[0].length; + if (1 === t.length || r) return "\n"; + for (var i = 0, o = 0; o < t.length; o++) "\n" === t[o][0] && i++; + return i >= t.length / 2 ? "\r\n" : "\r" + } + + function u(e) { + var t = p.test(e); + return t ? parseFloat(e) : e + } + + function c(e, t, n, r) { + x.errors.push({ + type: e, + code: t, + message: n, + row: r + }) + } + var f, d, h, p = /^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i, + m = this, + y = 0, + b = !1, + $ = !1, + w = [], + x = { + data: [], + errors: [], + meta: {} + }; + if (g(e.step)) { + var _ = e.step; + e.step = function(r) { + if (x = r, n()) t(); + else { + if (t(), 0 === x.data.length) return; + y += r.data.length, e.preview && y > e.preview ? d.abort() : _(x, m) + } + } + } + this.parse = function(n, r, i) { + if (e.newline || (e.newline = s(n)), h = !1, e.delimiter) "function" == typeof e.delimiter && (e.delimiter = e.delimiter(n), x.meta.delimiter = e.delimiter); + else { + var o = a(n, e.newline); + o.successful ? e.delimiter = o.bestDelimiter : (h = !0, e.delimiter = k.DefaultDelimiter), x.meta.delimiter = e.delimiter + } + var u = v(e); + return e.preview && e.header && u.preview++, f = n, d = new l(u), x = d.parse(f, r, i), t(), b ? { + meta: { + paused: !0 + } + } : x || { + meta: { + paused: !1 + } + } + }, this.paused = function() { + return b + }, this.pause = function() { + b = !0, d.abort(), f = f.substr(d.getCharIndex()) + }, this.resume = function() { + b = !1, m.streamer.parseChunk(f) + }, this.aborted = function() { + return $ + }, this.abort = function() { + $ = !0, d.abort(), x.meta.aborted = !0, g(e.complete) && e.complete(x), f = "" + } + } + + function l(e) { + e = e || {}; + var t = e.delimiter, + n = e.newline, + r = e.comments, + i = e.step, + o = e.preview, + a = e.fastMode, + s = e.quoteChar || '"'; + if (("string" != typeof t || k.BAD_DELIMITERS.indexOf(t) > -1) && (t = ","), r === t) throw "Comment character same as delimiter"; + r === !0 ? r = "#" : ("string" != typeof r || k.BAD_DELIMITERS.indexOf(r) > -1) && (r = !1), "\n" != n && "\r" != n && "\r\n" != n && (n = "\n"); + var l = 0, + u = !1; + this.parse = function(e, c, f) { + function d(e) { + x.push(e), k = l + } + + function h(t) { + return f ? v() : ("undefined" == typeof t && (t = e.substr(l)), C.push(t), l = g, d(C), w && m(), v()) + } + + function p(t) { + l = t, d(C), C = [], M = e.indexOf(n, l) + } + + function v(e) { + return { + data: x, + errors: _, + meta: { + delimiter: t, + linebreak: n, + aborted: u, + truncated: !!e, + cursor: k + (c || 0) + } + } + } + + function m() { + i(v()), x = [], _ = [] + } + if ("string" != typeof e) throw "Input must be a string"; + var g = e.length, + y = t.length, + b = n.length, + $ = r.length, + w = "function" == typeof i; + l = 0; + var x = [], + _ = [], + C = [], + k = 0; + if (!e) return v(); + if (a || a !== !1 && e.indexOf(s) === -1) { + for (var E = e.split(n), S = 0; S < E.length; S++) { + var C = E[S]; + if (l += C.length, S !== E.length - 1) l += n.length; + else if (f) return v(); + if (!r || C.substr(0, $) !== r) { + if (w) { + if (x = [], d(C.split(t)), m(), u) return v() + } else d(C.split(t)); + if (o && S >= o) return x = x.slice(0, o), v(!0) + } + } + return v() + } + for (var O = e.indexOf(t, l), M = e.indexOf(n, l), T = new RegExp(s + s, "g");;) + if (e[l] !== s) + if (r && 0 === C.length && e.substr(l, $) === r) { + if (M === -1) return v(); + l = M + b, M = e.indexOf(n, l), O = e.indexOf(t, l) + } else if (O !== -1 && (O < M || M === -1)) C.push(e.substring(l, O)), l = O + y, O = e.indexOf(t, l); + else { + if (M === -1) break; + if (C.push(e.substring(l, M)), p(M + b), w && (m(), u)) return v(); + if (o && x.length >= o) return v(!0) + } else { + var P = l; + for (l++;;) { + var P = e.indexOf(s, P + 1); + if (P === -1) return f || _.push({ + type: "Quotes", + code: "MissingQuotes", + message: "Quoted field unterminated", + row: x.length, + index: l + }), h(); + if (P === g - 1) { + var A = e.substring(l, P) + .replace(T, s); + return h(A) + } + if (e[P + 1] !== s) { + if (e[P + 1] === t) { + C.push(e.substring(l, P) + .replace(T, s)), l = P + 1 + y, O = e.indexOf(t, l), M = e.indexOf(n, l); + break + } + if (e.substr(P + 1, b) === n) { + if (C.push(e.substring(l, P) + .replace(T, s)), p(P + 1 + b), O = e.indexOf(t, l), w && (m(), u)) return v(); + if (o && x.length >= o) return v(!0); + break + } + } else P++ + } + } + return h() + }, this.abort = function() { + u = !0 + }, this.getCharIndex = function() { + return l + } + } + + function u() { + var e = document.getElementsByTagName("script"); + return e.length ? e[e.length - 1].src : "" + } + + function c() { + if (!k.WORKERS_SUPPORTED) return !1; + if (!x && null === k.SCRIPT_PATH) throw new Error("Script path cannot be determined automatically when Papa Parse is loaded asynchronously. You need to set Papa.SCRIPT_PATH manually."); + var e = k.SCRIPT_PATH || y; + e += (e.indexOf("?") !== -1 ? "&" : "?") + "papaworker"; + var t = new b.Worker(e); + return t.onmessage = f, t.id = C++, _[t.id] = t, t + } + + function f(e) { + var t = e.data, + n = _[t.workerId], + r = !1; + if (t.error) n.userError(t.error, t.file); + else if (t.results && t.results.data) { + var i = function() { + r = !0, d(t.workerId, { + data: [], + errors: [], + meta: { + aborted: !0 + } + }) + }, + o = { + abort: i, + pause: h, + resume: h + }; + if (g(n.userStep)) { + for (var a = 0; a < t.results.data.length && (n.userStep({ + data: [t.results.data[a]], + errors: t.results.errors, + meta: t.results.meta + }, o), !r); a++); + delete t.results + } else g(n.userChunk) && (n.userChunk(t.results, o, t.file), delete t.results) + } + t.finished && !r && d(t.workerId, t.results) + } + + function d(e, t) { + var n = _[e]; + g(n.userComplete) && n.userComplete(t), n.terminate(), delete _[e] + } + + function h() { + throw "Not implemented." + } + + function p(e) { + var t = e.data; + if ("undefined" == typeof k.WORKER_ID && t && (k.WORKER_ID = t.workerId), "string" == typeof t.input) b.postMessage({ + workerId: k.WORKER_ID, + results: k.parse(t.input, t.config), + finished: !0 + }); + else if (b.File && t.input instanceof File || t.input instanceof Object) { + var n = k.parse(t.input, t.config); + n && b.postMessage({ + workerId: k.WORKER_ID, + results: n, + finished: !0 + }) + } + } + + function v(e) { + if ("object" != typeof e) return e; + var t = e instanceof Array ? [] : {}; + for (var n in e) t[n] = v(e[n]); + return t + } + + function m(e, t) { + return function() { + e.apply(t, arguments) + } + } + + function g(e) { + return "function" == typeof e + } + var y, b = function() { + return "undefined" != typeof self ? self : "undefined" != typeof window ? window : "undefined" != typeof b ? b : {} + }(), + $ = !b.document && !!b.postMessage, + w = $ && /(\?|&)papaworker(=|&|$)/.test(b.location.search), + x = !1, + _ = {}, + C = 0, + k = {}; + if (k.parse = e, k.unparse = t, k.RECORD_SEP = String.fromCharCode(30), k.UNIT_SEP = String.fromCharCode(31), k.BYTE_ORDER_MARK = "\ufeff", k.BAD_DELIMITERS = ["\r", "\n", '"', k.BYTE_ORDER_MARK], k.WORKERS_SUPPORTED = !$ && !!b.Worker, k.SCRIPT_PATH = null, k.LocalChunkSize = 10485760, k.RemoteChunkSize = 5242880, k.DefaultDelimiter = ",", k.Parser = l, k.ParserHandle = s, k.NetworkStreamer = r, k.FileStreamer = i, k.StringStreamer = o, k.ReadableStreamStreamer = a, b.jQuery) { + var E = b.jQuery; + E.fn.parse = function(e) { + function t() { + if (0 === o.length) return void(g(e.complete) && e.complete()); + var t = o[0]; + if (g(e.before)) { + var i = e.before(t.file, t.inputElem); + if ("object" == typeof i) { + if ("abort" === i.action) return void n("AbortError", t.file, t.inputElem, i.reason); + if ("skip" === i.action) return void r(); + "object" == typeof i.config && (t.instanceConfig = E.extend(t.instanceConfig, i.config)) + } else if ("skip" === i) return void r() + } + var a = t.instanceConfig.complete; + t.instanceConfig.complete = function(e) { + g(a) && a(e, t.file, t.inputElem), r() + }, k.parse(t.file, t.instanceConfig) + } + + function n(t, n, r, i) { + g(e.error) && e.error({ + name: t + }, n, r, i) + } + + function r() { + o.splice(0, 1), t() + } + var i = e.config || {}, + o = []; + return this.each(function(e) { + var t = "INPUT" === E(this) + .prop("tagName") + .toUpperCase() && "file" === E(this) + .attr("type") + .toLowerCase() && b.FileReader; + if (!t || !this.files || 0 === this.files.length) return !0; + for (var n = 0; n < this.files.length; n++) o.push({ + file: this.files[n], + inputElem: this, + instanceConfig: E.extend({}, i) + }) + }), t(), this + } + } + return w ? b.onmessage = p : k.WORKERS_SUPPORTED && (y = u(), document.body ? document.addEventListener("DOMContentLoaded", function() { + x = !0 + }, !0) : x = !0), r.prototype = Object.create(n.prototype), r.prototype.constructor = r, i.prototype = Object.create(n.prototype), i.prototype.constructor = i, o.prototype = Object.create(o.prototype), o.prototype.constructor = o, a.prototype = Object.create(n.prototype), a.prototype.constructor = a, k + }) +}, function(e, t) { + /** + * Restful Resources service for AngularJS apps + * @version v1.5.2 - 2016-02-08 * @link https://github.com/mgonto/restangular + * @author Martin Gontovnikas + * @license MIT License, http://www.opensource.org/licenses/MIT + */ + ! function() { + var e = angular.module("restangular", []); + e.provider("Restangular", function() { + var e = {}; + e.init = function(e, t) { + function n(e, t, n, r) { + var i = {}; + return _.each(_.keys(r), function(o) { + var a = r[o]; + a.params = _.extend({}, a.params, e.defaultRequestParams[a.method.toLowerCase()]), _.isEmpty(a.params) && delete a.params, e.isSafe(a.method) ? i[o] = function() { + return t(_.extend(a, { + url: n + })) + } : i[o] = function(e) { + return t(_.extend(a, { + url: n, + data: e + })) + } + }), i + } + e.configuration = t; + var r = ["get", "head", "options", "trace", "getlist"]; + t.isSafe = function(e) { + return _.includes(r, e.toLowerCase()) + }; + var i = /^https?:\/\//i; + t.isAbsoluteUrl = function(e) { + return _.isUndefined(t.absoluteUrl) || _.isNull(t.absoluteUrl) ? e && i.test(e) : t.absoluteUrl + }, t.absoluteUrl = !!_.isUndefined(t.absoluteUrl) || t.absoluteUrl, e.setSelfLinkAbsoluteUrl = function(e) { + t.absoluteUrl = e + }, t.baseUrl = _.isUndefined(t.baseUrl) ? "" : t.baseUrl, e.setBaseUrl = function(e) { + return t.baseUrl = /\/$/.test(e) ? e.substring(0, e.length - 1) : e, this + }, t.extraFields = t.extraFields || [], e.setExtraFields = function(e) { + return t.extraFields = e, this + }, t.defaultHttpFields = t.defaultHttpFields || {}, e.setDefaultHttpFields = function(e) { + return t.defaultHttpFields = e, this + }, t.withHttpValues = function(e, n) { + return _.defaults(n, e, t.defaultHttpFields) + }, t.encodeIds = !!_.isUndefined(t.encodeIds) || t.encodeIds, e.setEncodeIds = function(e) { + t.encodeIds = e + }, t.defaultRequestParams = t.defaultRequestParams || { + get: {}, + post: {}, + put: {}, + remove: {}, + common: {} + }, e.setDefaultRequestParams = function(e, n) { + var r = [], + i = n || e; + return _.isUndefined(n) ? r.push("common") : _.isArray(e) ? r = e : r.push(e), _.each(r, function(e) { + t.defaultRequestParams[e] = i + }), this + }, e.requestParams = t.defaultRequestParams, t.defaultHeaders = t.defaultHeaders || {}, e.setDefaultHeaders = function(n) { + return t.defaultHeaders = n, e.defaultHeaders = t.defaultHeaders, this + }, e.defaultHeaders = t.defaultHeaders, t.methodOverriders = t.methodOverriders || [], e.setMethodOverriders = function(e) { + var n = _.extend([], e); + return t.isOverridenMethod("delete", n) && n.push("remove"), t.methodOverriders = n, this + }, t.jsonp = !_.isUndefined(t.jsonp) && t.jsonp, e.setJsonp = function(e) { + t.jsonp = e + }, t.isOverridenMethod = function(e, n) { + var r = n || t.methodOverriders; + return !_.isUndefined(_.find(r, function(t) { + return t.toLowerCase() === e.toLowerCase() + })) + }, t.urlCreator = t.urlCreator || "path", e.setUrlCreator = function(e) { + if (!_.has(t.urlCreatorFactory, e)) throw new Error("URL Path selected isn't valid"); + return t.urlCreator = e, this + }, t.restangularFields = t.restangularFields || { + id: "id", + route: "route", + parentResource: "parentResource", + restangularCollection: "restangularCollection", + cannonicalId: "__cannonicalId", + etag: "restangularEtag", + selfLink: "href", + get: "get", + getList: "getList", + put: "put", + post: "post", + remove: "remove", + head: "head", + trace: "trace", + options: "options", + patch: "patch", + getRestangularUrl: "getRestangularUrl", + getRequestedUrl: "getRequestedUrl", + putElement: "putElement", + addRestangularMethod: "addRestangularMethod", + getParentList: "getParentList", + clone: "clone", + ids: "ids", + httpConfig: "_$httpConfig", + reqParams: "reqParams", + one: "one", + all: "all", + several: "several", + oneUrl: "oneUrl", + allUrl: "allUrl", + customPUT: "customPUT", + customPOST: "customPOST", + customDELETE: "customDELETE", + customGET: "customGET", + customGETLIST: "customGETLIST", + customOperation: "customOperation", + doPUT: "doPUT", + doPOST: "doPOST", + doDELETE: "doDELETE", + doGET: "doGET", + doGETLIST: "doGETLIST", + fromServer: "fromServer", + withConfig: "withConfig", + withHttpConfig: "withHttpConfig", + singleOne: "singleOne", + plain: "plain", + save: "save", + restangularized: "restangularized" + }, e.setRestangularFields = function(e) { + return t.restangularFields = _.extend(t.restangularFields, e), this + }, t.isRestangularized = function(e) { + return !!e[t.restangularFields.restangularized] + }, t.setFieldToElem = function(e, t, n) { + var r = e.split("."), + i = t; + return _.each(_.initial(r), function(e) { + i[e] = {}, i = i[e] + }), i[_.last(r)] = n, this + }, t.getFieldFromElem = function(e, t) { + var n = e.split("."), + r = t; + return _.each(n, function(e) { + r && (r = r[e]) + }), angular.copy(r) + }, t.setIdToElem = function(e, n) { + return t.setFieldToElem(t.restangularFields.id, e, n), this + }, t.getIdFromElem = function(e) { + return t.getFieldFromElem(t.restangularFields.id, e) + }, t.isValidId = function(e) { + return "" !== e && !_.isUndefined(e) && !_.isNull(e) + }, t.setUrlToElem = function(e, n) { + return t.setFieldToElem(t.restangularFields.selfLink, e, n), this + }, t.getUrlFromElem = function(e) { + return t.getFieldFromElem(t.restangularFields.selfLink, e) + }, t.useCannonicalId = !_.isUndefined(t.useCannonicalId) && t.useCannonicalId, e.setUseCannonicalId = function(e) { + return t.useCannonicalId = e, this + }, t.getCannonicalIdFromElem = function(e) { + var n = e[t.restangularFields.cannonicalId], + r = t.isValidId(n) ? n : t.getIdFromElem(e); + return r + }, t.responseInterceptors = t.responseInterceptors || [], t.defaultResponseInterceptor = function(e) { + return e + }, t.responseExtractor = function(e, n, r, i, o, a) { + var s = angular.copy(t.responseInterceptors); + s.push(t.defaultResponseInterceptor); + var l = e; + return _.each(s, function(e) { + l = e(l, n, r, i, o, a) + }), l + }, e.addResponseInterceptor = function(e) { + return t.responseInterceptors.push(e), this + }, t.errorInterceptors = t.errorInterceptors || [], e.addErrorInterceptor = function(e) { + return t.errorInterceptors.push(e), this + }, e.setResponseInterceptor = e.addResponseInterceptor, e.setResponseExtractor = e.addResponseInterceptor, e.setErrorInterceptor = e.addErrorInterceptor, t.requestInterceptors = t.requestInterceptors || [], t.defaultInterceptor = function(e, t, n, r, i, o, a) { + return { + element: e, + headers: i, + params: o, + httpConfig: a + } + }, t.fullRequestInterceptor = function(e, n, r, i, o, a, s) { + var l = angular.copy(t.requestInterceptors), + u = t.defaultInterceptor(e, n, r, i, o, a, s); + return _.reduce(l, function(e, t) { + return _.extend(e, t(e.element, n, r, i, e.headers, e.params, e.httpConfig)) + }, u) + }, e.addRequestInterceptor = function(e) { + return t.requestInterceptors.push(function(t, n, r, i, o, a, s) { + return { + headers: o, + params: a, + element: e(t, n, r, i), + httpConfig: s + } + }), this + }, e.setRequestInterceptor = e.addRequestInterceptor, e.addFullRequestInterceptor = function(e) { + return t.requestInterceptors.push(e), this + }, e.setFullRequestInterceptor = e.addFullRequestInterceptor, t.onBeforeElemRestangularized = t.onBeforeElemRestangularized || function(e) { + return e + }, e.setOnBeforeElemRestangularized = function(e) { + return t.onBeforeElemRestangularized = e, this + }, e.setRestangularizePromiseInterceptor = function(e) { + return t.restangularizePromiseInterceptor = e, this + }, t.onElemRestangularized = t.onElemRestangularized || function(e) { + return e + }, e.setOnElemRestangularized = function(e) { + return t.onElemRestangularized = e, this + }, t.shouldSaveParent = t.shouldSaveParent || function() { + return !0 + }, e.setParentless = function(e) { + return _.isArray(e) ? t.shouldSaveParent = function(t) { + return !_.includes(e, t) + } : _.isBoolean(e) && (t.shouldSaveParent = function() { + return !e + }), this + }, t.suffix = _.isUndefined(t.suffix) ? null : t.suffix, e.setRequestSuffix = function(e) { + return t.suffix = e, this + }, t.transformers = t.transformers || {}, e.addElementTransformer = function(n, r, i) { + var o = null, + a = null; + 2 === arguments.length ? a = r : (a = i, o = r); + var s = t.transformers[n]; + return s || (s = t.transformers[n] = []), s.push(function(e, t) { + return _.isNull(o) || e === o ? a(t) : t + }), e + }, e.extendCollection = function(t, n) { + return e.addElementTransformer(t, !0, n) + }, e.extendModel = function(t, n) { + return e.addElementTransformer(t, !1, n) + }, t.transformElem = function(e, n, r, i, o) { + if (!o && !t.transformLocalElements && !e[t.restangularFields.fromServer]) return e; + var a = t.transformers[r], + s = e; + return a && _.each(a, function(e) { + s = e(n, s) + }), t.onElemRestangularized(s, n, r, i) + }, t.transformLocalElements = !_.isUndefined(t.transformLocalElements) && t.transformLocalElements, e.setTransformOnlyServerElements = function(e) { + t.transformLocalElements = !e + }, t.fullResponse = !_.isUndefined(t.fullResponse) && t.fullResponse, e.setFullResponse = function(e) { + return t.fullResponse = e, this + }, t.urlCreatorFactory = {}; + var o = function() {}; + o.prototype.setConfig = function(e) { + return this.config = e, this + }, o.prototype.parentsArray = function(e) { + for (var t = []; e;) t.push(e), e = e[this.config.restangularFields.parentResource]; + return t.reverse() + }, o.prototype.resource = function(e, r, i, o, a, s, l, u) { + var c = _.defaults(a || {}, this.config.defaultRequestParams.common), + f = _.defaults(o || {}, this.config.defaultHeaders); + l && (t.isSafe(u) ? f["If-None-Match"] = l : f["If-Match"] = l); + var d = this.base(e); + if (s) { + var h = ""; + /\/$/.test(d) || (h += "/"), h += s, d += h + } + return this.config.suffix && -1 === d.indexOf(this.config.suffix, d.length - this.config.suffix.length) && !this.config.getUrlFromElem(e) && (d += this.config.suffix), e[this.config.restangularFields.httpConfig] = void 0, n(this.config, r, d, { + getList: this.config.withHttpValues(i, { + method: "GET", + params: c, + headers: f + }), + get: this.config.withHttpValues(i, { + method: "GET", + params: c, + headers: f + }), + jsonp: this.config.withHttpValues(i, { + method: "jsonp", + params: c, + headers: f + }), + put: this.config.withHttpValues(i, { + method: "PUT", + params: c, + headers: f + }), + post: this.config.withHttpValues(i, { + method: "POST", + params: c, + headers: f + }), + remove: this.config.withHttpValues(i, { + method: "DELETE", + params: c, + headers: f + }), + head: this.config.withHttpValues(i, { + method: "HEAD", + params: c, + headers: f + }), + trace: this.config.withHttpValues(i, { + method: "TRACE", + params: c, + headers: f + }), + options: this.config.withHttpValues(i, { + method: "OPTIONS", + params: c, + headers: f + }), + patch: this.config.withHttpValues(i, { + method: "PATCH", + params: c, + headers: f + }) + }) + }; + var a = function() {}; + a.prototype = new o, a.prototype.normalizeUrl = function(e) { + var t = /(http[s]?:\/\/)?(.*)?/.exec(e); + return t[2] = t[2].replace(/[\\\/]+/g, "/"), "undefined" != typeof t[1] ? t[1] + t[2] : t[2] + }, a.prototype.base = function(e) { + var n = this; + return _.reduce(this.parentsArray(e), function(e, r) { + var i, o = n.config.getUrlFromElem(r); + if (o) { + if (n.config.isAbsoluteUrl(o)) return o; + i = o + } else if (i = r[n.config.restangularFields.route], r[n.config.restangularFields.restangularCollection]) { + var a = r[n.config.restangularFields.ids]; + a && (i += "/" + a.join(",")) + } else { + var s; + s = n.config.useCannonicalId ? n.config.getCannonicalIdFromElem(r) : n.config.getIdFromElem(r), t.isValidId(s) && !r.singleOne && (i += "/" + (n.config.encodeIds ? encodeURIComponent(s) : s)) + } + return e = e.replace(/\/$/, "") + "/" + i, n.normalizeUrl(e) + }, this.config.baseUrl) + }, a.prototype.fetchUrl = function(e, t) { + var n = this.base(e); + return t && (n += "/" + t), n + }, a.prototype.fetchRequestedUrl = function(e, n) { + function r(e) { + var t = []; + for (var n in e) e.hasOwnProperty(n) && t.push(n); + return t.sort() + } + + function i(e, t, n) { + for (var i = r(e), o = 0; o < i.length; o++) t.call(n, e[i[o]], i[o]); + return i + } + + function o(e, t) { + return encodeURIComponent(e) + .replace(/%40/gi, "@") + .replace(/%3A/gi, ":") + .replace(/%24/g, "$") + .replace(/%2C/gi, ",") + .replace(/%20/g, t ? "%20" : "+") + } + var a = this.fetchUrl(e, n), + s = e[t.restangularFields.reqParams]; + if (!s) return a + (this.config.suffix || ""); + var l = []; + return i(s, function(e, t) { + null !== e && void 0 !== e && (angular.isArray(e) || (e = [e]), angular.forEach(e, function(e) { + angular.isObject(e) && (e = angular.toJson(e)), l.push(o(t) + "=" + o(e)) + })) + }), a + (this.config.suffix || "") + (-1 === a.indexOf("?") ? "?" : "&") + l.join("&") + }, t.urlCreatorFactory.path = a + }; + var t = {}; + e.init(this, t), this.$get = ["$http", "$q", function(n, r) { + function i(t) { + function o(e, n, r, i, o) { + if (n[t.restangularFields.route] = r, n[t.restangularFields.getRestangularUrl] = _.bind(H.fetchUrl, H, n), n[t.restangularFields.getRequestedUrl] = _.bind(H.fetchRequestedUrl, H, n), n[t.restangularFields.addRestangularMethod] = _.bind(N, n), n[t.restangularFields.clone] = _.bind(g, n, n), n[t.restangularFields.reqParams] = _.isEmpty(i) ? null : i, n[t.restangularFields.withHttpConfig] = _.bind(E, n), n[t.restangularFields.plain] = _.bind(v, n, n), n[t.restangularFields.restangularized] = !0, n[t.restangularFields.one] = _.bind(a, n, n), n[t.restangularFields.all] = _.bind(s, n, n), n[t.restangularFields.several] = _.bind(l, n, n), n[t.restangularFields.oneUrl] = _.bind(u, n, n), n[t.restangularFields.allUrl] = _.bind(c, n, n), n[t.restangularFields.fromServer] = !!o, e && t.shouldSaveParent(r)) { + var f = t.getIdFromElem(e), + d = t.getUrlFromElem(e), + h = _.union(_.values(_.pick(t.restangularFields, ["route", "singleOne", "parentResource"])), t.extraFields), + p = _.pick(e, h); + t.isValidId(f) && t.setIdToElem(p, f, r), t.isValidId(d) && t.setUrlToElem(p, d, r), n[t.restangularFields.parentResource] = p + } else n[t.restangularFields.parentResource] = null; + return n + } + + function a(e, n, r, i) { + var o; + if (_.isNumber(n) || _.isNumber(e)) throw o = "You're creating a Restangular entity with the number ", o += "instead of the route or the parent. For example, you can't call .one(12).", new Error(o); + if (_.isUndefined(n)) throw o = "You're creating a Restangular entity either without the path. ", o += "For example you can't call .one(). Please check if your arguments are valid.", new Error(o); + var a = {}; + return t.setIdToElem(a, r, n), t.setFieldToElem(t.restangularFields.singleOne, a, i), y(e, a, n, !1) + } + + function s(e, t) { + return b(e, [], t, !1) + } + + function l(e, n) { + var r = []; + return r[t.restangularFields.ids] = Array.prototype.splice.call(arguments, 2), b(e, r, n, !1) + } + + function u(e, n, r) { + if (!n) throw new Error("Route is mandatory when creating new Restangular objects."); + var i = {}; + return t.setUrlToElem(i, r, n), y(e, i, n, !1) + } + + function c(e, n, r) { + if (!n) throw new Error("Route is mandatory when creating new Restangular objects."); + var i = {}; + return t.setUrlToElem(i, r, n), b(e, i, n, !1) + } + + function f(e, n, r) { + return e.call = _.bind(d, e), e.get = _.bind(h, e), e[t.restangularFields.restangularCollection] = n, n && (e.push = _.bind(d, e, "push")), e.$object = r, t.restangularizePromiseInterceptor && t.restangularizePromiseInterceptor(e), e + } + + function d(e) { + var n = r.defer(), + i = arguments, + o = {}; + return this.then(function(t) { + var r = Array.prototype.slice.call(i, 1), + a = t[e]; + a.apply(t, r), o = t, n.resolve(t) + }), f(n.promise, this[t.restangularFields.restangularCollection], o) + } + + function h(e) { + var n = r.defer(), + i = {}; + return this.then(function(t) { + i = t[e], n.resolve(i) + }), f(n.promise, this[t.restangularFields.restangularCollection], i) + } + + function p(e, n, r, i) { + return _.extend(i, r), t.fullResponse ? e.resolve(_.extend(n, { + data: r + })) : void e.resolve(r) + } + + function v(e) { + if (_.isArray(e)) { + var n = []; + return _.each(e, function(e) { + n.push(t.isRestangularized(e) ? v(e) : e) + }), n + } + return _.omit(e, _.values(_.omit(t.restangularFields, "id"))) + } + + function m(e) { + e[t.restangularFields.customOperation] = _.bind(D, e), _.each(["put", "post", "get", "delete"], function(t) { + _.each(["do", "custom"], function(n) { + var r, i = "delete" === t ? "remove" : t, + o = n + t.toUpperCase(); + r = "put" !== i && "post" !== i ? D : function(e, t, n, r, i) { + return _.bind(D, this)(e, n, r, i, t) + }, e[o] = _.bind(r, e, i) + }) + }), e[t.restangularFields.customGETLIST] = _.bind(k, e), e[t.restangularFields.doGETLIST] = e[t.restangularFields.customGETLIST] + } + + function g(e, n) { + var r = angular.copy(e, n); + return y(r[t.restangularFields.parentResource], r, r[t.restangularFields.route], !0) + } + + function y(e, n, r, i, a, s) { + var l = t.onBeforeElemRestangularized(n, !1, r), + u = o(e, l, r, s, i); + return t.useCannonicalId && (u[t.restangularFields.cannonicalId] = t.getIdFromElem(u)), a && (u[t.restangularFields.getParentList] = function() { + return a + }), u[t.restangularFields.restangularCollection] = !1, u[t.restangularFields.get] = _.bind(M, u), u[t.restangularFields.getList] = _.bind(k, u), u[t.restangularFields.put] = _.bind(P, u), u[t.restangularFields.post] = _.bind(A, u), u[t.restangularFields.remove] = _.bind(T, u), u[t.restangularFields.head] = _.bind(j, u), u[t.restangularFields.trace] = _.bind(F, u), u[t.restangularFields.options] = _.bind(L, u), u[t.restangularFields.patch] = _.bind(R, u), u[t.restangularFields.save] = _.bind(S, u), m(u), t.transformElem(u, !1, r, W, !0) + } + + function b(e, n, r, i, a) { + var s = t.onBeforeElemRestangularized(n, !0, r), + l = o(e, s, r, a, i); + return l[t.restangularFields.restangularCollection] = !0, l[t.restangularFields.post] = _.bind(A, l, null), l[t.restangularFields.remove] = _.bind(T, l), l[t.restangularFields.head] = _.bind(j, l), l[t.restangularFields.trace] = _.bind(F, l), l[t.restangularFields.putElement] = _.bind(x, l), l[t.restangularFields.options] = _.bind(L, l), l[t.restangularFields.patch] = _.bind(R, l), l[t.restangularFields.get] = _.bind(w, l), l[t.restangularFields.getList] = _.bind(k, l, null), m(l), t.transformElem(l, !0, r, W, !0) + } + + function $(e, t, n) { + var r = b(e, t, n, !1); + return _.each(r, function(t) { + y(e, t, n, !1) + }), r + } + + function w(e, t, n) { + return this.customGET(e.toString(), t, n) + } + + function x(e, n, i) { + var o = this, + a = this[e], + s = r.defer(), + l = []; + return l = t.transformElem(l, !0, a[t.restangularFields.route], W), a.put(n, i) + .then(function(t) { + var n = g(o); + n[e] = t, l = n, s.resolve(n) + }, function(e) { + s.reject(e) + }), f(s.promise, !0, l) + } + + function C(e, n, r, i, o, a) { + var s = t.responseExtractor(e, n, r, i, o, a), + l = o.headers("ETag"); + return s && l && (s[t.restangularFields.etag] = l), s + } + + function k(e, i, o) { + var a = this, + s = r.defer(), + l = "getList", + u = H.fetchUrl(this, e), + c = e || a[t.restangularFields.route], + d = t.fullRequestInterceptor(null, l, c, u, o || {}, i || {}, this[t.restangularFields.httpConfig] || {}), + h = []; + h = t.transformElem(h, !0, c, W); + var v = "getList"; + t.jsonp && (v = "jsonp"); + var m = function(n) { + var r = n.data, + i = n.config.params, + o = C(r, l, c, u, n, s); + if ((_.isUndefined(o) || "" === o) && (o = []), !_.isArray(o)) throw new Error("Response for getList SHOULD be an array and not an object or something else"); + var f = _.map(o, function(n) { + return a[t.restangularFields.restangularCollection] ? y(a[t.restangularFields.parentResource], n, a[t.restangularFields.route], !0, o) : y(a, n, e, !0, o) + }); + f = _.extend(o, f), a[t.restangularFields.restangularCollection] ? p(s, n, b(a[t.restangularFields.parentResource], f, a[t.restangularFields.route], !0, i), h) : p(s, n, b(a, f, e, !0, i), h) + }; + return H.resource(this, n, d.httpConfig, d.headers, d.params, e, this[t.restangularFields.etag], l)[v]() + .then(m, function(e) { + 304 === e.status && a[t.restangularFields.restangularCollection] ? p(s, e, a, h) : _.every(t.errorInterceptors, function(t) { + return t(e, s, m) !== !1 + }) && s.reject(e) + }), f(s.promise, !0, h) + } + + function E(e) { + return this[t.restangularFields.httpConfig] = e, this + } + + function S(e, n) { + return this[t.restangularFields.fromServer] ? this[t.restangularFields.put](e, n) : _.bind(O, this)("post", void 0, e, void 0, n) + } + + function O(e, i, o, a, s) { + var l = this, + u = r.defer(), + c = o || {}, + d = i || this[t.restangularFields.route], + h = H.fetchUrl(this, i), + m = a || this, + g = m[t.restangularFields.etag] || ("post" !== e ? this[t.restangularFields.etag] : null); + _.isObject(m) && t.isRestangularized(m) && (m = v(m)); + var b = t.fullRequestInterceptor(m, e, d, h, s || {}, c || {}, this[t.restangularFields.httpConfig] || {}), + $ = {}; + $ = t.transformElem($, !1, d, W); + var w = function(n) { + var r = n.data, + i = n.config.params, + o = C(r, e, d, h, n, u); + if (o) { + var a; + "post" !== e || l[t.restangularFields.restangularCollection] ? (a = y(l[t.restangularFields.parentResource], o, l[t.restangularFields.route], !0, null, i), a[t.restangularFields.singleOne] = l[t.restangularFields.singleOne], p(u, n, a, $)) : (a = y(l[t.restangularFields.parentResource], o, d, !0, null, i), p(u, n, a, $)) + } else p(u, n, void 0, $) + }, + x = function(n) { + 304 === n.status && t.isSafe(e) ? p(u, n, l, $) : _.every(t.errorInterceptors, function(e) { + return e(n, u, w) !== !1 + }) && u.reject(n) + }, + k = e, + E = _.extend({}, b.headers), + S = t.isOverridenMethod(e); + return S ? (k = "post", E = _.extend(E, { + "X-HTTP-Method-Override": "remove" === e ? "DELETE" : e.toUpperCase() + })) : t.jsonp && "get" === k && (k = "jsonp"), t.isSafe(e) ? S ? H.resource(this, n, b.httpConfig, E, b.params, i, g, k)[k]({}) + .then(w, x) : H.resource(this, n, b.httpConfig, E, b.params, i, g, k)[k]() + .then(w, x) : H.resource(this, n, b.httpConfig, E, b.params, i, g, k)[k](b.element) + .then(w, x), f(u.promise, !1, $) + } + + function M(e, t) { + return _.bind(O, this)("get", void 0, e, void 0, t) + } + + function T(e, t) { + return _.bind(O, this)("remove", void 0, e, void 0, t) + } + + function P(e, t) { + return _.bind(O, this)("put", void 0, e, void 0, t) + } + + function A(e, t, n, r) { + return _.bind(O, this)("post", e, n, t, r) + } + + function j(e, t) { + return _.bind(O, this)("head", void 0, e, void 0, t) + } + + function F(e, t) { + return _.bind(O, this)("trace", void 0, e, void 0, t) + } + + function L(e, t) { + return _.bind(O, this)("options", void 0, e, void 0, t) + } + + function R(e, t, n) { + return _.bind(O, this)("patch", void 0, t, e, n) + } + + function D(e, t, n, r, i) { + return _.bind(O, this)(e, t, n, i, r) + } + + function N(e, n, r, i, o, a) { + var s; + s = "getList" === n ? _.bind(k, this, r) : _.bind(D, this, n, r); + var l = function(e, t, n) { + var r = _.defaults({ + params: e, + headers: t, + elem: n + }, { + params: i, + headers: o, + elem: a + }); + return s(r.params, r.headers, r.elem) + }; + t.isSafe(n) ? this[e] = l : this[e] = function(e, t, n) { + return l(t, n, e) + } + } + + function I(n) { + var r = angular.copy(_.omit(t, "configuration")); + return e.init(r, r), n(r), i(r) + } + + function V(e, n) { + var r = _.values(t.restangularFields), + i = {}, + o = (n || W) + .all(e); + i.one = _.bind(a, n || W, n, e), i.post = _.bind(o.post, o), i.getList = _.bind(o.getList, o); + for (var s in o) o.hasOwnProperty(s) && _.isFunction(o[s]) && !_.includes(r, s) && (i[s] = _.bind(o[s], o)); + return i + } + var W = {}, + H = new t.urlCreatorFactory[t.urlCreator]; + return H.setConfig(t), e.init(W, t), W.copy = _.bind(g, W), W.service = _.bind(V, W), W.withConfig = _.bind(I, W), W.one = _.bind(a, W, null), W.all = _.bind(s, W, null), W.several = _.bind(l, W, null), W.oneUrl = _.bind(u, W, null), W.allUrl = _.bind(c, W, null), W.stripRestangular = _.bind(v, W), W.restangularizeElement = _.bind(y, W), W.restangularizeCollection = _.bind($, W), W + } + return i(t) + }] + }) + }() +}, function(e, t, n) { + (function(e, t) { + ! function(e, n) { + "use strict"; + + function r(e) { + "function" != typeof e && (e = new Function("" + e)); + for (var t = new Array(arguments.length - 1), n = 0; n < t.length; n++) t[n] = arguments[n + 1]; + var r = { + callback: e, + args: t + }; + return v[p] = r, h(p), p++ + } + + function i(e) { + delete v[e] + } + + function o(e) { + var t = e.callback, + r = e.args; + switch (r.length) { + case 0: + t(); + break; + case 1: + t(r[0]); + break; + case 2: + t(r[0], r[1]); + break; + case 3: + t(r[0], r[1], r[2]); + break; + default: + t.apply(n, r) + } + } + + function a(e) { + if (m) setTimeout(a, 0, e); + else { + var t = v[e]; + if (t) { + m = !0; + try { + o(t) + } finally { + i(e), m = !1 + } + } + } + } + + function s() { + h = function(e) { + t.nextTick(function() { + a(e) + }) + } + } + + function l() { + if (e.postMessage && !e.importScripts) { + var t = !0, + n = e.onmessage; + return e.onmessage = function() { + t = !1 + }, e.postMessage("", "*"), e.onmessage = n, t + } + } + + function u() { + var t = "setImmediate$" + Math.random() + "$", + n = function(n) { + n.source === e && "string" == typeof n.data && 0 === n.data.indexOf(t) && a(+n.data.slice(t.length)) + }; + e.addEventListener ? e.addEventListener("message", n, !1) : e.attachEvent("onmessage", n), h = function(n) { + e.postMessage(t + n, "*") + } + } + + function c() { + var e = new MessageChannel; + e.port1.onmessage = function(e) { + var t = e.data; + a(t) + }, h = function(t) { + e.port2.postMessage(t) + } + } + + function f() { + var e = g.documentElement; + h = function(t) { + var n = g.createElement("script"); + n.onreadystatechange = function() { + a(t), n.onreadystatechange = null, e.removeChild(n), n = null + }, e.appendChild(n) + } + } + + function d() { + h = function(e) { + setTimeout(a, 0, e) + } + } + if (!e.setImmediate) { + var h, p = 1, + v = {}, + m = !1, + g = e.document, + y = Object.getPrototypeOf && Object.getPrototypeOf(e); + y = y && y.setTimeout ? y : e, "[object process]" === {}.toString.call(e.process) ? s() : l() ? u() : e.MessageChannel ? c() : g && "onreadystatechange" in g.createElement("script") ? f() : d(), y.setImmediate = r, y.clearImmediate = i + } + }("undefined" == typeof self ? "undefined" == typeof e ? this : e : self) + }) + .call(t, function() { + return this + }(), n(11)) +}, function(e, t) { + e.exports = function(e) { + return e.webpackPolyfill || (e.deprecate = function() {}, e.paths = [], e.children = [], e.webpackPolyfill = 1), e + } +}, function(e, t, n) { + function r(e, t) { + this._id = e, this._clearFn = t + } + var i = Function.prototype.apply; + t.setTimeout = function() { + return new r(i.call(setTimeout, window, arguments), clearTimeout) + }, t.setInterval = function() { + return new r(i.call(setInterval, window, arguments), clearInterval) + }, t.clearTimeout = t.clearInterval = function(e) { + e && e.close() + }, r.prototype.unref = r.prototype.ref = function() {}, r.prototype.close = function() { + this._clearFn.call(window, this._id) + }, t.enroll = function(e, t) { + clearTimeout(e._idleTimeoutId), e._idleTimeout = t + }, t.unenroll = function(e) { + clearTimeout(e._idleTimeoutId), e._idleTimeout = -1 + }, t._unrefActive = t.active = function(e) { + clearTimeout(e._idleTimeoutId); + var t = e._idleTimeout; + t >= 0 && (e._idleTimeoutId = setTimeout(function() { + e._onTimeout && e._onTimeout() + }, t)) + }, n(182), t.setImmediate = setImmediate, t.clearImmediate = clearImmediate +}, function(e, t) { + e.exports = function() { + throw new Error("define cannot be used indirect") + } +}, function(e, t) {}]); +//# sourceMappingURL=ng-admin-only.min.js.map \ No newline at end of file diff --git a/client/app/ng-admin/build/ng-admin-only.min.js.map b/client/app/ng-admin/build/ng-admin-only.min.js.map new file mode 100644 index 0000000..c0f7be7 --- /dev/null +++ b/client/app/ng-admin/build/ng-admin-only.min.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///build/ng-admin-only.min.js","webpack:///webpack/bootstrap 0cf5c3cad6d318ebf8cf?4371","webpack:///./~/admin-config/lib/Field/Field.js?5633","webpack:///./~/admin-config/lib/Entry.js?63cc","webpack:///./~/admin-config/lib/View/View.js?d539","webpack:///./~/codemirror/lib/codemirror.js?92ce","webpack:///./~/angular/index.js?ce28","webpack:///./~/admin-config/lib/View/ListView.js?b4e2","webpack:///./~/admin-config/lib/Entity/Entity.js?93a0","webpack:///./~/admin-config/lib/Field/ChoiceField.js?8173","webpack:///./~/admin-config/lib/Field/ReferenceField.js?be26","webpack:///./~/admin-config/lib/Utils/ReferenceExtractor.js?620e","webpack:///./~/process/browser.js?f25a","webpack:///./~/admin-config/lib/Collection.js?f7ae","webpack:///./~/admin-config/lib/Dashboard.js?e1c1","webpack:///./~/admin-config/lib/DataStore/DataStore.js?1760","webpack:///./~/admin-config/lib/Field/DateField.js?2397","webpack:///./~/admin-config/lib/Field/NumberField.js?9c3c","webpack:///./~/admin-config/lib/Menu/Menu.js?4910","webpack:///./~/admin-config/lib/Queries/Queries.js?6f4c","webpack:///./~/admin-config/lib/Utils/objectProperties.js?e623","webpack:///./~/admin-config/lib/Utils/orderElement.js?bf46","webpack:///./~/admin-config/lib/Utils/stringUtils.js?9da0","webpack:///./~/angular-ui-router/release/angular-ui-router.js?0f59","webpack:///./~/admin-config/lib/Application.js?f665","webpack:///./~/admin-config/lib/Factory.js?ec19","webpack:///./~/admin-config/lib/Field/BooleanField.js?6fe4","webpack:///./~/admin-config/lib/Field/ChoicesField.js?f988","webpack:///./~/admin-config/lib/Field/DateTimeField.js?7f81","webpack:///./~/admin-config/lib/Field/EmailField.js?80b3","webpack:///./~/admin-config/lib/Field/EmbeddedListField.js?e803","webpack:///./~/admin-config/lib/Field/FileField.js?ed3a","webpack:///./~/admin-config/lib/Field/FloatField.js?7396","webpack:///./~/admin-config/lib/Field/JsonField.js?de69","webpack:///./~/admin-config/lib/Field/PasswordField.js?bb1a","webpack:///./~/admin-config/lib/Field/ReferenceManyField.js?5e81","webpack:///./~/admin-config/lib/Field/ReferencedListField.js?e3e0","webpack:///./~/admin-config/lib/Field/TemplateField.js?e785","webpack:///./~/admin-config/lib/Field/TextField.js?ca8b","webpack:///./~/admin-config/lib/Field/WysiwygField.js?8ae4","webpack:///./~/admin-config/lib/Queries/ReadQueries.js?28f6","webpack:///./~/admin-config/lib/Queries/WriteQueries.js?070c","webpack:///./~/admin-config/lib/Utils/PromisesResolver.js?ded4","webpack:///./~/admin-config/lib/View/BatchDeleteView.js?b928","webpack:///./~/admin-config/lib/View/CreateView.js?fbab","webpack:///./~/admin-config/lib/View/DashboardView.js?6071","webpack:///./~/admin-config/lib/View/DeleteView.js?3eba","webpack:///./~/admin-config/lib/View/EditView.js?1f06","webpack:///./~/admin-config/lib/View/ExportView.js?d61c","webpack:///./~/admin-config/lib/View/MenuView.js?4ba6","webpack:///./~/admin-config/lib/View/ShowView.js?401d","webpack:///./src/javascripts/ng-admin.js?c045","webpack:///./src/javascripts/ng-admin/Crud/CrudModule.js?4be3","webpack:///./src/javascripts/ng-admin/Crud/button/maBackButton.js?1774","webpack:///./src/javascripts/ng-admin/Crud/button/maBatchDeleteButton.js?7917","webpack:///./src/javascripts/ng-admin/Crud/button/maCreateButton.js?b22c","webpack:///./src/javascripts/ng-admin/Crud/button/maDeleteButton.js?b09a","webpack:///./src/javascripts/ng-admin/Crud/button/maEditButton.js?9201","webpack:///./src/javascripts/ng-admin/Crud/button/maExportToCsvButton.js?704d","webpack:///./src/javascripts/ng-admin/Crud/button/maFilterButton.js?8516","webpack:///./src/javascripts/ng-admin/Crud/button/maFilteredListButton.js?ded7","webpack:///./src/javascripts/ng-admin/Crud/button/maListButton.js?4c10","webpack:///./src/javascripts/ng-admin/Crud/button/maShowButton.js?860f","webpack:///./src/javascripts/ng-admin/Crud/button/maSubmitButton.js?f01a","webpack:///./src/javascripts/ng-admin/Crud/button/maViewBatchActions.js?a845","webpack:///./src/javascripts/ng-admin/Crud/column/maBooleanColumn.js?bc6a","webpack:///./src/javascripts/ng-admin/Crud/column/maChoicesColumn.js?963a","webpack:///./src/javascripts/ng-admin/Crud/column/maColumn.js?c6d9","webpack:///./src/javascripts/ng-admin/Crud/column/maDateColumn.js?731d","webpack:///./src/javascripts/ng-admin/Crud/column/maEmbeddedListColumn.js?bd2f","webpack:///./src/javascripts/ng-admin/Crud/column/maJsonColumn.js?39ad","webpack:///./src/javascripts/ng-admin/Crud/column/maNumberColumn.js?af26","webpack:///./src/javascripts/ng-admin/Crud/column/maReferenceColumn.js?3d95","webpack:///./src/javascripts/ng-admin/Crud/column/maReferenceLinkColumn.js?6bb4","webpack:///./src/javascripts/ng-admin/Crud/column/maReferenceManyColumn.js?7912","webpack:///./src/javascripts/ng-admin/Crud/column/maReferenceManyLinkColumn.js?d880","webpack:///./src/javascripts/ng-admin/Crud/column/maReferencedListColumn.js?d478","webpack:///./src/javascripts/ng-admin/Crud/column/maStringColumn.js?c4f1","webpack:///./src/javascripts/ng-admin/Crud/column/maTemplateColumn.js?c7ab","webpack:///./src/javascripts/ng-admin/Crud/column/maWysiwygColumn.js?3135","webpack:///./src/javascripts/ng-admin/Crud/config/factories.js?8ce9","webpack:///./src/javascripts/ng-admin/Crud/delete/BatchDeleteController.js?109f","webpack:///./src/javascripts/ng-admin/Crud/delete/DeleteController.js?941d","webpack:///./src/javascripts/ng-admin/Crud/field/maButtonField.js?5f0c","webpack:///./src/javascripts/ng-admin/Crud/field/maCheckboxField.js?331a","webpack:///./src/javascripts/ng-admin/Crud/field/maChoiceField.js?8905","webpack:///./src/javascripts/ng-admin/Crud/field/maChoicesField.js?418d","webpack:///./src/javascripts/ng-admin/Crud/field/maDateField.js?5625","webpack:///./src/javascripts/ng-admin/Crud/field/maEmbeddedListField.js?ac62","webpack:///./src/javascripts/ng-admin/Crud/field/maField.js?ae8a","webpack:///./src/javascripts/ng-admin/Crud/field/maFileField.js?c73c","webpack:///./src/javascripts/ng-admin/Crud/field/maInputField.js?df85","webpack:///./src/javascripts/ng-admin/Crud/field/maJsonField.js?f56f","webpack:///./src/javascripts/ng-admin/Crud/field/maReferenceField.js?9c02","webpack:///./src/javascripts/ng-admin/Crud/field/maReferenceManyField.js?35d4","webpack:///./src/javascripts/ng-admin/Crud/field/maTemplateField.js?9917","webpack:///./src/javascripts/ng-admin/Crud/field/maTextField.js?1b40","webpack:///./src/javascripts/ng-admin/Crud/field/maWysiwygField.js?e425","webpack:///./src/javascripts/ng-admin/Crud/field/uiSelectRequired.js?960f","webpack:///./src/javascripts/ng-admin/Crud/fieldView/BooleanFieldView.js?3aeb","webpack:///./src/javascripts/ng-admin/Crud/fieldView/ChoiceFieldView.js?5033","webpack:///./src/javascripts/ng-admin/Crud/fieldView/ChoicesFieldView.js?379e","webpack:///./src/javascripts/ng-admin/Crud/fieldView/DateFieldView.js?d1c9","webpack:///./src/javascripts/ng-admin/Crud/fieldView/DateTimeFieldView.js?f73b","webpack:///./src/javascripts/ng-admin/Crud/fieldView/EmailFieldView.js?afc9","webpack:///./src/javascripts/ng-admin/Crud/fieldView/EmbeddedListFieldView.js?5fea","webpack:///./src/javascripts/ng-admin/Crud/fieldView/FieldViewConfiguration.js?3773","webpack:///./src/javascripts/ng-admin/Crud/fieldView/FileFieldView.js?2c5a","webpack:///./src/javascripts/ng-admin/Crud/fieldView/FloatFieldView.js?c057","webpack:///./src/javascripts/ng-admin/Crud/fieldView/JsonFieldView.js?64ca","webpack:///./src/javascripts/ng-admin/Crud/fieldView/NumberFieldView.js?b4fa","webpack:///./src/javascripts/ng-admin/Crud/fieldView/PasswordFieldView.js?9439","webpack:///./src/javascripts/ng-admin/Crud/fieldView/ReferenceFieldView.js?e64b","webpack:///./src/javascripts/ng-admin/Crud/fieldView/ReferenceManyFieldView.js?136e","webpack:///./src/javascripts/ng-admin/Crud/fieldView/ReferencedListFieldView.js?246a","webpack:///./src/javascripts/ng-admin/Crud/fieldView/StringFieldView.js?d6d4","webpack:///./src/javascripts/ng-admin/Crud/fieldView/TemplateFieldView.js?4fb3","webpack:///./src/javascripts/ng-admin/Crud/fieldView/TextFieldView.js?9cf7","webpack:///./src/javascripts/ng-admin/Crud/fieldView/WysiwygFieldView.js?fd74","webpack:///./src/javascripts/ng-admin/Crud/filter/maFilter.js?8325","webpack:///./src/javascripts/ng-admin/Crud/filter/maFilterForm.js?89f8","webpack:///./src/javascripts/ng-admin/Crud/form/FormController.js?deda","webpack:///./src/javascripts/ng-admin/Crud/list/ListController.js?c5d3","webpack:///./src/javascripts/ng-admin/Crud/list/ListLayoutController.js?6f06","webpack:///./src/javascripts/ng-admin/Crud/list/maDatagrid.js?332e","webpack:///./src/javascripts/ng-admin/Crud/list/maDatagridController.js?5cb6","webpack:///./src/javascripts/ng-admin/Crud/list/maDatagridInfinitePagination.js?b9c5","webpack:///./src/javascripts/ng-admin/Crud/list/maDatagridItemSelector.js?8397","webpack:///./src/javascripts/ng-admin/Crud/list/maDatagridMultiSelector.js?a285","webpack:///./src/javascripts/ng-admin/Crud/list/maDatagridPagination.js?2794","webpack:///./src/javascripts/ng-admin/Crud/list/maDatagridPaginationController.js?40dc","webpack:///./src/javascripts/ng-admin/Crud/list/maListActions.js?470a","webpack:///./src/javascripts/ng-admin/Crud/misc/Compile.js?eb28","webpack:///./src/javascripts/ng-admin/Crud/misc/EntryFormatter.js?e5fd","webpack:///./src/javascripts/ng-admin/Crud/misc/PromisesResolver.js?14a9","webpack:///./src/javascripts/ng-admin/Crud/misc/RestWrapper.js?54cf","webpack:///./src/javascripts/ng-admin/Crud/misc/ViewActions.js?8e77","webpack:///./src/javascripts/ng-admin/Crud/repository/ReadQueries.js?54ed","webpack:///./src/javascripts/ng-admin/Crud/repository/ReferenceRefresher.js?d826","webpack:///./src/javascripts/ng-admin/Crud/repository/WriteQueries.js?509e","webpack:///./src/javascripts/ng-admin/Crud/routing.js?0a20","webpack:///./src/javascripts/ng-admin/Crud/show/ShowController.js?1224","webpack:///./src/javascripts/ng-admin/Crud/show/maShowItem.js?b483","webpack:///./src/javascripts/ng-admin/Crud/validator/maJsonValidator.js?6a66","webpack:///./src/javascripts/ng-admin/Main/MainModule.js?edff","webpack:///./src/javascripts/ng-admin/Main/component/controller/AppController.js?bbcd","webpack:///./src/javascripts/ng-admin/Main/component/controller/DashboardController.js?9487","webpack:///./src/javascripts/ng-admin/Main/component/directive/maDashboardPanel.js?6537","webpack:///./src/javascripts/ng-admin/Main/component/directive/maMenuBar.js?d962","webpack:///./src/javascripts/ng-admin/Main/component/filter/OrderElement.js?c235","webpack:///./src/javascripts/ng-admin/Main/component/filter/StripTags.js?23c5","webpack:///./src/javascripts/ng-admin/Main/component/provider/NgAdminConfiguration.js?60b6","webpack:///./src/javascripts/ng-admin/Main/config/http.js?7b62","webpack:///./src/javascripts/ng-admin/Main/config/routing.js?27de","webpack:///./src/javascripts/ng-admin/Main/config/translate.js?a8dc","webpack:///./src/javascripts/ng-admin/Main/run/ErrorHandler.js?e1e3","webpack:///./src/javascripts/ng-admin/Main/run/Loader.js?3227","webpack:///./src/javascripts/ng-admin/Crud/delete/batchDelete.html?535c","webpack:///./src/javascripts/ng-admin/Crud/delete/delete.html?ea49","webpack:///./src/javascripts/ng-admin/Crud/form/create.html?e9c7","webpack:///./src/javascripts/ng-admin/Crud/form/edit.html?280b","webpack:///./src/javascripts/ng-admin/Crud/list/list.html?9d53","webpack:///./src/javascripts/ng-admin/Crud/list/listLayout.html?fe45","webpack:///./src/javascripts/ng-admin/Crud/list/maDatagridPagination.html?f9dc","webpack:///./src/javascripts/ng-admin/Crud/show/show.html?dfa7","webpack:///./src/javascripts/ng-admin/Main/view/404.html?740f","webpack:///./src/javascripts/ng-admin/Main/view/dashboard.html?5696","webpack:///./src/javascripts/ng-admin/Main/view/layout.html?5639","webpack:///./src/javascripts/ng-admin/Main/view/menuBar.html?4942","webpack:///./~/angular/angular.js?6ca8","webpack:///./~/codemirror/addon/edit/closebrackets.js?6f71","webpack:///./~/codemirror/addon/edit/matchbrackets.js?9537","webpack:///./~/codemirror/addon/lint/json-lint.js?e786","webpack:///./~/codemirror/addon/lint/lint.js?0c7b","webpack:///./~/codemirror/addon/selection/active-line.js?2c41","webpack:///./~/codemirror/mode/javascript/javascript.js?1692","webpack:///./~/es6-promise/dist/es6-promise.js?ee78","webpack:///./~/humane-js/humane.js?a091","webpack:///./~/jsonlint/web/jsonlint.js?41a0","webpack:///./~/nprogress/nprogress.js?68d3","webpack:///./~/papaparse/papaparse.js?fbb4","webpack:///./~/restangular/dist/restangular.min.js?1cae","webpack:///./~/setimmediate/setImmediate.js?c548","webpack:///(webpack)/buildin/module.js?00a5","webpack:///(webpack)/~/timers-browserify/main.js?af19","webpack:///(webpack)/buildin/amd-define.js?0bba"],"names":["modules","__webpack_require__","moduleId","installedModules","exports","module","id","loaded","call","m","c","p","_interopRequireDefault","obj","__esModule","default","_classCallCheck","instance","Constructor","TypeError","Object","defineProperty","value","_createClass","defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","key","protoProps","staticProps","prototype","_UtilsStringUtils","_UtilsStringUtils2","Field","name","this","_name","Math","random","toString","substring","_detailLink","_type","_order","_label","_maps","_transforms","_attributes","_cssClasses","_validation","required","minlength","maxlength","_defaultValue","_editable","_sortable","_detailLinkRoute","_pinned","_flattenable","dashboard","list","_template","_templateIncludesLabel","arguments","camelCase","console","warn","detailLink","fn","type","Error","push","entry","classes","constructor","Array","join","property","hasOwnProperty","route","data","getTemplateValue","templateIncludesLabel","undefined","set","isDetailLink","_UtilsObjectProperties","Entry","entityName","values","identifierValue","_entityName","_identifierValue","listValues","fields","restEntry","clone","forEach","field","fieldName","getTransformedValue","cloneAndNest","get","defaultValue","identifierName","keys","createForFields","excludedFields","filter","f","flattenable","map","cloneAndFlatten","getMappedValue","restEntries","e","createFromRest","_Entry","_Entry2","_UtilsReferenceExtractor","_UtilsReferenceExtractor2","View","entity","_actions","_title","_description","_enabled","_fields","_errorMessage","_url","_prepare","enabled","slice","argument","_this","flatten","arg","addField","order","sort","a","b","withRemoteComplete","getReferences","getNonOptimizedReferences","getOptimizedReferences","getReferencedLists","identifier","response","validation","validator","createArrayFromRest","transformToRest","apply","result","concat","isArray","reduce","previous","current","global","factory","classTest","cls","RegExp","removeChildren","count","childNodes","removeChild","firstChild","removeChildrenAndAdd","parent","appendChild","elt","tag","content","className","style","document","createElement","cssText","createTextNode","eltP","setAttribute","contains","child","nodeType","parentNode","host","activeElt","activeElement","body","shadowRoot","addClass","node","test","joinClasses","as","split","bind","args","copyObj","overwrite","prop","countColumn","string","end","tabSize","startIndex","startValue","search","n","nextTab","indexOf","array","findColumn","goal","pos","col","skipped","min","spaceStr","spaceStrs","lst","arr","out","insertSorted","score","priority","splice","nothing","createObj","base","inst","create","isWordCharBasic","ch","toUpperCase","toLowerCase","nonASCIISingleCaseWordChar","isWordChar","helper","source","isEmpty","isExtendingChar","charCodeAt","extendingChars","skipExtendingChars","str","dir","charAt","findFirst","pred","from","to","abs","mid","floor","Display","place","doc","input","d","scrollbarFiller","gutterFiller","lineDiv","selectionDiv","cursorDiv","measure","lineMeasure","lineSpace","lines","mover","sizer","sizerWidth","heightForcer","scrollerGap","gutters","lineGutter","scroller","wrapper","ie","ie_version","zIndex","paddingRight","webkit","gecko","mobile","draggable","viewFrom","viewTo","first","reportedViewFrom","reportedViewTo","view","renderedView","externalMeasured","viewOffset","lastWrapHeight","lastWrapWidth","updateLineNumbers","nativeBarWidth","barHeight","barWidth","scrollbarsClipped","lineNumWidth","lineNumInnerWidth","lineNumChars","alignWidgets","cachedCharWidth","cachedTextHeight","cachedPaddingH","maxLine","maxLineLength","maxLineChanged","wheelDX","wheelDY","wheelStartX","wheelStartY","shift","selForContextMenu","activeTouch","init","getLine","size","chunk","children","sz","chunkSize","getBetween","start","line","iter","text","getLines","updateLineHeight","height","diff","lineNo","cur","no","lineAtHeight","h","outer","i$1","lh","isLine","l","lineNumberFor","options","String","lineNumberFormatter","firstLineNumber","Pos","sticky","cmp","equalCursorPos","copyPos","x","maxPos","minPos","clipLine","max","clipPos","last","clipToLen","linelen","clipPosArray","seeReadOnlySpans","sawReadOnlySpans","seeCollapsedSpans","sawCollapsedSpans","MarkedSpan","marker","getMarkedSpanFor","spans","span","removeMarkedSpan","r","addMarkedSpan","markedSpans","attachLine","markedSpansBefore","old","startCh","isInsert","nw","startsBefore","inclusiveLeft","insertLeft","endsAfter","inclusiveRight","markedSpansAfter","endCh","stretchSpansOverChange","change","full","oldFirst","oldLast","sameLine","offset","found","span$1","found$1","clearEmptySpans","newMarkers","gapMarkers","gap","i$2","i$3","clearWhenEmpty","removeReadOnlyRanges","markers","mark","readOnly","parts","mk","find","j","newParts","dfrom","dto","detachMarkedSpans","detachLine","attachMarkedSpans","extraLeft","extraRight","compareCollapsedMarkers","lenDiff","aPos","bPos","fromCmp","toCmp","collapsedSpanAtSide","sps","sp","collapsed","collapsedSpanAtStart","collapsedSpanAtEnd","conflictingCollapsedRange","lineNo$$1","visualLine","merged","visualLineEnd","visualLineContinued","visualLineNo","lineN","vis","visualLineEndNo","lastLine","lineIsHidden","widgetNode","lineIsHiddenInner","heightAtLine","lineObj","lineLength","len","findMaxLine","cm","display","iterateBidiSections","part","level","getBidiPartAt","bidiOther","getOrder","direction","bidiOrdering","moveCharLogically","moveLogically","endOfLine","visually","moveInStorageOrder","prep","prepareMeasureForLine","targetTop","measureCharPrepared","top","moveVisually","bidi","partPos","mv","getWrappedLineExtent","lineWrapping","wrappedLineExtentChar","begin","wrappedLineExtent","searchInVisualLine","getRes","res","nextCh","getHandlers","emitter","_handlers","noHandlers","off","removeEventListener","detachEvent","map$$1","index","signal","handlers","signalDOMEvent","override","preventDefault","defaultPrevented","e_defaultPrevented","codemirrorIgnore","signalCursorActivity","cursorActivity","curOp","cursorActivityHandlers","hasHandler","eventMixin","ctor","on","e_preventDefault","returnValue","e_stopPropagation","stopPropagation","cancelBubble","e_stop","e_target","srcElement","e_button","which","button","mac","ctrlKey","zeroWidthElement","zwspSupported","offsetHeight","offsetWidth","hasBadBidiRects","badBidiRects","txt","r0","range","getBoundingClientRect","r1","left","right","hasBadZoomedRects","badZoomedRects","normal","fromRange","defineMode","mode","dependencies","modes","defineMIME","mime","spec","mimeModes","resolveMode","getMode","mfactory","modeObj","modeExtensions","exts","helperType","modeProps","prop$1","extendMode","properties","copyState","state","nstate","val","innerMode","info","startState","a1","a2","highlightLine","forceToEnd","st","modeGen","lineClasses","runMode","loop","o","overlay","overlays","at","i_end","opaque","styles","bgClass","textClass","getLineStyles","updateFrontier","getStateBefore","maxHighlightLength","stateAfter","styleClasses","frontier","precise","findStartLine","processLine","save","startAt","stream","StringStream","callBlankLine","eol","readToken","blankLine","inner","token","takeToken","asArray","getObj","copy","tokens","extractLineClasses","output","lineClass","match","flattenSpans","curStart","curStyle","addModeClass","mName","minindent","minline","lim","indented","updateLine","estimateHeight","estHeight","cleanUpLine","interpretTokenStyle","cache","styleToClassCacheWithMode","styleToClassCache","replace","buildLineContent","lineView","builder","pre","trailingSpace","splitSpaces","getOption","rest","addToken","buildToken","buildTokenBadBidi","allowFrontierUpdate","insertLineContent","maps","caches","lastChild","querySelector","defaultSpecialCharPlaceholder","title","startStyle","endStyle","css","displayText","special","specialChars","mustWrap","createDocumentFragment","lastIndex","exec","txt$1","tabWidth","specialCharPlaceholder","fullStyle","trailingBefore","spaceBefore","buildCollapsedSpan","ignoreWidget","widget","needsContentAttribute","setUneditable","allText","spanStyle","spanEndStyle","spanStartStyle","nextChange","Infinity","foundBookmarks","endStyles","j$1","j$2","upto","tokenText","LineView","hidden","buildViewArray","nextPos","pushOperation","op","operationGroup","ops","ownsGroup","delayedCallbacks","fireCallbacksForOps","group","callbacks","cursorActivityCalled","finishOperation","endCb","signalLater","orphanDelayedCallbacks","setTimeout","fireOrphanDelayed","delayed","updateLineForChanges","dims","changes","updateLineText","updateLineGutter","updateLineClasses","updateLineWidgets","ensureLineWrapped","replaceChild","updateLineBackground","background","wrap","insertBefore","getLineContent","ext","built","wrapClass","gutter","gutterBackground","gutterClass","fixedGutter","fixedPos","gutterTotalWidth","gutterMarkers","lineNumbers","wrap$1","gutterWrap","lineNumber","gutterLeft","k","gutterWidth","alignable","next","nextSibling","insertLineWidgets","buildLineElement","insertLineWidgetsFor","allowAbove","widgets","ws","handleMouseEvents","positionLineWidget","above","noHScroll","width","wrapperWidth","coverGutter","paddingLeft","position","marginLeft","widgetHeight","parentStyle","clientWidth","eventInWidget","getAttribute","paddingTop","offsetTop","paddingVert","paddingH","window","getComputedStyle","currentStyle","parseInt","isNaN","scrollGap","displayWidth","displayHeight","clientHeight","ensureLineHeights","rect","wrapping","curWidth","heights","rects","getClientRects","bottom","mapFromLineView","before","updateExternalMeasurement","measureChar","bias","findViewForLine","findViewIndex","getDimensions","forceUpdate","hasHeights","prepared","varHeight","measureCharInner","bogus","rtop","rbottom","nodeAndOffsetInLineMap","collapse","mStart","mEnd","coverStart","coverEnd","getUsefulRect","nullRect","maybeUpdateRectForZooming","rSpan","charWidth","rbot","bot","singleCursorHeightPerLine","screen","logicalXDPI","deviceXDPI","scaleX","scaleY","logicalYDPI","deviceYDPI","clearLineMeasurementCacheFor","clearLineMeasurementCache","externalMeasure","clearCaches","pageScrollX","pageXOffset","documentElement","scrollLeft","pageScrollY","pageYOffset","scrollTop","intoCoordSystem","context","includeWidgets","yOff","lOff","xOff","fromCoordSystem","coords","localBox","lineSpaceBox","charCoords","cursorCoords","preparedMeasure","getBidi","invert","other","estimateCoords","PosWithInfo","outside","xRel","coordsChar","y","coordsCharInner","mergedPos","assign","prevDiff","prevPos","beginLeft","box","textHeight","measureText","anchor","clientLeft","offsetLeft","compensateForHScroll","th","perLine","widgetsHeight","ceil","estimateLineHeights","est","posFromMouse","liberal","forRect","space","clientX","clientY","colDiff","round","updateSelection","showSelection","prepareSelection","primary","curFragment","cursors","selFragment","selection","sel","ranges","primIndex","range$$1","empty","showCursorWhenSelecting","drawSelectionCursor","head","drawSelectionRange","cursor","cursorHeight","otherCursor","add","fragment","rightSide","drawForLine","fromArg","toArg","lineLen","rightPos","leftPos","tmp","leftSide","padding","sFrom","sTo","fromLine","toLine","singleVLine","leftEnd","rightStart","restartBlink","focused","clearInterval","blinker","visibility","cursorBlinkRate","setInterval","ensureFocus","focus","onFocus","delayBlurEvent","delayingBlurEvent","onBlur","reset","receivedFocus","rmClass","alignHorizontally","comp","gutterW","align","maybeUpdateLineNumberWidth","innerW","updateGutterSpace","updateHeightsInViewport","prevBottom","updateWidgetHeight","visibleLines","viewport","ensure","ensureFrom","ensureTo","setScrollTop","updateDisplaySimple","scrollbars","startWorker","setScrollLeft","isScroller","scrollWidth","wheelEventDelta","dx","wheelDeltaX","dy","wheelDeltaY","detail","axis","HORIZONTAL_AXIS","VERTICAL_AXIS","wheelDelta","wheelEventPixels","delta","wheelPixelsPerUnit","onScrollWheel","scroll","canScrollX","canScrollY","scrollHeight","currentWheelTarget","presto","pixels","wheelSamples","movedX","movedY","sample","measureForScrollbars","docH","viewHeight","viewWidth","barLeft","docHeight","updateScrollbars","startWidth","startHeight","updateScrollbarsInner","sizes","update","paddingBottom","borderBottom","coverGutterNextToScrollbar","initScrollbars","clear","scrollbarModel","scrollbarStyle","maybeScrollWindow","doScroll","innerHeight","phantom","scrollNode","scrollIntoView","scrollPosIntoView","margin","limit","changed","endCoords","scrollPos","calculateScrollPos","startTop","startLeft","snapMargin","screentop","docBottom","atTop","atBottom","newTop","screenleft","screenw","tooWide","addToScrollPos","resolveScrollToPos","ensureCursorVisible","getCursor","scrollToPos","cursorScrollMargin","sPos","scrollTo","startOperation","viewChanged","updateInput","typing","changeObjs","selectionChanged","updateMaxLine","nextOpId","endOperation","endOperations","endOperation_R1","endOperation_W1","endOperation_R2","endOperation_W2","i$4","endOperation_finish","maybeClipScrollbars","mustUpdate","DisplayUpdate","updatedDisplay","updateDisplayIfNeeded","barMeasure","adjustWidthTo","maxScrollLeft","preparedSelection","minWidth","takeFocus","hasFocus","setDocumentHeight","postUpdateDisplay","forceScroll","maybeHiddenMarkers","unhidden","maybeUnhiddenMarkers","finish","runInOp","operation","methodOp","docMethodOp","regChange","lendiff","resetView","cut","viewCuttingPoint","cut$1","cutTop","cutBot","regLineChange","oldN","newN","adjustView","countDirtyView","dirty","time","highlight","highlightWorker","Date","workTime","changedLines","oldStyles","tooLong","highlighted","oldCls","newCls","ischange","workDelay","marginBottom","borderRightWidth","editorIsHidden","force","visible","viewportMargin","different","wrapperHeight","toUpdate","patchDisplay","minHeight","oldDisplayWidth","updateNumbersFrom","rm","container","updateNumber","updateGutters","specs","gElt","setGuttersForLineNumbers","normalizeSelection","prim","prev","inv","Range","Selection","simpleSelection","changeEnd","adjustForChange","computeSelAfterChange","offsetPos","computeReplacedSel","hint","oldPrev","newPrev","loadMode","modeOption","resetModeState","isWholeLineUpdate","wholeLineUpdateBefore","updateDoc","estimateHeight$$1","spansFor","linesFor","Line","firstLine","lastText","lastSpans","nlines","insert","remove","added","added$1","added$2","linkedDocs","sharedHistOnly","propagate","skip","sharedHist","linked","rel","shared","attachDoc","setDirectionClass","directionChanged","History","startGen","done","undone","undoDepth","lastModTime","lastSelTime","lastOp","lastSelOp","lastOrigin","lastSelOrigin","generation","maxGeneration","historyChangeFromChange","histChange","attachLocalSpans","clearSelectionEvents","pop","lastChangeEvent","hist","addChangeToHistory","selAfter","opId","history","origin","historyEventDelay","pushSelectionToHistory","selectionEventCanBeMerged","somethingSelected","addSelectionToHistory","clearRedo","dest","equals","existing","removeClearedSpans","explicitlyCleared","getOldSpans","mergeOldSpans","stretched","oldCur","stretchCur","copyHistoryArray","events","newGroup","instantiateSel","event","deepCopy","newChanges","Number","extendRange","extend","posBefore","extendSelection","setSelection","extendSelections","heads","newSel","replaceOneSelection","setSimpleSelection","filterSelectionChange","this$1","setSelectionReplaceHistory","setSelectionNoUndo","NaN","setSelectionInner","skipAtomicInSelection","reCheckSelection","sel_dontScroll","mayClear","newAnchor","skipAtomic","newHead","skipAtomicInner","oldPos","atomic","near","movePos","far","cantEdit","selectAll","filterChange","canceled","cancel","makeChange","ignoreReadOnly","suppressEdits","makeChangeInner","makeChangeSingleDoc","rebased","rebaseHist","makeChangeFromHistory","allowSelectionOnly","antiChanges","after","returned","v","shiftDoc","distance","removed","makeChangeSingleDocInEditor","recomputeMaxLength","checkWidthStart","changesHandler","changeHandler","replaceRange","code","splitLines","rebaseHistSelSingle","rebaseHistArray","sub","ok","copied","changeLine","handle","changeType","adjustScrollWhenAboveVisible","addLineWidget","LineWidget","insertAt","aboveVisible","markText","markTextShared","TextMarker","replacedWith","addToHistory","curLine","clearOnEnter","clearHistory","nextMarkerId","cloneNode","isParent","SharedTextMarker","findSharedMarkers","findMarks","copySharedMarkers","mFrom","mTo","subMark","detachSharedMarkers","subMarker","onDrop","clearDragCursor","lastDrop","files","dataTransfer","isReadOnly","FileReader","File","read","loadFile","file","allowDropFileTypes","reader","onload","lineSeparator","readAsText","draggingText","text$1","getData","selected","listSelections","replaceSelection","onDragStart","setData","getSelection","effectAllowed","setDragImage","safari","img","src","_top","onDragOver","frag","dragCursor","forEachCodeMirror","getElementsByClassName","byClass","CodeMirror","ensureGlobalHandlers","globalsRegistered","registerGlobalHandlers","resizeTimer","onResize","setSize","normalizeKeyName","alt","ctrl","cmd","mod","normalizeKeyMap","keymap","keyname","lookupKey","getKeyMap","fallthrough","isModifierKey","keyNames","keyCode","keyName","noShift","altGraphKey","altKey","flipCtrlCmd","metaKey","shiftKey","keyMap","deleteNearSelection","compute","kill","toKill","replaced","lineStart","visual","lineEnd","lineStartSmart","firstNonWS","inWS","doHandleBinding","bound","dropShift","commands","ensurePolled","prevShift","Pass","lookupKeyForEditor","keyMaps","extraKeys","dispatchKey","seq","keySeq","stopSeq","handleKeyBinding","motion","handleCharBinding","onKeyDown","handled","lastStoppedKey","hasCopyEvent","showCrossHair","up","onKeyUp","onKeyPress","charCode","fromCharCode","onMouseDown","supportsTouch","clickInGutter","selectingText","leftButtonDown","lastMiddleDown","captureRightClick","onContextMenu","now","lastDoubleClick","lastClick","contained","modifier","dragDrop","dragAndDrop","leftButtonStartDrag","leftButtonSelect","startTime","dragEnd","e2","addNew","extendTo","lastPos","startCol","posCol","startSel","ourIndex","oldRange","ourRange","findWordAt","ranges$1","sel_mouse","curCount","counter","editorSize","move","chromeOS","word","gutterEvent","prevent","mX","mY","lineBox","g","contextMenuInGutter","themeChanged","theme","defineOptions","option","deflt","notOnInit","defaults","optionHandlers","Init","defineOption","setValue","lineSep","newBreaks","refresh","getInputField","spellcheck","windows","guttersChanged","detach","attach","wrappingChanged","integer","blur","disabled","readOnlyChanged","dragDropChanged","resetPosition","getField","tabIndex","setDirection","wasOn","funcs","dragFunctions","toggle","enter","over","leave","drop","CodeMirror$1","Doc","inputStyles","inputStyle","pasteIncoming","cutIncoming","Delayed","autofocus","registerEventHandlers","opt","finishInit","initHooks","textRendering","finishTouch","touchFinished","prevTouch","isMouseLikeTouchEvent","touches","touch","radiusX","radiusY","farAway","clearTimeout","moved","pageX","pageY","inp","indentLine","how","aggressive","indent","curSpace","indentation","curSpaceString","indentUnit","indentString","indentWithTabs","pos$1","setLastCopied","newLastCopied","lastCopied","applyTextInput","inserted","deleted","paste","textLines","splitLinesAuto","multiPaste","lineWise","changeEvent","triggerElectric","handlePaste","pasted","clipboardData","disableInput","electricChars","smartIndent","getModeAt","electricInput","copyableRanges","lineRange","getRange","disableBrowserMagic","hiddenTextarea","te","div","ios","border","findPosH","unit","findNextLine","moveOnce","boundToLine","origDir","sawType","getHelper","hitSide","findPosV","pageSize","moveAmount","posToDOM","side","isInGutter","scan","badPos","bad","domTextBetween","recognizeMarker","close","closing","addText","walk","cmText","textContent","markerID","isBlock","nodeName","nodeValue","domToPos","lineNode","locateNodeInLineView","textNode","topNode","curNode","dist","previousSibling","dist$1","fromTextArea","textarea","getValue","tabindex","placeholder","realSubmit","form","leaveSubmitMethodAlone","submit","wrappedSubmit","getTextArea","toTextArea","getWrapperElement","addLegacyProps","cmpPos","userAgent","navigator","platform","ie_upto10","ie_11up","edge","documentMode","qtwebkit","chrome","vendor","mac_geMountainLion","android","presto_version","createRange","endNode","setEnd","setStart","createTextRange","moveToElementText","moveEnd","moveStart","selectInput","select","selectionStart","selectionEnd","_e","ms","sel_move","charType","lowTypes","arabicTypes","BidiSpan","bidiRE","isNeutral","isStrong","countsAsLeft","countsAsNum","outerType","types","type$1","prev$1","type$2","type$3","i$5","cur$1","type$4","i$6","end$1","replace$1","i$7","nstart","unshift","reverse","addEventListener","attachEvent","nl","rt","hasSelection","ownerDocument","parentElement","compareEndPoints","oncopy","lastColumnPos","lastColumnValue","sol","peek","eat","eatWhile","eatSpace","skipToEnd","skipTo","backUp","column","pattern","consume","caseInsensitive","cased","substr","hideFirstChars","NativeScrollbars","vert","horiz","checkedZeroWidth","needsH","needsV","sWidth","totalHeight","totalWidth","zeroWidthHack","disableHoriz","enableZeroWidthBar","disableVert","w","pointerEvents","bar","delay","maybeDisable","elt$$1","elementFromPoint","NullScrollbars","native","null","here","there","LeafChunk","removeInner","insertInner","iterN","BranchChunk","oldHeight","remaining","leaf","maybeSpill","me","spilled","sibling","myIndex","used","oldH","withOp","dHeight","nextDocId","cleanGeneration","getLineHandle","getLineNumber","getLineHandleVisualStart","lineCount","setCursor","extendSelectionsBy","setSelections","addSelection","getSelections","dup","replaceSelections","undo","redo","undoSelection","redoSelection","setExtending","getExtending","historySize","markClean","changeGeneration","forceSplit","isClean","gen","getHistory","setHistory","histData","setGutterMarker","gutterID","clearGutter","lineInfo","addLineClass","where","removeLineClass","removeLineWidget","setBookmark","realOpts","findMarksAt","getAllMarks","posFromIndex","sepSize","indexFromPos","copyHistory","linkedDoc","unlinkDoc","link","splitIds","iterLinkedDocs","getEditor","eachLine","3","8","9","13","16","17","18","19","20","27","32","33","34","35","36","37","38","39","40","44","45","46","59","61","91","92","93","106","107","109","110","111","127","173","186","187","188","189","190","191","192","219","220","221","222","63232","63233","63234","63235","63272","63273","63275","63276","63277","63302","basic","Left","Right","Up","Down","End","Home","PageUp","PageDown","Delete","Backspace","Shift-Backspace","Tab","Shift-Tab","Enter","Insert","Esc","pcDefault","Ctrl-A","Ctrl-D","Ctrl-Z","Shift-Ctrl-Z","Ctrl-Y","Ctrl-Home","Ctrl-End","Ctrl-Up","Ctrl-Down","Ctrl-Left","Ctrl-Right","Alt-Left","Alt-Right","Ctrl-Backspace","Ctrl-Delete","Ctrl-S","Ctrl-F","Ctrl-G","Shift-Ctrl-G","Shift-Ctrl-F","Shift-Ctrl-R","Ctrl-[","Ctrl-]","Ctrl-U","Shift-Ctrl-U","Alt-U","emacsy","Ctrl-B","Ctrl-P","Ctrl-N","Alt-F","Alt-B","Ctrl-E","Ctrl-V","Shift-Ctrl-V","Ctrl-H","Alt-D","Alt-Backspace","Ctrl-K","Ctrl-T","Ctrl-O","macDefault","Cmd-A","Cmd-D","Cmd-Z","Shift-Cmd-Z","Cmd-Y","Cmd-Home","Cmd-Up","Cmd-End","Cmd-Down","Cmd-Left","Cmd-Right","Ctrl-Alt-Backspace","Alt-Delete","Cmd-S","Cmd-F","Cmd-G","Shift-Cmd-G","Cmd-Alt-F","Shift-Cmd-Alt-F","Cmd-[","Cmd-]","Cmd-Backspace","Cmd-Delete","Cmd-U","Shift-Cmd-U","singleSelection","killLine","deleteLine","delLineLeft","delWrappedLineLeft","delWrappedLineRight","goDocStart","goDocEnd","goLineStart","goLineStartSmart","goLineEnd","goLineRight","goLineLeft","goLineLeftSmart","goLineUp","moveV","goLineDown","goPageUp","goPageDown","goCharLeft","moveH","goCharRight","goColumnLeft","goColumnRight","goWordLeft","goGroupRight","goGroupLeft","goWordRight","delCharBefore","deleteH","delCharAfter","delWordBefore","delWordAfter","delGroupBefore","delGroupAfter","indentAuto","indentSelection","indentMore","indentLess","insertTab","insertSoftTab","spaces","defaultTab","execCommand","transposeChars","newlineAndIndent","sels","openLine","toggleOverwrite","defineInitHook","addEditorMethods","helpers","setOption","getDoc","addKeyMap","removeKeyMap","addOverlay","modeSpec","removeOverlay","newRanges","getTokenAt","getLineTokens","getTokenTypeAt","getHelpers","help","_global","getStateAfter","defaultTextHeight","defaultCharWidth","getViewport","addWidget","vspace","hspace","triggerOnKeyDown","triggerOnKeyPress","triggerOnKeyUp","amount","rtlMoveVisually","goalColumn","goals","headPos","startChar","check","getScrollInfo","interpret","swapDoc","getScrollerElement","getGutterElement","registerHelper","registerGlobalHelper","predicate","ContentEditableInput","lastAnchorNode","lastAnchorOffset","lastFocusNode","lastFocusOffset","polling","composing","gracePeriod","readDOMTimeout","onCopyCut","lineWiseCopyCut","clearData","kludge","hadFocus","showPrimarySelection","updateFromDOM","readFromDOMSoon","forceCompositionEnd","showMultipleSelections","curAnchor","anchorNode","anchorOffset","curFocus","focusNode","focusOffset","removeAllRanges","rangeCount","getRangeAt","rng","addRange","startGracePeriod","rememberSelection","selectionInEditor","commonAncestorContainer","poll","pollSelection","pollInterval","pollContent","fromIndex","fromNode","toNode","toIndex","newText","oldText","cutFront","cutEnd","oldTop","maxCutFront","newBot","oldBot","maxCutEnd","chFrom","chTo","contentEditable","TextareaInput","prevInput","pollingFast","inaccurateSelection","prepareCopyCut","fastPoll","moveInputWithCursor","wrapOff","lineOff","teTop","teLeft","drawn","contextMenuPending","minimal","slowPoll","missed","same","prepareSelectAllHack","extval","rehide","oldWrapperCSS","oldCSS","detectingSelectAll","resetSelectionOnContextMenu","wrapperBox","oldScrollY","scrollY","mouseup","dontDelegate","method","contenteditable","defineExtension","func","defineDocExtension","version","angular","_inherits","subClass","superClass","setPrototypeOf","__proto__","_get","_x","_x2","_x3","_again","object","receiver","Function","desc","getOwnPropertyDescriptor","getter","getPrototypeOf","_View2","_View3","_UtilsOrderElement","_UtilsOrderElement2","ListView","_View","_perPage","_infinitePagination","_listActions","_batchActions","_filters","_permanentFilters","_exportFields","_exportOptions","_entryCssClasses","_sortField","_sortDir","perPage","actions","filters","lists","filterFunction","remoteComplete","_FieldField","_FieldField2","_ViewDashboardView","_ViewDashboardView2","_ViewMenuView","_ViewMenuView2","_ViewListView","_ViewListView2","_ViewCreateView","_ViewCreateView2","_ViewEditView","_ViewEditView2","_ViewDeleteView","_ViewDeleteView2","_ViewShowView","_ViewShowView2","_ViewBatchDeleteView","_ViewBatchDeleteView2","_ViewExportView","_ViewExportView2","Entity","_uniqueId","_baseApiUrl","_identifierField","_isReadOnly","_createMethod","_updateMethod","_retrieveMethod","_deleteMethod","_initViews","_views","DashboardView","setEntity","MenuView","CreateView","EditView","DeleteView","BatchDeleteView","ExportView","ShowView","disable","viewType","_Field2","_Field3","ChoiceField","_Field","_choices","choices","choice","label","ReferenceField","_targetEntity","_targetField","_singleApiCall","_remoteComplete","_remoteCompleteOptions","refreshDelay","permanentFilters","identifiers","hasSingleApiCall","rawValues","results","sortField","remoteCompleteOptions","indexByName","optimized","references","referencesByName","reference","defaultSetTimout","defaultClearTimeout","runTimeout","fun","cachedSetTimeout","runClearTimeout","cachedClearTimeout","cleanUpNextTick","draining","currentQueue","queue","queueIndex","drainQueue","timeout","run","Item","noop","process","nextTick","browser","env","argv","versions","addListener","once","removeListener","removeAllListeners","emit","binding","cwd","chdir","umask","Collection","_ListView","Dashboard","_collections","collection","DataStore","_entries","entries","getEntries","targetEntity","targetField","uniqueId","referencedValues","fillSimpleReference","fillReferencesValuesFromEntry","referenceField","getReferenceChoicesById","targetIdentifier","DateField","_format","_parse","date","setMinutes","getMinutes","getTimezoneOffset","dateString","toJSON","NumberField","decimals","format","repeat","alwaysFalse","_EntityEntity","_EntityEntity2","uuid","_autoClose","Menu","_link","_activeFunc","_icon","_children","url","activeFunc","isActive","menu","isChildActive","active","path","icon","menuView","Queries","RestWrapper","PromisesResolver","Application","_restWrapper","_promisesResolver","_application","isObject","excludedProperties","flatObject","flatObjectKey","objectKey","e1","group1","inherit","extra","merge","dst","ancestors","second","objectKeys","inheritParams","currentParams","newParams","$current","$to","parentParams","parents","inherited","inheritList","params","equalForKeys","filterByKeys","filtered","pick","omit","callback","$Resolve","$q","$injector","VISIT_IN_PROGRESS","VISIT_DONE","NOTHING","NO_DEPENDENCIES","NO_LOCALS","NO_PARENT","when","$$promises","$$values","study","invocables","visit","visited","cycle","isString","plan","annotate","param","isResolve","then","invocableKeys","locals","self","wait","$$inheritedValues","resolution","resolve","fail","reason","$$failure","reject","invoke","invocable","onfailure","invocation","proceed","isDefined","promise","defer","waitParams","dep","promises","ii","$TemplateFactory","$http","$templateCache","fromConfig","config","template","fromString","templateUrl","fromUrl","templateProvider","fromProvider","isFunction","headers","Accept","provider","UrlMatcher","parentMatcher","addParameter","location","paramNames","$$UMFP","Param","quoteRegExp","squash","optional","surroundPattern","matchDetails","isSearch","regexp","segment","cfg","searchPlaceholder","compiled","segments","$$new","ParamSet","isOptional","sourceSearch","sourcePath","strict","prefix","$$paramNames","Type","$UrlMatcherFactory","valToString","valFromString","getDefaultConfig","isStrictMode","isCaseInsensitive","isInjectable","flushTypeQueue","typeQueue","$types","injector","def","defaultSquashPolicy","enqueue","defaultTypes","encode","decode","is","int","bool","getFullYear","getMonth","getDate","capture","valueOf","toISOString","json","toJson","fromJson","any","identity","$$getDefaultValue","strictMode","compile","isMatcher","definition","definitionFn","$get","unwrapShorthand","isShorthand","$$fn","getType","urlType","getArrayMode","arrayDefaults","arrayParamNomenclature","getSquashPolicy","getReplace","arrayMode","configuredKeys","defaultPolicy","item","$value","hasReplaceVal","$replace","replacement","$normalize","$asArray","dynamic","$$parent","$$keys","chain","ignore","paramset","paramValues","$$equals","paramValues1","paramValues2","equal","$$validates","rawVal","normalized","encoded","$UrlRouterProvider","$locationProvider","$urlMatcherFactory","regExpPrefix","re","interpolate","what","handleIfMatch","handler","$match","$location","$rootScope","$browser","$sniffer","appendBasePath","isHtml5","absolute","baseHref","evt","rule","lastPushedUrl","rules","otherwise","listen","listener","$on","interceptDeferred","sync","urlMatcher","$$avoidResync","href","validates","html5Mode","hashPrefix","slash","port","protocol","redirect","handlerIsString","strategies","matcher","regex","deferIntercept","$inject","$StateProvider","$urlRouterProvider","isRelative","stateName","findState","stateOrName","isStr","pathLength","states","queueState","parentName","flushQueuedChildren","queued","registerState","lastIndexOf","stateBuilder","$delegates","abstractKey","$stateParams","$state","navigable","transitionTo","isGlob","doesStateMatchGlob","glob","globSegments","MAX_VALUE","decorator","$view","$resolve","$urlRouter","handleRedirect","$broadcast","TransitionAborted","retry","$retry","TransitionFailed","retryTransition","transition","TransitionSuperseded","toParams","resolveState","paramsAreFiltered","resolveViews","viewsPromises","views","injectables","$template","load","globals","notify","controllerProvider","injectLocals","$$controller","controller","$$state","$$controllerAs","controllerAs","all","TransitionPrevented","root","reload","go","relative","fromParams","fromPath","toState","hash","redirectResult","toPath","keep","toLocals","reloadState","ownParams","shouldSkipReload","resolved","entering","exiting","onExit","onEnter","error","includes","lossy","nav","nonSearchParamsEqual","fromAndToState","notSearchParam","nonQueryParamKeys","nonQueryParams","nonQueryParamSet","reloadOnSearch","compositeName","","abstract","$ViewProvider","$templateFactory","async","$ViewScrollProvider","useAnchorScroll","$anchorScroll","$timeout","$element","$ViewDirective","$uiViewScroll","$interpolate","getService","service","has","getRenderer","attrs","scope","animEnabled","element","ngMajorVer","ngMinorVer","$animate","$animator","statics","cb","noanimation","minor","animate","directive","restrict","terminal","transclude","tElement","tAttrs","$transclude","cleanupLastView","cleanOld","_previousEl","_currentScope","$destroy","previousEl","currentScope","_willBeDestroyed","currentEl","renderer","updateView","firstTime","newScope","getUiViewName","previousLocals","latestLocals","$new","$emit","autoScrollExp","$eval","onloadExp","autoscroll","$ViewDirectiveFill","$compile","$controller","initial","html","contents","$scope","uiView","inheritedData","parseStateRef","ref","parsed","preparsed","paramExpr","stateContext","el","stateData","getTypeInfo","isSvg","isForm","attr","isAnchor","clickable","clickHook","ignorePreventDefaultCount","defaultOpts","$StateRefDirective","require","uiSrefActive","uiSref","uiSrefOpts","$$addStateInfo","$set","$watch","$StateRefDynamicDirective","runStateRefLink","uiState","uiStateParams","uiStateOpts","watch","$StateRefActiveDirective","$attrs","addState","stateParams","activeClass","stateHash","createStateHash","activeClasses","anyMatch","removeClass","exactMatch","activeEqClass","uiSrefActiveEq","newState","$IsStateFilter","isFilter","$stateful","$IncludedByStateFilter","includesFilter","defaultConfig","searchParams","decodePathArray","reverseString","unquoteDashes","allReversed","paramName","parameters","nTotal","nPath","paramVal","encodeDashes","encodeURIComponent","isPathParam","isDefaultValue","nextSegment","isFinalPathParam","$subPattern","ArrayType","bindTo","callbackName","arrayWrap","arrayUnwrap","falsey","arrayHandler","allTruthyMode","arrayEqualsHandler","val1","val2","$arrayMode","major","_MenuMenu","_MenuMenu2","_Collection","_Collection2","_Dashboard","_Dashboard2","debug","_customTemplate","viewName","_menu","_dashboard","_layout","_header","_entities","defaultErrorMessage","_debug","JSON","stringify","status","entities","viewUrl","baseApiUrl","getUrl","buildMenuFromEntities","populateFromEntity","buildDashboardFromEntities","dashboardView","addCollection","hasCollections","listView","sortDir","foundEntity","getErrorMessage","getEntity","_Application","_Application2","_DataStoreDataStore","_DataStoreDataStore2","_UtilsPromisesResolver","_UtilsPromisesResolver2","_QueriesReadQueries","_QueriesReadQueries2","_QueriesWriteQueries","_QueriesWriteQueries2","_FieldBooleanField","_FieldBooleanField2","_FieldChoiceField","_FieldChoiceField2","_FieldChoicesField","_FieldChoicesField2","_FieldDateField","_FieldDateField2","_FieldDateTimeField","_FieldDateTimeField2","_FieldEmailField","_FieldEmailField2","_FieldEmbeddedListField","_FieldEmbeddedListField2","_FieldFloatFieldJs","_FieldFloatFieldJs2","_FieldFileField","_FieldFileField2","_FieldJsonField","_FieldJsonField2","_FieldNumberField","_FieldNumberField2","_FieldPasswordField","_FieldPasswordField2","_FieldReferenceField","_FieldReferenceField2","_FieldReferencedListField","_FieldReferencedListField2","_FieldReferenceManyField","_FieldReferenceManyField2","_FieldTemplateField","_FieldTemplateField2","_FieldTextField","_FieldTextField2","_FieldWysiwygField","_FieldWysiwygField2","Factory","_fieldTypes","_init","registerFieldType","_ChoiceField2","_ChoiceField3","BooleanField","_ChoiceField","_filterChoices","ChoicesField","_DateField2","_DateField3","DateTimeField","_DateField","EmailField","EmbeddedListField","_targetFields","FileField","_uploadInformation","accept","information","_NumberField2","_NumberField3","FloatField","_NumberField","JsonField","PasswordField","_ReferenceField2","_ReferenceField3","ReferenceManyField","_ReferenceField","ReferencedListField","_targetReferenceField","columns","TemplateField","TextField","WysiwygField","_stripTags","_sanitize","_Queries2","_Queries3","ReadQueries","_Queries","getOne","getRouteFor","retrieveMethod","page","filterValues","getSortFieldName","allFilterValues","getRawValues","totalItems","totalCount","filterFields","_page","filterName","mappedValue","hasMaps","getList","nonOptimizedReferencedData","getFilteredReferenceData","optimizedReferencedData","getOptimizedReferenceData","Promise","calls","getIdentifierValues","fillFilteredReferencedData","singleCallFilters","getSingleApiCall","fillOptimizedReferencedData","_loop","searchQuery","filterValuesFromRemoteComplete","apiCalls","allEvenFailed","responses","referencedData","referencedLists","entityId","_loop2","referencedList","datagridName","currentSortField","currentSortDir","targetReferenceField","ids","WriteQueries","rawEntity","createOne","createMethod","originEntityId","updateOne","updateMethod","deleteOne","deleteMethod","entityIds","resolveSuccess","resolveError","_submitCreationSuccess","_submitCreationError","_onSubmitSuccess","_onSubmitError","_ListView2","_ListView3","_adminConfigLibFactory","_adminConfigLibFactory2","polyfill","constant","ngadmin","NgAdminConfigurationProvider","AdminDescription","setAdminDescription","uiSelectConfig","_angular","_angular2","CrudModule","humane","clickToClose","Restangular","NgAdminConfiguration","setBaseUrl","maBackButtonDirective","$window","back","maBatchDeleteButtonDirective","gotoBatchDelete","maCreateButtonDirective","defaultValues","_extends","maDeleteButtonDirective","maEditButtonDirective","maExportToCsvButton","Papa","notification","entryFormatter","datastore","exportView","exportFields","has_export","formatEntry","getFormatter","exportToCsv","rawEntries","getAll","getReferenceData","referenceData","getEntryConstructor","addEntry","mapEntries","fillReferencesValuesFromCollection","csv","unparse","exportOptions","fakeLink","click","log","message","addnCls","maFilterButton","enabledFilters","enableFilter","notYetEnabledFilters","hasFilters","maFilteredListButtonDirective","maListButtonDirective","maShowButtonDirective","maSubmitButtonDirective","maViewBatchActionsDirective","buttons","isopen","toggleDropdown","$event","customTemplate","maBooleanColumn","maChoicesColumn","maColumn","Configuration","FieldViewConfiguration","getDetailLinkRouteName","showView","detailLinkRoute","editionView","relatedEntity","append","getLinkWidget","getReadWidget","detailState","detailStateParams","maDateColumn","sorter","entry1","entry2","sortFactor","maEmbeddedListColumn","application","filterFunc","targetEntityName","targetFields","filterKeys","isFiltered","_adminConfigLibEntry2","_adminConfigLibEntry","maJsonColumn","guessType","newElement","replaceWith","maNumberColumn","maReferenceColumn","referencedEntry","getFirstEntry","maReferenceLinkColumn","referenceEntity","referenceId","maReferenceManyColumn","maReferenceManyLinkColumn","maReferencedListColumn","maStringColumn","maTemplateColumn","maWysiwygColumn","$filter","stripTags","htmlValue","factories","fvp","registerFieldView","BatchDeleteController","$translate","description","loadingPage","destroy","batchDelete","errorMessage","getErrorMessageFor","details","DeleteController","entityLabel","previousStateParametersDeferred","_this2","previousStateParameters","maButtonField","attributes","maCheckboxField","updateChoices","$root","$$phase","$digest","maChoiceField","newValue","oldValue","refreshAttributes","itemsFilter","post","maChoicesField","onRemove","$search","$select","maDateField","rawValue","parse","isOpen","eq","toggleDatePicker","maEmbeddedListField","newEntries","oldEntries","maField","getCssClasses","getInput","fieldHasValidation","$dirty","fieldIsValid","$valid","getFieldValidationClass","fieldTemplate","editable","getWriteWidget","maFileField","Upload","uploadInformation","multiple","apifilename","progress","fileSelected","selectedFiles","uploadParams","upload","total","success","apiNames","fileindex","selectFile","maInputField","step","maJsonField","jsonValue","codemirror","jsonlint","maReferenceField","ReferenceRefresher","isCurrentValueInEntries","currentEntry","formattedResults","initialEntries","isCurrentValueInInitialEntries","initialChoices","maReferenceManyField","setInitialChoices","maTemplateField","maTextField","maWysiwygField","uiSelectRequired","elm","$validators","modelValue","viewValue","determineVal","getFilterWidget","fieldViews","FieldView","maFilter","maFilterForm","removeFilter","shouldFilter","FormController","previousState","progression","dataStore","validate","validateEntry","rawEntry","mapEntry","onSubmitSuccess","customHandlerReturnValue","onSubmitError","ListController","listActions","infinitePagination","entryCssClasses","getEntryCssClasses","nextPageCallback","nextPage","setPageCallback","setPage","selectionUpdater","number","getCurrentSearchParam","ListLayoutController","batchActions","newval","oldval","getEnabledFilters","_","debounce","newValues","oldValues","updateFilters","focusedFilterId","getElementById","_this3","pinned","maDatagrid","_maDatagridController2","_maDatagridController","DatagridController","shouldDisplayActions","toggleSelect","toggleSelectAll","$observe","sortCallback","getSortName","maDatagridInfinitePagination","$document","windowElement","nbPages","unbind","maDatagridItemSelector","isInSelection","s","maDatagridMultiSelector","indeterminate","maDatagridPagination","_maDatagridPaginationHtml2","_maDatagridPaginationController2","_maDatagridPaginationHtml","_maDatagridPaginationController","DatagridPaginationController","offsetEnd","offsetBegin","displayPagination","maListActions","Compile","transcludeFn","unbindWatcher","compileOnce","EntryFormatter","formatDate","formatNumber","fieldsFormatters","formatField","formatter","getPromisesResolver","setFullResponse","oneUrl","allUrl","resource","customOperation","customPOST","customPUT","customDELETE","ViewActions","batchButtons","getReadQueries","currentValue","referenceFields","getAllReferencedData","_transformRecords","_removeDuplicates","fr","records","valueFieldName","labelFieldName","getWriteQueries","defaultView","getViewByEntityAndType","viewProvider","error404","routing","$stateProvider","_listListLayoutHtml2","_adminConfigLibDataStoreDataStore2","filterData","getFilterReferences","filterEntries","grid","_listListHtml2","referenceEntries","setEntries","prepare","query","_showShowHtml2","referencedListData","getReferencedListData","referencedListEntries","entryWithReferences","referenceDataForReferencedLists","referenceEntriesForReferencedLists","referencedListName","_formCreateHtml2","getFields","choiceData","choiceEntries","_formEditHtml2","_deleteDeleteHtml2","_deleteBatchDeleteHtml2","_adminConfigLibDataStoreDataStore","_deleteBatchDeleteHtml","_deleteDeleteHtml","_formCreateHtml","_formEditHtml","_listListHtml","_listListLayoutHtml","_showShowHtml","ShowController","maShowItem","maJsonValidator","$isEmpty","MainModule","AppController","isCollapsed","applicationName","header","DashboardController","collections","hasEntities","maDashboardPanel","gotoList","maMenuBar","setMenuCollapsed","isMenuCollapsed","shouldMenuBeCollapsed","innerWidth","canSidebarBeHidden","render","_viewMenuBarHtml2","closeMenu","elements","getElementsForMenu","ul","arrow","elements_sidebar","openMenu","parentLi","li","liElement","_onWindowClick","$evt","isDescendant","originalEvent","$sidebarEventProcessed","_onWindowResize","newMenuCollapsed","newMenuHeight","_calculateMenuHeight","menuHeight","$apply","jqWindow","$","openMenus","toggleMenu","activateLink","autoClose","hoverItem","showHoverElem","hoverElemHeight","currentTarget","menuTopValue","hoverElemTop","_viewMenuBarHtml","OrderElement","field1","field2","$compileProvider","adminDescription","debugInfoEnabled","getFieldConstructor","_collection","http","$httpProvider","useApplyAsync","dataStoreProvider","getDataStore","entryConstructorProvider","layout","_viewLayoutHtml2","_viewDashboardHtml2","collectionSortField","collectionSortDir","collectionName","_view404Html2","_viewLayoutHtml","_viewDashboardHtml","_view404Html","translate","$translateProvider","translations","BACK","DELETE","CREATE","EDIT","EXPORT","ADD_FILTER","SEE_RELATED","LIST","SHOW","SAVE","N_SELECTED","ARE_YOU_SURE","YES","NO","FILTER_VALUES","CLOSE","CLEAR","CURRENT","REMOVE","ADD_NEW","BROWSE","N_COMPLETE","CREATE_NEW","SUBMIT","SAVE_CHANGES","BATCH_DELETE_SUCCESS","DELETE_SUCCESS","ERROR_MESSAGE","INVALID_FORM","CREATION_SUCCESS","EDITION_SUCCESS","ACTIONS","PAGINATION","NO_PAGINATION","PREVIOUS","NEXT","DETAIL","STATE_CHANGE_ERROR","NOT_FOUND","NOT_FOUND_DETAILS","preferredLanguage","useSanitizeValueStrategy","errorHandler","fromState","loader","minErr","ErrorConstructor","paramPrefix","SKIP_INDEXES","templateArgs","shiftedIndex","toDebugString","isArrayLike","isWindow","jqLite","isNumber","iterator","isPrimitive","isBlankObject","forEachSorted","reverseParams","iteratorFn","nextUid","uid","setHashKey","$$hashKey","baseExtend","objs","deep","jj","isDate","isRegExp","isElement","toInt","valueFn","hasCustomToString","isUndefined","isScope","$evalAsync","isFile","isFormData","isBlob","isBoolean","isPromiseLike","isTypedArray","TYPED_ARRAY_REGEXP","makeMap","items","nodeName_","lowercase","arrayRemove","destination","copyRecurse","copyElement","stackSource","stackDest","ngMinErr","needsRecurse","getTime","shallowCopy","o1","o2","keySet","t1","t2","createMap","array1","array2","sliceArgs","curryArgs","toJsonReplacer","pretty","timezoneToOffset","timezone","fallback","ALL_COLONS","requestedTimezoneOffset","addDateMinutes","minutes","convertTimezoneToLocal","dateTimezoneOffset","timezoneOffset","startingTag","elemHtml","NODE_TYPE_TEXT","tryDecodeURIComponent","decodeURIComponent","parseKeyValue","keyValue","splitPoint","toKeyValue","arrayValue","encodeUriQuery","encodeUriSegment","pctEncodeSpaces","getNgAttribute","ngAttr","ngAttrPrefixes","angularInit","bootstrap","appElement","hasAttribute","candidate","strictDi","doBootstrap","$provide","createInjector","NG_ENABLE_DEBUG_INFO","NG_DEFER_BOOTSTRAP","resumeBootstrap","extraModules","resumeDeferredBootstrap","reloadWithDebugInfo","getTestability","rootElement","snake_case","separator","SNAKE_CASE_REGEXP","letter","bindJQuery","originalCleanData","bindJQueryFired","jqName","jq","jQuery","JQLitePrototype","isolateScope","cleanData","elems","skipDestroyOnNextJQueryCleanData","elem","_data","triggerHandler","JQLite","assertArg","assertArgFn","acceptArrayAnnotation","assertNotHasOwnProperty","bindFnToScope","lastInstance","getBlockNodes","nodes","blockNodes","setupModuleLoader","$injectorMinErr","$$minErr","requires","configFn","invokeLater","insertMethod","invokeQueue","moduleInstance","invokeLaterAndSetModuleName","recipeName","factoryFunction","$$moduleName","configBlocks","runBlocks","_invokeQueue","_configBlocks","_runBlocks","animation","block","serializeObject","seen","publishExternalAPI","uppercase","$$csp","csp","angularModule","$$sanitizeUri","$$SanitizeUriProvider","$CompileProvider","htmlAnchorDirective","inputDirective","formDirective","script","scriptDirective","selectDirective","styleDirective","optionDirective","ngBind","ngBindDirective","ngBindHtml","ngBindHtmlDirective","ngBindTemplate","ngBindTemplateDirective","ngClass","ngClassDirective","ngClassEven","ngClassEvenDirective","ngClassOdd","ngClassOddDirective","ngCloak","ngCloakDirective","ngController","ngControllerDirective","ngForm","ngFormDirective","ngHide","ngHideDirective","ngIf","ngIfDirective","ngInclude","ngIncludeDirective","ngInit","ngInitDirective","ngNonBindable","ngNonBindableDirective","ngPluralize","ngPluralizeDirective","ngRepeat","ngRepeatDirective","ngShow","ngShowDirective","ngStyle","ngStyleDirective","ngSwitch","ngSwitchDirective","ngSwitchWhen","ngSwitchWhenDirective","ngSwitchDefault","ngSwitchDefaultDirective","ngOptions","ngOptionsDirective","ngTransclude","ngTranscludeDirective","ngModel","ngModelDirective","ngList","ngListDirective","ngChange","ngChangeDirective","patternDirective","ngPattern","requiredDirective","ngRequired","minlengthDirective","ngMinlength","maxlengthDirective","ngMaxlength","ngValue","ngValueDirective","ngModelOptions","ngModelOptionsDirective","ngIncludeFillContentDirective","ngAttributeAliasDirectives","ngEventDirectives","$AnchorScrollProvider","$AnimateProvider","$animateCss","$CoreAnimateCssProvider","$$animateJs","$$CoreAnimateJsProvider","$$animateQueue","$$CoreAnimateQueueProvider","$$AnimateRunner","$$AnimateRunnerFactoryProvider","$$animateAsyncRun","$$AnimateAsyncRunFactoryProvider","$BrowserProvider","$cacheFactory","$CacheFactoryProvider","$ControllerProvider","$DocumentProvider","$exceptionHandler","$ExceptionHandlerProvider","$FilterProvider","$$forceReflow","$$ForceReflowProvider","$InterpolateProvider","$interval","$IntervalProvider","$HttpProvider","$httpParamSerializer","$HttpParamSerializerProvider","$httpParamSerializerJQLike","$HttpParamSerializerJQLikeProvider","$httpBackend","$HttpBackendProvider","$xhrFactory","$xhrFactoryProvider","$LocationProvider","$log","$LogProvider","$parse","$ParseProvider","$RootScopeProvider","$QProvider","$$q","$$QProvider","$sce","$SceProvider","$sceDelegate","$SceDelegateProvider","$SnifferProvider","$TemplateCacheProvider","$templateRequest","$TemplateRequestProvider","$$testability","$$TestabilityProvider","$TimeoutProvider","$WindowProvider","$$rAF","$$RAFProvider","$$jqLite","$$jqLiteProvider","$$HashMap","$$HashMapProvider","$$cookieReader","$$CookieReaderProvider","jqNextId","jqId","SPECIAL_CHARS_REGEXP","MOZ_HACK_REGEXP","jqLiteIsTextNode","HTML_REGEXP","jqLiteAcceptsData","NODE_TYPE_ELEMENT","NODE_TYPE_DOCUMENT","jqLiteHasData","jqCache","ng339","jqLiteBuildFragment","TAG_NAME_REGEXP","wrapMap","_default","innerHTML","XHTML_TAG_REGEXP","jqLiteParseHTML","SINGLE_TAG_REGEXP","jqLiteWrapNode","argIsString","trim","jqLiteMinErr","jqLiteAddNodes","jqLiteClone","jqLiteDealoc","onlyDescendants","jqLiteRemoveData","querySelectorAll","descendants","jqLiteOff","unsupported","expandoStore","jqLiteExpandoStore","removeHandler","listenerFns","removeEventListenerFn","MOUSE_EVENT_MAP","expandoId","createIfNecessary","jqLiteData","isSimpleSetter","isSimpleGetter","massGetter","jqLiteHasClass","selector","jqLiteRemoveClass","cssClasses","cssClass","jqLiteAddClass","existingClasses","jqLiteController","jqLiteInheritedData","names","NODE_TYPE_DOCUMENT_FRAGMENT","jqLiteEmpty","jqLiteRemove","keepData","jqLiteDocumentLoaded","action","win","readyState","getBooleanAttrName","booleanAttr","BOOLEAN_ATTR","BOOLEAN_ELEMENTS","getAliasedAttrName","ALIASED_ATTR","createEventHandler","eventHandler","isDefaultPrevented","eventFns","eventFnsLength","immediatePropagationStopped","originalStopImmediatePropagation","stopImmediatePropagation","isImmediatePropagationStopped","handlerWrapper","specialHandlerWrapper","defaultHandlerWrapper","specialMouseHandlerWrapper","related","relatedTarget","jqLiteContains","hasClass","hashKey","nextUidFn","objType","HashMap","isolatedUid","put","anonFn","fnText","STRIP_COMMENTS","FN_ARGS","argDecl","FN_ARG_SPLIT","FN_ARG","underscore","modulesToLoad","supportObject","delegate","provider_","providerInjector","instantiate","providerCache","providerSuffix","enforceReturnValue","instanceInjector","factoryFn","enforce","instanceCache","serviceName","decorFn","origProvider","orig$get","origInstance","$delegate","loadModules","moduleFn","runInvokeQueue","invokeArgs","loadedModules","stack","createInternalInjector","caller","INSTANTIATING","err","$$annotate","returnedValue","autoScrollingEnabled","disableAutoScrolling","getFirstAnchor","some","getYOffset","yOffset","elemTop","scrollBy","getElementsByName","newVal","oldVal","mergeClasses","extractElementNode","ELEMENT_NODE","splitClasses","klass","prepareAnimateOptions","Browser","completeOutstandingRequest","outstandingRequestCount","outstandingRequestCallbacks","getHash","cacheStateAndFireUrlChange","pendingLocation","cacheState","fireUrlChange","getCurrentState","cachedState","lastCachedState","lastBrowserUrl","lastHistoryState","urlChangeListeners","pendingDeferIds","isMock","$$completeOutstandingRequest","$$incOutstandingRequestCount","notifyWhenNoOutstandingRequests","baseElement","sameState","sameBase","stripHash","urlChangeInit","onUrlChange","$$applicationDestroyed","$$checkUrlChange","timeoutId","deferId","cacheFactory","cacheId","freshEnd","staleEnd","nextEntry","prevEntry","stats","capacity","lruHash","lruEntry","removeAll","$$sanitizeUriProvider","parseIsolateBindings","directiveName","isController","LOCAL_REGEXP","bindings","scopeName","bindingCache","$compileMinErr","attrName","parseDirectiveBindings","bindToController","identifierForController","assertValidDirectiveName","hasDirectives","Suffix","COMMENT_DIRECTIVE_REGEXP","CLASS_DIRECTIVE_REGEXP","ALL_OR_NOTHING_ATTRS","REQUIRE_PREFIX_REGEXP","EVENT_HANDLER_ATTR_REGEXP","registerDirective","directiveFactory","directives","aHrefSanitizationWhitelist","imgSrcSanitizationWhitelist","safeAddClass","$compileNodes","maxPriority","ignoreDirective","previousCompileContext","NOT_EMPTY","domNode","compositeLinkFn","compileNodes","$$addScopeClass","namespace","cloneConnectFn","needsNewScope","$parent","parentBoundTranscludeFn","transcludeControllers","futureParentElement","$$boundTransclude","detectNamespaceForChildElements","$linkNode","wrapTemplate","controllerName","$$addScopeInfo","nodeList","$rootElement","nodeLinkFn","childLinkFn","childScope","idx","childBoundTranscludeFn","stableNodeList","nodeLinkFnFound","nodeListLength","linkFns","transcludeOnThisElement","createBoundTranscludeFn","templateOnThisElement","linkFnFound","Attributes","collectDirectives","applyDirectivesToNode","$$element","previousBoundTranscludeFn","boundTranscludeFn","transcludedScope","cloneFn","controllers","containingScope","$$transcluded","attrsMap","$attr","addDirective","directiveNormalize","nName","ngAttrName","isNgAttr","nAttrs","attrStartName","attrEndName","NG_ATTR_BINDING","PREFIX_REGEXP","multiElementMatch","MULTI_ELEMENT_DIR_RE","directiveIsMultiElement","addAttrInterpolateDirective","animVal","msie","addTextInterpolateDirective","NODE_TYPE_COMMENT","byPriority","groupScan","attrStart","attrEnd","depth","groupElementsLinkFnWrapper","linkFn","compileNode","templateAttrs","jqCollection","originalReplaceDirective","preLinkFns","postLinkFns","addLinkFns","newIsolateScopeDirective","$$isolateScope","cloneAndAnnotateFn","getControllers","elementControllers","inheritType","dataName","setupControllers","controllerDirectives","controllerKey","controllerInstance","linkNode","controllersBoundTransclude","cloneAttachFn","hasElementTranscludeDirective","scopeToChild","controllerScope","removeScopeBindingWatches","removeControllerBindingWatches","newScopeDirective","templateDirective","$$originalDirective","$$isolateBindings","initializeDirectiveBindings","controllerDirective","$$bindings","controllerResult","invokeLinkFn","directiveValue","terminalPriority","nonTlbTranscludeDirective","hasTranscludeDirective","hasTemplate","$compileNode","replaceDirective","childTranscludeFn","$$start","$$end","assertNoDuplicate","$$tlb","createComment","$$newScope","denormalizeTemplate","removeComments","templateNamespace","newTemplateAttrs","templateDirectives","unprocessedDirectives","markDirectiveScope","mergeTemplateAttributes","compileTemplateUrl","tDirectives","startAttrName","endAttrName","multiElement","srcAttr","dstAttr","afterTemplateNodeLinkFn","afterTemplateChildLinkFn","linkQueue","beforeTemplateCompileNode","origAsyncDirective","derivedSyncDirective","tempTemplateAttrs","beforeTemplateLinkNode","linkRootElement","$$destroyed","oldClasses","ignoreChildLinkFn","previousDirective","wrapModuleNameIfDefined","moduleName","interpolateFn","templateNode","templateNodeParent","hasCompileParent","$$addBindingClass","$$addBindingInfo","expressions","getTrustedContext","attrNormalizedName","HTML","RESOURCE_URL","allOrNothing","trustedContext","$$observers","$$inter","$$scope","$updateClass","elementsToRemove","newNode","firstElementToRemove","removeCount","j2","hasData","expando","kk","annotation","removeWatchCollection","lastValue","parentGet","parentSet","compare","literal","parentValueWatch","parentValue","removeWatch","$watchCollection","attributesToCopy","$addClass","classVal","$removeClass","newClasses","toAdd","tokenDifference","toRemove","writeAttr","booleanKey","aliasedKey","observer","trimmedSrcset","srcPattern","rawUris","nbrUrisWith2parts","innerIdx","lastTuple","removeAttr","listeners","startSymbol","endSymbol","isolated","noTemplate","str1","str2","tokens1","tokens2","jqNodes","ident","CNTRL_REG","register","allowGlobals","addIdentifier","expression","later","$controllerMinErr","controllerPrototype","exception","cause","serializeValue","serialize","toSerialize","topLevel","defaultHttpResponseTransform","tempData","JSON_PROTECTION_PREFIX","contentType","APPLICATION_JSON","isJsonLike","jsonStart","JSON_START","JSON_ENDS","parseHeaders","fillInParsed","headerVal","headerKey","headersGetter","headersObj","transformData","fns","isSuccess","transformResponse","transformRequest","common","CONTENT_TYPE_APPLICATION_JSON","patch","xsrfCookieName","xsrfHeaderName","paramSerializer","useLegacyPromise","useLegacyPromiseExtensions","interceptorFactories","interceptors","requestConfig","resp","executeHeaderFns","headerContent","processedHeaders","headerFn","mergeHeaders","defHeaderName","lowercaseDefHeaderName","reqHeaderName","defHeaders","reqHeaders","defaultHeadersIteration","serverRequest","reqData","withCredentials","sendReq","reversedInterceptors","interceptor","request","requestError","responseError","thenFn","rejectFn","$httpMinErrLegacyFn","createShortMethods","createShortMethodsWithData","headersString","statusText","resolveHttpPromise","resolvePromise","$applyAsync","deferred","resolvePromiseWithResult","removePendingReq","pendingRequests","cachedResp","buildUrl","defaultCache","xsrfValue","urlIsSameOrigin","responseType","serializedParams","interceptorFactory","XMLHttpRequest","createHttpBackend","createXhr","$browserDefer","rawDocument","jsonpReq","callbackId","called","addEventListenerFn","timeoutRequest","jsonpDone","xhr","abort","completeRequest","open","setRequestHeader","responseText","urlResolve","getAllResponseHeaders","onerror","onabort","send","escape","unescapeText","escapedStartRegexp","escapedEndRegexp","mustHaveExpression","parseStringifyInterceptor","$interpolateMinErr","interr","endIndex","exp","parseFns","textLength","expressionPositions","startSymbolLength","endSymbolLength","throwNoconcat","getTrusted","$$watchDelegate","$watchGroup","currValue","interval","invokeApply","hasParams","iteration","skipApply","$$intervalId","intervals","encodePath","parseAbsoluteUrl","absoluteUrl","locationObj","parsedUrl","$$protocol","$$host","hostname","$$port","DEFAULT_PORTS","parseAppUrl","relativeUrl","prefixed","$$path","pathname","$$search","$$hash","beginsWith","whole","trimEmptyHash","stripFile","serverBase","LocationHtml5Url","appBase","appBaseNoFile","basePrefix","$$html5","$$parse","pathUrl","$locationMinErr","$$compose","$$url","$$absUrl","$$parseLinkUrl","relHref","appUrl","prevAppUrl","rewrittenUrl","LocationHashbangUrl","removeWindowsDriveName","firstPathSegmentMatch","windowsFilePathExp","withoutHashUrl","withoutBaseUrl","LocationHashbangInHtml5Url","locationGetter","locationGetterSetter","preprocess","requireBase","rewriteLinks","setBrowserUrlWithFallback","oldUrl","oldState","afterLocationChange","absUrl","LocationMode","initialUrl","IGNORE_URI_REGEXP","absHref","initializing","newUrl","currentReplace","$$replace","urlOrStateChanged","debugEnabled","flag","formatError","sourceURL","consoleLog","logFn","hasApply","arg1","arg2","ensureSafeMemberName","fullExpression","$parseMinErr","getStringValue","ensureSafeObject","ensureSafeFunction","CALL","APPLY","BIND","ensureSafeAssignContext","ifDefined","plusFn","isStateless","findConstantAndWatchExpressions","ast","allConstants","argsToWatch","AST","Program","expr","Literal","toWatch","UnaryExpression","BinaryExpression","LogicalExpression","ConditionalExpression","alternate","consequent","Identifier","MemberExpression","computed","CallExpression","callee","AssignmentExpression","ArrayExpression","ObjectExpression","ThisExpression","getInputs","lastExpression","isAssignable","assignableAST","NGValueParameter","operator","isLiteral","isConstant","ASTCompiler","astBuilder","ASTInterpreter","isPossiblyDangerousMemberName","getValueOf","objectValueOf","cacheDefault","cacheExpensive","interceptorFn","expensiveChecks","parsedExpression","oneTime","cacheKey","runningChecksEnabled","parseOptions","$parseOptionsExpensive","$parseOptions","lexer","Lexer","parser","Parser","constantWatchDelegate","oneTimeLiteralWatchDelegate","oneTimeWatchDelegate","inputs","inputsWatchDelegate","expensiveChecksInterceptor","addInterceptor","expensiveCheckFn","expensiveCheckOldValue","expressionInputDirtyCheck","oldValueOfValue","objectEquality","prettyPrintExpression","lastResult","inputExpressions","oldInputValueOf","newInputValue","oldInputValueOfValues","oldInputValues","unwatch","$$postDigest","isAllDefined","allDefined","watchDelegate","useInputs","regularWatch","noUnsafeEval","$$runningExpensiveChecks","qFactory","exceptionHandler","callOnce","resolveFn","simpleBind","processQueue","pending","processScheduled","scheduleProcessQueue","Deferred","$qMinErr","onFulfilled","onRejected","progressBack","catch","finally","handleCallback","$$reject","$$resolve","makePromise","isResolved","callbackOutput","errback","$Q","Q","resolver","requestAnimationFrame","webkitRequestAnimationFrame","cancelAnimationFrame","webkitCancelAnimationFrame","webkitCancelRequestAnimationFrame","rafSupported","raf","timer","supported","createChildScopeClass","ChildScope","$$watchers","$$nextSibling","$$childHead","$$childTail","$$listeners","$$listenerCount","$$watchersCount","$id","$$ChildScope","TTL","$rootScopeMinErr","lastDirtyWatch","applyAsyncId","digestTtl","destroyChildScope","cleanUpScope","$$prevSibling","Scope","beginPhase","phase","clearPhase","incrementWatchersCount","decrementListenerCount","initWatchVal","flushApplyAsync","applyAsyncQueue","scheduleApplyAsync","isolate","watchExp","watcher","watchExpressions","watchGroupAction","changeReactionScheduled","firstRun","deregisterFns","shouldCall","unwatchFn","$watchCollectionInterceptor","_value","newLength","bothNaN","newItem","oldItem","internalArray","oldLength","changeDetected","internalObject","$watchCollectionAction","initRun","veryOldValue","trackVeryOldValue","changeDetector","watchers","logIdx","asyncTask","ttl","watchLog","asyncQueue","traverseScopesLoop","msg","postDigestQueue","eventName","$applyAsyncExpression","namedListeners","indexOfListener","targetScope","listenerArgs","$$asyncQueue","$$postDigestQueue","$$applyAsyncQueue","uri","isImage","normalizedVal","adjustMatcher","$sceMinErr","escapeForRegexp","adjustMatchers","matchers","adjustedMatchers","SCE_CONTEXTS","resourceUrlWhitelist","resourceUrlBlacklist","matchUrl","isResourceUrlAllowedByPolicy","allowed","generateHolderType","Base","holderType","trustedValue","$$unwrapTrustedValue","trustAs","byType","maybeTrusted","trustedValueHolderBase","htmlSanitizer","CSS","URL","JS","sce","isEnabled","parseAs","enumValue","lName","vendorPrefix","eventSupport","boxee","vendorRegex","bodyStyle","transitions","animations","webkitTransition","webkitAnimation","pushState","hasEvent","divElm","handleRequestFn","tpl","ignoreRequestError","handleError","totalPendingRequests","getTrustedResourceUrl","transformer","httpOptions","testability","findBindings","opt_exactMatch","matches","dataBinding","bindingName","findModels","prefixes","attributeEquals","getLocation","setLocation","whenStable","deferreds","$$timeoutId","urlParsingNode","requestUrl","originUrl","$$CookieReader","safeDecodeURIComponent","lastCookies","lastCookieString","cookieArray","cookie","currentCookieString","suffix","currencyFilter","dateFilter","filterFilter","jsonFilter","limitToFilter","lowercaseFilter","numberFilter","orderByFilter","uppercaseFilter","comparator","predicateFn","matchAgainstAnyProp","expressionType","getTypeForFilter","createPredicateFn","shouldMatchPrimitives","actual","expected","deepCompare","dontMatchWholeObject","actualType","expectedType","expectedVal","matchAnyProperty","actualVal","$locale","formats","NUMBER_FORMATS","currencySymbol","fractionSize","CURRENCY_SYM","PATTERNS","maxFrac","GROUP_SEP","DECIMAL_SEP","numStr","digits","numberOfIntegerDigits","zeros","exponent","ZERO_CHAR","MAX_DIGITS","roundNumber","parsedNumber","minFrac","fractionLen","roundAt","digit","carry","reduceRight","groupSep","decimalSep","isInfinity","isFinite","isZero","formattedText","integerLen","groups","lgSize","gSize","negPre","negSuf","posPre","posSuf","padNumber","num","neg","dateGetter","dateStrGetter","shortForm","timeZoneGetter","zone","paddedZone","getFirstThursdayOfYear","year","dayOfWeekOnFirst","getDay","getThursdayThisWeek","datetime","weekGetter","firstThurs","thisThurs","ampmGetter","getHours","AMPMS","eraGetter","ERAS","longEraGetter","ERANAMES","jsonStringToDate","R_ISO8601_STR","tzHour","tzMin","dateSetter","setUTCFullYear","setFullYear","timeSetter","setUTCHours","setHours","parseFloat","DATETIME_FORMATS","NUMBER_STRING","DATE_FORMATS_SPLIT","DATE_FORMATS","spacing","processPredicates","sortPredicate","reverseOrder","descending","objectValue","getPredicateValue","v1","v2","getComparisonObject","predicateValues","predicates","doComparison","compareValues","ngDirective","nullFormRenameControl","control","$name","controls","$error","$$success","$pending","$pristine","$invalid","$submitted","$$parentForm","nullFormCtrl","$rollbackViewValue","$commitViewValue","$addControl","$$renameControl","newName","oldName","$removeControl","$setValidity","addSetValidityMethod","unset","$setDirty","PRISTINE_CLASS","DIRTY_CLASS","$setPristine","setClass","SUBMITTED_CLASS","$setUntouched","$setSubmitted","stringBasedInputType","$formatters","textInputType","baseInputType","ev","ngTrim","$viewValue","$$hasNativeValidators","$setViewValue","deferListener","origValue","PARTIAL_VALIDATION_TYPES","PARTIAL_VALIDATION_EVENTS","validity","VALIDITY_STATE_PROPERTY","origBadInput","badInput","origTypeMismatch","typeMismatch","$render","weekParser","isoWeek","existingDate","WEEK_REGEXP","week","hours","seconds","milliseconds","addDays","getSeconds","getMilliseconds","createDateParser","mapping","iso","ISO_DATE_REGEXP","yyyy","MM","dd","HH","mm","ss","sss","createDateInputType","parseDate","isValidDate","parseObservedDateValue","badInputChecker","previousDate","$options","$$parserName","$parsers","parsedDate","ngModelMinErr","ngMin","minVal","$validate","ngMax","maxVal","nativeValidation","numberInputType","NUMBER_REGEXP","urlInputType","URL_REGEXP","emailInputType","email","EMAIL_REGEXP","radioInputType","checked","parseConstantExpr","parseFn","checkboxInputType","trueValue","ngTrueValue","falseValue","ngFalseValue","classDirective","arrayDifference","arrayClasses","addClasses","digestClassCounts","removeClasses","classCounts","classesToUpdate","updateClasses","ngClassWatchAction","$index","old$index","setValidity","validationErrorKey","createAndSet","unsetAndCleanup","cachedToggleClass","PENDING_CLASS","toggleValidationCss","isObjectEmpty","combinedState","switchValue","classCache","isValid","VALID_CLASS","INVALID_CLASS","chromeHack","optionElement","REGEX_STRING_REGEXP","manualLowercase","manualUppercase","ngCspElement","ngCspAttribute","noInlineStyle","name_","NODE_TYPE_ATTRIBUTE","dot","codeName","mouseleave","mouseenter","thead","tr","td","optgroup","tbody","tfoot","colgroup","caption","Node","compareDocumentPosition","ready","trigger","fired","removeData","removeAttribute","lowercasedName","getNamedItem","specified","ret","getText","$dv","nodeCount","addHandler","noEventListener","one","onFn","replaceNode","contentDocument","prepend","wrapNode","toggleClass","condition","classCondition","nextElementSibling","getElementsByTagName","extraParameters","dummyEvent","eventFnsCopy","handlerArgs","arg3","$animateMinErr","NG_ANIMATE_CLASSNAME","postDigestElements","updateData","handleCSSClassChanges","addRemoveClassesPostDigest","classesAdded","classesRemoved","pin","domOperation","runner","complete","$$registeredAnimations","classNameFilter","$$classNameFilter","reservedRegex","domInsert","afterElement","afterNode","previousElementSibling","addclass","tempClasses","waitForTick","waitQueue","passed","AnimateRunner","setHost","rafTick","timeoutTick","_doneCallbacks","_tick","_state","INITIAL_STATE","DONE_PENDING_STATE","DONE_COMPLETE_STATE","runners","onProgress","getPromise","resolveHandler","rejectHandler","pause","resume","_resolve","initialOptions","applyAnimationContents","closed","$$prepared","cleanupStyles","Content-Type","[","{","$httpMinErr","PATH_MATCH","https","ftp","locationPrototype","paramValue","Location","OPERATORS","ESCAPE","t","'","\"","lex","readString","readNumber","isIdent","readIdent","isWhitespace","ch2","ch3","op1","op2","op3","throwError","chars","isExpOperator","colStr","peekCh","quote","rawString","hex","rep","ExpressionStatement","Property","program","expressionStatement","expect","filterChain","assignment","ternary","logicalOR","logicalAND","equality","relational","additive","multiplicative","unary","arrayDeclaration","constants","parseArguments","baseExpression","peekToken","kind","e3","e4","peekAhead","true","false","nextId","vars","own","assignable","stage","computing","recurse","return_","generateFunction","fnKey","intoId","watchId","fnString","USE","STRICT","filterPrefix","watchFns","varsPrefix","section","nameId","recursionFn","skipWatchIdCheck","if_","lazyAssign","computedMember","lazyRecurse","plus","not","getHasOwnProperty","nonComputedMember","addEnsureSafeObject","notNull","addEnsureSafeAssignContext","addEnsureSafeMemberName","addEnsureSafeFunction","member","stringEscapeRegex","stringEscapeFn","rhs","lhs","unary+","unary-","unary!","binary+","binary-","binary*","binary/","binary%","binary===","binary!==","binary==","binary!=","binary<","binary>","binary<=","binary>=","binary&&","binary||","ternary?:","astCompiler","yy","MMMM","MMM","M","H","hh","EEEE","EEE","Z","ww","G","GG","GGG","GGGG","xlinkHref","propName","defaultLinkFn","htmlAttr","formDirectiveFactory","isNgForm","getSetter","formElement","nameAttr","ctrls","handleFormSubmission","parentFormCtrl","setter","DATE_REGEXP","DATETIMELOCAL_REGEXP","MONTH_REGEXP","TIME_REGEXP","inputType","datetime-local","month","radio","checkbox","CONSTANT_VALUE_REGEXP","tplAttr","templateElement","ngBindHtmlGetter","ngBindHtmlWatch","getTrustedHtml","$viewChangeListeners","forceAsyncEvents","previousElements","srcExp","previousElement","currentElement","changeCounter","cleanupLastIncludeContent","afterAnimation","thisChangeId","trimValues","UNTOUCHED_CLASS","TOUCHED_CLASS","NgModelController","$modelValue","$$rawModelValue","$asyncValidators","$untouched","$touched","parserValid","parsedNgModel","parsedNgModelAssign","ngModelGet","ngModelSet","pendingDebounce","$$setOptions","getterSetter","invokeModelGetter","invokeModelSetter","$$$p","currentValidationRunId","$setTouched","$$lastCommittedViewValue","prevValid","prevModelValue","allowInvalid","$$runValidators","allValid","$$writeModelToScope","doneCallback","processParseErrors","errorKey","processSyncValidators","syncValidatorsValid","processAsyncValidators","validatorPromises","validationDone","localValidationRunId","$$parseAndValidate","writeToModelIfNeeded","updateOnDefault","$$debounceViewValueCommit","debounceDelay","formatters","modelCtrl","formCtrl","updateOn","DEFAULT_REGEXP","that","ngOptionsMinErr","NG_OPTIONS_REGEXP","parseOptionsExpression","optionsExp","selectElement","Option","selectValue","getOptionValuesKeys","optionValues","optionValuesKeys","itemKey","valueName","selectAs","trackBy","selectAsFn","viewValueFn","trackByFn","getTrackByValueFn","getTrackByValue","getLocals","displayFn","groupByFn","disableWhenFn","valuesFn","getWatchables","watchedArray","optionValuesLength","disableWhen","getOptions","optionItems","selectValueMap","optionItem","getOptionFromViewValue","getViewValueFromOption","ngOptionsPostLink","updateOptionElement","addOrReuseElement","removeExcessElements","skipEmptyAndUnknownOptions","emptyOption_","emptyOption","unknownOption_","unknownOption","updateOptions","previousValue","selectCtrl","readValue","groupMap","providedEmptyOption","groupElement","optGroupTemplate","currentOptionElement","optionTemplate","ngModelCtrl","nextValue","isNotPrimitive","renderEmptyOption","removeEmptyOption","renderUnknownOption","removeUnknownOption","writeValue","selectedValues","selections","selectedOption","registerOption","BRACE","IS_WHEN","updateElementText","lastCount","numberExp","whenExp","whens","whensExpFns","braceReplacement","watchRemover","attributeName","tmpMatch","whenKey","countIsNaN","pluralCat","whenExpFn","NG_REMOVED","ngRepeatMinErr","updateScope","valueIdentifier","keyIdentifier","arrayLength","$first","$last","$middle","$odd","$even","getBlockStart","getBlockEnd","ngRepeatEndComment","aliasAs","trackByExp","trackByExpGetter","trackByIdExpFn","trackByIdArrayFn","trackByIdObjFn","hashFnLocals","lastBlockMap","nextNode","collectionLength","trackById","trackByIdFn","collectionKeys","nextBlockOrder","previousNode","nextBlockMap","blockKey","NG_HIDE_CLASS","NG_HIDE_IN_PROGRESS_CLASS","newStyles","cases","ngSwitchController","watchExpr","selectedTranscludes","selectedElements","previousLeaveAnimations","selectedScopes","spliceFactory","selectedTransclude","caseElement","selectedScope","noopNgModelController","SelectController","optionsMap","unknownVal","hasOption","addOption","removeOption","optionScope","optionAttrs","interpolateValueFn","interpolateTextFn","selectPreLink","lastView","lastViewRef","selectPostLink","selectCtrlName","patternExp","intVal","getDecimals","getVF","opt_precision","pow","PLURAL_CATEGORY","ZERO","ONE","TWO","FEW","MANY","OTHER","DAY","FIRSTDAYOFWEEK","MONTH","SHORTDAY","SHORTMONTH","STANDALONEMONTH","WEEKENDRANGE","fullDate","longDate","medium","mediumDate","mediumTime","short","shortDate","shortTime","minInt","localeID","vf","conf","handleChar","getConfig","closeBrackets","handleBackspace","pairs","around","charsAround","handleEnter","explode","contractSelection","inverted","triples","identical","opening","curType","enteringString","isClosingBracket","stringStartsAfter","type1","findMatchingBracket","matching","scanForBracket","forward","maxScanLen","maxScanLineLength","maxScanLines","bracketRegex","matchBrackets","autoclear","maxHighlightLen","maxHighlightLineLength","marks","ie_lt8","doMatchBrackets","currentlyHighlighted","(",")","]","}","parseError","loc","first_line","first_column","last_line","last_column","showTooltip","tt","opacity","hideTooltip","showTooltipFor","hide","tooltip","LintState","hasGutter","marked","onMouseOver","waitingFor","_cm","getAnnotations","clearMarks","lint","GUTTER_ID","makeMarker","labels","severity","tooltips","getMaxSeverity","groupByLine","annotations","ann","annotationTooltip","tip","lintAsync","passOptions","updateLinting","startLinting","issues","annotationsNotSorted","anns","maxSeverity","tipLabel","formatAnnotation","__annotation","onUpdateLinting","onChange","popupTooltips","lintOnChange","hasLintGutter","clearActiveLines","activeLines","WRAP_CLASS","BACK_CLASS","GUTT_CLASS","sameArray","updateActiveLines","nonEmpty","selectionChange","expressionAllowed","lastType","parserConfig","readRegexp","escaped","inSet","tp","cont","tokenBase","tokenize","tokenString","tokenComment","isOperatorChar","tokenQuasi","lexical","wordRE","known","keywords","propertyIsEnumerable","jsonldMode","isJsonldKeyword","maybeEnd","findFatArrow","fatArrowAt","isTS","sawSomething","bracket","brackets","JSLexical","inScope","varname","localVars","cx","parseJS","cc","combinator","jsonMode","statement","pass","inList","globalVars","pushcontext","defaultVars","popcontext","pushlex","poplex","wanted","vardef","parenExpr","maybeelse","functiondef","forspec","maybelabel","funarg","afterExport","afterImport","typeexpr","expressionInner","expressionNoComma","noComma","arrowBodyNoComma","arrowBody","commasep","maybeop","maybeoperatorNoComma","maybeoperatorComma","atomicTypes","classExpression","maybeexpressionNoComma","maybeexpression","arrayLiteral","contCommasep","objprop","quasi","maybeTarget","continueQuasi","targetNoComma","afterprop","sep","maybetype","afterType","typeprop","typearg","maybeReturnType","maybeAssign","vardefCont","proppattern","forspec1","forspec2","formaybeinof","forspec3","classNameAfter","classBody","classfield","maybeFrom","exportField","importSpec","maybeMoreImports","maybeAs","isContinuedStatement","textAfter","statementIndent","jsonld","typescript","wordCharacters","kw","A","B","C","atom","jsKeywords","if","while","with","else","do","try","return","break","continue","new","delete","throw","debugger","var","const","let","function","for","switch","case","in","typeof","instanceof","class","super","yield","export","import","extends","await","tsKeywords","interface","implements","enum","public","private","protected","boolean","variable","jsonld-keyword","basecolumn","firstChar","doubleIndentSwitch","blockCommentStart","blockCommentEnd","lineComment","fold","skipExpression","__WEBPACK_AMD_DEFINE_RESULT__","setImmediate","lib$es6$promise$utils$$objectOrFunction","lib$es6$promise$utils$$isFunction","lib$es6$promise$utils$$isMaybeThenable","lib$es6$promise$asap$$setScheduler","scheduleFn","lib$es6$promise$asap$$customSchedulerFn","lib$es6$promise$asap$$setAsap","asapFn","lib$es6$promise$asap$$asap","lib$es6$promise$asap$$useNextTick","lib$es6$promise$asap$$flush","lib$es6$promise$asap$$useVertxTimer","lib$es6$promise$asap$$vertxNext","lib$es6$promise$asap$$useMutationObserver","iterations","lib$es6$promise$asap$$BrowserMutationObserver","observe","characterData","lib$es6$promise$asap$$useMessageChannel","channel","MessageChannel","port1","onmessage","port2","postMessage","lib$es6$promise$asap$$useSetTimeout","lib$es6$promise$asap$$len","lib$es6$promise$asap$$queue","lib$es6$promise$asap$$attemptVertex","vertx","runOnLoop","runOnContext","lib$es6$promise$$internal$$noop","lib$es6$promise$$internal$$selfFullfillment","lib$es6$promise$$internal$$cannotReturnOwn","lib$es6$promise$$internal$$getThen","lib$es6$promise$$internal$$GET_THEN_ERROR","lib$es6$promise$$internal$$tryThen","fulfillmentHandler","rejectionHandler","lib$es6$promise$$internal$$handleForeignThenable","thenable","sealed","lib$es6$promise$$internal$$resolve","lib$es6$promise$$internal$$fulfill","lib$es6$promise$$internal$$reject","lib$es6$promise$$internal$$handleOwnThenable","lib$es6$promise$$internal$$FULFILLED","_result","lib$es6$promise$$internal$$REJECTED","lib$es6$promise$$internal$$subscribe","lib$es6$promise$$internal$$handleMaybeThenable","maybeThenable","lib$es6$promise$$internal$$publishRejection","_onerror","lib$es6$promise$$internal$$publish","lib$es6$promise$$internal$$PENDING","_subscribers","onFulfillment","onRejection","subscribers","settled","lib$es6$promise$$internal$$invokeCallback","lib$es6$promise$$internal$$ErrorObject","lib$es6$promise$$internal$$tryCatch","lib$es6$promise$$internal$$TRY_CATCH_ERROR","succeeded","failed","hasCallback","lib$es6$promise$$internal$$initializePromise","lib$es6$promise$enumerator$$Enumerator","enumerator","_instanceConstructor","_validateInput","_input","_remaining","_enumerate","_validationError","lib$es6$promise$promise$all$$all","lib$es6$promise$enumerator$$default","lib$es6$promise$promise$race$$race","lib$es6$promise$utils$$isArray","lib$es6$promise$promise$resolve$$resolve","lib$es6$promise$promise$reject$$reject","lib$es6$promise$promise$$needsResolver","lib$es6$promise$promise$$needsNew","lib$es6$promise$promise$$Promise","_id","lib$es6$promise$promise$$counter","lib$es6$promise$polyfill$$polyfill","local","P","cast","lib$es6$promise$promise$$default","lib$es6$promise$utils$$_isArray","lib$es6$promise$asap$$scheduleFlush","lib$es6$promise$asap$$browserWindow","lib$es6$promise$asap$$browserGlobal","MutationObserver","WebKitMutationObserver","lib$es6$promise$asap$$isNode","lib$es6$promise$asap$$isWorker","Uint8ClampedArray","importScripts","_eachEntry","_settledAt","_willSettleAt","lib$es6$promise$promise$all$$default","lib$es6$promise$promise$race$$default","lib$es6$promise$promise$resolve$$default","lib$es6$promise$promise$reject$$default","race","_setScheduler","_setAsap","_asap","lib$es6$promise$polyfill$$default","lib$es6$promise$umd$$ES6Promise","ENV","ctx","preferred","transSupport","useFilter","_checkTransition","vendors","Moz","O","Humane","baseCls","waitForMove","timeoutAfterMove","_setupEl","removeEvent","currentMsg","transEvent","_afterAnimation","_run","_afterTimeout","removeEventsSet","_animating","currentTimer","_showMsg","_setOpacity","Opacity","_hideMsg","spawn","trace","symbols_","JSONString","STRING","JSONNumber","NUMBER","JSONNullLiteral","NULL","JSONBooleanLiteral","TRUE","FALSE","JSONText","JSONValue","EOF","JSONObject","JSONArray","JSONMemberList","JSONMember",":",",","JSONElementList","$accept","$end","terminals_","2","4","6","10","11","14","21","22","23","24","productions_","performAction","table","5","7","12","15","1","25","defaultActions","setInput","yylloc","q","z","showPosition","yylineno","yyleng","yytext","_$","_more","_less","matched","conditionStack","unput","more","less","pastInput","upcomingInput","_currentRules","flex","popState","conditions","topState","INITIAL","inclusive","main","readFileSync","charset","__WEBPACK_AMD_DEFINE_FACTORY__","clamp","toBarPerc","barPositionCSS","speed","ease","barCSS","Settings","positionUsing","transform","margin-left","classList","oldList","newList","removeElement","NProgress","settings","minimum","easing","trickle","trickleRate","trickleSpeed","showSpinner","barSelector","spinnerSelector","configure","started","isStarted","getPositioningCSS","work","inc","$promise","always","fromStart","isRendered","spinner","perc","getVendorProp","vendorName","cssPrefixes","capName","getStyleProp","cssProps","applyCss","__WEBPACK_AMD_DEFINE_ARRAY__","CsvToJson","_config","dynamicTyping","worker","WORKERS_SUPPORTED","newWorker","userStep","userChunk","userComplete","userError","workerId","streamer","download","NetworkStreamer","StringStreamer","readable","ReadableStreamStreamer","FileStreamer","JsonToCsv","unpackConfig","delimiter","BAD_DELIMITERS","_delimiter","quotes","_quotes","newline","_newline","quoteChar","_quoteChar","_writeHeader","hasHeader","dataKeyedByField","safe","row","maxCol","colIdx","quoteCharRegex","needsQuotes","hasAny","substrings","meta","ChunkStreamer","replaceConfig","configCopy","_handle","ParserHandle","_paused","_finished","_baseIndex","_partialLine","_rowCount","_start","_nextChunk","isFirstChunk","_completeResults","errors","parseChunk","beforeFirstChunk","modifiedChunk","aggregate","paused","aborted","finishedIncludingPreview","preview","IS_PAPA_WORKER","WORKER_ID","finished","_sendError","getFileSize","contentRange","getResponseHeader","RemoteChunkSize","IS_WORKER","_readChunk","_chunkLoaded","bindFunction","_chunkError","errorText","LocalChunkSize","usingAsyncReader","webkitSlice","mozSlice","FileReaderSync","encoding","parseOnData","_streamData","_streamEnd","_streamError","_streamCleanUp","processResults","_results","_delimiterError","addError","DefaultDelimiter","skipEmptyLines","needsHeaderRow","fillHeaderFields","applyHeaderAndDynamicTyping","parseDynamic","tryParseFloat","guessDelimiter","bestDelim","bestDelta","fieldCountPrevRow","delimChoices","RECORD_SEP","UNIT_SEP","delim","avgFieldCount","fieldCount","successful","bestDelimiter","guessLineEndings","nAppearsFirst","numWithN","FLOAT","_parser","_stepCounter","_aborted","baseIndex","ignoreLastRow","delimGuess","getCharIndex","comments","fastMode","pushRow","lastCursor","returnable","inputLen","stepIsFunction","doStep","saveRow","newCursor","nextNewline","stopped","linebreak","truncated","delimLen","newlineLen","commentsLen","rows","nextDelim","quoteSearch","getScriptPath","scripts","LOADED_SYNC","SCRIPT_PATH","workerUrl","AUTO_SCRIPT_PATH","Worker","mainThreadReceivedMessage","workerIdCounter","workers","completeWorker","notImplemented","terminate","workerThreadReceivedMessage","cpy","BYTE_ORDER_MARK","parseNextFile","inputElem","fileComplete","instanceConfig","userCompleteFunc","each","defaultRequestParams","isSafe","configuration","isAbsoluteUrl","isNull","setSelfLinkAbsoluteUrl","baseUrl","extraFields","setExtraFields","defaultHttpFields","setDefaultHttpFields","withHttpValues","encodeIds","setEncodeIds","setDefaultRequestParams","requestParams","defaultHeaders","setDefaultHeaders","methodOverriders","setMethodOverriders","isOverridenMethod","jsonp","setJsonp","urlCreator","setUrlCreator","urlCreatorFactory","restangularFields","parentResource","restangularCollection","cannonicalId","etag","selfLink","getRestangularUrl","getRequestedUrl","putElement","addRestangularMethod","getParentList","httpConfig","reqParams","several","customGET","customGETLIST","doPUT","doPOST","doDELETE","doGET","doGETLIST","fromServer","withConfig","withHttpConfig","singleOne","plain","restangularized","setRestangularFields","isRestangularized","setFieldToElem","getFieldFromElem","setIdToElem","getIdFromElem","isValidId","setUrlToElem","getUrlFromElem","useCannonicalId","setUseCannonicalId","getCannonicalIdFromElem","responseInterceptors","defaultResponseInterceptor","responseExtractor","addResponseInterceptor","errorInterceptors","addErrorInterceptor","setResponseInterceptor","setResponseExtractor","setErrorInterceptor","requestInterceptors","defaultInterceptor","fullRequestInterceptor","addRequestInterceptor","setRequestInterceptor","addFullRequestInterceptor","setFullRequestInterceptor","onBeforeElemRestangularized","setOnBeforeElemRestangularized","setRestangularizePromiseInterceptor","restangularizePromiseInterceptor","onElemRestangularized","setOnElemRestangularized","shouldSaveParent","setParentless","setRequestSuffix","transformers","addElementTransformer","extendCollection","extendModel","transformElem","transformLocalElements","setTransformOnlyServerElements","fullResponse","setConfig","parentsArray","normalizeUrl","fetchUrl","fetchRequestedUrl","L","union","$object","K","E","F","D","I","J","u","every","X-HTTP-Method-Override","N","stripRestangular","restangularizeElement","restangularizeCollection","task","tasksByHandle","nextHandle","registerImmediate","clearImmediate","runIfPresent","currentlyRunningATask","installNextTickImplementation","canUsePostMessage","postMessageIsAsynchronous","oldOnMessage","installPostMessageImplementation","messagePrefix","onGlobalMessage","installMessageChannelImplementation","installReadyStateChangeImplementation","onreadystatechange","installSetTimeoutImplementation","attachTo","webpackPolyfill","deprecate","paths","Timeout","clearFn","_clearFn","unref","enroll","msecs","_idleTimeoutId","_idleTimeout","unenroll","_unrefActive","_onTimeout"],"mappings":"CAAS,SAAUA,GCInB,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAE,OAGA,IAAAC,GAAAF,EAAAD,IACAE,WACAE,GAAAJ,EACAK,QAAA,EAUA,OANAP,GAAAE,GAAAM,KAAAH,EAAAD,QAAAC,IAAAD,QAAAH,GAGAI,EAAAE,QAAA,EAGAF,EAAAD,QAvBA,GAAAD,KAqCA,OATAF,GAAAQ,EAAAT,EAGAC,EAAAS,EAAAP,EAGAF,EAAAU,EAAA,yBAGAV,EAAA,KDMM,SAASI,EAAQD,EAASH,GAE/BA,EAAoB,IACpBI,EAAOD,QAAUH,EAAoB,MAKhC,SAASI,EAAQD,EAASH,GAE/B,YAQA,SAASW,GAAuBC,GAAO,MAAOA,IAAOA,EAAIC,WAAaD,GAAQE,QAAWF,GAEzF,QAASG,GAAgBC,EAAUC,GAAe,KAAMD,YAAoBC,IAAgB,KAAM,IAAIC,WAAU,qCARhHC,OAAOC,eAAejB,EAAS,cAC3BkB,OAAO,GAGX,IAAIC,GAAe,WAAe,QAASC,GAAiBC,EAAQC,GAAS,IAAK,GAAIC,GAAI,EAAGA,EAAID,EAAME,OAAQD,IAAK,CAAE,GAAIE,GAAaH,EAAMC,EAAIE,GAAWC,WAAaD,EAAWC,aAAc,EAAOD,EAAWE,cAAe,EAAU,SAAWF,KAAYA,EAAWG,UAAW,GAAMZ,OAAOC,eAAeI,EAAQI,EAAWI,IAAKJ,IAAiB,MAAO,UAAUX,EAAagB,E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QAqkJ,EAAArlM,UAAAwlM,MAAAH,EAAArlM,UAAAknF,IAAA,aACAm+G,EAAArlM,UAAAghD,MAAA,WACA3gD,KAAAklM,SAAAnnM,KAAA+vB,OAAA9tB,KAAA+mL,MAIAppL,EAAAynM,OAAA,SAAA1sH,EAAA2sH,GACA5oJ,aAAAi8B,EAAA4sH,gBACA5sH,EAAA6sH,aAAAF,GAGA1nM,EAAA6nM,SAAA,SAAA9sH,GACAj8B,aAAAi8B,EAAA4sH,gBACA5sH,EAAA6sH,cAAA,GAGA5nM,EAAA8nM,aAAA9nM,EAAA0vE,OAAA,SAAAqL,GACAj8B,aAAAi8B,EAAA4sH,eAEA,IAAAD,GAAA3sH,EAAA6sH,YACAF,IAAA,IACA3sH,EAAA4sH,eAAAt7K,WAAA,WACA0uD,EAAAgtH,YACAhtH,EAAAgtH,cACKL,KAKL7nM,EAAA,KACAG,EAAA4jL,0BACA5jL,EAAAmmM,+BxLuj1DM,SAASlmM,EAAQD,GyL3m1DvBC,EAAAD,QAAA,WAA6B,SAAAwE,OAAA,oCzLkn1DvB,SAASvE,EAAQD","file":"build/ng-admin-only.min.js","sourcesContent":["/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"http://localhost:8000/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(50);\n\tmodule.exports = __webpack_require__(156);\n\n\n/***/ },\n/* 1 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar _UtilsStringUtils = __webpack_require__(21);\n\t\n\tvar _UtilsStringUtils2 = _interopRequireDefault(_UtilsStringUtils);\n\t\n\tvar Field = (function () {\n\t function Field(name) {\n\t _classCallCheck(this, Field);\n\t\n\t this._name = name || Math.random().toString(36).substring(7);\n\t this._detailLink = name === 'id';\n\t this._type = \"string\";\n\t this._order = null;\n\t this._label = null;\n\t this._maps = [];\n\t this._transforms = [];\n\t this._attributes = {};\n\t this._cssClasses = null;\n\t this._validation = { required: false, minlength: 0, maxlength: 99999 };\n\t this._defaultValue = null;\n\t this._editable = true;\n\t this._sortable = true;\n\t this._detailLinkRoute = 'edit';\n\t this._pinned = false;\n\t this._flattenable = true;\n\t this.dashboard = true;\n\t this.list = true;\n\t this._template = function () {\n\t return '';\n\t };\n\t this._templateIncludesLabel = false;\n\t }\n\t\n\t _createClass(Field, [{\n\t key: \"label\",\n\t value: function label() {\n\t if (arguments.length) {\n\t this._label = arguments[0];\n\t return this;\n\t }\n\t\n\t if (this._label === null) {\n\t return _UtilsStringUtils2[\"default\"].camelCase(this._name);\n\t }\n\t\n\t return this._label;\n\t }\n\t }, {\n\t key: \"type\",\n\t value: function type() {\n\t return this._type;\n\t }\n\t }, {\n\t key: \"name\",\n\t value: function name() {\n\t if (arguments.length) {\n\t this._name = arguments[0];\n\t return this;\n\t }\n\t\n\t return this._name;\n\t }\n\t }, {\n\t key: \"order\",\n\t value: function order() {\n\t if (arguments.length) {\n\t if (arguments[1] !== true) {\n\t console.warn('Setting order with Field.order is deprecated, order directly in fields array');\n\t }\n\t this._order = arguments[0];\n\t return this;\n\t }\n\t\n\t return this._order;\n\t }\n\t }, {\n\t key: \"isDetailLink\",\n\t value: function isDetailLink(detailLink) {\n\t if (arguments.length) {\n\t this._detailLink = arguments[0];\n\t return this;\n\t }\n\t\n\t if (this._detailLink === null) {\n\t return this._name === 'id';\n\t }\n\t\n\t return this._detailLink;\n\t }\n\t }, {\n\t key: \"map\",\n\t\n\t /**\n\t * Add a function to be applied to the response object to turn it into an entry\n\t */\n\t value: function map(fn) {\n\t if (!fn) return this._maps;\n\t if (typeof fn !== \"function\") {\n\t var type = typeof fn;\n\t throw new Error(\"Map argument should be a function, \" + type + \" given.\");\n\t }\n\t\n\t this._maps.push(fn);\n\t\n\t return this;\n\t }\n\t }, {\n\t key: \"hasMaps\",\n\t value: function hasMaps() {\n\t return !!this._maps.length;\n\t }\n\t }, {\n\t key: \"getMappedValue\",\n\t value: function getMappedValue(value, entry) {\n\t for (var i in this._maps) {\n\t value = this._maps[i](value, entry);\n\t }\n\t\n\t return value;\n\t }\n\t\n\t /**\n\t * Add a function to be applied to the entry to turn it into a response object\n\t */\n\t }, {\n\t key: \"transform\",\n\t value: function transform(fn) {\n\t if (!fn) return this._transforms;\n\t if (typeof fn !== \"function\") {\n\t var type = typeof fn;\n\t throw new Error(\"transform argument should be a function, \" + type + \" given.\");\n\t }\n\t\n\t this._transforms.push(fn);\n\t\n\t return this;\n\t }\n\t }, {\n\t key: \"hasTranforms\",\n\t value: function hasTranforms() {\n\t return !!this._transforms.length;\n\t }\n\t }, {\n\t key: \"getTransformedValue\",\n\t value: function getTransformedValue(value, entry) {\n\t for (var i in this._transforms) {\n\t value = this._transforms[i](value, entry);\n\t }\n\t\n\t return value;\n\t }\n\t }, {\n\t key: \"attributes\",\n\t value: function attributes(_attributes) {\n\t if (!arguments.length) {\n\t return this._attributes;\n\t }\n\t\n\t this._attributes = _attributes;\n\t\n\t return this;\n\t }\n\t }, {\n\t key: \"cssClasses\",\n\t value: function cssClasses(classes) {\n\t if (!arguments.length) return this._cssClasses;\n\t this._cssClasses = classes;\n\t return this;\n\t }\n\t }, {\n\t key: \"getCssClasses\",\n\t value: function getCssClasses(entry) {\n\t if (!this._cssClasses) {\n\t return '';\n\t }\n\t\n\t if (this._cssClasses.constructor === Array) {\n\t return this._cssClasses.join(' ');\n\t }\n\t\n\t if (typeof this._cssClasses === 'function') {\n\t return this._cssClasses(entry);\n\t }\n\t\n\t return this._cssClasses;\n\t }\n\t }, {\n\t key: \"validation\",\n\t value: function validation(_validation) {\n\t if (!arguments.length) {\n\t return this._validation;\n\t }\n\t\n\t for (var property in _validation) {\n\t if (!_validation.hasOwnProperty(property)) continue;\n\t if (_validation[property] === null) {\n\t delete this._validation[property];\n\t } else {\n\t this._validation[property] = _validation[property];\n\t }\n\t }\n\t\n\t return this;\n\t }\n\t }, {\n\t key: \"defaultValue\",\n\t value: function defaultValue(_defaultValue) {\n\t if (!arguments.length) return this._defaultValue;\n\t this._defaultValue = _defaultValue;\n\t return this;\n\t }\n\t }, {\n\t key: \"editable\",\n\t value: function editable(_editable) {\n\t if (!arguments.length) return this._editable;\n\t this._editable = _editable;\n\t return this;\n\t }\n\t }, {\n\t key: \"sortable\",\n\t value: function sortable(_sortable) {\n\t if (!arguments.length) return this._sortable;\n\t this._sortable = _sortable;\n\t return this;\n\t }\n\t }, {\n\t key: \"detailLinkRoute\",\n\t value: function detailLinkRoute(route) {\n\t if (!arguments.length) return this._detailLinkRoute;\n\t this._detailLinkRoute = route;\n\t return this;\n\t }\n\t }, {\n\t key: \"pinned\",\n\t value: function pinned(_pinned) {\n\t if (!arguments.length) return this._pinned;\n\t this._pinned = _pinned;\n\t return this;\n\t }\n\t }, {\n\t key: \"flattenable\",\n\t value: function flattenable() {\n\t return this._flattenable;\n\t }\n\t }, {\n\t key: \"getTemplateValue\",\n\t value: function getTemplateValue(data) {\n\t if (typeof this._template === 'function') {\n\t return this._template(data);\n\t }\n\t\n\t return this._template;\n\t }\n\t }, {\n\t key: \"getTemplateValueWithLabel\",\n\t value: function getTemplateValueWithLabel(data) {\n\t return this._templateIncludesLabel ? this.getTemplateValue(data) : false;\n\t }\n\t }, {\n\t key: \"templateIncludesLabel\",\n\t value: function templateIncludesLabel(_templateIncludesLabel) {\n\t if (!arguments.length) return this._templateIncludesLabel;\n\t this._templateIncludesLabel = _templateIncludesLabel;\n\t return this;\n\t }\n\t }, {\n\t key: \"template\",\n\t value: function template(_template) {\n\t var templateIncludesLabel = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1];\n\t\n\t if (!arguments.length) return this._template;\n\t this._template = _template;\n\t this._templateIncludesLabel = templateIncludesLabel;\n\t return this;\n\t }\n\t }, {\n\t key: \"detailLink\",\n\t set: function set(isDetailLink) {\n\t return this._detailLink = isDetailLink;\n\t }\n\t }]);\n\t\n\t return Field;\n\t})();\n\t\n\texports[\"default\"] = Field;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar _UtilsObjectProperties = __webpack_require__(19);\n\t\n\tvar Entry = (function () {\n\t function Entry(entityName, values, identifierValue) {\n\t _classCallCheck(this, Entry);\n\t\n\t this._entityName = entityName;\n\t this.values = values || {};\n\t this._identifierValue = identifierValue;\n\t this.listValues = {};\n\t }\n\t\n\t _createClass(Entry, [{\n\t key: 'transformToRest',\n\t\n\t /**\n\t * Transform an Entry to a JS object for the REST API Request\n\t *\n\t * @return {Object}\n\t */\n\t value: function transformToRest(fields) {\n\t\n\t var restEntry = (0, _UtilsObjectProperties.clone)(this.values);\n\t fields.forEach(function (field) {\n\t var fieldName = field.name();\n\t if (fieldName in restEntry) {\n\t restEntry[fieldName] = field.getTransformedValue(restEntry[fieldName], restEntry);\n\t }\n\t });\n\t\n\t return (0, _UtilsObjectProperties.cloneAndNest)(restEntry);\n\t }\n\t }, {\n\t key: 'entityName',\n\t get: function get() {\n\t return this._entityName;\n\t }\n\t }, {\n\t key: 'identifierValue',\n\t get: function get() {\n\t return this._identifierValue;\n\t }\n\t }], [{\n\t key: 'createForFields',\n\t value: function createForFields(fields, entityName) {\n\t var entry = new Entry(entityName);\n\t fields.forEach(function (field) {\n\t entry.values[field.name()] = field.defaultValue();\n\t });\n\t return entry;\n\t }\n\t\n\t /**\n\t * Map a JS object from the REST API Response to an Entry\n\t *\n\t * @return {Entry}\n\t */\n\t }, {\n\t key: 'createFromRest',\n\t value: function createFromRest(restEntry) {\n\t var fields = arguments.length <= 1 || arguments[1] === undefined ? [] : arguments[1];\n\t var entityName = arguments.length <= 2 || arguments[2] === undefined ? '' : arguments[2];\n\t var identifierName = arguments.length <= 3 || arguments[3] === undefined ? 'id' : arguments[3];\n\t\n\t if (!restEntry || Object.keys(restEntry).length == 0) {\n\t return Entry.createForFields(fields, entityName);\n\t }\n\t var excludedFields = fields.filter(function (f) {\n\t return !f.flattenable();\n\t }).map(function (f) {\n\t return f.name();\n\t });\n\t\n\t var values = (0, _UtilsObjectProperties.cloneAndFlatten)(restEntry, excludedFields);\n\t\n\t fields.forEach(function (field) {\n\t var fieldName = field.name();\n\t values[fieldName] = field.getMappedValue(values[fieldName], values);\n\t });\n\t\n\t return new Entry(entityName, values, values[identifierName]);\n\t }\n\t\n\t /**\n\t * Map an array of JS objects from the REST API Response to an array of Entries\n\t *\n\t * @return {Array[Entry]}\n\t */\n\t }, {\n\t key: 'createArrayFromRest',\n\t value: function createArrayFromRest(restEntries, fields, entityName, identifierName) {\n\t return restEntries.map(function (e) {\n\t return Entry.createFromRest(e, fields, entityName, identifierName);\n\t });\n\t }\n\t }]);\n\t\n\t return Entry;\n\t})();\n\t\n\texports['default'] = Entry;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar _Entry = __webpack_require__(2);\n\t\n\tvar _Entry2 = _interopRequireDefault(_Entry);\n\t\n\tvar _UtilsReferenceExtractor = __webpack_require__(10);\n\t\n\tvar _UtilsReferenceExtractor2 = _interopRequireDefault(_UtilsReferenceExtractor);\n\t\n\tvar _UtilsObjectProperties = __webpack_require__(19);\n\t\n\tvar View = (function () {\n\t function View(name) {\n\t _classCallCheck(this, View);\n\t\n\t this.entity = null;\n\t this._actions = null;\n\t this._title = false;\n\t this._description = '';\n\t this._template = null;\n\t\n\t this._enabled = false;\n\t this._fields = [];\n\t this._type = null;\n\t this._name = name;\n\t this._order = 0;\n\t this._errorMessage = null;\n\t this._url = null;\n\t this._prepare = null;\n\t }\n\t\n\t _createClass(View, [{\n\t key: 'title',\n\t value: function title(_title) {\n\t if (!arguments.length) return this._title;\n\t this._title = _title;\n\t return this;\n\t }\n\t }, {\n\t key: 'description',\n\t value: function description() {\n\t if (arguments.length) {\n\t this._description = arguments[0];\n\t return this;\n\t }\n\t\n\t return this._description;\n\t }\n\t }, {\n\t key: 'name',\n\t value: function name(_name) {\n\t if (!arguments.length) {\n\t return this._name || this.entity.name() + '_' + this._type;\n\t }\n\t\n\t this._name = _name;\n\t return this;\n\t }\n\t }, {\n\t key: 'disable',\n\t value: function disable() {\n\t this._enabled = false;\n\t\n\t return this;\n\t }\n\t }, {\n\t key: 'enable',\n\t value: function enable() {\n\t this._enabled = true;\n\t\n\t return this;\n\t }\n\t\n\t /**\n\t * @deprecated Use getter \"enabled\" instead\n\t */\n\t }, {\n\t key: 'isEnabled',\n\t value: function isEnabled() {\n\t return this.enabled;\n\t }\n\t\n\t /**\n\t * @deprecated Use getter \"entity\" instead\n\t */\n\t }, {\n\t key: 'getEntity',\n\t value: function getEntity() {\n\t return this.entity;\n\t }\n\t\n\t /**\n\t * @deprecated Specify entity at view creation or use \"entity\" setter instead\n\t */\n\t }, {\n\t key: 'setEntity',\n\t value: function setEntity(entity) {\n\t this.entity = entity;\n\t if (!this._name) {\n\t this._name = entity.name() + '_' + this._type;\n\t }\n\t\n\t return this;\n\t }\n\t\n\t /*\n\t * Supports various syntax\n\t * fields([ Field1, Field2 ])\n\t * fields(Field1, Field2)\n\t * fields([Field1, {Field2, Field3}])\n\t * fields(Field1, {Field2, Field3})\n\t * fields({Field2, Field3})\n\t */\n\t }, {\n\t key: 'fields',\n\t value: function fields() {\n\t if (!arguments.length) return this._fields;\n\t\n\t [].slice.call(arguments).map(function (argument) {\n\t var _this = this;\n\t\n\t View.flatten(argument).map(function (arg) {\n\t return _this.addField(arg);\n\t });\n\t }, this);\n\t\n\t return this;\n\t }\n\t }, {\n\t key: 'hasFields',\n\t value: function hasFields() {\n\t return this.fields.length > 0;\n\t }\n\t }, {\n\t key: 'removeFields',\n\t value: function removeFields() {\n\t this._fields = [];\n\t return this;\n\t }\n\t }, {\n\t key: 'getFields',\n\t value: function getFields() {\n\t return this._fields;\n\t }\n\t }, {\n\t key: 'getField',\n\t value: function getField(fieldName) {\n\t return this._fields.filter(function (f) {\n\t return f.name() === fieldName;\n\t })[0];\n\t }\n\t }, {\n\t key: 'getFieldsOfType',\n\t value: function getFieldsOfType(type) {\n\t return this._fields.filter(function (f) {\n\t return f.type() === type;\n\t });\n\t }\n\t }, {\n\t key: 'addField',\n\t value: function addField(field) {\n\t if (field.order() === null) {\n\t field.order(this._fields.length, true);\n\t }\n\t this._fields.push(field);\n\t this._fields = this._fields.sort(function (a, b) {\n\t return a.order() - b.order();\n\t });\n\t\n\t return this;\n\t }\n\t }, {\n\t key: 'order',\n\t value: function order(_order) {\n\t if (!arguments.length) return this._order;\n\t this._order = _order;\n\t return this;\n\t }\n\t }, {\n\t key: 'getReferences',\n\t value: function getReferences(withRemoteComplete) {\n\t return _UtilsReferenceExtractor2['default'].getReferences(this._fields, withRemoteComplete);\n\t }\n\t }, {\n\t key: 'getNonOptimizedReferences',\n\t value: function getNonOptimizedReferences(withRemoteComplete) {\n\t return _UtilsReferenceExtractor2['default'].getNonOptimizedReferences(this._fields, withRemoteComplete);\n\t }\n\t }, {\n\t key: 'getOptimizedReferences',\n\t value: function getOptimizedReferences(withRemoteComplete) {\n\t return _UtilsReferenceExtractor2['default'].getOptimizedReferences(this._fields, withRemoteComplete);\n\t }\n\t }, {\n\t key: 'getReferencedLists',\n\t value: function getReferencedLists() {\n\t return _UtilsReferenceExtractor2['default'].getReferencedLists(this._fields);\n\t }\n\t }, {\n\t key: 'template',\n\t value: function template(_template) {\n\t if (!arguments.length) {\n\t return this._template;\n\t }\n\t\n\t this._template = _template;\n\t\n\t return this;\n\t }\n\t }, {\n\t key: 'identifier',\n\t value: function identifier() {\n\t return this.entity.identifier();\n\t }\n\t }, {\n\t key: 'actions',\n\t value: function actions(_actions) {\n\t if (!arguments.length) return this._actions;\n\t this._actions = _actions;\n\t return this;\n\t }\n\t }, {\n\t key: 'getErrorMessage',\n\t value: function getErrorMessage(response) {\n\t if (typeof this._errorMessage === 'function') {\n\t return this._errorMessage(response);\n\t }\n\t\n\t return this._errorMessage;\n\t }\n\t }, {\n\t key: 'errorMessage',\n\t value: function errorMessage(_errorMessage) {\n\t if (!arguments.length) return this._errorMessage;\n\t this._errorMessage = _errorMessage;\n\t return this;\n\t }\n\t }, {\n\t key: 'url',\n\t value: function url(_url) {\n\t if (!arguments.length) return this._url;\n\t this._url = _url;\n\t return this;\n\t }\n\t }, {\n\t key: 'getUrl',\n\t value: function getUrl(identifierValue) {\n\t if (typeof this._url === 'function') {\n\t return this._url(identifierValue);\n\t }\n\t\n\t return this._url;\n\t }\n\t }, {\n\t key: 'validate',\n\t value: function validate(entry) {\n\t this._fields.map(function (field) {\n\t var validation = field.validation();\n\t\n\t if (typeof validation.validator === 'function') {\n\t validation.validator(entry.values[field.name()], entry.values);\n\t }\n\t });\n\t }\n\t\n\t /**\n\t * Map a JS object from the REST API Response to an Entry\n\t */\n\t }, {\n\t key: 'mapEntry',\n\t value: function mapEntry(restEntry) {\n\t return _Entry2['default'].createFromRest(restEntry, this._fields, this.entity.name(), this.entity.identifier().name());\n\t }\n\t }, {\n\t key: 'mapEntries',\n\t value: function mapEntries(restEntries) {\n\t return _Entry2['default'].createArrayFromRest(restEntries, this._fields, this.entity.name(), this.entity.identifier().name());\n\t }\n\t\n\t /**\n\t * Transform an Entry to a JS object for the REST API Request\n\t */\n\t }, {\n\t key: 'transformEntry',\n\t value: function transformEntry(entry) {\n\t return entry.transformToRest(this._fields);\n\t }\n\t\n\t /**\n\t * Add a function to be executed before the view renders\n\t *\n\t * This is the ideal place to prefetch related entities and manipulate\n\t * the dataStore.\n\t *\n\t * The syntax depends on the framework calling the function.\n\t *\n\t * With ng-admin, the function can be an angular injectable, listing\n\t * required dependencies in an array. Among other, the function can receive\n\t * the following services:\n\t * - query: the query object (an object representation of the main request\n\t * query string)\n\t * - datastore: where the Entries are stored. The dataStore is accessible\n\t * during rendering\n\t * - view: the current View object\n\t * - entry: the current Entry instance (except in listView)\n\t * - Entry: the Entry constructor (required to transform an object from\n\t * the REST response to an Entry)\n\t * - window: the window object. If you need to fetch anything other than an\n\t * entry and pass it to the view layer, it's the only way.\n\t *\n\t * The function can be asynchronous, in which case it should return\n\t * a Promise.\n\t *\n\t * @example\n\t *\n\t * post.listView().prepare(['datastore', 'view', 'Entry', function(datastore, view, Entry) {\n\t * const posts = datastore.getEntries(view.getEntity().uniqueId);\n\t * const authorIds = posts.map(post => post.values.authorId).join(',');\n\t * return fetch('http://myapi.com/authors?id[]=' + authorIds)\n\t * .then(response => response.json())\n\t * .then(authors => Entry.createArrayFromRest(\n\t * authors,\n\t * [new Field('first_name'), new Field('last_name')],\n\t * 'author'\n\t * ))\n\t * .then(authorEntries => datastore.setEntries('authors', authorEntries));\n\t * }]);\n\t */\n\t }, {\n\t key: 'prepare',\n\t value: function prepare(_prepare) {\n\t if (!arguments.length) return this._prepare;\n\t this._prepare = _prepare;\n\t return this;\n\t }\n\t }, {\n\t key: 'doPrepare',\n\t value: function doPrepare() {\n\t return this._prepare.apply(this, arguments);\n\t }\n\t }, {\n\t key: 'enabled',\n\t get: function get() {\n\t return this._enabled || !!this._fields.length;\n\t }\n\t }, {\n\t key: 'type',\n\t get: function get() {\n\t return this._type;\n\t }\n\t }], [{\n\t key: 'flatten',\n\t value: function flatten(arg) {\n\t if (arg.constructor.name === 'Object') {\n\t console.warn('Passing literal of Field to fields method is deprecated use array instead');\n\t var result = [];\n\t for (var fieldName in arg) {\n\t result = result.concat(View.flatten(arg[fieldName]));\n\t }\n\t return result;\n\t }\n\t if (Array.isArray(arg)) {\n\t return arg.reduce(function (previous, current) {\n\t return previous.concat(View.flatten(current));\n\t }, []);\n\t }\n\t // arg is a scalar\n\t return [arg];\n\t }\n\t }]);\n\t\n\t return View;\n\t})();\n\t\n\texports['default'] = View;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// CodeMirror, copyright (c) by Marijn Haverbeke and others\n\t// Distributed under an MIT license: http://codemirror.net/LICENSE\n\t\n\t// This is CodeMirror (http://codemirror.net), a code editor\n\t// implemented in JavaScript on top of the browser's DOM.\n\t//\n\t// You can find some technical background for some of the code below\n\t// at http://marijnhaverbeke.nl/blog/#cm-internals .\n\t\n\t(function (global, factory) {\n\t\t true ? module.exports = factory() :\n\t\ttypeof define === 'function' && define.amd ? define(factory) :\n\t\t(global.CodeMirror = factory());\n\t}(this, (function () { 'use strict';\n\t\n\t// Kludges for bugs and behavior differences that can't be feature\n\t// detected are enabled based on userAgent etc sniffing.\n\tvar userAgent = navigator.userAgent;\n\tvar platform = navigator.platform;\n\t\n\tvar gecko = /gecko\\/\\d/i.test(userAgent);\n\tvar ie_upto10 = /MSIE \\d/.test(userAgent);\n\tvar ie_11up = /Trident\\/(?:[7-9]|\\d{2,})\\..*rv:(\\d+)/.exec(userAgent);\n\tvar edge = /Edge\\/(\\d+)/.exec(userAgent);\n\tvar ie = ie_upto10 || ie_11up || edge;\n\tvar ie_version = ie && (ie_upto10 ? document.documentMode || 6 : +(edge || ie_11up)[1]);\n\tvar webkit = !edge && /WebKit\\//.test(userAgent);\n\tvar qtwebkit = webkit && /Qt\\/\\d+\\.\\d+/.test(userAgent);\n\tvar chrome = !edge && /Chrome\\//.test(userAgent);\n\tvar presto = /Opera\\//.test(userAgent);\n\tvar safari = /Apple Computer/.test(navigator.vendor);\n\tvar mac_geMountainLion = /Mac OS X 1\\d\\D([8-9]|\\d\\d)\\D/.test(userAgent);\n\tvar phantom = /PhantomJS/.test(userAgent);\n\t\n\tvar ios = !edge && /AppleWebKit/.test(userAgent) && /Mobile\\/\\w+/.test(userAgent);\n\tvar android = /Android/.test(userAgent);\n\t// This is woefully incomplete. Suggestions for alternative methods welcome.\n\tvar mobile = ios || android || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(userAgent);\n\tvar mac = ios || /Mac/.test(platform);\n\tvar chromeOS = /\\bCrOS\\b/.test(userAgent);\n\tvar windows = /win/i.test(platform);\n\t\n\tvar presto_version = presto && userAgent.match(/Version\\/(\\d*\\.\\d*)/);\n\tif (presto_version) { presto_version = Number(presto_version[1]); }\n\tif (presto_version && presto_version >= 15) { presto = false; webkit = true; }\n\t// Some browsers use the wrong event properties to signal cmd/ctrl on OS X\n\tvar flipCtrlCmd = mac && (qtwebkit || presto && (presto_version == null || presto_version < 12.11));\n\tvar captureRightClick = gecko || (ie && ie_version >= 9);\n\t\n\tfunction classTest(cls) { return new RegExp(\"(^|\\\\s)\" + cls + \"(?:$|\\\\s)\\\\s*\") }\n\t\n\tvar rmClass = function(node, cls) {\n\t var current = node.className;\n\t var match = classTest(cls).exec(current);\n\t if (match) {\n\t var after = current.slice(match.index + match[0].length);\n\t node.className = current.slice(0, match.index) + (after ? match[1] + after : \"\");\n\t }\n\t};\n\t\n\tfunction removeChildren(e) {\n\t for (var count = e.childNodes.length; count > 0; --count)\n\t { e.removeChild(e.firstChild); }\n\t return e\n\t}\n\t\n\tfunction removeChildrenAndAdd(parent, e) {\n\t return removeChildren(parent).appendChild(e)\n\t}\n\t\n\tfunction elt(tag, content, className, style) {\n\t var e = document.createElement(tag);\n\t if (className) { e.className = className; }\n\t if (style) { e.style.cssText = style; }\n\t if (typeof content == \"string\") { e.appendChild(document.createTextNode(content)); }\n\t else if (content) { for (var i = 0; i < content.length; ++i) { e.appendChild(content[i]); } }\n\t return e\n\t}\n\t// wrapper for elt, which removes the elt from the accessibility tree\n\tfunction eltP(tag, content, className, style) {\n\t var e = elt(tag, content, className, style);\n\t e.setAttribute(\"role\", \"presentation\");\n\t return e\n\t}\n\t\n\tvar range;\n\tif (document.createRange) { range = function(node, start, end, endNode) {\n\t var r = document.createRange();\n\t r.setEnd(endNode || node, end);\n\t r.setStart(node, start);\n\t return r\n\t}; }\n\telse { range = function(node, start, end) {\n\t var r = document.body.createTextRange();\n\t try { r.moveToElementText(node.parentNode); }\n\t catch(e) { return r }\n\t r.collapse(true);\n\t r.moveEnd(\"character\", end);\n\t r.moveStart(\"character\", start);\n\t return r\n\t}; }\n\t\n\tfunction contains(parent, child) {\n\t if (child.nodeType == 3) // Android browser always returns false when child is a textnode\n\t { child = child.parentNode; }\n\t if (parent.contains)\n\t { return parent.contains(child) }\n\t do {\n\t if (child.nodeType == 11) { child = child.host; }\n\t if (child == parent) { return true }\n\t } while (child = child.parentNode)\n\t}\n\t\n\tfunction activeElt() {\n\t // IE and Edge may throw an \"Unspecified Error\" when accessing document.activeElement.\n\t // IE < 10 will throw when accessed while the page is loading or in an iframe.\n\t // IE > 9 and Edge will throw when accessed in an iframe if document.body is unavailable.\n\t var activeElement;\n\t try {\n\t activeElement = document.activeElement;\n\t } catch(e) {\n\t activeElement = document.body || null;\n\t }\n\t while (activeElement && activeElement.shadowRoot && activeElement.shadowRoot.activeElement)\n\t { activeElement = activeElement.shadowRoot.activeElement; }\n\t return activeElement\n\t}\n\t\n\tfunction addClass(node, cls) {\n\t var current = node.className;\n\t if (!classTest(cls).test(current)) { node.className += (current ? \" \" : \"\") + cls; }\n\t}\n\tfunction joinClasses(a, b) {\n\t var as = a.split(\" \");\n\t for (var i = 0; i < as.length; i++)\n\t { if (as[i] && !classTest(as[i]).test(b)) { b += \" \" + as[i]; } }\n\t return b\n\t}\n\t\n\tvar selectInput = function(node) { node.select(); };\n\tif (ios) // Mobile Safari apparently has a bug where select() is broken.\n\t { selectInput = function(node) { node.selectionStart = 0; node.selectionEnd = node.value.length; }; }\n\telse if (ie) // Suppress mysterious IE10 errors\n\t { selectInput = function(node) { try { node.select(); } catch(_e) {} }; }\n\t\n\tfunction bind(f) {\n\t var args = Array.prototype.slice.call(arguments, 1);\n\t return function(){return f.apply(null, args)}\n\t}\n\t\n\tfunction copyObj(obj, target, overwrite) {\n\t if (!target) { target = {}; }\n\t for (var prop in obj)\n\t { if (obj.hasOwnProperty(prop) && (overwrite !== false || !target.hasOwnProperty(prop)))\n\t { target[prop] = obj[prop]; } }\n\t return target\n\t}\n\t\n\t// Counts the column offset in a string, taking tabs into account.\n\t// Used mostly to find indentation.\n\tfunction countColumn(string, end, tabSize, startIndex, startValue) {\n\t if (end == null) {\n\t end = string.search(/[^\\s\\u00a0]/);\n\t if (end == -1) { end = string.length; }\n\t }\n\t for (var i = startIndex || 0, n = startValue || 0;;) {\n\t var nextTab = string.indexOf(\"\\t\", i);\n\t if (nextTab < 0 || nextTab >= end)\n\t { return n + (end - i) }\n\t n += nextTab - i;\n\t n += tabSize - (n % tabSize);\n\t i = nextTab + 1;\n\t }\n\t}\n\t\n\tvar Delayed = function() {this.id = null;};\n\tDelayed.prototype.set = function (ms, f) {\n\t clearTimeout(this.id);\n\t this.id = setTimeout(f, ms);\n\t};\n\t\n\tfunction indexOf(array, elt) {\n\t for (var i = 0; i < array.length; ++i)\n\t { if (array[i] == elt) { return i } }\n\t return -1\n\t}\n\t\n\t// Number of pixels added to scroller and sizer to hide scrollbar\n\tvar scrollerGap = 30;\n\t\n\t// Returned or thrown by various protocols to signal 'I'm not\n\t// handling this'.\n\tvar Pass = {toString: function(){return \"CodeMirror.Pass\"}};\n\t\n\t// Reused option objects for setSelection & friends\n\tvar sel_dontScroll = {scroll: false};\n\tvar sel_mouse = {origin: \"*mouse\"};\n\tvar sel_move = {origin: \"+move\"};\n\t\n\t// The inverse of countColumn -- find the offset that corresponds to\n\t// a particular column.\n\tfunction findColumn(string, goal, tabSize) {\n\t for (var pos = 0, col = 0;;) {\n\t var nextTab = string.indexOf(\"\\t\", pos);\n\t if (nextTab == -1) { nextTab = string.length; }\n\t var skipped = nextTab - pos;\n\t if (nextTab == string.length || col + skipped >= goal)\n\t { return pos + Math.min(skipped, goal - col) }\n\t col += nextTab - pos;\n\t col += tabSize - (col % tabSize);\n\t pos = nextTab + 1;\n\t if (col >= goal) { return pos }\n\t }\n\t}\n\t\n\tvar spaceStrs = [\"\"];\n\tfunction spaceStr(n) {\n\t while (spaceStrs.length <= n)\n\t { spaceStrs.push(lst(spaceStrs) + \" \"); }\n\t return spaceStrs[n]\n\t}\n\t\n\tfunction lst(arr) { return arr[arr.length-1] }\n\t\n\tfunction map(array, f) {\n\t var out = [];\n\t for (var i = 0; i < array.length; i++) { out[i] = f(array[i], i); }\n\t return out\n\t}\n\t\n\tfunction insertSorted(array, value, score) {\n\t var pos = 0, priority = score(value);\n\t while (pos < array.length && score(array[pos]) <= priority) { pos++; }\n\t array.splice(pos, 0, value);\n\t}\n\t\n\tfunction nothing() {}\n\t\n\tfunction createObj(base, props) {\n\t var inst;\n\t if (Object.create) {\n\t inst = Object.create(base);\n\t } else {\n\t nothing.prototype = base;\n\t inst = new nothing();\n\t }\n\t if (props) { copyObj(props, inst); }\n\t return inst\n\t}\n\t\n\tvar nonASCIISingleCaseWordChar = /[\\u00df\\u0587\\u0590-\\u05f4\\u0600-\\u06ff\\u3040-\\u309f\\u30a0-\\u30ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\uac00-\\ud7af]/;\n\tfunction isWordCharBasic(ch) {\n\t return /\\w/.test(ch) || ch > \"\\x80\" &&\n\t (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch))\n\t}\n\tfunction isWordChar(ch, helper) {\n\t if (!helper) { return isWordCharBasic(ch) }\n\t if (helper.source.indexOf(\"\\\\w\") > -1 && isWordCharBasic(ch)) { return true }\n\t return helper.test(ch)\n\t}\n\t\n\tfunction isEmpty(obj) {\n\t for (var n in obj) { if (obj.hasOwnProperty(n) && obj[n]) { return false } }\n\t return true\n\t}\n\t\n\t// Extending unicode characters. A series of a non-extending char +\n\t// any number of extending chars is treated as a single unit as far\n\t// as editing and measuring is concerned. This is not fully correct,\n\t// since some scripts/fonts/browsers also treat other configurations\n\t// of code points as a group.\n\tvar extendingChars = /[\\u0300-\\u036f\\u0483-\\u0489\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u064b-\\u065e\\u0670\\u06d6-\\u06dc\\u06de-\\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\\u09be\\u09c1-\\u09c4\\u09cd\\u09d7\\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\\u0b3e\\u0b3f\\u0b41-\\u0b44\\u0b4d\\u0b56\\u0b57\\u0b62\\u0b63\\u0b82\\u0bbe\\u0bc0\\u0bcd\\u0bd7\\u0c3e-\\u0c40\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62\\u0c63\\u0cbc\\u0cbf\\u0cc2\\u0cc6\\u0ccc\\u0ccd\\u0cd5\\u0cd6\\u0ce2\\u0ce3\\u0d3e\\u0d41-\\u0d44\\u0d4d\\u0d57\\u0d62\\u0d63\\u0dca\\u0dcf\\u0dd2-\\u0dd4\\u0dd6\\u0ddf\\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\\u200c\\u200d\\u20d0-\\u20f0\\u2cef-\\u2cf1\\u2de0-\\u2dff\\u302a-\\u302f\\u3099\\u309a\\ua66f-\\ua672\\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\\udc00-\\udfff\\ufb1e\\ufe00-\\ufe0f\\ufe20-\\ufe26\\uff9e\\uff9f]/;\n\tfunction isExtendingChar(ch) { return ch.charCodeAt(0) >= 768 && extendingChars.test(ch) }\n\t\n\t// Returns a number from the range [`0`; `str.length`] unless `pos` is outside that range.\n\tfunction skipExtendingChars(str, pos, dir) {\n\t while ((dir < 0 ? pos > 0 : pos < str.length) && isExtendingChar(str.charAt(pos))) { pos += dir; }\n\t return pos\n\t}\n\t\n\t// Returns the value from the range [`from`; `to`] that satisfies\n\t// `pred` and is closest to `from`. Assumes that at least `to` satisfies `pred`.\n\tfunction findFirst(pred, from, to) {\n\t for (;;) {\n\t if (Math.abs(from - to) <= 1) { return pred(from) ? from : to }\n\t var mid = Math.floor((from + to) / 2);\n\t if (pred(mid)) { to = mid; }\n\t else { from = mid; }\n\t }\n\t}\n\t\n\t// The display handles the DOM integration, both for input reading\n\t// and content drawing. It holds references to DOM nodes and\n\t// display-related state.\n\t\n\tfunction Display(place, doc, input) {\n\t var d = this;\n\t this.input = input;\n\t\n\t // Covers bottom-right square when both scrollbars are present.\n\t d.scrollbarFiller = elt(\"div\", null, \"CodeMirror-scrollbar-filler\");\n\t d.scrollbarFiller.setAttribute(\"cm-not-content\", \"true\");\n\t // Covers bottom of gutter when coverGutterNextToScrollbar is on\n\t // and h scrollbar is present.\n\t d.gutterFiller = elt(\"div\", null, \"CodeMirror-gutter-filler\");\n\t d.gutterFiller.setAttribute(\"cm-not-content\", \"true\");\n\t // Will contain the actual code, positioned to cover the viewport.\n\t d.lineDiv = eltP(\"div\", null, \"CodeMirror-code\");\n\t // Elements are added to these to represent selection and cursors.\n\t d.selectionDiv = elt(\"div\", null, null, \"position: relative; z-index: 1\");\n\t d.cursorDiv = elt(\"div\", null, \"CodeMirror-cursors\");\n\t // A visibility: hidden element used to find the size of things.\n\t d.measure = elt(\"div\", null, \"CodeMirror-measure\");\n\t // When lines outside of the viewport are measured, they are drawn in this.\n\t d.lineMeasure = elt(\"div\", null, \"CodeMirror-measure\");\n\t // Wraps everything that needs to exist inside the vertically-padded coordinate system\n\t d.lineSpace = eltP(\"div\", [d.measure, d.lineMeasure, d.selectionDiv, d.cursorDiv, d.lineDiv],\n\t null, \"position: relative; outline: none\");\n\t var lines = eltP(\"div\", [d.lineSpace], \"CodeMirror-lines\");\n\t // Moved around its parent to cover visible view.\n\t d.mover = elt(\"div\", [lines], null, \"position: relative\");\n\t // Set to the height of the document, allowing scrolling.\n\t d.sizer = elt(\"div\", [d.mover], \"CodeMirror-sizer\");\n\t d.sizerWidth = null;\n\t // Behavior of elts with overflow: auto and padding is\n\t // inconsistent across browsers. This is used to ensure the\n\t // scrollable area is big enough.\n\t d.heightForcer = elt(\"div\", null, null, \"position: absolute; height: \" + scrollerGap + \"px; width: 1px;\");\n\t // Will contain the gutters, if any.\n\t d.gutters = elt(\"div\", null, \"CodeMirror-gutters\");\n\t d.lineGutter = null;\n\t // Actual scrollable element.\n\t d.scroller = elt(\"div\", [d.sizer, d.heightForcer, d.gutters], \"CodeMirror-scroll\");\n\t d.scroller.setAttribute(\"tabIndex\", \"-1\");\n\t // The element in which the editor lives.\n\t d.wrapper = elt(\"div\", [d.scrollbarFiller, d.gutterFiller, d.scroller], \"CodeMirror\");\n\t\n\t // Work around IE7 z-index bug (not perfect, hence IE7 not really being supported)\n\t if (ie && ie_version < 8) { d.gutters.style.zIndex = -1; d.scroller.style.paddingRight = 0; }\n\t if (!webkit && !(gecko && mobile)) { d.scroller.draggable = true; }\n\t\n\t if (place) {\n\t if (place.appendChild) { place.appendChild(d.wrapper); }\n\t else { place(d.wrapper); }\n\t }\n\t\n\t // Current rendered range (may be bigger than the view window).\n\t d.viewFrom = d.viewTo = doc.first;\n\t d.reportedViewFrom = d.reportedViewTo = doc.first;\n\t // Information about the rendered lines.\n\t d.view = [];\n\t d.renderedView = null;\n\t // Holds info about a single rendered line when it was rendered\n\t // for measurement, while not in view.\n\t d.externalMeasured = null;\n\t // Empty space (in pixels) above the view\n\t d.viewOffset = 0;\n\t d.lastWrapHeight = d.lastWrapWidth = 0;\n\t d.updateLineNumbers = null;\n\t\n\t d.nativeBarWidth = d.barHeight = d.barWidth = 0;\n\t d.scrollbarsClipped = false;\n\t\n\t // Used to only resize the line number gutter when necessary (when\n\t // the amount of lines crosses a boundary that makes its width change)\n\t d.lineNumWidth = d.lineNumInnerWidth = d.lineNumChars = null;\n\t // Set to true when a non-horizontal-scrolling line widget is\n\t // added. As an optimization, line widget aligning is skipped when\n\t // this is false.\n\t d.alignWidgets = false;\n\t\n\t d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null;\n\t\n\t // Tracks the maximum line length so that the horizontal scrollbar\n\t // can be kept static when scrolling.\n\t d.maxLine = null;\n\t d.maxLineLength = 0;\n\t d.maxLineChanged = false;\n\t\n\t // Used for measuring wheel scrolling granularity\n\t d.wheelDX = d.wheelDY = d.wheelStartX = d.wheelStartY = null;\n\t\n\t // True when shift is held down.\n\t d.shift = false;\n\t\n\t // Used to track whether anything happened since the context menu\n\t // was opened.\n\t d.selForContextMenu = null;\n\t\n\t d.activeTouch = null;\n\t\n\t input.init(d);\n\t}\n\t\n\t// Find the line object corresponding to the given line number.\n\tfunction getLine(doc, n) {\n\t n -= doc.first;\n\t if (n < 0 || n >= doc.size) { throw new Error(\"There is no line \" + (n + doc.first) + \" in the document.\") }\n\t var chunk = doc;\n\t while (!chunk.lines) {\n\t for (var i = 0;; ++i) {\n\t var child = chunk.children[i], sz = child.chunkSize();\n\t if (n < sz) { chunk = child; break }\n\t n -= sz;\n\t }\n\t }\n\t return chunk.lines[n]\n\t}\n\t\n\t// Get the part of a document between two positions, as an array of\n\t// strings.\n\tfunction getBetween(doc, start, end) {\n\t var out = [], n = start.line;\n\t doc.iter(start.line, end.line + 1, function (line) {\n\t var text = line.text;\n\t if (n == end.line) { text = text.slice(0, end.ch); }\n\t if (n == start.line) { text = text.slice(start.ch); }\n\t out.push(text);\n\t ++n;\n\t });\n\t return out\n\t}\n\t// Get the lines between from and to, as array of strings.\n\tfunction getLines(doc, from, to) {\n\t var out = [];\n\t doc.iter(from, to, function (line) { out.push(line.text); }); // iter aborts when callback returns truthy value\n\t return out\n\t}\n\t\n\t// Update the height of a line, propagating the height change\n\t// upwards to parent nodes.\n\tfunction updateLineHeight(line, height) {\n\t var diff = height - line.height;\n\t if (diff) { for (var n = line; n; n = n.parent) { n.height += diff; } }\n\t}\n\t\n\t// Given a line object, find its line number by walking up through\n\t// its parent links.\n\tfunction lineNo(line) {\n\t if (line.parent == null) { return null }\n\t var cur = line.parent, no = indexOf(cur.lines, line);\n\t for (var chunk = cur.parent; chunk; cur = chunk, chunk = chunk.parent) {\n\t for (var i = 0;; ++i) {\n\t if (chunk.children[i] == cur) { break }\n\t no += chunk.children[i].chunkSize();\n\t }\n\t }\n\t return no + cur.first\n\t}\n\t\n\t// Find the line at the given vertical position, using the height\n\t// information in the document tree.\n\tfunction lineAtHeight(chunk, h) {\n\t var n = chunk.first;\n\t outer: do {\n\t for (var i$1 = 0; i$1 < chunk.children.length; ++i$1) {\n\t var child = chunk.children[i$1], ch = child.height;\n\t if (h < ch) { chunk = child; continue outer }\n\t h -= ch;\n\t n += child.chunkSize();\n\t }\n\t return n\n\t } while (!chunk.lines)\n\t var i = 0;\n\t for (; i < chunk.lines.length; ++i) {\n\t var line = chunk.lines[i], lh = line.height;\n\t if (h < lh) { break }\n\t h -= lh;\n\t }\n\t return n + i\n\t}\n\t\n\tfunction isLine(doc, l) {return l >= doc.first && l < doc.first + doc.size}\n\t\n\tfunction lineNumberFor(options, i) {\n\t return String(options.lineNumberFormatter(i + options.firstLineNumber))\n\t}\n\t\n\t// A Pos instance represents a position within the text.\n\tfunction Pos(line, ch, sticky) {\n\t if ( sticky === void 0 ) sticky = null;\n\t\n\t if (!(this instanceof Pos)) { return new Pos(line, ch, sticky) }\n\t this.line = line;\n\t this.ch = ch;\n\t this.sticky = sticky;\n\t}\n\t\n\t// Compare two positions, return 0 if they are the same, a negative\n\t// number when a is less, and a positive number otherwise.\n\tfunction cmp(a, b) { return a.line - b.line || a.ch - b.ch }\n\t\n\tfunction equalCursorPos(a, b) { return a.sticky == b.sticky && cmp(a, b) == 0 }\n\t\n\tfunction copyPos(x) {return Pos(x.line, x.ch)}\n\tfunction maxPos(a, b) { return cmp(a, b) < 0 ? b : a }\n\tfunction minPos(a, b) { return cmp(a, b) < 0 ? a : b }\n\t\n\t// Most of the external API clips given positions to make sure they\n\t// actually exist within the document.\n\tfunction clipLine(doc, n) {return Math.max(doc.first, Math.min(n, doc.first + doc.size - 1))}\n\tfunction clipPos(doc, pos) {\n\t if (pos.line < doc.first) { return Pos(doc.first, 0) }\n\t var last = doc.first + doc.size - 1;\n\t if (pos.line > last) { return Pos(last, getLine(doc, last).text.length) }\n\t return clipToLen(pos, getLine(doc, pos.line).text.length)\n\t}\n\tfunction clipToLen(pos, linelen) {\n\t var ch = pos.ch;\n\t if (ch == null || ch > linelen) { return Pos(pos.line, linelen) }\n\t else if (ch < 0) { return Pos(pos.line, 0) }\n\t else { return pos }\n\t}\n\tfunction clipPosArray(doc, array) {\n\t var out = [];\n\t for (var i = 0; i < array.length; i++) { out[i] = clipPos(doc, array[i]); }\n\t return out\n\t}\n\t\n\t// Optimize some code when these features are not used.\n\tvar sawReadOnlySpans = false;\n\tvar sawCollapsedSpans = false;\n\t\n\tfunction seeReadOnlySpans() {\n\t sawReadOnlySpans = true;\n\t}\n\t\n\tfunction seeCollapsedSpans() {\n\t sawCollapsedSpans = true;\n\t}\n\t\n\t// TEXTMARKER SPANS\n\t\n\tfunction MarkedSpan(marker, from, to) {\n\t this.marker = marker;\n\t this.from = from; this.to = to;\n\t}\n\t\n\t// Search an array of spans for a span matching the given marker.\n\tfunction getMarkedSpanFor(spans, marker) {\n\t if (spans) { for (var i = 0; i < spans.length; ++i) {\n\t var span = spans[i];\n\t if (span.marker == marker) { return span }\n\t } }\n\t}\n\t// Remove a span from an array, returning undefined if no spans are\n\t// left (we don't store arrays for lines without spans).\n\tfunction removeMarkedSpan(spans, span) {\n\t var r;\n\t for (var i = 0; i < spans.length; ++i)\n\t { if (spans[i] != span) { (r || (r = [])).push(spans[i]); } }\n\t return r\n\t}\n\t// Add a span to a line.\n\tfunction addMarkedSpan(line, span) {\n\t line.markedSpans = line.markedSpans ? line.markedSpans.concat([span]) : [span];\n\t span.marker.attachLine(line);\n\t}\n\t\n\t// Used for the algorithm that adjusts markers for a change in the\n\t// document. These functions cut an array of spans at a given\n\t// character position, returning an array of remaining chunks (or\n\t// undefined if nothing remains).\n\tfunction markedSpansBefore(old, startCh, isInsert) {\n\t var nw;\n\t if (old) { for (var i = 0; i < old.length; ++i) {\n\t var span = old[i], marker = span.marker;\n\t var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= startCh : span.from < startCh);\n\t if (startsBefore || span.from == startCh && marker.type == \"bookmark\" && (!isInsert || !span.marker.insertLeft)) {\n\t var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= startCh : span.to > startCh);(nw || (nw = [])).push(new MarkedSpan(marker, span.from, endsAfter ? null : span.to));\n\t }\n\t } }\n\t return nw\n\t}\n\tfunction markedSpansAfter(old, endCh, isInsert) {\n\t var nw;\n\t if (old) { for (var i = 0; i < old.length; ++i) {\n\t var span = old[i], marker = span.marker;\n\t var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= endCh : span.to > endCh);\n\t if (endsAfter || span.from == endCh && marker.type == \"bookmark\" && (!isInsert || span.marker.insertLeft)) {\n\t var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= endCh : span.from < endCh);(nw || (nw = [])).push(new MarkedSpan(marker, startsBefore ? null : span.from - endCh,\n\t span.to == null ? null : span.to - endCh));\n\t }\n\t } }\n\t return nw\n\t}\n\t\n\t// Given a change object, compute the new set of marker spans that\n\t// cover the line in which the change took place. Removes spans\n\t// entirely within the change, reconnects spans belonging to the\n\t// same marker that appear on both sides of the change, and cuts off\n\t// spans partially within the change. Returns an array of span\n\t// arrays with one element for each line in (after) the change.\n\tfunction stretchSpansOverChange(doc, change) {\n\t if (change.full) { return null }\n\t var oldFirst = isLine(doc, change.from.line) && getLine(doc, change.from.line).markedSpans;\n\t var oldLast = isLine(doc, change.to.line) && getLine(doc, change.to.line).markedSpans;\n\t if (!oldFirst && !oldLast) { return null }\n\t\n\t var startCh = change.from.ch, endCh = change.to.ch, isInsert = cmp(change.from, change.to) == 0;\n\t // Get the spans that 'stick out' on both sides\n\t var first = markedSpansBefore(oldFirst, startCh, isInsert);\n\t var last = markedSpansAfter(oldLast, endCh, isInsert);\n\t\n\t // Next, merge those two ends\n\t var sameLine = change.text.length == 1, offset = lst(change.text).length + (sameLine ? startCh : 0);\n\t if (first) {\n\t // Fix up .to properties of first\n\t for (var i = 0; i < first.length; ++i) {\n\t var span = first[i];\n\t if (span.to == null) {\n\t var found = getMarkedSpanFor(last, span.marker);\n\t if (!found) { span.to = startCh; }\n\t else if (sameLine) { span.to = found.to == null ? null : found.to + offset; }\n\t }\n\t }\n\t }\n\t if (last) {\n\t // Fix up .from in last (or move them into first in case of sameLine)\n\t for (var i$1 = 0; i$1 < last.length; ++i$1) {\n\t var span$1 = last[i$1];\n\t if (span$1.to != null) { span$1.to += offset; }\n\t if (span$1.from == null) {\n\t var found$1 = getMarkedSpanFor(first, span$1.marker);\n\t if (!found$1) {\n\t span$1.from = offset;\n\t if (sameLine) { (first || (first = [])).push(span$1); }\n\t }\n\t } else {\n\t span$1.from += offset;\n\t if (sameLine) { (first || (first = [])).push(span$1); }\n\t }\n\t }\n\t }\n\t // Make sure we didn't create any zero-length spans\n\t if (first) { first = clearEmptySpans(first); }\n\t if (last && last != first) { last = clearEmptySpans(last); }\n\t\n\t var newMarkers = [first];\n\t if (!sameLine) {\n\t // Fill gap with whole-line-spans\n\t var gap = change.text.length - 2, gapMarkers;\n\t if (gap > 0 && first)\n\t { for (var i$2 = 0; i$2 < first.length; ++i$2)\n\t { if (first[i$2].to == null)\n\t { (gapMarkers || (gapMarkers = [])).push(new MarkedSpan(first[i$2].marker, null, null)); } } }\n\t for (var i$3 = 0; i$3 < gap; ++i$3)\n\t { newMarkers.push(gapMarkers); }\n\t newMarkers.push(last);\n\t }\n\t return newMarkers\n\t}\n\t\n\t// Remove spans that are empty and don't have a clearWhenEmpty\n\t// option of false.\n\tfunction clearEmptySpans(spans) {\n\t for (var i = 0; i < spans.length; ++i) {\n\t var span = spans[i];\n\t if (span.from != null && span.from == span.to && span.marker.clearWhenEmpty !== false)\n\t { spans.splice(i--, 1); }\n\t }\n\t if (!spans.length) { return null }\n\t return spans\n\t}\n\t\n\t// Used to 'clip' out readOnly ranges when making a change.\n\tfunction removeReadOnlyRanges(doc, from, to) {\n\t var markers = null;\n\t doc.iter(from.line, to.line + 1, function (line) {\n\t if (line.markedSpans) { for (var i = 0; i < line.markedSpans.length; ++i) {\n\t var mark = line.markedSpans[i].marker;\n\t if (mark.readOnly && (!markers || indexOf(markers, mark) == -1))\n\t { (markers || (markers = [])).push(mark); }\n\t } }\n\t });\n\t if (!markers) { return null }\n\t var parts = [{from: from, to: to}];\n\t for (var i = 0; i < markers.length; ++i) {\n\t var mk = markers[i], m = mk.find(0);\n\t for (var j = 0; j < parts.length; ++j) {\n\t var p = parts[j];\n\t if (cmp(p.to, m.from) < 0 || cmp(p.from, m.to) > 0) { continue }\n\t var newParts = [j, 1], dfrom = cmp(p.from, m.from), dto = cmp(p.to, m.to);\n\t if (dfrom < 0 || !mk.inclusiveLeft && !dfrom)\n\t { newParts.push({from: p.from, to: m.from}); }\n\t if (dto > 0 || !mk.inclusiveRight && !dto)\n\t { newParts.push({from: m.to, to: p.to}); }\n\t parts.splice.apply(parts, newParts);\n\t j += newParts.length - 3;\n\t }\n\t }\n\t return parts\n\t}\n\t\n\t// Connect or disconnect spans from a line.\n\tfunction detachMarkedSpans(line) {\n\t var spans = line.markedSpans;\n\t if (!spans) { return }\n\t for (var i = 0; i < spans.length; ++i)\n\t { spans[i].marker.detachLine(line); }\n\t line.markedSpans = null;\n\t}\n\tfunction attachMarkedSpans(line, spans) {\n\t if (!spans) { return }\n\t for (var i = 0; i < spans.length; ++i)\n\t { spans[i].marker.attachLine(line); }\n\t line.markedSpans = spans;\n\t}\n\t\n\t// Helpers used when computing which overlapping collapsed span\n\t// counts as the larger one.\n\tfunction extraLeft(marker) { return marker.inclusiveLeft ? -1 : 0 }\n\tfunction extraRight(marker) { return marker.inclusiveRight ? 1 : 0 }\n\t\n\t// Returns a number indicating which of two overlapping collapsed\n\t// spans is larger (and thus includes the other). Falls back to\n\t// comparing ids when the spans cover exactly the same range.\n\tfunction compareCollapsedMarkers(a, b) {\n\t var lenDiff = a.lines.length - b.lines.length;\n\t if (lenDiff != 0) { return lenDiff }\n\t var aPos = a.find(), bPos = b.find();\n\t var fromCmp = cmp(aPos.from, bPos.from) || extraLeft(a) - extraLeft(b);\n\t if (fromCmp) { return -fromCmp }\n\t var toCmp = cmp(aPos.to, bPos.to) || extraRight(a) - extraRight(b);\n\t if (toCmp) { return toCmp }\n\t return b.id - a.id\n\t}\n\t\n\t// Find out whether a line ends or starts in a collapsed span. If\n\t// so, return the marker for that span.\n\tfunction collapsedSpanAtSide(line, start) {\n\t var sps = sawCollapsedSpans && line.markedSpans, found;\n\t if (sps) { for (var sp = (void 0), i = 0; i < sps.length; ++i) {\n\t sp = sps[i];\n\t if (sp.marker.collapsed && (start ? sp.from : sp.to) == null &&\n\t (!found || compareCollapsedMarkers(found, sp.marker) < 0))\n\t { found = sp.marker; }\n\t } }\n\t return found\n\t}\n\tfunction collapsedSpanAtStart(line) { return collapsedSpanAtSide(line, true) }\n\tfunction collapsedSpanAtEnd(line) { return collapsedSpanAtSide(line, false) }\n\t\n\t// Test whether there exists a collapsed span that partially\n\t// overlaps (covers the start or end, but not both) of a new span.\n\t// Such overlap is not allowed.\n\tfunction conflictingCollapsedRange(doc, lineNo$$1, from, to, marker) {\n\t var line = getLine(doc, lineNo$$1);\n\t var sps = sawCollapsedSpans && line.markedSpans;\n\t if (sps) { for (var i = 0; i < sps.length; ++i) {\n\t var sp = sps[i];\n\t if (!sp.marker.collapsed) { continue }\n\t var found = sp.marker.find(0);\n\t var fromCmp = cmp(found.from, from) || extraLeft(sp.marker) - extraLeft(marker);\n\t var toCmp = cmp(found.to, to) || extraRight(sp.marker) - extraRight(marker);\n\t if (fromCmp >= 0 && toCmp <= 0 || fromCmp <= 0 && toCmp >= 0) { continue }\n\t if (fromCmp <= 0 && (sp.marker.inclusiveRight && marker.inclusiveLeft ? cmp(found.to, from) >= 0 : cmp(found.to, from) > 0) ||\n\t fromCmp >= 0 && (sp.marker.inclusiveRight && marker.inclusiveLeft ? cmp(found.from, to) <= 0 : cmp(found.from, to) < 0))\n\t { return true }\n\t } }\n\t}\n\t\n\t// A visual line is a line as drawn on the screen. Folding, for\n\t// example, can cause multiple logical lines to appear on the same\n\t// visual line. This finds the start of the visual line that the\n\t// given line is part of (usually that is the line itself).\n\tfunction visualLine(line) {\n\t var merged;\n\t while (merged = collapsedSpanAtStart(line))\n\t { line = merged.find(-1, true).line; }\n\t return line\n\t}\n\t\n\tfunction visualLineEnd(line) {\n\t var merged;\n\t while (merged = collapsedSpanAtEnd(line))\n\t { line = merged.find(1, true).line; }\n\t return line\n\t}\n\t\n\t// Returns an array of logical lines that continue the visual line\n\t// started by the argument, or undefined if there are no such lines.\n\tfunction visualLineContinued(line) {\n\t var merged, lines;\n\t while (merged = collapsedSpanAtEnd(line)) {\n\t line = merged.find(1, true).line\n\t ;(lines || (lines = [])).push(line);\n\t }\n\t return lines\n\t}\n\t\n\t// Get the line number of the start of the visual line that the\n\t// given line number is part of.\n\tfunction visualLineNo(doc, lineN) {\n\t var line = getLine(doc, lineN), vis = visualLine(line);\n\t if (line == vis) { return lineN }\n\t return lineNo(vis)\n\t}\n\t\n\t// Get the line number of the start of the next visual line after\n\t// the given line.\n\tfunction visualLineEndNo(doc, lineN) {\n\t if (lineN > doc.lastLine()) { return lineN }\n\t var line = getLine(doc, lineN), merged;\n\t if (!lineIsHidden(doc, line)) { return lineN }\n\t while (merged = collapsedSpanAtEnd(line))\n\t { line = merged.find(1, true).line; }\n\t return lineNo(line) + 1\n\t}\n\t\n\t// Compute whether a line is hidden. Lines count as hidden when they\n\t// are part of a visual line that starts with another line, or when\n\t// they are entirely covered by collapsed, non-widget span.\n\tfunction lineIsHidden(doc, line) {\n\t var sps = sawCollapsedSpans && line.markedSpans;\n\t if (sps) { for (var sp = (void 0), i = 0; i < sps.length; ++i) {\n\t sp = sps[i];\n\t if (!sp.marker.collapsed) { continue }\n\t if (sp.from == null) { return true }\n\t if (sp.marker.widgetNode) { continue }\n\t if (sp.from == 0 && sp.marker.inclusiveLeft && lineIsHiddenInner(doc, line, sp))\n\t { return true }\n\t } }\n\t}\n\tfunction lineIsHiddenInner(doc, line, span) {\n\t if (span.to == null) {\n\t var end = span.marker.find(1, true);\n\t return lineIsHiddenInner(doc, end.line, getMarkedSpanFor(end.line.markedSpans, span.marker))\n\t }\n\t if (span.marker.inclusiveRight && span.to == line.text.length)\n\t { return true }\n\t for (var sp = (void 0), i = 0; i < line.markedSpans.length; ++i) {\n\t sp = line.markedSpans[i];\n\t if (sp.marker.collapsed && !sp.marker.widgetNode && sp.from == span.to &&\n\t (sp.to == null || sp.to != span.from) &&\n\t (sp.marker.inclusiveLeft || span.marker.inclusiveRight) &&\n\t lineIsHiddenInner(doc, line, sp)) { return true }\n\t }\n\t}\n\t\n\t// Find the height above the given line.\n\tfunction heightAtLine(lineObj) {\n\t lineObj = visualLine(lineObj);\n\t\n\t var h = 0, chunk = lineObj.parent;\n\t for (var i = 0; i < chunk.lines.length; ++i) {\n\t var line = chunk.lines[i];\n\t if (line == lineObj) { break }\n\t else { h += line.height; }\n\t }\n\t for (var p = chunk.parent; p; chunk = p, p = chunk.parent) {\n\t for (var i$1 = 0; i$1 < p.children.length; ++i$1) {\n\t var cur = p.children[i$1];\n\t if (cur == chunk) { break }\n\t else { h += cur.height; }\n\t }\n\t }\n\t return h\n\t}\n\t\n\t// Compute the character length of a line, taking into account\n\t// collapsed ranges (see markText) that might hide parts, and join\n\t// other lines onto it.\n\tfunction lineLength(line) {\n\t if (line.height == 0) { return 0 }\n\t var len = line.text.length, merged, cur = line;\n\t while (merged = collapsedSpanAtStart(cur)) {\n\t var found = merged.find(0, true);\n\t cur = found.from.line;\n\t len += found.from.ch - found.to.ch;\n\t }\n\t cur = line;\n\t while (merged = collapsedSpanAtEnd(cur)) {\n\t var found$1 = merged.find(0, true);\n\t len -= cur.text.length - found$1.from.ch;\n\t cur = found$1.to.line;\n\t len += cur.text.length - found$1.to.ch;\n\t }\n\t return len\n\t}\n\t\n\t// Find the longest line in the document.\n\tfunction findMaxLine(cm) {\n\t var d = cm.display, doc = cm.doc;\n\t d.maxLine = getLine(doc, doc.first);\n\t d.maxLineLength = lineLength(d.maxLine);\n\t d.maxLineChanged = true;\n\t doc.iter(function (line) {\n\t var len = lineLength(line);\n\t if (len > d.maxLineLength) {\n\t d.maxLineLength = len;\n\t d.maxLine = line;\n\t }\n\t });\n\t}\n\t\n\t// BIDI HELPERS\n\t\n\tfunction iterateBidiSections(order, from, to, f) {\n\t if (!order) { return f(from, to, \"ltr\") }\n\t var found = false;\n\t for (var i = 0; i < order.length; ++i) {\n\t var part = order[i];\n\t if (part.from < to && part.to > from || from == to && part.to == from) {\n\t f(Math.max(part.from, from), Math.min(part.to, to), part.level == 1 ? \"rtl\" : \"ltr\");\n\t found = true;\n\t }\n\t }\n\t if (!found) { f(from, to, \"ltr\"); }\n\t}\n\t\n\tvar bidiOther = null;\n\tfunction getBidiPartAt(order, ch, sticky) {\n\t var found;\n\t bidiOther = null;\n\t for (var i = 0; i < order.length; ++i) {\n\t var cur = order[i];\n\t if (cur.from < ch && cur.to > ch) { return i }\n\t if (cur.to == ch) {\n\t if (cur.from != cur.to && sticky == \"before\") { found = i; }\n\t else { bidiOther = i; }\n\t }\n\t if (cur.from == ch) {\n\t if (cur.from != cur.to && sticky != \"before\") { found = i; }\n\t else { bidiOther = i; }\n\t }\n\t }\n\t return found != null ? found : bidiOther\n\t}\n\t\n\t// Bidirectional ordering algorithm\n\t// See http://unicode.org/reports/tr9/tr9-13.html for the algorithm\n\t// that this (partially) implements.\n\t\n\t// One-char codes used for character types:\n\t// L (L): Left-to-Right\n\t// R (R): Right-to-Left\n\t// r (AL): Right-to-Left Arabic\n\t// 1 (EN): European Number\n\t// + (ES): European Number Separator\n\t// % (ET): European Number Terminator\n\t// n (AN): Arabic Number\n\t// , (CS): Common Number Separator\n\t// m (NSM): Non-Spacing Mark\n\t// b (BN): Boundary Neutral\n\t// s (B): Paragraph Separator\n\t// t (S): Segment Separator\n\t// w (WS): Whitespace\n\t// N (ON): Other Neutrals\n\t\n\t// Returns null if characters are ordered as they appear\n\t// (left-to-right), or an array of sections ({from, to, level}\n\t// objects) in the order in which they occur visually.\n\tvar bidiOrdering = (function() {\n\t // Character types for codepoints 0 to 0xff\n\t var lowTypes = \"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN\";\n\t // Character types for codepoints 0x600 to 0x6f9\n\t var arabicTypes = \"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111\";\n\t function charType(code) {\n\t if (code <= 0xf7) { return lowTypes.charAt(code) }\n\t else if (0x590 <= code && code <= 0x5f4) { return \"R\" }\n\t else if (0x600 <= code && code <= 0x6f9) { return arabicTypes.charAt(code - 0x600) }\n\t else if (0x6ee <= code && code <= 0x8ac) { return \"r\" }\n\t else if (0x2000 <= code && code <= 0x200b) { return \"w\" }\n\t else if (code == 0x200c) { return \"b\" }\n\t else { return \"L\" }\n\t }\n\t\n\t var bidiRE = /[\\u0590-\\u05f4\\u0600-\\u06ff\\u0700-\\u08ac]/;\n\t var isNeutral = /[stwN]/, isStrong = /[LRr]/, countsAsLeft = /[Lb1n]/, countsAsNum = /[1n]/;\n\t\n\t function BidiSpan(level, from, to) {\n\t this.level = level;\n\t this.from = from; this.to = to;\n\t }\n\t\n\t return function(str, direction) {\n\t var outerType = direction == \"ltr\" ? \"L\" : \"R\";\n\t\n\t if (str.length == 0 || direction == \"ltr\" && !bidiRE.test(str)) { return false }\n\t var len = str.length, types = [];\n\t for (var i = 0; i < len; ++i)\n\t { types.push(charType(str.charCodeAt(i))); }\n\t\n\t // W1. Examine each non-spacing mark (NSM) in the level run, and\n\t // change the type of the NSM to the type of the previous\n\t // character. If the NSM is at the start of the level run, it will\n\t // get the type of sor.\n\t for (var i$1 = 0, prev = outerType; i$1 < len; ++i$1) {\n\t var type = types[i$1];\n\t if (type == \"m\") { types[i$1] = prev; }\n\t else { prev = type; }\n\t }\n\t\n\t // W2. Search backwards from each instance of a European number\n\t // until the first strong type (R, L, AL, or sor) is found. If an\n\t // AL is found, change the type of the European number to Arabic\n\t // number.\n\t // W3. Change all ALs to R.\n\t for (var i$2 = 0, cur = outerType; i$2 < len; ++i$2) {\n\t var type$1 = types[i$2];\n\t if (type$1 == \"1\" && cur == \"r\") { types[i$2] = \"n\"; }\n\t else if (isStrong.test(type$1)) { cur = type$1; if (type$1 == \"r\") { types[i$2] = \"R\"; } }\n\t }\n\t\n\t // W4. A single European separator between two European numbers\n\t // changes to a European number. A single common separator between\n\t // two numbers of the same type changes to that type.\n\t for (var i$3 = 1, prev$1 = types[0]; i$3 < len - 1; ++i$3) {\n\t var type$2 = types[i$3];\n\t if (type$2 == \"+\" && prev$1 == \"1\" && types[i$3+1] == \"1\") { types[i$3] = \"1\"; }\n\t else if (type$2 == \",\" && prev$1 == types[i$3+1] &&\n\t (prev$1 == \"1\" || prev$1 == \"n\")) { types[i$3] = prev$1; }\n\t prev$1 = type$2;\n\t }\n\t\n\t // W5. A sequence of European terminators adjacent to European\n\t // numbers changes to all European numbers.\n\t // W6. Otherwise, separators and terminators change to Other\n\t // Neutral.\n\t for (var i$4 = 0; i$4 < len; ++i$4) {\n\t var type$3 = types[i$4];\n\t if (type$3 == \",\") { types[i$4] = \"N\"; }\n\t else if (type$3 == \"%\") {\n\t var end = (void 0);\n\t for (end = i$4 + 1; end < len && types[end] == \"%\"; ++end) {}\n\t var replace = (i$4 && types[i$4-1] == \"!\") || (end < len && types[end] == \"1\") ? \"1\" : \"N\";\n\t for (var j = i$4; j < end; ++j) { types[j] = replace; }\n\t i$4 = end - 1;\n\t }\n\t }\n\t\n\t // W7. Search backwards from each instance of a European number\n\t // until the first strong type (R, L, or sor) is found. If an L is\n\t // found, then change the type of the European number to L.\n\t for (var i$5 = 0, cur$1 = outerType; i$5 < len; ++i$5) {\n\t var type$4 = types[i$5];\n\t if (cur$1 == \"L\" && type$4 == \"1\") { types[i$5] = \"L\"; }\n\t else if (isStrong.test(type$4)) { cur$1 = type$4; }\n\t }\n\t\n\t // N1. A sequence of neutrals takes the direction of the\n\t // surrounding strong text if the text on both sides has the same\n\t // direction. European and Arabic numbers act as if they were R in\n\t // terms of their influence on neutrals. Start-of-level-run (sor)\n\t // and end-of-level-run (eor) are used at level run boundaries.\n\t // N2. Any remaining neutrals take the embedding direction.\n\t for (var i$6 = 0; i$6 < len; ++i$6) {\n\t if (isNeutral.test(types[i$6])) {\n\t var end$1 = (void 0);\n\t for (end$1 = i$6 + 1; end$1 < len && isNeutral.test(types[end$1]); ++end$1) {}\n\t var before = (i$6 ? types[i$6-1] : outerType) == \"L\";\n\t var after = (end$1 < len ? types[end$1] : outerType) == \"L\";\n\t var replace$1 = before == after ? (before ? \"L\" : \"R\") : outerType;\n\t for (var j$1 = i$6; j$1 < end$1; ++j$1) { types[j$1] = replace$1; }\n\t i$6 = end$1 - 1;\n\t }\n\t }\n\t\n\t // Here we depart from the documented algorithm, in order to avoid\n\t // building up an actual levels array. Since there are only three\n\t // levels (0, 1, 2) in an implementation that doesn't take\n\t // explicit embedding into account, we can build up the order on\n\t // the fly, without following the level-based algorithm.\n\t var order = [], m;\n\t for (var i$7 = 0; i$7 < len;) {\n\t if (countsAsLeft.test(types[i$7])) {\n\t var start = i$7;\n\t for (++i$7; i$7 < len && countsAsLeft.test(types[i$7]); ++i$7) {}\n\t order.push(new BidiSpan(0, start, i$7));\n\t } else {\n\t var pos = i$7, at = order.length;\n\t for (++i$7; i$7 < len && types[i$7] != \"L\"; ++i$7) {}\n\t for (var j$2 = pos; j$2 < i$7;) {\n\t if (countsAsNum.test(types[j$2])) {\n\t if (pos < j$2) { order.splice(at, 0, new BidiSpan(1, pos, j$2)); }\n\t var nstart = j$2;\n\t for (++j$2; j$2 < i$7 && countsAsNum.test(types[j$2]); ++j$2) {}\n\t order.splice(at, 0, new BidiSpan(2, nstart, j$2));\n\t pos = j$2;\n\t } else { ++j$2; }\n\t }\n\t if (pos < i$7) { order.splice(at, 0, new BidiSpan(1, pos, i$7)); }\n\t }\n\t }\n\t if (order[0].level == 1 && (m = str.match(/^\\s+/))) {\n\t order[0].from = m[0].length;\n\t order.unshift(new BidiSpan(0, 0, m[0].length));\n\t }\n\t if (lst(order).level == 1 && (m = str.match(/\\s+$/))) {\n\t lst(order).to -= m[0].length;\n\t order.push(new BidiSpan(0, len - m[0].length, len));\n\t }\n\t\n\t return direction == \"rtl\" ? order.reverse() : order\n\t }\n\t})();\n\t\n\t// Get the bidi ordering for the given line (and cache it). Returns\n\t// false for lines that are fully left-to-right, and an array of\n\t// BidiSpan objects otherwise.\n\tfunction getOrder(line, direction) {\n\t var order = line.order;\n\t if (order == null) { order = line.order = bidiOrdering(line.text, direction); }\n\t return order\n\t}\n\t\n\tfunction moveCharLogically(line, ch, dir) {\n\t var target = skipExtendingChars(line.text, ch + dir, dir);\n\t return target < 0 || target > line.text.length ? null : target\n\t}\n\t\n\tfunction moveLogically(line, start, dir) {\n\t var ch = moveCharLogically(line, start.ch, dir);\n\t return ch == null ? null : new Pos(start.line, ch, dir < 0 ? \"after\" : \"before\")\n\t}\n\t\n\tfunction endOfLine(visually, cm, lineObj, lineNo, dir) {\n\t if (visually) {\n\t var order = getOrder(lineObj, cm.doc.direction);\n\t if (order) {\n\t var part = dir < 0 ? lst(order) : order[0];\n\t var moveInStorageOrder = (dir < 0) == (part.level == 1);\n\t var sticky = moveInStorageOrder ? \"after\" : \"before\";\n\t var ch;\n\t // With a wrapped rtl chunk (possibly spanning multiple bidi parts),\n\t // it could be that the last bidi part is not on the last visual line,\n\t // since visual lines contain content order-consecutive chunks.\n\t // Thus, in rtl, we are looking for the first (content-order) character\n\t // in the rtl chunk that is on the last line (that is, the same line\n\t // as the last (content-order) character).\n\t if (part.level > 0) {\n\t var prep = prepareMeasureForLine(cm, lineObj);\n\t ch = dir < 0 ? lineObj.text.length - 1 : 0;\n\t var targetTop = measureCharPrepared(cm, prep, ch).top;\n\t ch = findFirst(function (ch) { return measureCharPrepared(cm, prep, ch).top == targetTop; }, (dir < 0) == (part.level == 1) ? part.from : part.to - 1, ch);\n\t if (sticky == \"before\") { ch = moveCharLogically(lineObj, ch, 1, true); }\n\t } else { ch = dir < 0 ? part.to : part.from; }\n\t return new Pos(lineNo, ch, sticky)\n\t }\n\t }\n\t return new Pos(lineNo, dir < 0 ? lineObj.text.length : 0, dir < 0 ? \"before\" : \"after\")\n\t}\n\t\n\tfunction moveVisually(cm, line, start, dir) {\n\t var bidi = getOrder(line, cm.doc.direction);\n\t if (!bidi) { return moveLogically(line, start, dir) }\n\t if (start.ch >= line.text.length) {\n\t start.ch = line.text.length;\n\t start.sticky = \"before\";\n\t } else if (start.ch <= 0) {\n\t start.ch = 0;\n\t start.sticky = \"after\";\n\t }\n\t var partPos = getBidiPartAt(bidi, start.ch, start.sticky), part = bidi[partPos];\n\t if (cm.doc.direction == \"ltr\" && part.level % 2 == 0 && (dir > 0 ? part.to > start.ch : part.from < start.ch)) {\n\t // Case 1: We move within an ltr part in an ltr editor. Even with wrapped lines,\n\t // nothing interesting happens.\n\t return moveLogically(line, start, dir)\n\t }\n\t\n\t var mv = function (pos, dir) { return moveCharLogically(line, pos instanceof Pos ? pos.ch : pos, dir); };\n\t var prep;\n\t var getWrappedLineExtent = function (ch) {\n\t if (!cm.options.lineWrapping) { return {begin: 0, end: line.text.length} }\n\t prep = prep || prepareMeasureForLine(cm, line);\n\t return wrappedLineExtentChar(cm, line, prep, ch)\n\t };\n\t var wrappedLineExtent = getWrappedLineExtent(start.sticky == \"before\" ? mv(start, -1) : start.ch);\n\t\n\t if (cm.doc.direction == \"rtl\" || part.level == 1) {\n\t var moveInStorageOrder = (part.level == 1) == (dir < 0);\n\t var ch = mv(start, moveInStorageOrder ? 1 : -1);\n\t if (ch != null && (!moveInStorageOrder ? ch >= part.from && ch >= wrappedLineExtent.begin : ch <= part.to && ch <= wrappedLineExtent.end)) {\n\t // Case 2: We move within an rtl part or in an rtl editor on the same visual line\n\t var sticky = moveInStorageOrder ? \"before\" : \"after\";\n\t return new Pos(start.line, ch, sticky)\n\t }\n\t }\n\t\n\t // Case 3: Could not move within this bidi part in this visual line, so leave\n\t // the current bidi part\n\t\n\t var searchInVisualLine = function (partPos, dir, wrappedLineExtent) {\n\t var getRes = function (ch, moveInStorageOrder) { return moveInStorageOrder\n\t ? new Pos(start.line, mv(ch, 1), \"before\")\n\t : new Pos(start.line, ch, \"after\"); };\n\t\n\t for (; partPos >= 0 && partPos < bidi.length; partPos += dir) {\n\t var part = bidi[partPos];\n\t var moveInStorageOrder = (dir > 0) == (part.level != 1);\n\t var ch = moveInStorageOrder ? wrappedLineExtent.begin : mv(wrappedLineExtent.end, -1);\n\t if (part.from <= ch && ch < part.to) { return getRes(ch, moveInStorageOrder) }\n\t ch = moveInStorageOrder ? part.from : mv(part.to, -1);\n\t if (wrappedLineExtent.begin <= ch && ch < wrappedLineExtent.end) { return getRes(ch, moveInStorageOrder) }\n\t }\n\t };\n\t\n\t // Case 3a: Look for other bidi parts on the same visual line\n\t var res = searchInVisualLine(partPos + dir, dir, wrappedLineExtent);\n\t if (res) { return res }\n\t\n\t // Case 3b: Look for other bidi parts on the next visual line\n\t var nextCh = dir > 0 ? wrappedLineExtent.end : mv(wrappedLineExtent.begin, -1);\n\t if (nextCh != null && !(dir > 0 && nextCh == line.text.length)) {\n\t res = searchInVisualLine(dir > 0 ? 0 : bidi.length - 1, dir, getWrappedLineExtent(nextCh));\n\t if (res) { return res }\n\t }\n\t\n\t // Case 4: Nowhere to move\n\t return null\n\t}\n\t\n\t// EVENT HANDLING\n\t\n\t// Lightweight event framework. on/off also work on DOM nodes,\n\t// registering native DOM handlers.\n\t\n\tvar noHandlers = [];\n\t\n\tvar on = function(emitter, type, f) {\n\t if (emitter.addEventListener) {\n\t emitter.addEventListener(type, f, false);\n\t } else if (emitter.attachEvent) {\n\t emitter.attachEvent(\"on\" + type, f);\n\t } else {\n\t var map$$1 = emitter._handlers || (emitter._handlers = {});\n\t map$$1[type] = (map$$1[type] || noHandlers).concat(f);\n\t }\n\t};\n\t\n\tfunction getHandlers(emitter, type) {\n\t return emitter._handlers && emitter._handlers[type] || noHandlers\n\t}\n\t\n\tfunction off(emitter, type, f) {\n\t if (emitter.removeEventListener) {\n\t emitter.removeEventListener(type, f, false);\n\t } else if (emitter.detachEvent) {\n\t emitter.detachEvent(\"on\" + type, f);\n\t } else {\n\t var map$$1 = emitter._handlers, arr = map$$1 && map$$1[type];\n\t if (arr) {\n\t var index = indexOf(arr, f);\n\t if (index > -1)\n\t { map$$1[type] = arr.slice(0, index).concat(arr.slice(index + 1)); }\n\t }\n\t }\n\t}\n\t\n\tfunction signal(emitter, type /*, values...*/) {\n\t var handlers = getHandlers(emitter, type);\n\t if (!handlers.length) { return }\n\t var args = Array.prototype.slice.call(arguments, 2);\n\t for (var i = 0; i < handlers.length; ++i) { handlers[i].apply(null, args); }\n\t}\n\t\n\t// The DOM events that CodeMirror handles can be overridden by\n\t// registering a (non-DOM) handler on the editor for the event name,\n\t// and preventDefault-ing the event in that handler.\n\tfunction signalDOMEvent(cm, e, override) {\n\t if (typeof e == \"string\")\n\t { e = {type: e, preventDefault: function() { this.defaultPrevented = true; }}; }\n\t signal(cm, override || e.type, cm, e);\n\t return e_defaultPrevented(e) || e.codemirrorIgnore\n\t}\n\t\n\tfunction signalCursorActivity(cm) {\n\t var arr = cm._handlers && cm._handlers.cursorActivity;\n\t if (!arr) { return }\n\t var set = cm.curOp.cursorActivityHandlers || (cm.curOp.cursorActivityHandlers = []);\n\t for (var i = 0; i < arr.length; ++i) { if (indexOf(set, arr[i]) == -1)\n\t { set.push(arr[i]); } }\n\t}\n\t\n\tfunction hasHandler(emitter, type) {\n\t return getHandlers(emitter, type).length > 0\n\t}\n\t\n\t// Add on and off methods to a constructor's prototype, to make\n\t// registering events on such objects more convenient.\n\tfunction eventMixin(ctor) {\n\t ctor.prototype.on = function(type, f) {on(this, type, f);};\n\t ctor.prototype.off = function(type, f) {off(this, type, f);};\n\t}\n\t\n\t// Due to the fact that we still support jurassic IE versions, some\n\t// compatibility wrappers are needed.\n\t\n\tfunction e_preventDefault(e) {\n\t if (e.preventDefault) { e.preventDefault(); }\n\t else { e.returnValue = false; }\n\t}\n\tfunction e_stopPropagation(e) {\n\t if (e.stopPropagation) { e.stopPropagation(); }\n\t else { e.cancelBubble = true; }\n\t}\n\tfunction e_defaultPrevented(e) {\n\t return e.defaultPrevented != null ? e.defaultPrevented : e.returnValue == false\n\t}\n\tfunction e_stop(e) {e_preventDefault(e); e_stopPropagation(e);}\n\t\n\tfunction e_target(e) {return e.target || e.srcElement}\n\tfunction e_button(e) {\n\t var b = e.which;\n\t if (b == null) {\n\t if (e.button & 1) { b = 1; }\n\t else if (e.button & 2) { b = 3; }\n\t else if (e.button & 4) { b = 2; }\n\t }\n\t if (mac && e.ctrlKey && b == 1) { b = 3; }\n\t return b\n\t}\n\t\n\t// Detect drag-and-drop\n\tvar dragAndDrop = function() {\n\t // There is *some* kind of drag-and-drop support in IE6-8, but I\n\t // couldn't get it to work yet.\n\t if (ie && ie_version < 9) { return false }\n\t var div = elt('div');\n\t return \"draggable\" in div || \"dragDrop\" in div\n\t}();\n\t\n\tvar zwspSupported;\n\tfunction zeroWidthElement(measure) {\n\t if (zwspSupported == null) {\n\t var test = elt(\"span\", \"\\u200b\");\n\t removeChildrenAndAdd(measure, elt(\"span\", [test, document.createTextNode(\"x\")]));\n\t if (measure.firstChild.offsetHeight != 0)\n\t { zwspSupported = test.offsetWidth <= 1 && test.offsetHeight > 2 && !(ie && ie_version < 8); }\n\t }\n\t var node = zwspSupported ? elt(\"span\", \"\\u200b\") :\n\t elt(\"span\", \"\\u00a0\", null, \"display: inline-block; width: 1px; margin-right: -1px\");\n\t node.setAttribute(\"cm-text\", \"\");\n\t return node\n\t}\n\t\n\t// Feature-detect IE's crummy client rect reporting for bidi text\n\tvar badBidiRects;\n\tfunction hasBadBidiRects(measure) {\n\t if (badBidiRects != null) { return badBidiRects }\n\t var txt = removeChildrenAndAdd(measure, document.createTextNode(\"A\\u062eA\"));\n\t var r0 = range(txt, 0, 1).getBoundingClientRect();\n\t var r1 = range(txt, 1, 2).getBoundingClientRect();\n\t removeChildren(measure);\n\t if (!r0 || r0.left == r0.right) { return false } // Safari returns null in some cases (#2780)\n\t return badBidiRects = (r1.right - r0.right < 3)\n\t}\n\t\n\t// See if \"\".split is the broken IE version, if so, provide an\n\t// alternative way to split lines.\n\tvar splitLinesAuto = \"\\n\\nb\".split(/\\n/).length != 3 ? function (string) {\n\t var pos = 0, result = [], l = string.length;\n\t while (pos <= l) {\n\t var nl = string.indexOf(\"\\n\", pos);\n\t if (nl == -1) { nl = string.length; }\n\t var line = string.slice(pos, string.charAt(nl - 1) == \"\\r\" ? nl - 1 : nl);\n\t var rt = line.indexOf(\"\\r\");\n\t if (rt != -1) {\n\t result.push(line.slice(0, rt));\n\t pos += rt + 1;\n\t } else {\n\t result.push(line);\n\t pos = nl + 1;\n\t }\n\t }\n\t return result\n\t} : function (string) { return string.split(/\\r\\n?|\\n/); };\n\t\n\tvar hasSelection = window.getSelection ? function (te) {\n\t try { return te.selectionStart != te.selectionEnd }\n\t catch(e) { return false }\n\t} : function (te) {\n\t var range$$1;\n\t try {range$$1 = te.ownerDocument.selection.createRange();}\n\t catch(e) {}\n\t if (!range$$1 || range$$1.parentElement() != te) { return false }\n\t return range$$1.compareEndPoints(\"StartToEnd\", range$$1) != 0\n\t};\n\t\n\tvar hasCopyEvent = (function () {\n\t var e = elt(\"div\");\n\t if (\"oncopy\" in e) { return true }\n\t e.setAttribute(\"oncopy\", \"return;\");\n\t return typeof e.oncopy == \"function\"\n\t})();\n\t\n\tvar badZoomedRects = null;\n\tfunction hasBadZoomedRects(measure) {\n\t if (badZoomedRects != null) { return badZoomedRects }\n\t var node = removeChildrenAndAdd(measure, elt(\"span\", \"x\"));\n\t var normal = node.getBoundingClientRect();\n\t var fromRange = range(node, 0, 1).getBoundingClientRect();\n\t return badZoomedRects = Math.abs(normal.left - fromRange.left) > 1\n\t}\n\t\n\t// Known modes, by name and by MIME\n\tvar modes = {};\n\tvar mimeModes = {};\n\t\n\t// Extra arguments are stored as the mode's dependencies, which is\n\t// used by (legacy) mechanisms like loadmode.js to automatically\n\t// load a mode. (Preferred mechanism is the require/define calls.)\n\tfunction defineMode(name, mode) {\n\t if (arguments.length > 2)\n\t { mode.dependencies = Array.prototype.slice.call(arguments, 2); }\n\t modes[name] = mode;\n\t}\n\t\n\tfunction defineMIME(mime, spec) {\n\t mimeModes[mime] = spec;\n\t}\n\t\n\t// Given a MIME type, a {name, ...options} config object, or a name\n\t// string, return a mode config object.\n\tfunction resolveMode(spec) {\n\t if (typeof spec == \"string\" && mimeModes.hasOwnProperty(spec)) {\n\t spec = mimeModes[spec];\n\t } else if (spec && typeof spec.name == \"string\" && mimeModes.hasOwnProperty(spec.name)) {\n\t var found = mimeModes[spec.name];\n\t if (typeof found == \"string\") { found = {name: found}; }\n\t spec = createObj(found, spec);\n\t spec.name = found.name;\n\t } else if (typeof spec == \"string\" && /^[\\w\\-]+\\/[\\w\\-]+\\+xml$/.test(spec)) {\n\t return resolveMode(\"application/xml\")\n\t } else if (typeof spec == \"string\" && /^[\\w\\-]+\\/[\\w\\-]+\\+json$/.test(spec)) {\n\t return resolveMode(\"application/json\")\n\t }\n\t if (typeof spec == \"string\") { return {name: spec} }\n\t else { return spec || {name: \"null\"} }\n\t}\n\t\n\t// Given a mode spec (anything that resolveMode accepts), find and\n\t// initialize an actual mode object.\n\tfunction getMode(options, spec) {\n\t spec = resolveMode(spec);\n\t var mfactory = modes[spec.name];\n\t if (!mfactory) { return getMode(options, \"text/plain\") }\n\t var modeObj = mfactory(options, spec);\n\t if (modeExtensions.hasOwnProperty(spec.name)) {\n\t var exts = modeExtensions[spec.name];\n\t for (var prop in exts) {\n\t if (!exts.hasOwnProperty(prop)) { continue }\n\t if (modeObj.hasOwnProperty(prop)) { modeObj[\"_\" + prop] = modeObj[prop]; }\n\t modeObj[prop] = exts[prop];\n\t }\n\t }\n\t modeObj.name = spec.name;\n\t if (spec.helperType) { modeObj.helperType = spec.helperType; }\n\t if (spec.modeProps) { for (var prop$1 in spec.modeProps)\n\t { modeObj[prop$1] = spec.modeProps[prop$1]; } }\n\t\n\t return modeObj\n\t}\n\t\n\t// This can be used to attach properties to mode objects from\n\t// outside the actual mode definition.\n\tvar modeExtensions = {};\n\tfunction extendMode(mode, properties) {\n\t var exts = modeExtensions.hasOwnProperty(mode) ? modeExtensions[mode] : (modeExtensions[mode] = {});\n\t copyObj(properties, exts);\n\t}\n\t\n\tfunction copyState(mode, state) {\n\t if (state === true) { return state }\n\t if (mode.copyState) { return mode.copyState(state) }\n\t var nstate = {};\n\t for (var n in state) {\n\t var val = state[n];\n\t if (val instanceof Array) { val = val.concat([]); }\n\t nstate[n] = val;\n\t }\n\t return nstate\n\t}\n\t\n\t// Given a mode and a state (for that mode), find the inner mode and\n\t// state at the position that the state refers to.\n\tfunction innerMode(mode, state) {\n\t var info;\n\t while (mode.innerMode) {\n\t info = mode.innerMode(state);\n\t if (!info || info.mode == mode) { break }\n\t state = info.state;\n\t mode = info.mode;\n\t }\n\t return info || {mode: mode, state: state}\n\t}\n\t\n\tfunction startState(mode, a1, a2) {\n\t return mode.startState ? mode.startState(a1, a2) : true\n\t}\n\t\n\t// STRING STREAM\n\t\n\t// Fed to the mode parsers, provides helper functions to make\n\t// parsers more succinct.\n\t\n\tvar StringStream = function(string, tabSize) {\n\t this.pos = this.start = 0;\n\t this.string = string;\n\t this.tabSize = tabSize || 8;\n\t this.lastColumnPos = this.lastColumnValue = 0;\n\t this.lineStart = 0;\n\t};\n\t\n\tStringStream.prototype.eol = function () {return this.pos >= this.string.length};\n\tStringStream.prototype.sol = function () {return this.pos == this.lineStart};\n\tStringStream.prototype.peek = function () {return this.string.charAt(this.pos) || undefined};\n\tStringStream.prototype.next = function () {\n\t if (this.pos < this.string.length)\n\t { return this.string.charAt(this.pos++) }\n\t};\n\tStringStream.prototype.eat = function (match) {\n\t var ch = this.string.charAt(this.pos);\n\t var ok;\n\t if (typeof match == \"string\") { ok = ch == match; }\n\t else { ok = ch && (match.test ? match.test(ch) : match(ch)); }\n\t if (ok) {++this.pos; return ch}\n\t};\n\tStringStream.prototype.eatWhile = function (match) {\n\t var start = this.pos;\n\t while (this.eat(match)){}\n\t return this.pos > start\n\t};\n\tStringStream.prototype.eatSpace = function () {\n\t var this$1 = this;\n\t\n\t var start = this.pos;\n\t while (/[\\s\\u00a0]/.test(this.string.charAt(this.pos))) { ++this$1.pos; }\n\t return this.pos > start\n\t};\n\tStringStream.prototype.skipToEnd = function () {this.pos = this.string.length;};\n\tStringStream.prototype.skipTo = function (ch) {\n\t var found = this.string.indexOf(ch, this.pos);\n\t if (found > -1) {this.pos = found; return true}\n\t};\n\tStringStream.prototype.backUp = function (n) {this.pos -= n;};\n\tStringStream.prototype.column = function () {\n\t if (this.lastColumnPos < this.start) {\n\t this.lastColumnValue = countColumn(this.string, this.start, this.tabSize, this.lastColumnPos, this.lastColumnValue);\n\t this.lastColumnPos = this.start;\n\t }\n\t return this.lastColumnValue - (this.lineStart ? countColumn(this.string, this.lineStart, this.tabSize) : 0)\n\t};\n\tStringStream.prototype.indentation = function () {\n\t return countColumn(this.string, null, this.tabSize) -\n\t (this.lineStart ? countColumn(this.string, this.lineStart, this.tabSize) : 0)\n\t};\n\tStringStream.prototype.match = function (pattern, consume, caseInsensitive) {\n\t if (typeof pattern == \"string\") {\n\t var cased = function (str) { return caseInsensitive ? str.toLowerCase() : str; };\n\t var substr = this.string.substr(this.pos, pattern.length);\n\t if (cased(substr) == cased(pattern)) {\n\t if (consume !== false) { this.pos += pattern.length; }\n\t return true\n\t }\n\t } else {\n\t var match = this.string.slice(this.pos).match(pattern);\n\t if (match && match.index > 0) { return null }\n\t if (match && consume !== false) { this.pos += match[0].length; }\n\t return match\n\t }\n\t};\n\tStringStream.prototype.current = function (){return this.string.slice(this.start, this.pos)};\n\tStringStream.prototype.hideFirstChars = function (n, inner) {\n\t this.lineStart += n;\n\t try { return inner() }\n\t finally { this.lineStart -= n; }\n\t};\n\t\n\t// Compute a style array (an array starting with a mode generation\n\t// -- for invalidation -- followed by pairs of end positions and\n\t// style strings), which is used to highlight the tokens on the\n\t// line.\n\tfunction highlightLine(cm, line, state, forceToEnd) {\n\t // A styles array always starts with a number identifying the\n\t // mode/overlays that it is based on (for easy invalidation).\n\t var st = [cm.state.modeGen], lineClasses = {};\n\t // Compute the base array of styles\n\t runMode(cm, line.text, cm.doc.mode, state, function (end, style) { return st.push(end, style); },\n\t lineClasses, forceToEnd);\n\t\n\t // Run overlays, adjust style array.\n\t var loop = function ( o ) {\n\t var overlay = cm.state.overlays[o], i = 1, at = 0;\n\t runMode(cm, line.text, overlay.mode, true, function (end, style) {\n\t var start = i;\n\t // Ensure there's a token end at the current position, and that i points at it\n\t while (at < end) {\n\t var i_end = st[i];\n\t if (i_end > end)\n\t { st.splice(i, 1, end, st[i+1], i_end); }\n\t i += 2;\n\t at = Math.min(end, i_end);\n\t }\n\t if (!style) { return }\n\t if (overlay.opaque) {\n\t st.splice(start, i - start, end, \"overlay \" + style);\n\t i = start + 2;\n\t } else {\n\t for (; start < i; start += 2) {\n\t var cur = st[start+1];\n\t st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n\t }\n\t }\n\t }, lineClasses);\n\t };\n\t\n\t for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\t\n\t return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n\t}\n\t\n\tfunction getLineStyles(cm, line, updateFrontier) {\n\t if (!line.styles || line.styles[0] != cm.state.modeGen) {\n\t var state = getStateBefore(cm, lineNo(line));\n\t var result = highlightLine(cm, line, line.text.length > cm.options.maxHighlightLength ? copyState(cm.doc.mode, state) : state);\n\t line.stateAfter = state;\n\t line.styles = result.styles;\n\t if (result.classes) { line.styleClasses = result.classes; }\n\t else if (line.styleClasses) { line.styleClasses = null; }\n\t if (updateFrontier === cm.doc.frontier) { cm.doc.frontier++; }\n\t }\n\t return line.styles\n\t}\n\t\n\tfunction getStateBefore(cm, n, precise) {\n\t var doc = cm.doc, display = cm.display;\n\t if (!doc.mode.startState) { return true }\n\t var pos = findStartLine(cm, n, precise), state = pos > doc.first && getLine(doc, pos-1).stateAfter;\n\t if (!state) { state = startState(doc.mode); }\n\t else { state = copyState(doc.mode, state); }\n\t doc.iter(pos, n, function (line) {\n\t processLine(cm, line.text, state);\n\t var save = pos == n - 1 || pos % 5 == 0 || pos >= display.viewFrom && pos < display.viewTo;\n\t line.stateAfter = save ? copyState(doc.mode, state) : null;\n\t ++pos;\n\t });\n\t if (precise) { doc.frontier = pos; }\n\t return state\n\t}\n\t\n\t// Lightweight form of highlight -- proceed over this line and\n\t// update state, but don't save a style array. Used for lines that\n\t// aren't currently visible.\n\tfunction processLine(cm, text, state, startAt) {\n\t var mode = cm.doc.mode;\n\t var stream = new StringStream(text, cm.options.tabSize);\n\t stream.start = stream.pos = startAt || 0;\n\t if (text == \"\") { callBlankLine(mode, state); }\n\t while (!stream.eol()) {\n\t readToken(mode, stream, state);\n\t stream.start = stream.pos;\n\t }\n\t}\n\t\n\tfunction callBlankLine(mode, state) {\n\t if (mode.blankLine) { return mode.blankLine(state) }\n\t if (!mode.innerMode) { return }\n\t var inner = innerMode(mode, state);\n\t if (inner.mode.blankLine) { return inner.mode.blankLine(inner.state) }\n\t}\n\t\n\tfunction readToken(mode, stream, state, inner) {\n\t for (var i = 0; i < 10; i++) {\n\t if (inner) { inner[0] = innerMode(mode, state).mode; }\n\t var style = mode.token(stream, state);\n\t if (stream.pos > stream.start) { return style }\n\t }\n\t throw new Error(\"Mode \" + mode.name + \" failed to advance stream.\")\n\t}\n\t\n\t// Utility for getTokenAt and getLineTokens\n\tfunction takeToken(cm, pos, precise, asArray) {\n\t var getObj = function (copy) { return ({\n\t start: stream.start, end: stream.pos,\n\t string: stream.current(),\n\t type: style || null,\n\t state: copy ? copyState(doc.mode, state) : state\n\t }); };\n\t\n\t var doc = cm.doc, mode = doc.mode, style;\n\t pos = clipPos(doc, pos);\n\t var line = getLine(doc, pos.line), state = getStateBefore(cm, pos.line, precise);\n\t var stream = new StringStream(line.text, cm.options.tabSize), tokens;\n\t if (asArray) { tokens = []; }\n\t while ((asArray || stream.pos < pos.ch) && !stream.eol()) {\n\t stream.start = stream.pos;\n\t style = readToken(mode, stream, state);\n\t if (asArray) { tokens.push(getObj(true)); }\n\t }\n\t return asArray ? tokens : getObj()\n\t}\n\t\n\tfunction extractLineClasses(type, output) {\n\t if (type) { for (;;) {\n\t var lineClass = type.match(/(?:^|\\s+)line-(background-)?(\\S+)/);\n\t if (!lineClass) { break }\n\t type = type.slice(0, lineClass.index) + type.slice(lineClass.index + lineClass[0].length);\n\t var prop = lineClass[1] ? \"bgClass\" : \"textClass\";\n\t if (output[prop] == null)\n\t { output[prop] = lineClass[2]; }\n\t else if (!(new RegExp(\"(?:^|\\s)\" + lineClass[2] + \"(?:$|\\s)\")).test(output[prop]))\n\t { output[prop] += \" \" + lineClass[2]; }\n\t } }\n\t return type\n\t}\n\t\n\t// Run the given mode's parser over a line, calling f for each token.\n\tfunction runMode(cm, text, mode, state, f, lineClasses, forceToEnd) {\n\t var flattenSpans = mode.flattenSpans;\n\t if (flattenSpans == null) { flattenSpans = cm.options.flattenSpans; }\n\t var curStart = 0, curStyle = null;\n\t var stream = new StringStream(text, cm.options.tabSize), style;\n\t var inner = cm.options.addModeClass && [null];\n\t if (text == \"\") { extractLineClasses(callBlankLine(mode, state), lineClasses); }\n\t while (!stream.eol()) {\n\t if (stream.pos > cm.options.maxHighlightLength) {\n\t flattenSpans = false;\n\t if (forceToEnd) { processLine(cm, text, state, stream.pos); }\n\t stream.pos = text.length;\n\t style = null;\n\t } else {\n\t style = extractLineClasses(readToken(mode, stream, state, inner), lineClasses);\n\t }\n\t if (inner) {\n\t var mName = inner[0].name;\n\t if (mName) { style = \"m-\" + (style ? mName + \" \" + style : mName); }\n\t }\n\t if (!flattenSpans || curStyle != style) {\n\t while (curStart < stream.start) {\n\t curStart = Math.min(stream.start, curStart + 5000);\n\t f(curStart, curStyle);\n\t }\n\t curStyle = style;\n\t }\n\t stream.start = stream.pos;\n\t }\n\t while (curStart < stream.pos) {\n\t // Webkit seems to refuse to render text nodes longer than 57444\n\t // characters, and returns inaccurate measurements in nodes\n\t // starting around 5000 chars.\n\t var pos = Math.min(stream.pos, curStart + 5000);\n\t f(pos, curStyle);\n\t curStart = pos;\n\t }\n\t}\n\t\n\t// Finds the line to start with when starting a parse. Tries to\n\t// find a line with a stateAfter, so that it can start with a\n\t// valid state. If that fails, it returns the line with the\n\t// smallest indentation, which tends to need the least context to\n\t// parse correctly.\n\tfunction findStartLine(cm, n, precise) {\n\t var minindent, minline, doc = cm.doc;\n\t var lim = precise ? -1 : n - (cm.doc.mode.innerMode ? 1000 : 100);\n\t for (var search = n; search > lim; --search) {\n\t if (search <= doc.first) { return doc.first }\n\t var line = getLine(doc, search - 1);\n\t if (line.stateAfter && (!precise || search <= doc.frontier)) { return search }\n\t var indented = countColumn(line.text, null, cm.options.tabSize);\n\t if (minline == null || minindent > indented) {\n\t minline = search - 1;\n\t minindent = indented;\n\t }\n\t }\n\t return minline\n\t}\n\t\n\t// LINE DATA STRUCTURE\n\t\n\t// Line objects. These hold state related to a line, including\n\t// highlighting info (the styles array).\n\tvar Line = function(text, markedSpans, estimateHeight) {\n\t this.text = text;\n\t attachMarkedSpans(this, markedSpans);\n\t this.height = estimateHeight ? estimateHeight(this) : 1;\n\t};\n\t\n\tLine.prototype.lineNo = function () { return lineNo(this) };\n\teventMixin(Line);\n\t\n\t// Change the content (text, markers) of a line. Automatically\n\t// invalidates cached information and tries to re-estimate the\n\t// line's height.\n\tfunction updateLine(line, text, markedSpans, estimateHeight) {\n\t line.text = text;\n\t if (line.stateAfter) { line.stateAfter = null; }\n\t if (line.styles) { line.styles = null; }\n\t if (line.order != null) { line.order = null; }\n\t detachMarkedSpans(line);\n\t attachMarkedSpans(line, markedSpans);\n\t var estHeight = estimateHeight ? estimateHeight(line) : 1;\n\t if (estHeight != line.height) { updateLineHeight(line, estHeight); }\n\t}\n\t\n\t// Detach a line from the document tree and its markers.\n\tfunction cleanUpLine(line) {\n\t line.parent = null;\n\t detachMarkedSpans(line);\n\t}\n\t\n\t// Convert a style as returned by a mode (either null, or a string\n\t// containing one or more styles) to a CSS style. This is cached,\n\t// and also looks for line-wide styles.\n\tvar styleToClassCache = {};\n\tvar styleToClassCacheWithMode = {};\n\tfunction interpretTokenStyle(style, options) {\n\t if (!style || /^\\s*$/.test(style)) { return null }\n\t var cache = options.addModeClass ? styleToClassCacheWithMode : styleToClassCache;\n\t return cache[style] ||\n\t (cache[style] = style.replace(/\\S+/g, \"cm-$&\"))\n\t}\n\t\n\t// Render the DOM representation of the text of a line. Also builds\n\t// up a 'line map', which points at the DOM nodes that represent\n\t// specific stretches of text, and is used by the measuring code.\n\t// The returned object contains the DOM node, this map, and\n\t// information about line-wide styles that were set by the mode.\n\tfunction buildLineContent(cm, lineView) {\n\t // The padding-right forces the element to have a 'border', which\n\t // is needed on Webkit to be able to get line-level bounding\n\t // rectangles for it (in measureChar).\n\t var content = eltP(\"span\", null, null, webkit ? \"padding-right: .1px\" : null);\n\t var builder = {pre: eltP(\"pre\", [content], \"CodeMirror-line\"), content: content,\n\t col: 0, pos: 0, cm: cm,\n\t trailingSpace: false,\n\t splitSpaces: (ie || webkit) && cm.getOption(\"lineWrapping\")};\n\t lineView.measure = {};\n\t\n\t // Iterate over the logical lines that make up this visual line.\n\t for (var i = 0; i <= (lineView.rest ? lineView.rest.length : 0); i++) {\n\t var line = i ? lineView.rest[i - 1] : lineView.line, order = (void 0);\n\t builder.pos = 0;\n\t builder.addToken = buildToken;\n\t // Optionally wire in some hacks into the token-rendering\n\t // algorithm, to deal with browser quirks.\n\t if (hasBadBidiRects(cm.display.measure) && (order = getOrder(line, cm.doc.direction)))\n\t { builder.addToken = buildTokenBadBidi(builder.addToken, order); }\n\t builder.map = [];\n\t var allowFrontierUpdate = lineView != cm.display.externalMeasured && lineNo(line);\n\t insertLineContent(line, builder, getLineStyles(cm, line, allowFrontierUpdate));\n\t if (line.styleClasses) {\n\t if (line.styleClasses.bgClass)\n\t { builder.bgClass = joinClasses(line.styleClasses.bgClass, builder.bgClass || \"\"); }\n\t if (line.styleClasses.textClass)\n\t { builder.textClass = joinClasses(line.styleClasses.textClass, builder.textClass || \"\"); }\n\t }\n\t\n\t // Ensure at least a single node is present, for measuring.\n\t if (builder.map.length == 0)\n\t { builder.map.push(0, 0, builder.content.appendChild(zeroWidthElement(cm.display.measure))); }\n\t\n\t // Store the map and a cache object for the current logical line\n\t if (i == 0) {\n\t lineView.measure.map = builder.map;\n\t lineView.measure.cache = {};\n\t } else {\n\t (lineView.measure.maps || (lineView.measure.maps = [])).push(builder.map)\n\t ;(lineView.measure.caches || (lineView.measure.caches = [])).push({});\n\t }\n\t }\n\t\n\t // See issue #2901\n\t if (webkit) {\n\t var last = builder.content.lastChild;\n\t if (/\\bcm-tab\\b/.test(last.className) || (last.querySelector && last.querySelector(\".cm-tab\")))\n\t { builder.content.className = \"cm-tab-wrap-hack\"; }\n\t }\n\t\n\t signal(cm, \"renderLine\", cm, lineView.line, builder.pre);\n\t if (builder.pre.className)\n\t { builder.textClass = joinClasses(builder.pre.className, builder.textClass || \"\"); }\n\t\n\t return builder\n\t}\n\t\n\tfunction defaultSpecialCharPlaceholder(ch) {\n\t var token = elt(\"span\", \"\\u2022\", \"cm-invalidchar\");\n\t token.title = \"\\\\u\" + ch.charCodeAt(0).toString(16);\n\t token.setAttribute(\"aria-label\", token.title);\n\t return token\n\t}\n\t\n\t// Build up the DOM representation for a single token, and add it to\n\t// the line map. Takes care to render special characters separately.\n\tfunction buildToken(builder, text, style, startStyle, endStyle, title, css) {\n\t if (!text) { return }\n\t var displayText = builder.splitSpaces ? splitSpaces(text, builder.trailingSpace) : text;\n\t var special = builder.cm.state.specialChars, mustWrap = false;\n\t var content;\n\t if (!special.test(text)) {\n\t builder.col += text.length;\n\t content = document.createTextNode(displayText);\n\t builder.map.push(builder.pos, builder.pos + text.length, content);\n\t if (ie && ie_version < 9) { mustWrap = true; }\n\t builder.pos += text.length;\n\t } else {\n\t content = document.createDocumentFragment();\n\t var pos = 0;\n\t while (true) {\n\t special.lastIndex = pos;\n\t var m = special.exec(text);\n\t var skipped = m ? m.index - pos : text.length - pos;\n\t if (skipped) {\n\t var txt = document.createTextNode(displayText.slice(pos, pos + skipped));\n\t if (ie && ie_version < 9) { content.appendChild(elt(\"span\", [txt])); }\n\t else { content.appendChild(txt); }\n\t builder.map.push(builder.pos, builder.pos + skipped, txt);\n\t builder.col += skipped;\n\t builder.pos += skipped;\n\t }\n\t if (!m) { break }\n\t pos += skipped + 1;\n\t var txt$1 = (void 0);\n\t if (m[0] == \"\\t\") {\n\t var tabSize = builder.cm.options.tabSize, tabWidth = tabSize - builder.col % tabSize;\n\t txt$1 = content.appendChild(elt(\"span\", spaceStr(tabWidth), \"cm-tab\"));\n\t txt$1.setAttribute(\"role\", \"presentation\");\n\t txt$1.setAttribute(\"cm-text\", \"\\t\");\n\t builder.col += tabWidth;\n\t } else if (m[0] == \"\\r\" || m[0] == \"\\n\") {\n\t txt$1 = content.appendChild(elt(\"span\", m[0] == \"\\r\" ? \"\\u240d\" : \"\\u2424\", \"cm-invalidchar\"));\n\t txt$1.setAttribute(\"cm-text\", m[0]);\n\t builder.col += 1;\n\t } else {\n\t txt$1 = builder.cm.options.specialCharPlaceholder(m[0]);\n\t txt$1.setAttribute(\"cm-text\", m[0]);\n\t if (ie && ie_version < 9) { content.appendChild(elt(\"span\", [txt$1])); }\n\t else { content.appendChild(txt$1); }\n\t builder.col += 1;\n\t }\n\t builder.map.push(builder.pos, builder.pos + 1, txt$1);\n\t builder.pos++;\n\t }\n\t }\n\t builder.trailingSpace = displayText.charCodeAt(text.length - 1) == 32;\n\t if (style || startStyle || endStyle || mustWrap || css) {\n\t var fullStyle = style || \"\";\n\t if (startStyle) { fullStyle += startStyle; }\n\t if (endStyle) { fullStyle += endStyle; }\n\t var token = elt(\"span\", [content], fullStyle, css);\n\t if (title) { token.title = title; }\n\t return builder.content.appendChild(token)\n\t }\n\t builder.content.appendChild(content);\n\t}\n\t\n\tfunction splitSpaces(text, trailingBefore) {\n\t if (text.length > 1 && !/ /.test(text)) { return text }\n\t var spaceBefore = trailingBefore, result = \"\";\n\t for (var i = 0; i < text.length; i++) {\n\t var ch = text.charAt(i);\n\t if (ch == \" \" && spaceBefore && (i == text.length - 1 || text.charCodeAt(i + 1) == 32))\n\t { ch = \"\\u00a0\"; }\n\t result += ch;\n\t spaceBefore = ch == \" \";\n\t }\n\t return result\n\t}\n\t\n\t// Work around nonsense dimensions being reported for stretches of\n\t// right-to-left text.\n\tfunction buildTokenBadBidi(inner, order) {\n\t return function (builder, text, style, startStyle, endStyle, title, css) {\n\t style = style ? style + \" cm-force-border\" : \"cm-force-border\";\n\t var start = builder.pos, end = start + text.length;\n\t for (;;) {\n\t // Find the part that overlaps with the start of this text\n\t var part = (void 0);\n\t for (var i = 0; i < order.length; i++) {\n\t part = order[i];\n\t if (part.to > start && part.from <= start) { break }\n\t }\n\t if (part.to >= end) { return inner(builder, text, style, startStyle, endStyle, title, css) }\n\t inner(builder, text.slice(0, part.to - start), style, startStyle, null, title, css);\n\t startStyle = null;\n\t text = text.slice(part.to - start);\n\t start = part.to;\n\t }\n\t }\n\t}\n\t\n\tfunction buildCollapsedSpan(builder, size, marker, ignoreWidget) {\n\t var widget = !ignoreWidget && marker.widgetNode;\n\t if (widget) { builder.map.push(builder.pos, builder.pos + size, widget); }\n\t if (!ignoreWidget && builder.cm.display.input.needsContentAttribute) {\n\t if (!widget)\n\t { widget = builder.content.appendChild(document.createElement(\"span\")); }\n\t widget.setAttribute(\"cm-marker\", marker.id);\n\t }\n\t if (widget) {\n\t builder.cm.display.input.setUneditable(widget);\n\t builder.content.appendChild(widget);\n\t }\n\t builder.pos += size;\n\t builder.trailingSpace = false;\n\t}\n\t\n\t// Outputs a number of spans to make up a line, taking highlighting\n\t// and marked text into account.\n\tfunction insertLineContent(line, builder, styles) {\n\t var spans = line.markedSpans, allText = line.text, at = 0;\n\t if (!spans) {\n\t for (var i$1 = 1; i$1 < styles.length; i$1+=2)\n\t { builder.addToken(builder, allText.slice(at, at = styles[i$1]), interpretTokenStyle(styles[i$1+1], builder.cm.options)); }\n\t return\n\t }\n\t\n\t var len = allText.length, pos = 0, i = 1, text = \"\", style, css;\n\t var nextChange = 0, spanStyle, spanEndStyle, spanStartStyle, title, collapsed;\n\t for (;;) {\n\t if (nextChange == pos) { // Update current marker set\n\t spanStyle = spanEndStyle = spanStartStyle = title = css = \"\";\n\t collapsed = null; nextChange = Infinity;\n\t var foundBookmarks = [], endStyles = (void 0);\n\t for (var j = 0; j < spans.length; ++j) {\n\t var sp = spans[j], m = sp.marker;\n\t if (m.type == \"bookmark\" && sp.from == pos && m.widgetNode) {\n\t foundBookmarks.push(m);\n\t } else if (sp.from <= pos && (sp.to == null || sp.to > pos || m.collapsed && sp.to == pos && sp.from == pos)) {\n\t if (sp.to != null && sp.to != pos && nextChange > sp.to) {\n\t nextChange = sp.to;\n\t spanEndStyle = \"\";\n\t }\n\t if (m.className) { spanStyle += \" \" + m.className; }\n\t if (m.css) { css = (css ? css + \";\" : \"\") + m.css; }\n\t if (m.startStyle && sp.from == pos) { spanStartStyle += \" \" + m.startStyle; }\n\t if (m.endStyle && sp.to == nextChange) { (endStyles || (endStyles = [])).push(m.endStyle, sp.to); }\n\t if (m.title && !title) { title = m.title; }\n\t if (m.collapsed && (!collapsed || compareCollapsedMarkers(collapsed.marker, m) < 0))\n\t { collapsed = sp; }\n\t } else if (sp.from > pos && nextChange > sp.from) {\n\t nextChange = sp.from;\n\t }\n\t }\n\t if (endStyles) { for (var j$1 = 0; j$1 < endStyles.length; j$1 += 2)\n\t { if (endStyles[j$1 + 1] == nextChange) { spanEndStyle += \" \" + endStyles[j$1]; } } }\n\t\n\t if (!collapsed || collapsed.from == pos) { for (var j$2 = 0; j$2 < foundBookmarks.length; ++j$2)\n\t { buildCollapsedSpan(builder, 0, foundBookmarks[j$2]); } }\n\t if (collapsed && (collapsed.from || 0) == pos) {\n\t buildCollapsedSpan(builder, (collapsed.to == null ? len + 1 : collapsed.to) - pos,\n\t collapsed.marker, collapsed.from == null);\n\t if (collapsed.to == null) { return }\n\t if (collapsed.to == pos) { collapsed = false; }\n\t }\n\t }\n\t if (pos >= len) { break }\n\t\n\t var upto = Math.min(len, nextChange);\n\t while (true) {\n\t if (text) {\n\t var end = pos + text.length;\n\t if (!collapsed) {\n\t var tokenText = end > upto ? text.slice(0, upto - pos) : text;\n\t builder.addToken(builder, tokenText, style ? style + spanStyle : spanStyle,\n\t spanStartStyle, pos + tokenText.length == nextChange ? spanEndStyle : \"\", title, css);\n\t }\n\t if (end >= upto) {text = text.slice(upto - pos); pos = upto; break}\n\t pos = end;\n\t spanStartStyle = \"\";\n\t }\n\t text = allText.slice(at, at = styles[i++]);\n\t style = interpretTokenStyle(styles[i++], builder.cm.options);\n\t }\n\t }\n\t}\n\t\n\t\n\t// These objects are used to represent the visible (currently drawn)\n\t// part of the document. A LineView may correspond to multiple\n\t// logical lines, if those are connected by collapsed ranges.\n\tfunction LineView(doc, line, lineN) {\n\t // The starting line\n\t this.line = line;\n\t // Continuing lines, if any\n\t this.rest = visualLineContinued(line);\n\t // Number of logical lines in this visual line\n\t this.size = this.rest ? lineNo(lst(this.rest)) - lineN + 1 : 1;\n\t this.node = this.text = null;\n\t this.hidden = lineIsHidden(doc, line);\n\t}\n\t\n\t// Create a range of LineView objects for the given lines.\n\tfunction buildViewArray(cm, from, to) {\n\t var array = [], nextPos;\n\t for (var pos = from; pos < to; pos = nextPos) {\n\t var view = new LineView(cm.doc, getLine(cm.doc, pos), pos);\n\t nextPos = pos + view.size;\n\t array.push(view);\n\t }\n\t return array\n\t}\n\t\n\tvar operationGroup = null;\n\t\n\tfunction pushOperation(op) {\n\t if (operationGroup) {\n\t operationGroup.ops.push(op);\n\t } else {\n\t op.ownsGroup = operationGroup = {\n\t ops: [op],\n\t delayedCallbacks: []\n\t };\n\t }\n\t}\n\t\n\tfunction fireCallbacksForOps(group) {\n\t // Calls delayed callbacks and cursorActivity handlers until no\n\t // new ones appear\n\t var callbacks = group.delayedCallbacks, i = 0;\n\t do {\n\t for (; i < callbacks.length; i++)\n\t { callbacks[i].call(null); }\n\t for (var j = 0; j < group.ops.length; j++) {\n\t var op = group.ops[j];\n\t if (op.cursorActivityHandlers)\n\t { while (op.cursorActivityCalled < op.cursorActivityHandlers.length)\n\t { op.cursorActivityHandlers[op.cursorActivityCalled++].call(null, op.cm); } }\n\t }\n\t } while (i < callbacks.length)\n\t}\n\t\n\tfunction finishOperation(op, endCb) {\n\t var group = op.ownsGroup;\n\t if (!group) { return }\n\t\n\t try { fireCallbacksForOps(group); }\n\t finally {\n\t operationGroup = null;\n\t endCb(group);\n\t }\n\t}\n\t\n\tvar orphanDelayedCallbacks = null;\n\t\n\t// Often, we want to signal events at a point where we are in the\n\t// middle of some work, but don't want the handler to start calling\n\t// other methods on the editor, which might be in an inconsistent\n\t// state or simply not expect any other events to happen.\n\t// signalLater looks whether there are any handlers, and schedules\n\t// them to be executed when the last operation ends, or, if no\n\t// operation is active, when a timeout fires.\n\tfunction signalLater(emitter, type /*, values...*/) {\n\t var arr = getHandlers(emitter, type);\n\t if (!arr.length) { return }\n\t var args = Array.prototype.slice.call(arguments, 2), list;\n\t if (operationGroup) {\n\t list = operationGroup.delayedCallbacks;\n\t } else if (orphanDelayedCallbacks) {\n\t list = orphanDelayedCallbacks;\n\t } else {\n\t list = orphanDelayedCallbacks = [];\n\t setTimeout(fireOrphanDelayed, 0);\n\t }\n\t var loop = function ( i ) {\n\t list.push(function () { return arr[i].apply(null, args); });\n\t };\n\t\n\t for (var i = 0; i < arr.length; ++i)\n\t loop( i );\n\t}\n\t\n\tfunction fireOrphanDelayed() {\n\t var delayed = orphanDelayedCallbacks;\n\t orphanDelayedCallbacks = null;\n\t for (var i = 0; i < delayed.length; ++i) { delayed[i](); }\n\t}\n\t\n\t// When an aspect of a line changes, a string is added to\n\t// lineView.changes. This updates the relevant part of the line's\n\t// DOM structure.\n\tfunction updateLineForChanges(cm, lineView, lineN, dims) {\n\t for (var j = 0; j < lineView.changes.length; j++) {\n\t var type = lineView.changes[j];\n\t if (type == \"text\") { updateLineText(cm, lineView); }\n\t else if (type == \"gutter\") { updateLineGutter(cm, lineView, lineN, dims); }\n\t else if (type == \"class\") { updateLineClasses(cm, lineView); }\n\t else if (type == \"widget\") { updateLineWidgets(cm, lineView, dims); }\n\t }\n\t lineView.changes = null;\n\t}\n\t\n\t// Lines with gutter elements, widgets or a background class need to\n\t// be wrapped, and have the extra elements added to the wrapper div\n\tfunction ensureLineWrapped(lineView) {\n\t if (lineView.node == lineView.text) {\n\t lineView.node = elt(\"div\", null, null, \"position: relative\");\n\t if (lineView.text.parentNode)\n\t { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n\t lineView.node.appendChild(lineView.text);\n\t if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n\t }\n\t return lineView.node\n\t}\n\t\n\tfunction updateLineBackground(cm, lineView) {\n\t var cls = lineView.bgClass ? lineView.bgClass + \" \" + (lineView.line.bgClass || \"\") : lineView.line.bgClass;\n\t if (cls) { cls += \" CodeMirror-linebackground\"; }\n\t if (lineView.background) {\n\t if (cls) { lineView.background.className = cls; }\n\t else { lineView.background.parentNode.removeChild(lineView.background); lineView.background = null; }\n\t } else if (cls) {\n\t var wrap = ensureLineWrapped(lineView);\n\t lineView.background = wrap.insertBefore(elt(\"div\", null, cls), wrap.firstChild);\n\t cm.display.input.setUneditable(lineView.background);\n\t }\n\t}\n\t\n\t// Wrapper around buildLineContent which will reuse the structure\n\t// in display.externalMeasured when possible.\n\tfunction getLineContent(cm, lineView) {\n\t var ext = cm.display.externalMeasured;\n\t if (ext && ext.line == lineView.line) {\n\t cm.display.externalMeasured = null;\n\t lineView.measure = ext.measure;\n\t return ext.built\n\t }\n\t return buildLineContent(cm, lineView)\n\t}\n\t\n\t// Redraw the line's text. Interacts with the background and text\n\t// classes because the mode may output tokens that influence these\n\t// classes.\n\tfunction updateLineText(cm, lineView) {\n\t var cls = lineView.text.className;\n\t var built = getLineContent(cm, lineView);\n\t if (lineView.text == lineView.node) { lineView.node = built.pre; }\n\t lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n\t lineView.text = built.pre;\n\t if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n\t lineView.bgClass = built.bgClass;\n\t lineView.textClass = built.textClass;\n\t updateLineClasses(cm, lineView);\n\t } else if (cls) {\n\t lineView.text.className = cls;\n\t }\n\t}\n\t\n\tfunction updateLineClasses(cm, lineView) {\n\t updateLineBackground(cm, lineView);\n\t if (lineView.line.wrapClass)\n\t { ensureLineWrapped(lineView).className = lineView.line.wrapClass; }\n\t else if (lineView.node != lineView.text)\n\t { lineView.node.className = \"\"; }\n\t var textClass = lineView.textClass ? lineView.textClass + \" \" + (lineView.line.textClass || \"\") : lineView.line.textClass;\n\t lineView.text.className = textClass || \"\";\n\t}\n\t\n\tfunction updateLineGutter(cm, lineView, lineN, dims) {\n\t if (lineView.gutter) {\n\t lineView.node.removeChild(lineView.gutter);\n\t lineView.gutter = null;\n\t }\n\t if (lineView.gutterBackground) {\n\t lineView.node.removeChild(lineView.gutterBackground);\n\t lineView.gutterBackground = null;\n\t }\n\t if (lineView.line.gutterClass) {\n\t var wrap = ensureLineWrapped(lineView);\n\t lineView.gutterBackground = elt(\"div\", null, \"CodeMirror-gutter-background \" + lineView.line.gutterClass,\n\t (\"left: \" + (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) + \"px; width: \" + (dims.gutterTotalWidth) + \"px\"));\n\t cm.display.input.setUneditable(lineView.gutterBackground);\n\t wrap.insertBefore(lineView.gutterBackground, lineView.text);\n\t }\n\t var markers = lineView.line.gutterMarkers;\n\t if (cm.options.lineNumbers || markers) {\n\t var wrap$1 = ensureLineWrapped(lineView);\n\t var gutterWrap = lineView.gutter = elt(\"div\", null, \"CodeMirror-gutter-wrapper\", (\"left: \" + (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) + \"px\"));\n\t cm.display.input.setUneditable(gutterWrap);\n\t wrap$1.insertBefore(gutterWrap, lineView.text);\n\t if (lineView.line.gutterClass)\n\t { gutterWrap.className += \" \" + lineView.line.gutterClass; }\n\t if (cm.options.lineNumbers && (!markers || !markers[\"CodeMirror-linenumbers\"]))\n\t { lineView.lineNumber = gutterWrap.appendChild(\n\t elt(\"div\", lineNumberFor(cm.options, lineN),\n\t \"CodeMirror-linenumber CodeMirror-gutter-elt\",\n\t (\"left: \" + (dims.gutterLeft[\"CodeMirror-linenumbers\"]) + \"px; width: \" + (cm.display.lineNumInnerWidth) + \"px\"))); }\n\t if (markers) { for (var k = 0; k < cm.options.gutters.length; ++k) {\n\t var id = cm.options.gutters[k], found = markers.hasOwnProperty(id) && markers[id];\n\t if (found)\n\t { gutterWrap.appendChild(elt(\"div\", [found], \"CodeMirror-gutter-elt\",\n\t (\"left: \" + (dims.gutterLeft[id]) + \"px; width: \" + (dims.gutterWidth[id]) + \"px\"))); }\n\t } }\n\t }\n\t}\n\t\n\tfunction updateLineWidgets(cm, lineView, dims) {\n\t if (lineView.alignable) { lineView.alignable = null; }\n\t for (var node = lineView.node.firstChild, next = (void 0); node; node = next) {\n\t next = node.nextSibling;\n\t if (node.className == \"CodeMirror-linewidget\")\n\t { lineView.node.removeChild(node); }\n\t }\n\t insertLineWidgets(cm, lineView, dims);\n\t}\n\t\n\t// Build a line's DOM representation from scratch\n\tfunction buildLineElement(cm, lineView, lineN, dims) {\n\t var built = getLineContent(cm, lineView);\n\t lineView.text = lineView.node = built.pre;\n\t if (built.bgClass) { lineView.bgClass = built.bgClass; }\n\t if (built.textClass) { lineView.textClass = built.textClass; }\n\t\n\t updateLineClasses(cm, lineView);\n\t updateLineGutter(cm, lineView, lineN, dims);\n\t insertLineWidgets(cm, lineView, dims);\n\t return lineView.node\n\t}\n\t\n\t// A lineView may contain multiple logical lines (when merged by\n\t// collapsed spans). The widgets for all of them need to be drawn.\n\tfunction insertLineWidgets(cm, lineView, dims) {\n\t insertLineWidgetsFor(cm, lineView.line, lineView, dims, true);\n\t if (lineView.rest) { for (var i = 0; i < lineView.rest.length; i++)\n\t { insertLineWidgetsFor(cm, lineView.rest[i], lineView, dims, false); } }\n\t}\n\t\n\tfunction insertLineWidgetsFor(cm, line, lineView, dims, allowAbove) {\n\t if (!line.widgets) { return }\n\t var wrap = ensureLineWrapped(lineView);\n\t for (var i = 0, ws = line.widgets; i < ws.length; ++i) {\n\t var widget = ws[i], node = elt(\"div\", [widget.node], \"CodeMirror-linewidget\");\n\t if (!widget.handleMouseEvents) { node.setAttribute(\"cm-ignore-events\", \"true\"); }\n\t positionLineWidget(widget, node, lineView, dims);\n\t cm.display.input.setUneditable(node);\n\t if (allowAbove && widget.above)\n\t { wrap.insertBefore(node, lineView.gutter || lineView.text); }\n\t else\n\t { wrap.appendChild(node); }\n\t signalLater(widget, \"redraw\");\n\t }\n\t}\n\t\n\tfunction positionLineWidget(widget, node, lineView, dims) {\n\t if (widget.noHScroll) {\n\t (lineView.alignable || (lineView.alignable = [])).push(node);\n\t var width = dims.wrapperWidth;\n\t node.style.left = dims.fixedPos + \"px\";\n\t if (!widget.coverGutter) {\n\t width -= dims.gutterTotalWidth;\n\t node.style.paddingLeft = dims.gutterTotalWidth + \"px\";\n\t }\n\t node.style.width = width + \"px\";\n\t }\n\t if (widget.coverGutter) {\n\t node.style.zIndex = 5;\n\t node.style.position = \"relative\";\n\t if (!widget.noHScroll) { node.style.marginLeft = -dims.gutterTotalWidth + \"px\"; }\n\t }\n\t}\n\t\n\tfunction widgetHeight(widget) {\n\t if (widget.height != null) { return widget.height }\n\t var cm = widget.doc.cm;\n\t if (!cm) { return 0 }\n\t if (!contains(document.body, widget.node)) {\n\t var parentStyle = \"position: relative;\";\n\t if (widget.coverGutter)\n\t { parentStyle += \"margin-left: -\" + cm.display.gutters.offsetWidth + \"px;\"; }\n\t if (widget.noHScroll)\n\t { parentStyle += \"width: \" + cm.display.wrapper.clientWidth + \"px;\"; }\n\t removeChildrenAndAdd(cm.display.measure, elt(\"div\", [widget.node], null, parentStyle));\n\t }\n\t return widget.height = widget.node.parentNode.offsetHeight\n\t}\n\t\n\t// Return true when the given mouse event happened in a widget\n\tfunction eventInWidget(display, e) {\n\t for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n\t if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n\t (n.parentNode == display.sizer && n != display.mover))\n\t { return true }\n\t }\n\t}\n\t\n\t// POSITION MEASUREMENT\n\t\n\tfunction paddingTop(display) {return display.lineSpace.offsetTop}\n\tfunction paddingVert(display) {return display.mover.offsetHeight - display.lineSpace.offsetHeight}\n\tfunction paddingH(display) {\n\t if (display.cachedPaddingH) { return display.cachedPaddingH }\n\t var e = removeChildrenAndAdd(display.measure, elt(\"pre\", \"x\"));\n\t var style = window.getComputedStyle ? window.getComputedStyle(e) : e.currentStyle;\n\t var data = {left: parseInt(style.paddingLeft), right: parseInt(style.paddingRight)};\n\t if (!isNaN(data.left) && !isNaN(data.right)) { display.cachedPaddingH = data; }\n\t return data\n\t}\n\t\n\tfunction scrollGap(cm) { return scrollerGap - cm.display.nativeBarWidth }\n\tfunction displayWidth(cm) {\n\t return cm.display.scroller.clientWidth - scrollGap(cm) - cm.display.barWidth\n\t}\n\tfunction displayHeight(cm) {\n\t return cm.display.scroller.clientHeight - scrollGap(cm) - cm.display.barHeight\n\t}\n\t\n\t// Ensure the lineView.wrapping.heights array is populated. This is\n\t// an array of bottom offsets for the lines that make up a drawn\n\t// line. When lineWrapping is on, there might be more than one\n\t// height.\n\tfunction ensureLineHeights(cm, lineView, rect) {\n\t var wrapping = cm.options.lineWrapping;\n\t var curWidth = wrapping && displayWidth(cm);\n\t if (!lineView.measure.heights || wrapping && lineView.measure.width != curWidth) {\n\t var heights = lineView.measure.heights = [];\n\t if (wrapping) {\n\t lineView.measure.width = curWidth;\n\t var rects = lineView.text.firstChild.getClientRects();\n\t for (var i = 0; i < rects.length - 1; i++) {\n\t var cur = rects[i], next = rects[i + 1];\n\t if (Math.abs(cur.bottom - next.bottom) > 2)\n\t { heights.push((cur.bottom + next.top) / 2 - rect.top); }\n\t }\n\t }\n\t heights.push(rect.bottom - rect.top);\n\t }\n\t}\n\t\n\t// Find a line map (mapping character offsets to text nodes) and a\n\t// measurement cache for the given line number. (A line view might\n\t// contain multiple lines when collapsed ranges are present.)\n\tfunction mapFromLineView(lineView, line, lineN) {\n\t if (lineView.line == line)\n\t { return {map: lineView.measure.map, cache: lineView.measure.cache} }\n\t for (var i = 0; i < lineView.rest.length; i++)\n\t { if (lineView.rest[i] == line)\n\t { return {map: lineView.measure.maps[i], cache: lineView.measure.caches[i]} } }\n\t for (var i$1 = 0; i$1 < lineView.rest.length; i$1++)\n\t { if (lineNo(lineView.rest[i$1]) > lineN)\n\t { return {map: lineView.measure.maps[i$1], cache: lineView.measure.caches[i$1], before: true} } }\n\t}\n\t\n\t// Render a line into the hidden node display.externalMeasured. Used\n\t// when measurement is needed for a line that's not in the viewport.\n\tfunction updateExternalMeasurement(cm, line) {\n\t line = visualLine(line);\n\t var lineN = lineNo(line);\n\t var view = cm.display.externalMeasured = new LineView(cm.doc, line, lineN);\n\t view.lineN = lineN;\n\t var built = view.built = buildLineContent(cm, view);\n\t view.text = built.pre;\n\t removeChildrenAndAdd(cm.display.lineMeasure, built.pre);\n\t return view\n\t}\n\t\n\t// Get a {top, bottom, left, right} box (in line-local coordinates)\n\t// for a given character.\n\tfunction measureChar(cm, line, ch, bias) {\n\t return measureCharPrepared(cm, prepareMeasureForLine(cm, line), ch, bias)\n\t}\n\t\n\t// Find a line view that corresponds to the given line number.\n\tfunction findViewForLine(cm, lineN) {\n\t if (lineN >= cm.display.viewFrom && lineN < cm.display.viewTo)\n\t { return cm.display.view[findViewIndex(cm, lineN)] }\n\t var ext = cm.display.externalMeasured;\n\t if (ext && lineN >= ext.lineN && lineN < ext.lineN + ext.size)\n\t { return ext }\n\t}\n\t\n\t// Measurement can be split in two steps, the set-up work that\n\t// applies to the whole line, and the measurement of the actual\n\t// character. Functions like coordsChar, that need to do a lot of\n\t// measurements in a row, can thus ensure that the set-up work is\n\t// only done once.\n\tfunction prepareMeasureForLine(cm, line) {\n\t var lineN = lineNo(line);\n\t var view = findViewForLine(cm, lineN);\n\t if (view && !view.text) {\n\t view = null;\n\t } else if (view && view.changes) {\n\t updateLineForChanges(cm, view, lineN, getDimensions(cm));\n\t cm.curOp.forceUpdate = true;\n\t }\n\t if (!view)\n\t { view = updateExternalMeasurement(cm, line); }\n\t\n\t var info = mapFromLineView(view, line, lineN);\n\t return {\n\t line: line, view: view, rect: null,\n\t map: info.map, cache: info.cache, before: info.before,\n\t hasHeights: false\n\t }\n\t}\n\t\n\t// Given a prepared measurement object, measures the position of an\n\t// actual character (or fetches it from the cache).\n\tfunction measureCharPrepared(cm, prepared, ch, bias, varHeight) {\n\t if (prepared.before) { ch = -1; }\n\t var key = ch + (bias || \"\"), found;\n\t if (prepared.cache.hasOwnProperty(key)) {\n\t found = prepared.cache[key];\n\t } else {\n\t if (!prepared.rect)\n\t { prepared.rect = prepared.view.text.getBoundingClientRect(); }\n\t if (!prepared.hasHeights) {\n\t ensureLineHeights(cm, prepared.view, prepared.rect);\n\t prepared.hasHeights = true;\n\t }\n\t found = measureCharInner(cm, prepared, ch, bias);\n\t if (!found.bogus) { prepared.cache[key] = found; }\n\t }\n\t return {left: found.left, right: found.right,\n\t top: varHeight ? found.rtop : found.top,\n\t bottom: varHeight ? found.rbottom : found.bottom}\n\t}\n\t\n\tvar nullRect = {left: 0, right: 0, top: 0, bottom: 0};\n\t\n\tfunction nodeAndOffsetInLineMap(map$$1, ch, bias) {\n\t var node, start, end, collapse, mStart, mEnd;\n\t // First, search the line map for the text node corresponding to,\n\t // or closest to, the target character.\n\t for (var i = 0; i < map$$1.length; i += 3) {\n\t mStart = map$$1[i];\n\t mEnd = map$$1[i + 1];\n\t if (ch < mStart) {\n\t start = 0; end = 1;\n\t collapse = \"left\";\n\t } else if (ch < mEnd) {\n\t start = ch - mStart;\n\t end = start + 1;\n\t } else if (i == map$$1.length - 3 || ch == mEnd && map$$1[i + 3] > ch) {\n\t end = mEnd - mStart;\n\t start = end - 1;\n\t if (ch >= mEnd) { collapse = \"right\"; }\n\t }\n\t if (start != null) {\n\t node = map$$1[i + 2];\n\t if (mStart == mEnd && bias == (node.insertLeft ? \"left\" : \"right\"))\n\t { collapse = bias; }\n\t if (bias == \"left\" && start == 0)\n\t { while (i && map$$1[i - 2] == map$$1[i - 3] && map$$1[i - 1].insertLeft) {\n\t node = map$$1[(i -= 3) + 2];\n\t collapse = \"left\";\n\t } }\n\t if (bias == \"right\" && start == mEnd - mStart)\n\t { while (i < map$$1.length - 3 && map$$1[i + 3] == map$$1[i + 4] && !map$$1[i + 5].insertLeft) {\n\t node = map$$1[(i += 3) + 2];\n\t collapse = \"right\";\n\t } }\n\t break\n\t }\n\t }\n\t return {node: node, start: start, end: end, collapse: collapse, coverStart: mStart, coverEnd: mEnd}\n\t}\n\t\n\tfunction getUsefulRect(rects, bias) {\n\t var rect = nullRect;\n\t if (bias == \"left\") { for (var i = 0; i < rects.length; i++) {\n\t if ((rect = rects[i]).left != rect.right) { break }\n\t } } else { for (var i$1 = rects.length - 1; i$1 >= 0; i$1--) {\n\t if ((rect = rects[i$1]).left != rect.right) { break }\n\t } }\n\t return rect\n\t}\n\t\n\tfunction measureCharInner(cm, prepared, ch, bias) {\n\t var place = nodeAndOffsetInLineMap(prepared.map, ch, bias);\n\t var node = place.node, start = place.start, end = place.end, collapse = place.collapse;\n\t\n\t var rect;\n\t if (node.nodeType == 3) { // If it is a text node, use a range to retrieve the coordinates.\n\t for (var i$1 = 0; i$1 < 4; i$1++) { // Retry a maximum of 4 times when nonsense rectangles are returned\n\t while (start && isExtendingChar(prepared.line.text.charAt(place.coverStart + start))) { --start; }\n\t while (place.coverStart + end < place.coverEnd && isExtendingChar(prepared.line.text.charAt(place.coverStart + end))) { ++end; }\n\t if (ie && ie_version < 9 && start == 0 && end == place.coverEnd - place.coverStart)\n\t { rect = node.parentNode.getBoundingClientRect(); }\n\t else\n\t { rect = getUsefulRect(range(node, start, end).getClientRects(), bias); }\n\t if (rect.left || rect.right || start == 0) { break }\n\t end = start;\n\t start = start - 1;\n\t collapse = \"right\";\n\t }\n\t if (ie && ie_version < 11) { rect = maybeUpdateRectForZooming(cm.display.measure, rect); }\n\t } else { // If it is a widget, simply get the box for the whole widget.\n\t if (start > 0) { collapse = bias = \"right\"; }\n\t var rects;\n\t if (cm.options.lineWrapping && (rects = node.getClientRects()).length > 1)\n\t { rect = rects[bias == \"right\" ? rects.length - 1 : 0]; }\n\t else\n\t { rect = node.getBoundingClientRect(); }\n\t }\n\t if (ie && ie_version < 9 && !start && (!rect || !rect.left && !rect.right)) {\n\t var rSpan = node.parentNode.getClientRects()[0];\n\t if (rSpan)\n\t { rect = {left: rSpan.left, right: rSpan.left + charWidth(cm.display), top: rSpan.top, bottom: rSpan.bottom}; }\n\t else\n\t { rect = nullRect; }\n\t }\n\t\n\t var rtop = rect.top - prepared.rect.top, rbot = rect.bottom - prepared.rect.top;\n\t var mid = (rtop + rbot) / 2;\n\t var heights = prepared.view.measure.heights;\n\t var i = 0;\n\t for (; i < heights.length - 1; i++)\n\t { if (mid < heights[i]) { break } }\n\t var top = i ? heights[i - 1] : 0, bot = heights[i];\n\t var result = {left: (collapse == \"right\" ? rect.right : rect.left) - prepared.rect.left,\n\t right: (collapse == \"left\" ? rect.left : rect.right) - prepared.rect.left,\n\t top: top, bottom: bot};\n\t if (!rect.left && !rect.right) { result.bogus = true; }\n\t if (!cm.options.singleCursorHeightPerLine) { result.rtop = rtop; result.rbottom = rbot; }\n\t\n\t return result\n\t}\n\t\n\t// Work around problem with bounding client rects on ranges being\n\t// returned incorrectly when zoomed on IE10 and below.\n\tfunction maybeUpdateRectForZooming(measure, rect) {\n\t if (!window.screen || screen.logicalXDPI == null ||\n\t screen.logicalXDPI == screen.deviceXDPI || !hasBadZoomedRects(measure))\n\t { return rect }\n\t var scaleX = screen.logicalXDPI / screen.deviceXDPI;\n\t var scaleY = screen.logicalYDPI / screen.deviceYDPI;\n\t return {left: rect.left * scaleX, right: rect.right * scaleX,\n\t top: rect.top * scaleY, bottom: rect.bottom * scaleY}\n\t}\n\t\n\tfunction clearLineMeasurementCacheFor(lineView) {\n\t if (lineView.measure) {\n\t lineView.measure.cache = {};\n\t lineView.measure.heights = null;\n\t if (lineView.rest) { for (var i = 0; i < lineView.rest.length; i++)\n\t { lineView.measure.caches[i] = {}; } }\n\t }\n\t}\n\t\n\tfunction clearLineMeasurementCache(cm) {\n\t cm.display.externalMeasure = null;\n\t removeChildren(cm.display.lineMeasure);\n\t for (var i = 0; i < cm.display.view.length; i++)\n\t { clearLineMeasurementCacheFor(cm.display.view[i]); }\n\t}\n\t\n\tfunction clearCaches(cm) {\n\t clearLineMeasurementCache(cm);\n\t cm.display.cachedCharWidth = cm.display.cachedTextHeight = cm.display.cachedPaddingH = null;\n\t if (!cm.options.lineWrapping) { cm.display.maxLineChanged = true; }\n\t cm.display.lineNumChars = null;\n\t}\n\t\n\tfunction pageScrollX() { return window.pageXOffset || (document.documentElement || document.body).scrollLeft }\n\tfunction pageScrollY() { return window.pageYOffset || (document.documentElement || document.body).scrollTop }\n\t\n\t// Converts a {top, bottom, left, right} box from line-local\n\t// coordinates into another coordinate system. Context may be one of\n\t// \"line\", \"div\" (display.lineDiv), \"local\"./null (editor), \"window\",\n\t// or \"page\".\n\tfunction intoCoordSystem(cm, lineObj, rect, context, includeWidgets) {\n\t if (!includeWidgets && lineObj.widgets) { for (var i = 0; i < lineObj.widgets.length; ++i) { if (lineObj.widgets[i].above) {\n\t var size = widgetHeight(lineObj.widgets[i]);\n\t rect.top += size; rect.bottom += size;\n\t } } }\n\t if (context == \"line\") { return rect }\n\t if (!context) { context = \"local\"; }\n\t var yOff = heightAtLine(lineObj);\n\t if (context == \"local\") { yOff += paddingTop(cm.display); }\n\t else { yOff -= cm.display.viewOffset; }\n\t if (context == \"page\" || context == \"window\") {\n\t var lOff = cm.display.lineSpace.getBoundingClientRect();\n\t yOff += lOff.top + (context == \"window\" ? 0 : pageScrollY());\n\t var xOff = lOff.left + (context == \"window\" ? 0 : pageScrollX());\n\t rect.left += xOff; rect.right += xOff;\n\t }\n\t rect.top += yOff; rect.bottom += yOff;\n\t return rect\n\t}\n\t\n\t// Coverts a box from \"div\" coords to another coordinate system.\n\t// Context may be \"window\", \"page\", \"div\", or \"local\"./null.\n\tfunction fromCoordSystem(cm, coords, context) {\n\t if (context == \"div\") { return coords }\n\t var left = coords.left, top = coords.top;\n\t // First move into \"page\" coordinate system\n\t if (context == \"page\") {\n\t left -= pageScrollX();\n\t top -= pageScrollY();\n\t } else if (context == \"local\" || !context) {\n\t var localBox = cm.display.sizer.getBoundingClientRect();\n\t left += localBox.left;\n\t top += localBox.top;\n\t }\n\t\n\t var lineSpaceBox = cm.display.lineSpace.getBoundingClientRect();\n\t return {left: left - lineSpaceBox.left, top: top - lineSpaceBox.top}\n\t}\n\t\n\tfunction charCoords(cm, pos, context, lineObj, bias) {\n\t if (!lineObj) { lineObj = getLine(cm.doc, pos.line); }\n\t return intoCoordSystem(cm, lineObj, measureChar(cm, lineObj, pos.ch, bias), context)\n\t}\n\t\n\t// Returns a box for a given cursor position, which may have an\n\t// 'other' property containing the position of the secondary cursor\n\t// on a bidi boundary.\n\t// A cursor Pos(line, char, \"before\") is on the same visual line as `char - 1`\n\t// and after `char - 1` in writing order of `char - 1`\n\t// A cursor Pos(line, char, \"after\") is on the same visual line as `char`\n\t// and before `char` in writing order of `char`\n\t// Examples (upper-case letters are RTL, lower-case are LTR):\n\t// Pos(0, 1, ...)\n\t// before after\n\t// ab a|b a|b\n\t// aB a|B aB|\n\t// Ab |Ab A|b\n\t// AB B|A B|A\n\t// Every position after the last character on a line is considered to stick\n\t// to the last character on the line.\n\tfunction cursorCoords(cm, pos, context, lineObj, preparedMeasure, varHeight) {\n\t lineObj = lineObj || getLine(cm.doc, pos.line);\n\t if (!preparedMeasure) { preparedMeasure = prepareMeasureForLine(cm, lineObj); }\n\t function get(ch, right) {\n\t var m = measureCharPrepared(cm, preparedMeasure, ch, right ? \"right\" : \"left\", varHeight);\n\t if (right) { m.left = m.right; } else { m.right = m.left; }\n\t return intoCoordSystem(cm, lineObj, m, context)\n\t }\n\t var order = getOrder(lineObj, cm.doc.direction), ch = pos.ch, sticky = pos.sticky;\n\t if (ch >= lineObj.text.length) {\n\t ch = lineObj.text.length;\n\t sticky = \"before\";\n\t } else if (ch <= 0) {\n\t ch = 0;\n\t sticky = \"after\";\n\t }\n\t if (!order) { return get(sticky == \"before\" ? ch - 1 : ch, sticky == \"before\") }\n\t\n\t function getBidi(ch, partPos, invert) {\n\t var part = order[partPos], right = (part.level % 2) != 0;\n\t return get(invert ? ch - 1 : ch, right != invert)\n\t }\n\t var partPos = getBidiPartAt(order, ch, sticky);\n\t var other = bidiOther;\n\t var val = getBidi(ch, partPos, sticky == \"before\");\n\t if (other != null) { val.other = getBidi(ch, other, sticky != \"before\"); }\n\t return val\n\t}\n\t\n\t// Used to cheaply estimate the coordinates for a position. Used for\n\t// intermediate scroll updates.\n\tfunction estimateCoords(cm, pos) {\n\t var left = 0;\n\t pos = clipPos(cm.doc, pos);\n\t if (!cm.options.lineWrapping) { left = charWidth(cm.display) * pos.ch; }\n\t var lineObj = getLine(cm.doc, pos.line);\n\t var top = heightAtLine(lineObj) + paddingTop(cm.display);\n\t return {left: left, right: left, top: top, bottom: top + lineObj.height}\n\t}\n\t\n\t// Positions returned by coordsChar contain some extra information.\n\t// xRel is the relative x position of the input coordinates compared\n\t// to the found position (so xRel > 0 means the coordinates are to\n\t// the right of the character position, for example). When outside\n\t// is true, that means the coordinates lie outside the line's\n\t// vertical range.\n\tfunction PosWithInfo(line, ch, sticky, outside, xRel) {\n\t var pos = Pos(line, ch, sticky);\n\t pos.xRel = xRel;\n\t if (outside) { pos.outside = true; }\n\t return pos\n\t}\n\t\n\t// Compute the character position closest to the given coordinates.\n\t// Input must be lineSpace-local (\"div\" coordinate system).\n\tfunction coordsChar(cm, x, y) {\n\t var doc = cm.doc;\n\t y += cm.display.viewOffset;\n\t if (y < 0) { return PosWithInfo(doc.first, 0, null, true, -1) }\n\t var lineN = lineAtHeight(doc, y), last = doc.first + doc.size - 1;\n\t if (lineN > last)\n\t { return PosWithInfo(doc.first + doc.size - 1, getLine(doc, last).text.length, null, true, 1) }\n\t if (x < 0) { x = 0; }\n\t\n\t var lineObj = getLine(doc, lineN);\n\t for (;;) {\n\t var found = coordsCharInner(cm, lineObj, lineN, x, y);\n\t var merged = collapsedSpanAtEnd(lineObj);\n\t var mergedPos = merged && merged.find(0, true);\n\t if (merged && (found.ch > mergedPos.from.ch || found.ch == mergedPos.from.ch && found.xRel > 0))\n\t { lineN = lineNo(lineObj = mergedPos.to.line); }\n\t else\n\t { return found }\n\t }\n\t}\n\t\n\tfunction wrappedLineExtent(cm, lineObj, preparedMeasure, y) {\n\t var measure = function (ch) { return intoCoordSystem(cm, lineObj, measureCharPrepared(cm, preparedMeasure, ch), \"line\"); };\n\t var end = lineObj.text.length;\n\t var begin = findFirst(function (ch) { return measure(ch - 1).bottom <= y; }, end, 0);\n\t end = findFirst(function (ch) { return measure(ch).top > y; }, begin, end);\n\t return {begin: begin, end: end}\n\t}\n\t\n\tfunction wrappedLineExtentChar(cm, lineObj, preparedMeasure, target) {\n\t var targetTop = intoCoordSystem(cm, lineObj, measureCharPrepared(cm, preparedMeasure, target), \"line\").top;\n\t return wrappedLineExtent(cm, lineObj, preparedMeasure, targetTop)\n\t}\n\t\n\tfunction coordsCharInner(cm, lineObj, lineNo$$1, x, y) {\n\t y -= heightAtLine(lineObj);\n\t var begin = 0, end = lineObj.text.length;\n\t var preparedMeasure = prepareMeasureForLine(cm, lineObj);\n\t var pos;\n\t var order = getOrder(lineObj, cm.doc.direction);\n\t if (order) {\n\t if (cm.options.lineWrapping) {\n\t var assign;\n\t ((assign = wrappedLineExtent(cm, lineObj, preparedMeasure, y), begin = assign.begin, end = assign.end, assign));\n\t }\n\t pos = new Pos(lineNo$$1, begin);\n\t var beginLeft = cursorCoords(cm, pos, \"line\", lineObj, preparedMeasure).left;\n\t var dir = beginLeft < x ? 1 : -1;\n\t var prevDiff, diff = beginLeft - x, prevPos;\n\t do {\n\t prevDiff = diff;\n\t prevPos = pos;\n\t pos = moveVisually(cm, lineObj, pos, dir);\n\t if (pos == null || pos.ch < begin || end <= (pos.sticky == \"before\" ? pos.ch - 1 : pos.ch)) {\n\t pos = prevPos;\n\t break\n\t }\n\t diff = cursorCoords(cm, pos, \"line\", lineObj, preparedMeasure).left - x;\n\t } while ((dir < 0) != (diff < 0) && (Math.abs(diff) <= Math.abs(prevDiff)))\n\t if (Math.abs(diff) > Math.abs(prevDiff)) {\n\t if ((diff < 0) == (prevDiff < 0)) { throw new Error(\"Broke out of infinite loop in coordsCharInner\") }\n\t pos = prevPos;\n\t }\n\t } else {\n\t var ch = findFirst(function (ch) {\n\t var box = intoCoordSystem(cm, lineObj, measureCharPrepared(cm, preparedMeasure, ch), \"line\");\n\t if (box.top > y) {\n\t // For the cursor stickiness\n\t end = Math.min(ch, end);\n\t return true\n\t }\n\t else if (box.bottom <= y) { return false }\n\t else if (box.left > x) { return true }\n\t else if (box.right < x) { return false }\n\t else { return (x - box.left < box.right - x) }\n\t }, begin, end);\n\t ch = skipExtendingChars(lineObj.text, ch, 1);\n\t pos = new Pos(lineNo$$1, ch, ch == end ? \"before\" : \"after\");\n\t }\n\t var coords = cursorCoords(cm, pos, \"line\", lineObj, preparedMeasure);\n\t if (y < coords.top || coords.bottom < y) { pos.outside = true; }\n\t pos.xRel = x < coords.left ? -1 : (x > coords.right ? 1 : 0);\n\t return pos\n\t}\n\t\n\tvar measureText;\n\t// Compute the default text height.\n\tfunction textHeight(display) {\n\t if (display.cachedTextHeight != null) { return display.cachedTextHeight }\n\t if (measureText == null) {\n\t measureText = elt(\"pre\");\n\t // Measure a bunch of lines, for browsers that compute\n\t // fractional heights.\n\t for (var i = 0; i < 49; ++i) {\n\t measureText.appendChild(document.createTextNode(\"x\"));\n\t measureText.appendChild(elt(\"br\"));\n\t }\n\t measureText.appendChild(document.createTextNode(\"x\"));\n\t }\n\t removeChildrenAndAdd(display.measure, measureText);\n\t var height = measureText.offsetHeight / 50;\n\t if (height > 3) { display.cachedTextHeight = height; }\n\t removeChildren(display.measure);\n\t return height || 1\n\t}\n\t\n\t// Compute the default character width.\n\tfunction charWidth(display) {\n\t if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n\t var anchor = elt(\"span\", \"xxxxxxxxxx\");\n\t var pre = elt(\"pre\", [anchor]);\n\t removeChildrenAndAdd(display.measure, pre);\n\t var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n\t if (width > 2) { display.cachedCharWidth = width; }\n\t return width || 10\n\t}\n\t\n\t// Do a bulk-read of the DOM positions and sizes needed to draw the\n\t// view, so that we don't interleave reading and writing to the DOM.\n\tfunction getDimensions(cm) {\n\t var d = cm.display, left = {}, width = {};\n\t var gutterLeft = d.gutters.clientLeft;\n\t for (var n = d.gutters.firstChild, i = 0; n; n = n.nextSibling, ++i) {\n\t left[cm.options.gutters[i]] = n.offsetLeft + n.clientLeft + gutterLeft;\n\t width[cm.options.gutters[i]] = n.clientWidth;\n\t }\n\t return {fixedPos: compensateForHScroll(d),\n\t gutterTotalWidth: d.gutters.offsetWidth,\n\t gutterLeft: left,\n\t gutterWidth: width,\n\t wrapperWidth: d.wrapper.clientWidth}\n\t}\n\t\n\t// Computes display.scroller.scrollLeft + display.gutters.offsetWidth,\n\t// but using getBoundingClientRect to get a sub-pixel-accurate\n\t// result.\n\tfunction compensateForHScroll(display) {\n\t return display.scroller.getBoundingClientRect().left - display.sizer.getBoundingClientRect().left\n\t}\n\t\n\t// Returns a function that estimates the height of a line, to use as\n\t// first approximation until the line becomes visible (and is thus\n\t// properly measurable).\n\tfunction estimateHeight(cm) {\n\t var th = textHeight(cm.display), wrapping = cm.options.lineWrapping;\n\t var perLine = wrapping && Math.max(5, cm.display.scroller.clientWidth / charWidth(cm.display) - 3);\n\t return function (line) {\n\t if (lineIsHidden(cm.doc, line)) { return 0 }\n\t\n\t var widgetsHeight = 0;\n\t if (line.widgets) { for (var i = 0; i < line.widgets.length; i++) {\n\t if (line.widgets[i].height) { widgetsHeight += line.widgets[i].height; }\n\t } }\n\t\n\t if (wrapping)\n\t { return widgetsHeight + (Math.ceil(line.text.length / perLine) || 1) * th }\n\t else\n\t { return widgetsHeight + th }\n\t }\n\t}\n\t\n\tfunction estimateLineHeights(cm) {\n\t var doc = cm.doc, est = estimateHeight(cm);\n\t doc.iter(function (line) {\n\t var estHeight = est(line);\n\t if (estHeight != line.height) { updateLineHeight(line, estHeight); }\n\t });\n\t}\n\t\n\t// Given a mouse event, find the corresponding position. If liberal\n\t// is false, it checks whether a gutter or scrollbar was clicked,\n\t// and returns null if it was. forRect is used by rectangular\n\t// selections, and tries to estimate a character position even for\n\t// coordinates beyond the right of the text.\n\tfunction posFromMouse(cm, e, liberal, forRect) {\n\t var display = cm.display;\n\t if (!liberal && e_target(e).getAttribute(\"cm-not-content\") == \"true\") { return null }\n\t\n\t var x, y, space = display.lineSpace.getBoundingClientRect();\n\t // Fails unpredictably on IE[67] when mouse is dragged around quickly.\n\t try { x = e.clientX - space.left; y = e.clientY - space.top; }\n\t catch (e) { return null }\n\t var coords = coordsChar(cm, x, y), line;\n\t if (forRect && coords.xRel == 1 && (line = getLine(cm.doc, coords.line).text).length == coords.ch) {\n\t var colDiff = countColumn(line, line.length, cm.options.tabSize) - line.length;\n\t coords = Pos(coords.line, Math.max(0, Math.round((x - paddingH(cm.display).left) / charWidth(cm.display)) - colDiff));\n\t }\n\t return coords\n\t}\n\t\n\t// Find the view element corresponding to a given line. Return null\n\t// when the line isn't visible.\n\tfunction findViewIndex(cm, n) {\n\t if (n >= cm.display.viewTo) { return null }\n\t n -= cm.display.viewFrom;\n\t if (n < 0) { return null }\n\t var view = cm.display.view;\n\t for (var i = 0; i < view.length; i++) {\n\t n -= view[i].size;\n\t if (n < 0) { return i }\n\t }\n\t}\n\t\n\tfunction updateSelection(cm) {\n\t cm.display.input.showSelection(cm.display.input.prepareSelection());\n\t}\n\t\n\tfunction prepareSelection(cm, primary) {\n\t var doc = cm.doc, result = {};\n\t var curFragment = result.cursors = document.createDocumentFragment();\n\t var selFragment = result.selection = document.createDocumentFragment();\n\t\n\t for (var i = 0; i < doc.sel.ranges.length; i++) {\n\t if (primary === false && i == doc.sel.primIndex) { continue }\n\t var range$$1 = doc.sel.ranges[i];\n\t if (range$$1.from().line >= cm.display.viewTo || range$$1.to().line < cm.display.viewFrom) { continue }\n\t var collapsed = range$$1.empty();\n\t if (collapsed || cm.options.showCursorWhenSelecting)\n\t { drawSelectionCursor(cm, range$$1.head, curFragment); }\n\t if (!collapsed)\n\t { drawSelectionRange(cm, range$$1, selFragment); }\n\t }\n\t return result\n\t}\n\t\n\t// Draws a cursor for the given range\n\tfunction drawSelectionCursor(cm, head, output) {\n\t var pos = cursorCoords(cm, head, \"div\", null, null, !cm.options.singleCursorHeightPerLine);\n\t\n\t var cursor = output.appendChild(elt(\"div\", \"\\u00a0\", \"CodeMirror-cursor\"));\n\t cursor.style.left = pos.left + \"px\";\n\t cursor.style.top = pos.top + \"px\";\n\t cursor.style.height = Math.max(0, pos.bottom - pos.top) * cm.options.cursorHeight + \"px\";\n\t\n\t if (pos.other) {\n\t // Secondary cursor, shown when on a 'jump' in bi-directional text\n\t var otherCursor = output.appendChild(elt(\"div\", \"\\u00a0\", \"CodeMirror-cursor CodeMirror-secondarycursor\"));\n\t otherCursor.style.display = \"\";\n\t otherCursor.style.left = pos.other.left + \"px\";\n\t otherCursor.style.top = pos.other.top + \"px\";\n\t otherCursor.style.height = (pos.other.bottom - pos.other.top) * .85 + \"px\";\n\t }\n\t}\n\t\n\t// Draws the given range as a highlighted selection\n\tfunction drawSelectionRange(cm, range$$1, output) {\n\t var display = cm.display, doc = cm.doc;\n\t var fragment = document.createDocumentFragment();\n\t var padding = paddingH(cm.display), leftSide = padding.left;\n\t var rightSide = Math.max(display.sizerWidth, displayWidth(cm) - display.sizer.offsetLeft) - padding.right;\n\t\n\t function add(left, top, width, bottom) {\n\t if (top < 0) { top = 0; }\n\t top = Math.round(top);\n\t bottom = Math.round(bottom);\n\t fragment.appendChild(elt(\"div\", null, \"CodeMirror-selected\", (\"position: absolute; left: \" + left + \"px;\\n top: \" + top + \"px; width: \" + (width == null ? rightSide - left : width) + \"px;\\n height: \" + (bottom - top) + \"px\")));\n\t }\n\t\n\t function drawForLine(line, fromArg, toArg) {\n\t var lineObj = getLine(doc, line);\n\t var lineLen = lineObj.text.length;\n\t var start, end;\n\t function coords(ch, bias) {\n\t return charCoords(cm, Pos(line, ch), \"div\", lineObj, bias)\n\t }\n\t\n\t iterateBidiSections(getOrder(lineObj, doc.direction), fromArg || 0, toArg == null ? lineLen : toArg, function (from, to, dir) {\n\t var leftPos = coords(from, \"left\"), rightPos, left, right;\n\t if (from == to) {\n\t rightPos = leftPos;\n\t left = right = leftPos.left;\n\t } else {\n\t rightPos = coords(to - 1, \"right\");\n\t if (dir == \"rtl\") { var tmp = leftPos; leftPos = rightPos; rightPos = tmp; }\n\t left = leftPos.left;\n\t right = rightPos.right;\n\t }\n\t if (fromArg == null && from == 0) { left = leftSide; }\n\t if (rightPos.top - leftPos.top > 3) { // Different lines, draw top part\n\t add(left, leftPos.top, null, leftPos.bottom);\n\t left = leftSide;\n\t if (leftPos.bottom < rightPos.top) { add(left, leftPos.bottom, null, rightPos.top); }\n\t }\n\t if (toArg == null && to == lineLen) { right = rightSide; }\n\t if (!start || leftPos.top < start.top || leftPos.top == start.top && leftPos.left < start.left)\n\t { start = leftPos; }\n\t if (!end || rightPos.bottom > end.bottom || rightPos.bottom == end.bottom && rightPos.right > end.right)\n\t { end = rightPos; }\n\t if (left < leftSide + 1) { left = leftSide; }\n\t add(left, rightPos.top, right - left, rightPos.bottom);\n\t });\n\t return {start: start, end: end}\n\t }\n\t\n\t var sFrom = range$$1.from(), sTo = range$$1.to();\n\t if (sFrom.line == sTo.line) {\n\t drawForLine(sFrom.line, sFrom.ch, sTo.ch);\n\t } else {\n\t var fromLine = getLine(doc, sFrom.line), toLine = getLine(doc, sTo.line);\n\t var singleVLine = visualLine(fromLine) == visualLine(toLine);\n\t var leftEnd = drawForLine(sFrom.line, sFrom.ch, singleVLine ? fromLine.text.length + 1 : null).end;\n\t var rightStart = drawForLine(sTo.line, singleVLine ? 0 : null, sTo.ch).start;\n\t if (singleVLine) {\n\t if (leftEnd.top < rightStart.top - 2) {\n\t add(leftEnd.right, leftEnd.top, null, leftEnd.bottom);\n\t add(leftSide, rightStart.top, rightStart.left, rightStart.bottom);\n\t } else {\n\t add(leftEnd.right, leftEnd.top, rightStart.left - leftEnd.right, leftEnd.bottom);\n\t }\n\t }\n\t if (leftEnd.bottom < rightStart.top)\n\t { add(leftSide, leftEnd.bottom, null, rightStart.top); }\n\t }\n\t\n\t output.appendChild(fragment);\n\t}\n\t\n\t// Cursor-blinking\n\tfunction restartBlink(cm) {\n\t if (!cm.state.focused) { return }\n\t var display = cm.display;\n\t clearInterval(display.blinker);\n\t var on = true;\n\t display.cursorDiv.style.visibility = \"\";\n\t if (cm.options.cursorBlinkRate > 0)\n\t { display.blinker = setInterval(function () { return display.cursorDiv.style.visibility = (on = !on) ? \"\" : \"hidden\"; },\n\t cm.options.cursorBlinkRate); }\n\t else if (cm.options.cursorBlinkRate < 0)\n\t { display.cursorDiv.style.visibility = \"hidden\"; }\n\t}\n\t\n\tfunction ensureFocus(cm) {\n\t if (!cm.state.focused) { cm.display.input.focus(); onFocus(cm); }\n\t}\n\t\n\tfunction delayBlurEvent(cm) {\n\t cm.state.delayingBlurEvent = true;\n\t setTimeout(function () { if (cm.state.delayingBlurEvent) {\n\t cm.state.delayingBlurEvent = false;\n\t onBlur(cm);\n\t } }, 100);\n\t}\n\t\n\tfunction onFocus(cm, e) {\n\t if (cm.state.delayingBlurEvent) { cm.state.delayingBlurEvent = false; }\n\t\n\t if (cm.options.readOnly == \"nocursor\") { return }\n\t if (!cm.state.focused) {\n\t signal(cm, \"focus\", cm, e);\n\t cm.state.focused = true;\n\t addClass(cm.display.wrapper, \"CodeMirror-focused\");\n\t // This test prevents this from firing when a context\n\t // menu is closed (since the input reset would kill the\n\t // select-all detection hack)\n\t if (!cm.curOp && cm.display.selForContextMenu != cm.doc.sel) {\n\t cm.display.input.reset();\n\t if (webkit) { setTimeout(function () { return cm.display.input.reset(true); }, 20); } // Issue #1730\n\t }\n\t cm.display.input.receivedFocus();\n\t }\n\t restartBlink(cm);\n\t}\n\tfunction onBlur(cm, e) {\n\t if (cm.state.delayingBlurEvent) { return }\n\t\n\t if (cm.state.focused) {\n\t signal(cm, \"blur\", cm, e);\n\t cm.state.focused = false;\n\t rmClass(cm.display.wrapper, \"CodeMirror-focused\");\n\t }\n\t clearInterval(cm.display.blinker);\n\t setTimeout(function () { if (!cm.state.focused) { cm.display.shift = false; } }, 150);\n\t}\n\t\n\t// Re-align line numbers and gutter marks to compensate for\n\t// horizontal scrolling.\n\tfunction alignHorizontally(cm) {\n\t var display = cm.display, view = display.view;\n\t if (!display.alignWidgets && (!display.gutters.firstChild || !cm.options.fixedGutter)) { return }\n\t var comp = compensateForHScroll(display) - display.scroller.scrollLeft + cm.doc.scrollLeft;\n\t var gutterW = display.gutters.offsetWidth, left = comp + \"px\";\n\t for (var i = 0; i < view.length; i++) { if (!view[i].hidden) {\n\t if (cm.options.fixedGutter) {\n\t if (view[i].gutter)\n\t { view[i].gutter.style.left = left; }\n\t if (view[i].gutterBackground)\n\t { view[i].gutterBackground.style.left = left; }\n\t }\n\t var align = view[i].alignable;\n\t if (align) { for (var j = 0; j < align.length; j++)\n\t { align[j].style.left = left; } }\n\t } }\n\t if (cm.options.fixedGutter)\n\t { display.gutters.style.left = (comp + gutterW) + \"px\"; }\n\t}\n\t\n\t// Used to ensure that the line number gutter is still the right\n\t// size for the current document size. Returns true when an update\n\t// is needed.\n\tfunction maybeUpdateLineNumberWidth(cm) {\n\t if (!cm.options.lineNumbers) { return false }\n\t var doc = cm.doc, last = lineNumberFor(cm.options, doc.first + doc.size - 1), display = cm.display;\n\t if (last.length != display.lineNumChars) {\n\t var test = display.measure.appendChild(elt(\"div\", [elt(\"div\", last)],\n\t \"CodeMirror-linenumber CodeMirror-gutter-elt\"));\n\t var innerW = test.firstChild.offsetWidth, padding = test.offsetWidth - innerW;\n\t display.lineGutter.style.width = \"\";\n\t display.lineNumInnerWidth = Math.max(innerW, display.lineGutter.offsetWidth - padding) + 1;\n\t display.lineNumWidth = display.lineNumInnerWidth + padding;\n\t display.lineNumChars = display.lineNumInnerWidth ? last.length : -1;\n\t display.lineGutter.style.width = display.lineNumWidth + \"px\";\n\t updateGutterSpace(cm);\n\t return true\n\t }\n\t return false\n\t}\n\t\n\t// Read the actual heights of the rendered lines, and update their\n\t// stored heights to match.\n\tfunction updateHeightsInViewport(cm) {\n\t var display = cm.display;\n\t var prevBottom = display.lineDiv.offsetTop;\n\t for (var i = 0; i < display.view.length; i++) {\n\t var cur = display.view[i], height = (void 0);\n\t if (cur.hidden) { continue }\n\t if (ie && ie_version < 8) {\n\t var bot = cur.node.offsetTop + cur.node.offsetHeight;\n\t height = bot - prevBottom;\n\t prevBottom = bot;\n\t } else {\n\t var box = cur.node.getBoundingClientRect();\n\t height = box.bottom - box.top;\n\t }\n\t var diff = cur.line.height - height;\n\t if (height < 2) { height = textHeight(display); }\n\t if (diff > .001 || diff < -.001) {\n\t updateLineHeight(cur.line, height);\n\t updateWidgetHeight(cur.line);\n\t if (cur.rest) { for (var j = 0; j < cur.rest.length; j++)\n\t { updateWidgetHeight(cur.rest[j]); } }\n\t }\n\t }\n\t}\n\t\n\t// Read and store the height of line widgets associated with the\n\t// given line.\n\tfunction updateWidgetHeight(line) {\n\t if (line.widgets) { for (var i = 0; i < line.widgets.length; ++i)\n\t { line.widgets[i].height = line.widgets[i].node.parentNode.offsetHeight; } }\n\t}\n\t\n\t// Compute the lines that are visible in a given viewport (defaults\n\t// the the current scroll position). viewport may contain top,\n\t// height, and ensure (see op.scrollToPos) properties.\n\tfunction visibleLines(display, doc, viewport) {\n\t var top = viewport && viewport.top != null ? Math.max(0, viewport.top) : display.scroller.scrollTop;\n\t top = Math.floor(top - paddingTop(display));\n\t var bottom = viewport && viewport.bottom != null ? viewport.bottom : top + display.wrapper.clientHeight;\n\t\n\t var from = lineAtHeight(doc, top), to = lineAtHeight(doc, bottom);\n\t // Ensure is a {from: {line, ch}, to: {line, ch}} object, and\n\t // forces those lines into the viewport (if possible).\n\t if (viewport && viewport.ensure) {\n\t var ensureFrom = viewport.ensure.from.line, ensureTo = viewport.ensure.to.line;\n\t if (ensureFrom < from) {\n\t from = ensureFrom;\n\t to = lineAtHeight(doc, heightAtLine(getLine(doc, ensureFrom)) + display.wrapper.clientHeight);\n\t } else if (Math.min(ensureTo, doc.lastLine()) >= to) {\n\t from = lineAtHeight(doc, heightAtLine(getLine(doc, ensureTo)) - display.wrapper.clientHeight);\n\t to = ensureTo;\n\t }\n\t }\n\t return {from: from, to: Math.max(to, from + 1)}\n\t}\n\t\n\t// Sync the scrollable area and scrollbars, ensure the viewport\n\t// covers the visible area.\n\tfunction setScrollTop(cm, val) {\n\t if (Math.abs(cm.doc.scrollTop - val) < 2) { return }\n\t cm.doc.scrollTop = val;\n\t if (!gecko) { updateDisplaySimple(cm, {top: val}); }\n\t if (cm.display.scroller.scrollTop != val) { cm.display.scroller.scrollTop = val; }\n\t cm.display.scrollbars.setScrollTop(val);\n\t if (gecko) { updateDisplaySimple(cm); }\n\t startWorker(cm, 100);\n\t}\n\t// Sync scroller and scrollbar, ensure the gutter elements are\n\t// aligned.\n\tfunction setScrollLeft(cm, val, isScroller) {\n\t if (isScroller ? val == cm.doc.scrollLeft : Math.abs(cm.doc.scrollLeft - val) < 2) { return }\n\t val = Math.min(val, cm.display.scroller.scrollWidth - cm.display.scroller.clientWidth);\n\t cm.doc.scrollLeft = val;\n\t alignHorizontally(cm);\n\t if (cm.display.scroller.scrollLeft != val) { cm.display.scroller.scrollLeft = val; }\n\t cm.display.scrollbars.setScrollLeft(val);\n\t}\n\t\n\t// Since the delta values reported on mouse wheel events are\n\t// unstandardized between browsers and even browser versions, and\n\t// generally horribly unpredictable, this code starts by measuring\n\t// the scroll effect that the first few mouse wheel events have,\n\t// and, from that, detects the way it can convert deltas to pixel\n\t// offsets afterwards.\n\t//\n\t// The reason we want to know the amount a wheel event will scroll\n\t// is that it gives us a chance to update the display before the\n\t// actual scrolling happens, reducing flickering.\n\t\n\tvar wheelSamples = 0;\n\tvar wheelPixelsPerUnit = null;\n\t// Fill in a browser-detected starting value on browsers where we\n\t// know one. These don't have to be accurate -- the result of them\n\t// being wrong would just be a slight flicker on the first wheel\n\t// scroll (if it is large enough).\n\tif (ie) { wheelPixelsPerUnit = -.53; }\n\telse if (gecko) { wheelPixelsPerUnit = 15; }\n\telse if (chrome) { wheelPixelsPerUnit = -.7; }\n\telse if (safari) { wheelPixelsPerUnit = -1/3; }\n\t\n\tfunction wheelEventDelta(e) {\n\t var dx = e.wheelDeltaX, dy = e.wheelDeltaY;\n\t if (dx == null && e.detail && e.axis == e.HORIZONTAL_AXIS) { dx = e.detail; }\n\t if (dy == null && e.detail && e.axis == e.VERTICAL_AXIS) { dy = e.detail; }\n\t else if (dy == null) { dy = e.wheelDelta; }\n\t return {x: dx, y: dy}\n\t}\n\tfunction wheelEventPixels(e) {\n\t var delta = wheelEventDelta(e);\n\t delta.x *= wheelPixelsPerUnit;\n\t delta.y *= wheelPixelsPerUnit;\n\t return delta\n\t}\n\t\n\tfunction onScrollWheel(cm, e) {\n\t var delta = wheelEventDelta(e), dx = delta.x, dy = delta.y;\n\t\n\t var display = cm.display, scroll = display.scroller;\n\t // Quit if there's nothing to scroll here\n\t var canScrollX = scroll.scrollWidth > scroll.clientWidth;\n\t var canScrollY = scroll.scrollHeight > scroll.clientHeight;\n\t if (!(dx && canScrollX || dy && canScrollY)) { return }\n\t\n\t // Webkit browsers on OS X abort momentum scrolls when the target\n\t // of the scroll event is removed from the scrollable element.\n\t // This hack (see related code in patchDisplay) makes sure the\n\t // element is kept around.\n\t if (dy && mac && webkit) {\n\t outer: for (var cur = e.target, view = display.view; cur != scroll; cur = cur.parentNode) {\n\t for (var i = 0; i < view.length; i++) {\n\t if (view[i].node == cur) {\n\t cm.display.currentWheelTarget = cur;\n\t break outer\n\t }\n\t }\n\t }\n\t }\n\t\n\t // On some browsers, horizontal scrolling will cause redraws to\n\t // happen before the gutter has been realigned, causing it to\n\t // wriggle around in a most unseemly way. When we have an\n\t // estimated pixels/delta value, we just handle horizontal\n\t // scrolling entirely here. It'll be slightly off from native, but\n\t // better than glitching out.\n\t if (dx && !gecko && !presto && wheelPixelsPerUnit != null) {\n\t if (dy && canScrollY)\n\t { setScrollTop(cm, Math.max(0, Math.min(scroll.scrollTop + dy * wheelPixelsPerUnit, scroll.scrollHeight - scroll.clientHeight))); }\n\t setScrollLeft(cm, Math.max(0, Math.min(scroll.scrollLeft + dx * wheelPixelsPerUnit, scroll.scrollWidth - scroll.clientWidth)));\n\t // Only prevent default scrolling if vertical scrolling is\n\t // actually possible. Otherwise, it causes vertical scroll\n\t // jitter on OSX trackpads when deltaX is small and deltaY\n\t // is large (issue #3579)\n\t if (!dy || (dy && canScrollY))\n\t { e_preventDefault(e); }\n\t display.wheelStartX = null; // Abort measurement, if in progress\n\t return\n\t }\n\t\n\t // 'Project' the visible viewport to cover the area that is being\n\t // scrolled into view (if we know enough to estimate it).\n\t if (dy && wheelPixelsPerUnit != null) {\n\t var pixels = dy * wheelPixelsPerUnit;\n\t var top = cm.doc.scrollTop, bot = top + display.wrapper.clientHeight;\n\t if (pixels < 0) { top = Math.max(0, top + pixels - 50); }\n\t else { bot = Math.min(cm.doc.height, bot + pixels + 50); }\n\t updateDisplaySimple(cm, {top: top, bottom: bot});\n\t }\n\t\n\t if (wheelSamples < 20) {\n\t if (display.wheelStartX == null) {\n\t display.wheelStartX = scroll.scrollLeft; display.wheelStartY = scroll.scrollTop;\n\t display.wheelDX = dx; display.wheelDY = dy;\n\t setTimeout(function () {\n\t if (display.wheelStartX == null) { return }\n\t var movedX = scroll.scrollLeft - display.wheelStartX;\n\t var movedY = scroll.scrollTop - display.wheelStartY;\n\t var sample = (movedY && display.wheelDY && movedY / display.wheelDY) ||\n\t (movedX && display.wheelDX && movedX / display.wheelDX);\n\t display.wheelStartX = display.wheelStartY = null;\n\t if (!sample) { return }\n\t wheelPixelsPerUnit = (wheelPixelsPerUnit * wheelSamples + sample) / (wheelSamples + 1);\n\t ++wheelSamples;\n\t }, 200);\n\t } else {\n\t display.wheelDX += dx; display.wheelDY += dy;\n\t }\n\t }\n\t}\n\t\n\t// SCROLLBARS\n\t\n\t// Prepare DOM reads needed to update the scrollbars. Done in one\n\t// shot to minimize update/measure roundtrips.\n\tfunction measureForScrollbars(cm) {\n\t var d = cm.display, gutterW = d.gutters.offsetWidth;\n\t var docH = Math.round(cm.doc.height + paddingVert(cm.display));\n\t return {\n\t clientHeight: d.scroller.clientHeight,\n\t viewHeight: d.wrapper.clientHeight,\n\t scrollWidth: d.scroller.scrollWidth, clientWidth: d.scroller.clientWidth,\n\t viewWidth: d.wrapper.clientWidth,\n\t barLeft: cm.options.fixedGutter ? gutterW : 0,\n\t docHeight: docH,\n\t scrollHeight: docH + scrollGap(cm) + d.barHeight,\n\t nativeBarWidth: d.nativeBarWidth,\n\t gutterWidth: gutterW\n\t }\n\t}\n\t\n\tvar NativeScrollbars = function(place, scroll, cm) {\n\t this.cm = cm;\n\t var vert = this.vert = elt(\"div\", [elt(\"div\", null, null, \"min-width: 1px\")], \"CodeMirror-vscrollbar\");\n\t var horiz = this.horiz = elt(\"div\", [elt(\"div\", null, null, \"height: 100%; min-height: 1px\")], \"CodeMirror-hscrollbar\");\n\t place(vert); place(horiz);\n\t\n\t on(vert, \"scroll\", function () {\n\t if (vert.clientHeight) { scroll(vert.scrollTop, \"vertical\"); }\n\t });\n\t on(horiz, \"scroll\", function () {\n\t if (horiz.clientWidth) { scroll(horiz.scrollLeft, \"horizontal\"); }\n\t });\n\t\n\t this.checkedZeroWidth = false;\n\t // Need to set a minimum width to see the scrollbar on IE7 (but must not set it on IE8).\n\t if (ie && ie_version < 8) { this.horiz.style.minHeight = this.vert.style.minWidth = \"18px\"; }\n\t};\n\t\n\tNativeScrollbars.prototype.update = function (measure) {\n\t var needsH = measure.scrollWidth > measure.clientWidth + 1;\n\t var needsV = measure.scrollHeight > measure.clientHeight + 1;\n\t var sWidth = measure.nativeBarWidth;\n\t\n\t if (needsV) {\n\t this.vert.style.display = \"block\";\n\t this.vert.style.bottom = needsH ? sWidth + \"px\" : \"0\";\n\t var totalHeight = measure.viewHeight - (needsH ? sWidth : 0);\n\t // A bug in IE8 can cause this value to be negative, so guard it.\n\t this.vert.firstChild.style.height =\n\t Math.max(0, measure.scrollHeight - measure.clientHeight + totalHeight) + \"px\";\n\t } else {\n\t this.vert.style.display = \"\";\n\t this.vert.firstChild.style.height = \"0\";\n\t }\n\t\n\t if (needsH) {\n\t this.horiz.style.display = \"block\";\n\t this.horiz.style.right = needsV ? sWidth + \"px\" : \"0\";\n\t this.horiz.style.left = measure.barLeft + \"px\";\n\t var totalWidth = measure.viewWidth - measure.barLeft - (needsV ? sWidth : 0);\n\t this.horiz.firstChild.style.width =\n\t Math.max(0, measure.scrollWidth - measure.clientWidth + totalWidth) + \"px\";\n\t } else {\n\t this.horiz.style.display = \"\";\n\t this.horiz.firstChild.style.width = \"0\";\n\t }\n\t\n\t if (!this.checkedZeroWidth && measure.clientHeight > 0) {\n\t if (sWidth == 0) { this.zeroWidthHack(); }\n\t this.checkedZeroWidth = true;\n\t }\n\t\n\t return {right: needsV ? sWidth : 0, bottom: needsH ? sWidth : 0}\n\t};\n\t\n\tNativeScrollbars.prototype.setScrollLeft = function (pos) {\n\t if (this.horiz.scrollLeft != pos) { this.horiz.scrollLeft = pos; }\n\t if (this.disableHoriz) { this.enableZeroWidthBar(this.horiz, this.disableHoriz); }\n\t};\n\t\n\tNativeScrollbars.prototype.setScrollTop = function (pos) {\n\t if (this.vert.scrollTop != pos) { this.vert.scrollTop = pos; }\n\t if (this.disableVert) { this.enableZeroWidthBar(this.vert, this.disableVert); }\n\t};\n\t\n\tNativeScrollbars.prototype.zeroWidthHack = function () {\n\t var w = mac && !mac_geMountainLion ? \"12px\" : \"18px\";\n\t this.horiz.style.height = this.vert.style.width = w;\n\t this.horiz.style.pointerEvents = this.vert.style.pointerEvents = \"none\";\n\t this.disableHoriz = new Delayed;\n\t this.disableVert = new Delayed;\n\t};\n\t\n\tNativeScrollbars.prototype.enableZeroWidthBar = function (bar, delay) {\n\t bar.style.pointerEvents = \"auto\";\n\t function maybeDisable() {\n\t // To find out whether the scrollbar is still visible, we\n\t // check whether the element under the pixel in the bottom\n\t // left corner of the scrollbar box is the scrollbar box\n\t // itself (when the bar is still visible) or its filler child\n\t // (when the bar is hidden). If it is still visible, we keep\n\t // it enabled, if it's hidden, we disable pointer events.\n\t var box = bar.getBoundingClientRect();\n\t var elt$$1 = document.elementFromPoint(box.left + 1, box.bottom - 1);\n\t if (elt$$1 != bar) { bar.style.pointerEvents = \"none\"; }\n\t else { delay.set(1000, maybeDisable); }\n\t }\n\t delay.set(1000, maybeDisable);\n\t};\n\t\n\tNativeScrollbars.prototype.clear = function () {\n\t var parent = this.horiz.parentNode;\n\t parent.removeChild(this.horiz);\n\t parent.removeChild(this.vert);\n\t};\n\t\n\tvar NullScrollbars = function () {};\n\t\n\tNullScrollbars.prototype.update = function () { return {bottom: 0, right: 0} };\n\tNullScrollbars.prototype.setScrollLeft = function () {};\n\tNullScrollbars.prototype.setScrollTop = function () {};\n\tNullScrollbars.prototype.clear = function () {};\n\t\n\tfunction updateScrollbars(cm, measure) {\n\t if (!measure) { measure = measureForScrollbars(cm); }\n\t var startWidth = cm.display.barWidth, startHeight = cm.display.barHeight;\n\t updateScrollbarsInner(cm, measure);\n\t for (var i = 0; i < 4 && startWidth != cm.display.barWidth || startHeight != cm.display.barHeight; i++) {\n\t if (startWidth != cm.display.barWidth && cm.options.lineWrapping)\n\t { updateHeightsInViewport(cm); }\n\t updateScrollbarsInner(cm, measureForScrollbars(cm));\n\t startWidth = cm.display.barWidth; startHeight = cm.display.barHeight;\n\t }\n\t}\n\t\n\t// Re-synchronize the fake scrollbars with the actual size of the\n\t// content.\n\tfunction updateScrollbarsInner(cm, measure) {\n\t var d = cm.display;\n\t var sizes = d.scrollbars.update(measure);\n\t\n\t d.sizer.style.paddingRight = (d.barWidth = sizes.right) + \"px\";\n\t d.sizer.style.paddingBottom = (d.barHeight = sizes.bottom) + \"px\";\n\t d.heightForcer.style.borderBottom = sizes.bottom + \"px solid transparent\";\n\t\n\t if (sizes.right && sizes.bottom) {\n\t d.scrollbarFiller.style.display = \"block\";\n\t d.scrollbarFiller.style.height = sizes.bottom + \"px\";\n\t d.scrollbarFiller.style.width = sizes.right + \"px\";\n\t } else { d.scrollbarFiller.style.display = \"\"; }\n\t if (sizes.bottom && cm.options.coverGutterNextToScrollbar && cm.options.fixedGutter) {\n\t d.gutterFiller.style.display = \"block\";\n\t d.gutterFiller.style.height = sizes.bottom + \"px\";\n\t d.gutterFiller.style.width = measure.gutterWidth + \"px\";\n\t } else { d.gutterFiller.style.display = \"\"; }\n\t}\n\t\n\tvar scrollbarModel = {\"native\": NativeScrollbars, \"null\": NullScrollbars};\n\t\n\tfunction initScrollbars(cm) {\n\t if (cm.display.scrollbars) {\n\t cm.display.scrollbars.clear();\n\t if (cm.display.scrollbars.addClass)\n\t { rmClass(cm.display.wrapper, cm.display.scrollbars.addClass); }\n\t }\n\t\n\t cm.display.scrollbars = new scrollbarModel[cm.options.scrollbarStyle](function (node) {\n\t cm.display.wrapper.insertBefore(node, cm.display.scrollbarFiller);\n\t // Prevent clicks in the scrollbars from killing focus\n\t on(node, \"mousedown\", function () {\n\t if (cm.state.focused) { setTimeout(function () { return cm.display.input.focus(); }, 0); }\n\t });\n\t node.setAttribute(\"cm-not-content\", \"true\");\n\t }, function (pos, axis) {\n\t if (axis == \"horizontal\") { setScrollLeft(cm, pos); }\n\t else { setScrollTop(cm, pos); }\n\t }, cm);\n\t if (cm.display.scrollbars.addClass)\n\t { addClass(cm.display.wrapper, cm.display.scrollbars.addClass); }\n\t}\n\t\n\t// SCROLLING THINGS INTO VIEW\n\t\n\t// If an editor sits on the top or bottom of the window, partially\n\t// scrolled out of view, this ensures that the cursor is visible.\n\tfunction maybeScrollWindow(cm, rect) {\n\t if (signalDOMEvent(cm, \"scrollCursorIntoView\")) { return }\n\t\n\t var display = cm.display, box = display.sizer.getBoundingClientRect(), doScroll = null;\n\t if (rect.top + box.top < 0) { doScroll = true; }\n\t else if (rect.bottom + box.top > (window.innerHeight || document.documentElement.clientHeight)) { doScroll = false; }\n\t if (doScroll != null && !phantom) {\n\t var scrollNode = elt(\"div\", \"\\u200b\", null, (\"position: absolute;\\n top: \" + (rect.top - display.viewOffset - paddingTop(cm.display)) + \"px;\\n height: \" + (rect.bottom - rect.top + scrollGap(cm) + display.barHeight) + \"px;\\n left: \" + (rect.left) + \"px; width: \" + (Math.max(2, rect.right - rect.left)) + \"px;\"));\n\t cm.display.lineSpace.appendChild(scrollNode);\n\t scrollNode.scrollIntoView(doScroll);\n\t cm.display.lineSpace.removeChild(scrollNode);\n\t }\n\t}\n\t\n\t// Scroll a given position into view (immediately), verifying that\n\t// it actually became visible (as line heights are accurately\n\t// measured, the position of something may 'drift' during drawing).\n\tfunction scrollPosIntoView(cm, pos, end, margin) {\n\t if (margin == null) { margin = 0; }\n\t var rect;\n\t for (var limit = 0; limit < 5; limit++) {\n\t var changed = false;\n\t var coords = cursorCoords(cm, pos);\n\t var endCoords = !end || end == pos ? coords : cursorCoords(cm, end);\n\t rect = {left: Math.min(coords.left, endCoords.left),\n\t top: Math.min(coords.top, endCoords.top) - margin,\n\t right: Math.max(coords.left, endCoords.left),\n\t bottom: Math.max(coords.bottom, endCoords.bottom) + margin};\n\t var scrollPos = calculateScrollPos(cm, rect);\n\t var startTop = cm.doc.scrollTop, startLeft = cm.doc.scrollLeft;\n\t if (scrollPos.scrollTop != null) {\n\t setScrollTop(cm, scrollPos.scrollTop);\n\t if (Math.abs(cm.doc.scrollTop - startTop) > 1) { changed = true; }\n\t }\n\t if (scrollPos.scrollLeft != null) {\n\t setScrollLeft(cm, scrollPos.scrollLeft);\n\t if (Math.abs(cm.doc.scrollLeft - startLeft) > 1) { changed = true; }\n\t }\n\t if (!changed) { break }\n\t }\n\t return rect\n\t}\n\t\n\t// Scroll a given set of coordinates into view (immediately).\n\tfunction scrollIntoView(cm, rect) {\n\t var scrollPos = calculateScrollPos(cm, rect);\n\t if (scrollPos.scrollTop != null) { setScrollTop(cm, scrollPos.scrollTop); }\n\t if (scrollPos.scrollLeft != null) { setScrollLeft(cm, scrollPos.scrollLeft); }\n\t}\n\t\n\t// Calculate a new scroll position needed to scroll the given\n\t// rectangle into view. Returns an object with scrollTop and\n\t// scrollLeft properties. When these are undefined, the\n\t// vertical/horizontal position does not need to be adjusted.\n\tfunction calculateScrollPos(cm, rect) {\n\t var display = cm.display, snapMargin = textHeight(cm.display);\n\t if (rect.top < 0) { rect.top = 0; }\n\t var screentop = cm.curOp && cm.curOp.scrollTop != null ? cm.curOp.scrollTop : display.scroller.scrollTop;\n\t var screen = displayHeight(cm), result = {};\n\t if (rect.bottom - rect.top > screen) { rect.bottom = rect.top + screen; }\n\t var docBottom = cm.doc.height + paddingVert(display);\n\t var atTop = rect.top < snapMargin, atBottom = rect.bottom > docBottom - snapMargin;\n\t if (rect.top < screentop) {\n\t result.scrollTop = atTop ? 0 : rect.top;\n\t } else if (rect.bottom > screentop + screen) {\n\t var newTop = Math.min(rect.top, (atBottom ? docBottom : rect.bottom) - screen);\n\t if (newTop != screentop) { result.scrollTop = newTop; }\n\t }\n\t\n\t var screenleft = cm.curOp && cm.curOp.scrollLeft != null ? cm.curOp.scrollLeft : display.scroller.scrollLeft;\n\t var screenw = displayWidth(cm) - (cm.options.fixedGutter ? display.gutters.offsetWidth : 0);\n\t var tooWide = rect.right - rect.left > screenw;\n\t if (tooWide) { rect.right = rect.left + screenw; }\n\t if (rect.left < 10)\n\t { result.scrollLeft = 0; }\n\t else if (rect.left < screenleft)\n\t { result.scrollLeft = Math.max(0, rect.left - (tooWide ? 0 : 10)); }\n\t else if (rect.right > screenw + screenleft - 3)\n\t { result.scrollLeft = rect.right + (tooWide ? 0 : 10) - screenw; }\n\t return result\n\t}\n\t\n\t// Store a relative adjustment to the scroll position in the current\n\t// operation (to be applied when the operation finishes).\n\tfunction addToScrollPos(cm, left, top) {\n\t if (left != null || top != null) { resolveScrollToPos(cm); }\n\t if (left != null)\n\t { cm.curOp.scrollLeft = (cm.curOp.scrollLeft == null ? cm.doc.scrollLeft : cm.curOp.scrollLeft) + left; }\n\t if (top != null)\n\t { cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top; }\n\t}\n\t\n\t// Make sure that at the end of the operation the current cursor is\n\t// shown.\n\tfunction ensureCursorVisible(cm) {\n\t resolveScrollToPos(cm);\n\t var cur = cm.getCursor(), from = cur, to = cur;\n\t if (!cm.options.lineWrapping) {\n\t from = cur.ch ? Pos(cur.line, cur.ch - 1) : cur;\n\t to = Pos(cur.line, cur.ch + 1);\n\t }\n\t cm.curOp.scrollToPos = {from: from, to: to, margin: cm.options.cursorScrollMargin};\n\t}\n\t\n\t// When an operation has its scrollToPos property set, and another\n\t// scroll action is applied before the end of the operation, this\n\t// 'simulates' scrolling that position into view in a cheap way, so\n\t// that the effect of intermediate scroll commands is not ignored.\n\tfunction resolveScrollToPos(cm) {\n\t var range$$1 = cm.curOp.scrollToPos;\n\t if (range$$1) {\n\t cm.curOp.scrollToPos = null;\n\t var from = estimateCoords(cm, range$$1.from), to = estimateCoords(cm, range$$1.to);\n\t var sPos = calculateScrollPos(cm, {\n\t left: Math.min(from.left, to.left),\n\t top: Math.min(from.top, to.top) - range$$1.margin,\n\t right: Math.max(from.right, to.right),\n\t bottom: Math.max(from.bottom, to.bottom) + range$$1.margin\n\t });\n\t cm.scrollTo(sPos.scrollLeft, sPos.scrollTop);\n\t }\n\t}\n\t\n\t// Operations are used to wrap a series of changes to the editor\n\t// state in such a way that each change won't have to update the\n\t// cursor and display (which would be awkward, slow, and\n\t// error-prone). Instead, display updates are batched and then all\n\t// combined and executed at once.\n\t\n\tvar nextOpId = 0;\n\t// Start a new operation.\n\tfunction startOperation(cm) {\n\t cm.curOp = {\n\t cm: cm,\n\t viewChanged: false, // Flag that indicates that lines might need to be redrawn\n\t startHeight: cm.doc.height, // Used to detect need to update scrollbar\n\t forceUpdate: false, // Used to force a redraw\n\t updateInput: null, // Whether to reset the input textarea\n\t typing: false, // Whether this reset should be careful to leave existing text (for compositing)\n\t changeObjs: null, // Accumulated changes, for firing change events\n\t cursorActivityHandlers: null, // Set of handlers to fire cursorActivity on\n\t cursorActivityCalled: 0, // Tracks which cursorActivity handlers have been called already\n\t selectionChanged: false, // Whether the selection needs to be redrawn\n\t updateMaxLine: false, // Set when the widest line needs to be determined anew\n\t scrollLeft: null, scrollTop: null, // Intermediate scroll position, not pushed to DOM yet\n\t scrollToPos: null, // Used to scroll to a specific position\n\t focus: false,\n\t id: ++nextOpId // Unique ID\n\t };\n\t pushOperation(cm.curOp);\n\t}\n\t\n\t// Finish an operation, updating the display and signalling delayed events\n\tfunction endOperation(cm) {\n\t var op = cm.curOp;\n\t finishOperation(op, function (group) {\n\t for (var i = 0; i < group.ops.length; i++)\n\t { group.ops[i].cm.curOp = null; }\n\t endOperations(group);\n\t });\n\t}\n\t\n\t// The DOM updates done when an operation finishes are batched so\n\t// that the minimum number of relayouts are required.\n\tfunction endOperations(group) {\n\t var ops = group.ops;\n\t for (var i = 0; i < ops.length; i++) // Read DOM\n\t { endOperation_R1(ops[i]); }\n\t for (var i$1 = 0; i$1 < ops.length; i$1++) // Write DOM (maybe)\n\t { endOperation_W1(ops[i$1]); }\n\t for (var i$2 = 0; i$2 < ops.length; i$2++) // Read DOM\n\t { endOperation_R2(ops[i$2]); }\n\t for (var i$3 = 0; i$3 < ops.length; i$3++) // Write DOM (maybe)\n\t { endOperation_W2(ops[i$3]); }\n\t for (var i$4 = 0; i$4 < ops.length; i$4++) // Read DOM\n\t { endOperation_finish(ops[i$4]); }\n\t}\n\t\n\tfunction endOperation_R1(op) {\n\t var cm = op.cm, display = cm.display;\n\t maybeClipScrollbars(cm);\n\t if (op.updateMaxLine) { findMaxLine(cm); }\n\t\n\t op.mustUpdate = op.viewChanged || op.forceUpdate || op.scrollTop != null ||\n\t op.scrollToPos && (op.scrollToPos.from.line < display.viewFrom ||\n\t op.scrollToPos.to.line >= display.viewTo) ||\n\t display.maxLineChanged && cm.options.lineWrapping;\n\t op.update = op.mustUpdate &&\n\t new DisplayUpdate(cm, op.mustUpdate && {top: op.scrollTop, ensure: op.scrollToPos}, op.forceUpdate);\n\t}\n\t\n\tfunction endOperation_W1(op) {\n\t op.updatedDisplay = op.mustUpdate && updateDisplayIfNeeded(op.cm, op.update);\n\t}\n\t\n\tfunction endOperation_R2(op) {\n\t var cm = op.cm, display = cm.display;\n\t if (op.updatedDisplay) { updateHeightsInViewport(cm); }\n\t\n\t op.barMeasure = measureForScrollbars(cm);\n\t\n\t // If the max line changed since it was last measured, measure it,\n\t // and ensure the document's width matches it.\n\t // updateDisplay_W2 will use these properties to do the actual resizing\n\t if (display.maxLineChanged && !cm.options.lineWrapping) {\n\t op.adjustWidthTo = measureChar(cm, display.maxLine, display.maxLine.text.length).left + 3;\n\t cm.display.sizerWidth = op.adjustWidthTo;\n\t op.barMeasure.scrollWidth =\n\t Math.max(display.scroller.clientWidth, display.sizer.offsetLeft + op.adjustWidthTo + scrollGap(cm) + cm.display.barWidth);\n\t op.maxScrollLeft = Math.max(0, display.sizer.offsetLeft + op.adjustWidthTo - displayWidth(cm));\n\t }\n\t\n\t if (op.updatedDisplay || op.selectionChanged)\n\t { op.preparedSelection = display.input.prepareSelection(op.focus); }\n\t}\n\t\n\tfunction endOperation_W2(op) {\n\t var cm = op.cm;\n\t\n\t if (op.adjustWidthTo != null) {\n\t cm.display.sizer.style.minWidth = op.adjustWidthTo + \"px\";\n\t if (op.maxScrollLeft < cm.doc.scrollLeft)\n\t { setScrollLeft(cm, Math.min(cm.display.scroller.scrollLeft, op.maxScrollLeft), true); }\n\t cm.display.maxLineChanged = false;\n\t }\n\t\n\t var takeFocus = op.focus && op.focus == activeElt() && (!document.hasFocus || document.hasFocus());\n\t if (op.preparedSelection)\n\t { cm.display.input.showSelection(op.preparedSelection, takeFocus); }\n\t if (op.updatedDisplay || op.startHeight != cm.doc.height)\n\t { updateScrollbars(cm, op.barMeasure); }\n\t if (op.updatedDisplay)\n\t { setDocumentHeight(cm, op.barMeasure); }\n\t\n\t if (op.selectionChanged) { restartBlink(cm); }\n\t\n\t if (cm.state.focused && op.updateInput)\n\t { cm.display.input.reset(op.typing); }\n\t if (takeFocus) { ensureFocus(op.cm); }\n\t}\n\t\n\tfunction endOperation_finish(op) {\n\t var cm = op.cm, display = cm.display, doc = cm.doc;\n\t\n\t if (op.updatedDisplay) { postUpdateDisplay(cm, op.update); }\n\t\n\t // Abort mouse wheel delta measurement, when scrolling explicitly\n\t if (display.wheelStartX != null && (op.scrollTop != null || op.scrollLeft != null || op.scrollToPos))\n\t { display.wheelStartX = display.wheelStartY = null; }\n\t\n\t // Propagate the scroll position to the actual DOM scroller\n\t if (op.scrollTop != null && (display.scroller.scrollTop != op.scrollTop || op.forceScroll)) {\n\t doc.scrollTop = Math.max(0, Math.min(display.scroller.scrollHeight - display.scroller.clientHeight, op.scrollTop));\n\t display.scrollbars.setScrollTop(doc.scrollTop);\n\t display.scroller.scrollTop = doc.scrollTop;\n\t }\n\t if (op.scrollLeft != null && (display.scroller.scrollLeft != op.scrollLeft || op.forceScroll)) {\n\t doc.scrollLeft = Math.max(0, Math.min(display.scroller.scrollWidth - display.scroller.clientWidth, op.scrollLeft));\n\t display.scrollbars.setScrollLeft(doc.scrollLeft);\n\t display.scroller.scrollLeft = doc.scrollLeft;\n\t alignHorizontally(cm);\n\t }\n\t // If we need to scroll a specific position into view, do so.\n\t if (op.scrollToPos) {\n\t var rect = scrollPosIntoView(cm, clipPos(doc, op.scrollToPos.from),\n\t clipPos(doc, op.scrollToPos.to), op.scrollToPos.margin);\n\t maybeScrollWindow(cm, rect);\n\t }\n\t\n\t // Fire events for markers that are hidden/unidden by editing or\n\t // undoing\n\t var hidden = op.maybeHiddenMarkers, unhidden = op.maybeUnhiddenMarkers;\n\t if (hidden) { for (var i = 0; i < hidden.length; ++i)\n\t { if (!hidden[i].lines.length) { signal(hidden[i], \"hide\"); } } }\n\t if (unhidden) { for (var i$1 = 0; i$1 < unhidden.length; ++i$1)\n\t { if (unhidden[i$1].lines.length) { signal(unhidden[i$1], \"unhide\"); } } }\n\t\n\t if (display.wrapper.offsetHeight)\n\t { doc.scrollTop = cm.display.scroller.scrollTop; }\n\t\n\t // Fire change events, and delayed event handlers\n\t if (op.changeObjs)\n\t { signal(cm, \"changes\", cm, op.changeObjs); }\n\t if (op.update)\n\t { op.update.finish(); }\n\t}\n\t\n\t// Run the given function in an operation\n\tfunction runInOp(cm, f) {\n\t if (cm.curOp) { return f() }\n\t startOperation(cm);\n\t try { return f() }\n\t finally { endOperation(cm); }\n\t}\n\t// Wraps a function in an operation. Returns the wrapped function.\n\tfunction operation(cm, f) {\n\t return function() {\n\t if (cm.curOp) { return f.apply(cm, arguments) }\n\t startOperation(cm);\n\t try { return f.apply(cm, arguments) }\n\t finally { endOperation(cm); }\n\t }\n\t}\n\t// Used to add methods to editor and doc instances, wrapping them in\n\t// operations.\n\tfunction methodOp(f) {\n\t return function() {\n\t if (this.curOp) { return f.apply(this, arguments) }\n\t startOperation(this);\n\t try { return f.apply(this, arguments) }\n\t finally { endOperation(this); }\n\t }\n\t}\n\tfunction docMethodOp(f) {\n\t return function() {\n\t var cm = this.cm;\n\t if (!cm || cm.curOp) { return f.apply(this, arguments) }\n\t startOperation(cm);\n\t try { return f.apply(this, arguments) }\n\t finally { endOperation(cm); }\n\t }\n\t}\n\t\n\t// Updates the display.view data structure for a given change to the\n\t// document. From and to are in pre-change coordinates. Lendiff is\n\t// the amount of lines added or subtracted by the change. This is\n\t// used for changes that span multiple lines, or change the way\n\t// lines are divided into visual lines. regLineChange (below)\n\t// registers single-line changes.\n\tfunction regChange(cm, from, to, lendiff) {\n\t if (from == null) { from = cm.doc.first; }\n\t if (to == null) { to = cm.doc.first + cm.doc.size; }\n\t if (!lendiff) { lendiff = 0; }\n\t\n\t var display = cm.display;\n\t if (lendiff && to < display.viewTo &&\n\t (display.updateLineNumbers == null || display.updateLineNumbers > from))\n\t { display.updateLineNumbers = from; }\n\t\n\t cm.curOp.viewChanged = true;\n\t\n\t if (from >= display.viewTo) { // Change after\n\t if (sawCollapsedSpans && visualLineNo(cm.doc, from) < display.viewTo)\n\t { resetView(cm); }\n\t } else if (to <= display.viewFrom) { // Change before\n\t if (sawCollapsedSpans && visualLineEndNo(cm.doc, to + lendiff) > display.viewFrom) {\n\t resetView(cm);\n\t } else {\n\t display.viewFrom += lendiff;\n\t display.viewTo += lendiff;\n\t }\n\t } else if (from <= display.viewFrom && to >= display.viewTo) { // Full overlap\n\t resetView(cm);\n\t } else if (from <= display.viewFrom) { // Top overlap\n\t var cut = viewCuttingPoint(cm, to, to + lendiff, 1);\n\t if (cut) {\n\t display.view = display.view.slice(cut.index);\n\t display.viewFrom = cut.lineN;\n\t display.viewTo += lendiff;\n\t } else {\n\t resetView(cm);\n\t }\n\t } else if (to >= display.viewTo) { // Bottom overlap\n\t var cut$1 = viewCuttingPoint(cm, from, from, -1);\n\t if (cut$1) {\n\t display.view = display.view.slice(0, cut$1.index);\n\t display.viewTo = cut$1.lineN;\n\t } else {\n\t resetView(cm);\n\t }\n\t } else { // Gap in the middle\n\t var cutTop = viewCuttingPoint(cm, from, from, -1);\n\t var cutBot = viewCuttingPoint(cm, to, to + lendiff, 1);\n\t if (cutTop && cutBot) {\n\t display.view = display.view.slice(0, cutTop.index)\n\t .concat(buildViewArray(cm, cutTop.lineN, cutBot.lineN))\n\t .concat(display.view.slice(cutBot.index));\n\t display.viewTo += lendiff;\n\t } else {\n\t resetView(cm);\n\t }\n\t }\n\t\n\t var ext = display.externalMeasured;\n\t if (ext) {\n\t if (to < ext.lineN)\n\t { ext.lineN += lendiff; }\n\t else if (from < ext.lineN + ext.size)\n\t { display.externalMeasured = null; }\n\t }\n\t}\n\t\n\t// Register a change to a single line. Type must be one of \"text\",\n\t// \"gutter\", \"class\", \"widget\"\n\tfunction regLineChange(cm, line, type) {\n\t cm.curOp.viewChanged = true;\n\t var display = cm.display, ext = cm.display.externalMeasured;\n\t if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n\t { display.externalMeasured = null; }\n\t\n\t if (line < display.viewFrom || line >= display.viewTo) { return }\n\t var lineView = display.view[findViewIndex(cm, line)];\n\t if (lineView.node == null) { return }\n\t var arr = lineView.changes || (lineView.changes = []);\n\t if (indexOf(arr, type) == -1) { arr.push(type); }\n\t}\n\t\n\t// Clear the view.\n\tfunction resetView(cm) {\n\t cm.display.viewFrom = cm.display.viewTo = cm.doc.first;\n\t cm.display.view = [];\n\t cm.display.viewOffset = 0;\n\t}\n\t\n\tfunction viewCuttingPoint(cm, oldN, newN, dir) {\n\t var index = findViewIndex(cm, oldN), diff, view = cm.display.view;\n\t if (!sawCollapsedSpans || newN == cm.doc.first + cm.doc.size)\n\t { return {index: index, lineN: newN} }\n\t var n = cm.display.viewFrom;\n\t for (var i = 0; i < index; i++)\n\t { n += view[i].size; }\n\t if (n != oldN) {\n\t if (dir > 0) {\n\t if (index == view.length - 1) { return null }\n\t diff = (n + view[index].size) - oldN;\n\t index++;\n\t } else {\n\t diff = n - oldN;\n\t }\n\t oldN += diff; newN += diff;\n\t }\n\t while (visualLineNo(cm.doc, newN) != newN) {\n\t if (index == (dir < 0 ? 0 : view.length - 1)) { return null }\n\t newN += dir * view[index - (dir < 0 ? 1 : 0)].size;\n\t index += dir;\n\t }\n\t return {index: index, lineN: newN}\n\t}\n\t\n\t// Force the view to cover a given range, adding empty view element\n\t// or clipping off existing ones as needed.\n\tfunction adjustView(cm, from, to) {\n\t var display = cm.display, view = display.view;\n\t if (view.length == 0 || from >= display.viewTo || to <= display.viewFrom) {\n\t display.view = buildViewArray(cm, from, to);\n\t display.viewFrom = from;\n\t } else {\n\t if (display.viewFrom > from)\n\t { display.view = buildViewArray(cm, from, display.viewFrom).concat(display.view); }\n\t else if (display.viewFrom < from)\n\t { display.view = display.view.slice(findViewIndex(cm, from)); }\n\t display.viewFrom = from;\n\t if (display.viewTo < to)\n\t { display.view = display.view.concat(buildViewArray(cm, display.viewTo, to)); }\n\t else if (display.viewTo > to)\n\t { display.view = display.view.slice(0, findViewIndex(cm, to)); }\n\t }\n\t display.viewTo = to;\n\t}\n\t\n\t// Count the number of lines in the view whose DOM representation is\n\t// out of date (or nonexistent).\n\tfunction countDirtyView(cm) {\n\t var view = cm.display.view, dirty = 0;\n\t for (var i = 0; i < view.length; i++) {\n\t var lineView = view[i];\n\t if (!lineView.hidden && (!lineView.node || lineView.changes)) { ++dirty; }\n\t }\n\t return dirty\n\t}\n\t\n\t// HIGHLIGHT WORKER\n\t\n\tfunction startWorker(cm, time) {\n\t if (cm.doc.mode.startState && cm.doc.frontier < cm.display.viewTo)\n\t { cm.state.highlight.set(time, bind(highlightWorker, cm)); }\n\t}\n\t\n\tfunction highlightWorker(cm) {\n\t var doc = cm.doc;\n\t if (doc.frontier < doc.first) { doc.frontier = doc.first; }\n\t if (doc.frontier >= cm.display.viewTo) { return }\n\t var end = +new Date + cm.options.workTime;\n\t var state = copyState(doc.mode, getStateBefore(cm, doc.frontier));\n\t var changedLines = [];\n\t\n\t doc.iter(doc.frontier, Math.min(doc.first + doc.size, cm.display.viewTo + 500), function (line) {\n\t if (doc.frontier >= cm.display.viewFrom) { // Visible\n\t var oldStyles = line.styles, tooLong = line.text.length > cm.options.maxHighlightLength;\n\t var highlighted = highlightLine(cm, line, tooLong ? copyState(doc.mode, state) : state, true);\n\t line.styles = highlighted.styles;\n\t var oldCls = line.styleClasses, newCls = highlighted.classes;\n\t if (newCls) { line.styleClasses = newCls; }\n\t else if (oldCls) { line.styleClasses = null; }\n\t var ischange = !oldStyles || oldStyles.length != line.styles.length ||\n\t oldCls != newCls && (!oldCls || !newCls || oldCls.bgClass != newCls.bgClass || oldCls.textClass != newCls.textClass);\n\t for (var i = 0; !ischange && i < oldStyles.length; ++i) { ischange = oldStyles[i] != line.styles[i]; }\n\t if (ischange) { changedLines.push(doc.frontier); }\n\t line.stateAfter = tooLong ? state : copyState(doc.mode, state);\n\t } else {\n\t if (line.text.length <= cm.options.maxHighlightLength)\n\t { processLine(cm, line.text, state); }\n\t line.stateAfter = doc.frontier % 5 == 0 ? copyState(doc.mode, state) : null;\n\t }\n\t ++doc.frontier;\n\t if (+new Date > end) {\n\t startWorker(cm, cm.options.workDelay);\n\t return true\n\t }\n\t });\n\t if (changedLines.length) { runInOp(cm, function () {\n\t for (var i = 0; i < changedLines.length; i++)\n\t { regLineChange(cm, changedLines[i], \"text\"); }\n\t }); }\n\t}\n\t\n\t// DISPLAY DRAWING\n\t\n\tvar DisplayUpdate = function(cm, viewport, force) {\n\t var display = cm.display;\n\t\n\t this.viewport = viewport;\n\t // Store some values that we'll need later (but don't want to force a relayout for)\n\t this.visible = visibleLines(display, cm.doc, viewport);\n\t this.editorIsHidden = !display.wrapper.offsetWidth;\n\t this.wrapperHeight = display.wrapper.clientHeight;\n\t this.wrapperWidth = display.wrapper.clientWidth;\n\t this.oldDisplayWidth = displayWidth(cm);\n\t this.force = force;\n\t this.dims = getDimensions(cm);\n\t this.events = [];\n\t};\n\t\n\tDisplayUpdate.prototype.signal = function (emitter, type) {\n\t if (hasHandler(emitter, type))\n\t { this.events.push(arguments); }\n\t};\n\tDisplayUpdate.prototype.finish = function () {\n\t var this$1 = this;\n\t\n\t for (var i = 0; i < this.events.length; i++)\n\t { signal.apply(null, this$1.events[i]); }\n\t};\n\t\n\tfunction maybeClipScrollbars(cm) {\n\t var display = cm.display;\n\t if (!display.scrollbarsClipped && display.scroller.offsetWidth) {\n\t display.nativeBarWidth = display.scroller.offsetWidth - display.scroller.clientWidth;\n\t display.heightForcer.style.height = scrollGap(cm) + \"px\";\n\t display.sizer.style.marginBottom = -display.nativeBarWidth + \"px\";\n\t display.sizer.style.borderRightWidth = scrollGap(cm) + \"px\";\n\t display.scrollbarsClipped = true;\n\t }\n\t}\n\t\n\t// Does the actual updating of the line display. Bails out\n\t// (returning false) when there is nothing to be done and forced is\n\t// false.\n\tfunction updateDisplayIfNeeded(cm, update) {\n\t var display = cm.display, doc = cm.doc;\n\t\n\t if (update.editorIsHidden) {\n\t resetView(cm);\n\t return false\n\t }\n\t\n\t // Bail out if the visible area is already rendered and nothing changed.\n\t if (!update.force &&\n\t update.visible.from >= display.viewFrom && update.visible.to <= display.viewTo &&\n\t (display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo) &&\n\t display.renderedView == display.view && countDirtyView(cm) == 0)\n\t { return false }\n\t\n\t if (maybeUpdateLineNumberWidth(cm)) {\n\t resetView(cm);\n\t update.dims = getDimensions(cm);\n\t }\n\t\n\t // Compute a suitable new viewport (from & to)\n\t var end = doc.first + doc.size;\n\t var from = Math.max(update.visible.from - cm.options.viewportMargin, doc.first);\n\t var to = Math.min(end, update.visible.to + cm.options.viewportMargin);\n\t if (display.viewFrom < from && from - display.viewFrom < 20) { from = Math.max(doc.first, display.viewFrom); }\n\t if (display.viewTo > to && display.viewTo - to < 20) { to = Math.min(end, display.viewTo); }\n\t if (sawCollapsedSpans) {\n\t from = visualLineNo(cm.doc, from);\n\t to = visualLineEndNo(cm.doc, to);\n\t }\n\t\n\t var different = from != display.viewFrom || to != display.viewTo ||\n\t display.lastWrapHeight != update.wrapperHeight || display.lastWrapWidth != update.wrapperWidth;\n\t adjustView(cm, from, to);\n\t\n\t display.viewOffset = heightAtLine(getLine(cm.doc, display.viewFrom));\n\t // Position the mover div to align with the current scroll position\n\t cm.display.mover.style.top = display.viewOffset + \"px\";\n\t\n\t var toUpdate = countDirtyView(cm);\n\t if (!different && toUpdate == 0 && !update.force && display.renderedView == display.view &&\n\t (display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo))\n\t { return false }\n\t\n\t // For big changes, we hide the enclosing element during the\n\t // update, since that speeds up the operations on most browsers.\n\t var focused = activeElt();\n\t if (toUpdate > 4) { display.lineDiv.style.display = \"none\"; }\n\t patchDisplay(cm, display.updateLineNumbers, update.dims);\n\t if (toUpdate > 4) { display.lineDiv.style.display = \"\"; }\n\t display.renderedView = display.view;\n\t // There might have been a widget with a focused element that got\n\t // hidden or updated, if so re-focus it.\n\t if (focused && activeElt() != focused && focused.offsetHeight) { focused.focus(); }\n\t\n\t // Prevent selection and cursors from interfering with the scroll\n\t // width and height.\n\t removeChildren(display.cursorDiv);\n\t removeChildren(display.selectionDiv);\n\t display.gutters.style.height = display.sizer.style.minHeight = 0;\n\t\n\t if (different) {\n\t display.lastWrapHeight = update.wrapperHeight;\n\t display.lastWrapWidth = update.wrapperWidth;\n\t startWorker(cm, 400);\n\t }\n\t\n\t display.updateLineNumbers = null;\n\t\n\t return true\n\t}\n\t\n\tfunction postUpdateDisplay(cm, update) {\n\t var viewport = update.viewport;\n\t\n\t for (var first = true;; first = false) {\n\t if (!first || !cm.options.lineWrapping || update.oldDisplayWidth == displayWidth(cm)) {\n\t // Clip forced viewport to actual scrollable area.\n\t if (viewport && viewport.top != null)\n\t { viewport = {top: Math.min(cm.doc.height + paddingVert(cm.display) - displayHeight(cm), viewport.top)}; }\n\t // Updated line heights might result in the drawn area not\n\t // actually covering the viewport. Keep looping until it does.\n\t update.visible = visibleLines(cm.display, cm.doc, viewport);\n\t if (update.visible.from >= cm.display.viewFrom && update.visible.to <= cm.display.viewTo)\n\t { break }\n\t }\n\t if (!updateDisplayIfNeeded(cm, update)) { break }\n\t updateHeightsInViewport(cm);\n\t var barMeasure = measureForScrollbars(cm);\n\t updateSelection(cm);\n\t updateScrollbars(cm, barMeasure);\n\t setDocumentHeight(cm, barMeasure);\n\t }\n\t\n\t update.signal(cm, \"update\", cm);\n\t if (cm.display.viewFrom != cm.display.reportedViewFrom || cm.display.viewTo != cm.display.reportedViewTo) {\n\t update.signal(cm, \"viewportChange\", cm, cm.display.viewFrom, cm.display.viewTo);\n\t cm.display.reportedViewFrom = cm.display.viewFrom; cm.display.reportedViewTo = cm.display.viewTo;\n\t }\n\t}\n\t\n\tfunction updateDisplaySimple(cm, viewport) {\n\t var update = new DisplayUpdate(cm, viewport);\n\t if (updateDisplayIfNeeded(cm, update)) {\n\t updateHeightsInViewport(cm);\n\t postUpdateDisplay(cm, update);\n\t var barMeasure = measureForScrollbars(cm);\n\t updateSelection(cm);\n\t updateScrollbars(cm, barMeasure);\n\t setDocumentHeight(cm, barMeasure);\n\t update.finish();\n\t }\n\t}\n\t\n\t// Sync the actual display DOM structure with display.view, removing\n\t// nodes for lines that are no longer in view, and creating the ones\n\t// that are not there yet, and updating the ones that are out of\n\t// date.\n\tfunction patchDisplay(cm, updateNumbersFrom, dims) {\n\t var display = cm.display, lineNumbers = cm.options.lineNumbers;\n\t var container = display.lineDiv, cur = container.firstChild;\n\t\n\t function rm(node) {\n\t var next = node.nextSibling;\n\t // Works around a throw-scroll bug in OS X Webkit\n\t if (webkit && mac && cm.display.currentWheelTarget == node)\n\t { node.style.display = \"none\"; }\n\t else\n\t { node.parentNode.removeChild(node); }\n\t return next\n\t }\n\t\n\t var view = display.view, lineN = display.viewFrom;\n\t // Loop over the elements in the view, syncing cur (the DOM nodes\n\t // in display.lineDiv) with the view as we go.\n\t for (var i = 0; i < view.length; i++) {\n\t var lineView = view[i];\n\t if (lineView.hidden) {\n\t } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n\t var node = buildLineElement(cm, lineView, lineN, dims);\n\t container.insertBefore(node, cur);\n\t } else { // Already drawn\n\t while (cur != lineView.node) { cur = rm(cur); }\n\t var updateNumber = lineNumbers && updateNumbersFrom != null &&\n\t updateNumbersFrom <= lineN && lineView.lineNumber;\n\t if (lineView.changes) {\n\t if (indexOf(lineView.changes, \"gutter\") > -1) { updateNumber = false; }\n\t updateLineForChanges(cm, lineView, lineN, dims);\n\t }\n\t if (updateNumber) {\n\t removeChildren(lineView.lineNumber);\n\t lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));\n\t }\n\t cur = lineView.node.nextSibling;\n\t }\n\t lineN += lineView.size;\n\t }\n\t while (cur) { cur = rm(cur); }\n\t}\n\t\n\tfunction updateGutterSpace(cm) {\n\t var width = cm.display.gutters.offsetWidth;\n\t cm.display.sizer.style.marginLeft = width + \"px\";\n\t}\n\t\n\tfunction setDocumentHeight(cm, measure) {\n\t cm.display.sizer.style.minHeight = measure.docHeight + \"px\";\n\t cm.display.heightForcer.style.top = measure.docHeight + \"px\";\n\t cm.display.gutters.style.height = (measure.docHeight + cm.display.barHeight + scrollGap(cm)) + \"px\";\n\t}\n\t\n\t// Rebuild the gutter elements, ensure the margin to the left of the\n\t// code matches their width.\n\tfunction updateGutters(cm) {\n\t var gutters = cm.display.gutters, specs = cm.options.gutters;\n\t removeChildren(gutters);\n\t var i = 0;\n\t for (; i < specs.length; ++i) {\n\t var gutterClass = specs[i];\n\t var gElt = gutters.appendChild(elt(\"div\", null, \"CodeMirror-gutter \" + gutterClass));\n\t if (gutterClass == \"CodeMirror-linenumbers\") {\n\t cm.display.lineGutter = gElt;\n\t gElt.style.width = (cm.display.lineNumWidth || 1) + \"px\";\n\t }\n\t }\n\t gutters.style.display = i ? \"\" : \"none\";\n\t updateGutterSpace(cm);\n\t}\n\t\n\t// Make sure the gutters options contains the element\n\t// \"CodeMirror-linenumbers\" when the lineNumbers option is true.\n\tfunction setGuttersForLineNumbers(options) {\n\t var found = indexOf(options.gutters, \"CodeMirror-linenumbers\");\n\t if (found == -1 && options.lineNumbers) {\n\t options.gutters = options.gutters.concat([\"CodeMirror-linenumbers\"]);\n\t } else if (found > -1 && !options.lineNumbers) {\n\t options.gutters = options.gutters.slice(0);\n\t options.gutters.splice(found, 1);\n\t }\n\t}\n\t\n\t// Selection objects are immutable. A new one is created every time\n\t// the selection changes. A selection is one or more non-overlapping\n\t// (and non-touching) ranges, sorted, and an integer that indicates\n\t// which one is the primary selection (the one that's scrolled into\n\t// view, that getCursor returns, etc).\n\tvar Selection = function(ranges, primIndex) {\n\t this.ranges = ranges;\n\t this.primIndex = primIndex;\n\t};\n\t\n\tSelection.prototype.primary = function () { return this.ranges[this.primIndex] };\n\t\n\tSelection.prototype.equals = function (other) {\n\t var this$1 = this;\n\t\n\t if (other == this) { return true }\n\t if (other.primIndex != this.primIndex || other.ranges.length != this.ranges.length) { return false }\n\t for (var i = 0; i < this.ranges.length; i++) {\n\t var here = this$1.ranges[i], there = other.ranges[i];\n\t if (!equalCursorPos(here.anchor, there.anchor) || !equalCursorPos(here.head, there.head)) { return false }\n\t }\n\t return true\n\t};\n\t\n\tSelection.prototype.deepCopy = function () {\n\t var this$1 = this;\n\t\n\t var out = [];\n\t for (var i = 0; i < this.ranges.length; i++)\n\t { out[i] = new Range(copyPos(this$1.ranges[i].anchor), copyPos(this$1.ranges[i].head)); }\n\t return new Selection(out, this.primIndex)\n\t};\n\t\n\tSelection.prototype.somethingSelected = function () {\n\t var this$1 = this;\n\t\n\t for (var i = 0; i < this.ranges.length; i++)\n\t { if (!this$1.ranges[i].empty()) { return true } }\n\t return false\n\t};\n\t\n\tSelection.prototype.contains = function (pos, end) {\n\t var this$1 = this;\n\t\n\t if (!end) { end = pos; }\n\t for (var i = 0; i < this.ranges.length; i++) {\n\t var range = this$1.ranges[i];\n\t if (cmp(end, range.from()) >= 0 && cmp(pos, range.to()) <= 0)\n\t { return i }\n\t }\n\t return -1\n\t};\n\t\n\tvar Range = function(anchor, head) {\n\t this.anchor = anchor; this.head = head;\n\t};\n\t\n\tRange.prototype.from = function () { return minPos(this.anchor, this.head) };\n\tRange.prototype.to = function () { return maxPos(this.anchor, this.head) };\n\tRange.prototype.empty = function () { return this.head.line == this.anchor.line && this.head.ch == this.anchor.ch };\n\t\n\t// Take an unsorted, potentially overlapping set of ranges, and\n\t// build a selection out of it. 'Consumes' ranges array (modifying\n\t// it).\n\tfunction normalizeSelection(ranges, primIndex) {\n\t var prim = ranges[primIndex];\n\t ranges.sort(function (a, b) { return cmp(a.from(), b.from()); });\n\t primIndex = indexOf(ranges, prim);\n\t for (var i = 1; i < ranges.length; i++) {\n\t var cur = ranges[i], prev = ranges[i - 1];\n\t if (cmp(prev.to(), cur.from()) >= 0) {\n\t var from = minPos(prev.from(), cur.from()), to = maxPos(prev.to(), cur.to());\n\t var inv = prev.empty() ? cur.from() == cur.head : prev.from() == prev.head;\n\t if (i <= primIndex) { --primIndex; }\n\t ranges.splice(--i, 2, new Range(inv ? to : from, inv ? from : to));\n\t }\n\t }\n\t return new Selection(ranges, primIndex)\n\t}\n\t\n\tfunction simpleSelection(anchor, head) {\n\t return new Selection([new Range(anchor, head || anchor)], 0)\n\t}\n\t\n\t// Compute the position of the end of a change (its 'to' property\n\t// refers to the pre-change end).\n\tfunction changeEnd(change) {\n\t if (!change.text) { return change.to }\n\t return Pos(change.from.line + change.text.length - 1,\n\t lst(change.text).length + (change.text.length == 1 ? change.from.ch : 0))\n\t}\n\t\n\t// Adjust a position to refer to the post-change position of the\n\t// same text, or the end of the change if the change covers it.\n\tfunction adjustForChange(pos, change) {\n\t if (cmp(pos, change.from) < 0) { return pos }\n\t if (cmp(pos, change.to) <= 0) { return changeEnd(change) }\n\t\n\t var line = pos.line + change.text.length - (change.to.line - change.from.line) - 1, ch = pos.ch;\n\t if (pos.line == change.to.line) { ch += changeEnd(change).ch - change.to.ch; }\n\t return Pos(line, ch)\n\t}\n\t\n\tfunction computeSelAfterChange(doc, change) {\n\t var out = [];\n\t for (var i = 0; i < doc.sel.ranges.length; i++) {\n\t var range = doc.sel.ranges[i];\n\t out.push(new Range(adjustForChange(range.anchor, change),\n\t adjustForChange(range.head, change)));\n\t }\n\t return normalizeSelection(out, doc.sel.primIndex)\n\t}\n\t\n\tfunction offsetPos(pos, old, nw) {\n\t if (pos.line == old.line)\n\t { return Pos(nw.line, pos.ch - old.ch + nw.ch) }\n\t else\n\t { return Pos(nw.line + (pos.line - old.line), pos.ch) }\n\t}\n\t\n\t// Used by replaceSelections to allow moving the selection to the\n\t// start or around the replaced test. Hint may be \"start\" or \"around\".\n\tfunction computeReplacedSel(doc, changes, hint) {\n\t var out = [];\n\t var oldPrev = Pos(doc.first, 0), newPrev = oldPrev;\n\t for (var i = 0; i < changes.length; i++) {\n\t var change = changes[i];\n\t var from = offsetPos(change.from, oldPrev, newPrev);\n\t var to = offsetPos(changeEnd(change), oldPrev, newPrev);\n\t oldPrev = change.to;\n\t newPrev = to;\n\t if (hint == \"around\") {\n\t var range = doc.sel.ranges[i], inv = cmp(range.head, range.anchor) < 0;\n\t out[i] = new Range(inv ? to : from, inv ? from : to);\n\t } else {\n\t out[i] = new Range(from, from);\n\t }\n\t }\n\t return new Selection(out, doc.sel.primIndex)\n\t}\n\t\n\t// Used to get the editor into a consistent state again when options change.\n\t\n\tfunction loadMode(cm) {\n\t cm.doc.mode = getMode(cm.options, cm.doc.modeOption);\n\t resetModeState(cm);\n\t}\n\t\n\tfunction resetModeState(cm) {\n\t cm.doc.iter(function (line) {\n\t if (line.stateAfter) { line.stateAfter = null; }\n\t if (line.styles) { line.styles = null; }\n\t });\n\t cm.doc.frontier = cm.doc.first;\n\t startWorker(cm, 100);\n\t cm.state.modeGen++;\n\t if (cm.curOp) { regChange(cm); }\n\t}\n\t\n\t// DOCUMENT DATA STRUCTURE\n\t\n\t// By default, updates that start and end at the beginning of a line\n\t// are treated specially, in order to make the association of line\n\t// widgets and marker elements with the text behave more intuitive.\n\tfunction isWholeLineUpdate(doc, change) {\n\t return change.from.ch == 0 && change.to.ch == 0 && lst(change.text) == \"\" &&\n\t (!doc.cm || doc.cm.options.wholeLineUpdateBefore)\n\t}\n\t\n\t// Perform a change on the document data structure.\n\tfunction updateDoc(doc, change, markedSpans, estimateHeight$$1) {\n\t function spansFor(n) {return markedSpans ? markedSpans[n] : null}\n\t function update(line, text, spans) {\n\t updateLine(line, text, spans, estimateHeight$$1);\n\t signalLater(line, \"change\", line, change);\n\t }\n\t function linesFor(start, end) {\n\t var result = [];\n\t for (var i = start; i < end; ++i)\n\t { result.push(new Line(text[i], spansFor(i), estimateHeight$$1)); }\n\t return result\n\t }\n\t\n\t var from = change.from, to = change.to, text = change.text;\n\t var firstLine = getLine(doc, from.line), lastLine = getLine(doc, to.line);\n\t var lastText = lst(text), lastSpans = spansFor(text.length - 1), nlines = to.line - from.line;\n\t\n\t // Adjust the line structure\n\t if (change.full) {\n\t doc.insert(0, linesFor(0, text.length));\n\t doc.remove(text.length, doc.size - text.length);\n\t } else if (isWholeLineUpdate(doc, change)) {\n\t // This is a whole-line replace. Treated specially to make\n\t // sure line objects move the way they are supposed to.\n\t var added = linesFor(0, text.length - 1);\n\t update(lastLine, lastLine.text, lastSpans);\n\t if (nlines) { doc.remove(from.line, nlines); }\n\t if (added.length) { doc.insert(from.line, added); }\n\t } else if (firstLine == lastLine) {\n\t if (text.length == 1) {\n\t update(firstLine, firstLine.text.slice(0, from.ch) + lastText + firstLine.text.slice(to.ch), lastSpans);\n\t } else {\n\t var added$1 = linesFor(1, text.length - 1);\n\t added$1.push(new Line(lastText + firstLine.text.slice(to.ch), lastSpans, estimateHeight$$1));\n\t update(firstLine, firstLine.text.slice(0, from.ch) + text[0], spansFor(0));\n\t doc.insert(from.line + 1, added$1);\n\t }\n\t } else if (text.length == 1) {\n\t update(firstLine, firstLine.text.slice(0, from.ch) + text[0] + lastLine.text.slice(to.ch), spansFor(0));\n\t doc.remove(from.line + 1, nlines);\n\t } else {\n\t update(firstLine, firstLine.text.slice(0, from.ch) + text[0], spansFor(0));\n\t update(lastLine, lastText + lastLine.text.slice(to.ch), lastSpans);\n\t var added$2 = linesFor(1, text.length - 1);\n\t if (nlines > 1) { doc.remove(from.line + 1, nlines - 1); }\n\t doc.insert(from.line + 1, added$2);\n\t }\n\t\n\t signalLater(doc, \"change\", doc, change);\n\t}\n\t\n\t// Call f for all linked documents.\n\tfunction linkedDocs(doc, f, sharedHistOnly) {\n\t function propagate(doc, skip, sharedHist) {\n\t if (doc.linked) { for (var i = 0; i < doc.linked.length; ++i) {\n\t var rel = doc.linked[i];\n\t if (rel.doc == skip) { continue }\n\t var shared = sharedHist && rel.sharedHist;\n\t if (sharedHistOnly && !shared) { continue }\n\t f(rel.doc, shared);\n\t propagate(rel.doc, doc, shared);\n\t } }\n\t }\n\t propagate(doc, null, true);\n\t}\n\t\n\t// Attach a document to an editor.\n\tfunction attachDoc(cm, doc) {\n\t if (doc.cm) { throw new Error(\"This document is already in use.\") }\n\t cm.doc = doc;\n\t doc.cm = cm;\n\t estimateLineHeights(cm);\n\t loadMode(cm);\n\t setDirectionClass(cm);\n\t if (!cm.options.lineWrapping) { findMaxLine(cm); }\n\t cm.options.mode = doc.modeOption;\n\t regChange(cm);\n\t}\n\t\n\tfunction setDirectionClass(cm) {\n\t (cm.doc.direction == \"rtl\" ? addClass : rmClass)(cm.display.lineDiv, \"CodeMirror-rtl\");\n\t}\n\t\n\tfunction directionChanged(cm) {\n\t runInOp(cm, function () {\n\t setDirectionClass(cm);\n\t regChange(cm);\n\t });\n\t}\n\t\n\tfunction History(startGen) {\n\t // Arrays of change events and selections. Doing something adds an\n\t // event to done and clears undo. Undoing moves events from done\n\t // to undone, redoing moves them in the other direction.\n\t this.done = []; this.undone = [];\n\t this.undoDepth = Infinity;\n\t // Used to track when changes can be merged into a single undo\n\t // event\n\t this.lastModTime = this.lastSelTime = 0;\n\t this.lastOp = this.lastSelOp = null;\n\t this.lastOrigin = this.lastSelOrigin = null;\n\t // Used by the isClean() method\n\t this.generation = this.maxGeneration = startGen || 1;\n\t}\n\t\n\t// Create a history change event from an updateDoc-style change\n\t// object.\n\tfunction historyChangeFromChange(doc, change) {\n\t var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n\t attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n\t linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n\t return histChange\n\t}\n\t\n\t// Pop all selection events off the end of a history array. Stop at\n\t// a change event.\n\tfunction clearSelectionEvents(array) {\n\t while (array.length) {\n\t var last = lst(array);\n\t if (last.ranges) { array.pop(); }\n\t else { break }\n\t }\n\t}\n\t\n\t// Find the top change event in the history. Pop off selection\n\t// events that are in the way.\n\tfunction lastChangeEvent(hist, force) {\n\t if (force) {\n\t clearSelectionEvents(hist.done);\n\t return lst(hist.done)\n\t } else if (hist.done.length && !lst(hist.done).ranges) {\n\t return lst(hist.done)\n\t } else if (hist.done.length > 1 && !hist.done[hist.done.length - 2].ranges) {\n\t hist.done.pop();\n\t return lst(hist.done)\n\t }\n\t}\n\t\n\t// Register a change in the history. Merges changes that are within\n\t// a single operation, or are close together with an origin that\n\t// allows merging (starting with \"+\") into a single event.\n\tfunction addChangeToHistory(doc, change, selAfter, opId) {\n\t var hist = doc.history;\n\t hist.undone.length = 0;\n\t var time = +new Date, cur;\n\t var last;\n\t\n\t if ((hist.lastOp == opId ||\n\t hist.lastOrigin == change.origin && change.origin &&\n\t ((change.origin.charAt(0) == \"+\" && doc.cm && hist.lastModTime > time - doc.cm.options.historyEventDelay) ||\n\t change.origin.charAt(0) == \"*\")) &&\n\t (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n\t // Merge this change into the last event\n\t last = lst(cur.changes);\n\t if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n\t // Optimized case for simple insertion -- don't want to add\n\t // new changesets for every character typed\n\t last.to = changeEnd(change);\n\t } else {\n\t // Add new sub-event\n\t cur.changes.push(historyChangeFromChange(doc, change));\n\t }\n\t } else {\n\t // Can not be merged, start a new event.\n\t var before = lst(hist.done);\n\t if (!before || !before.ranges)\n\t { pushSelectionToHistory(doc.sel, hist.done); }\n\t cur = {changes: [historyChangeFromChange(doc, change)],\n\t generation: hist.generation};\n\t hist.done.push(cur);\n\t while (hist.done.length > hist.undoDepth) {\n\t hist.done.shift();\n\t if (!hist.done[0].ranges) { hist.done.shift(); }\n\t }\n\t }\n\t hist.done.push(selAfter);\n\t hist.generation = ++hist.maxGeneration;\n\t hist.lastModTime = hist.lastSelTime = time;\n\t hist.lastOp = hist.lastSelOp = opId;\n\t hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\t\n\t if (!last) { signal(doc, \"historyAdded\"); }\n\t}\n\t\n\tfunction selectionEventCanBeMerged(doc, origin, prev, sel) {\n\t var ch = origin.charAt(0);\n\t return ch == \"*\" ||\n\t ch == \"+\" &&\n\t prev.ranges.length == sel.ranges.length &&\n\t prev.somethingSelected() == sel.somethingSelected() &&\n\t new Date - doc.history.lastSelTime <= (doc.cm ? doc.cm.options.historyEventDelay : 500)\n\t}\n\t\n\t// Called whenever the selection changes, sets the new selection as\n\t// the pending selection in the history, and pushes the old pending\n\t// selection into the 'done' array when it was significantly\n\t// different (in number of selected ranges, emptiness, or time).\n\tfunction addSelectionToHistory(doc, sel, opId, options) {\n\t var hist = doc.history, origin = options && options.origin;\n\t\n\t // A new event is started when the previous origin does not match\n\t // the current, or the origins don't allow matching. Origins\n\t // starting with * are always merged, those starting with + are\n\t // merged when similar and close together in time.\n\t if (opId == hist.lastSelOp ||\n\t (origin && hist.lastSelOrigin == origin &&\n\t (hist.lastModTime == hist.lastSelTime && hist.lastOrigin == origin ||\n\t selectionEventCanBeMerged(doc, origin, lst(hist.done), sel))))\n\t { hist.done[hist.done.length - 1] = sel; }\n\t else\n\t { pushSelectionToHistory(sel, hist.done); }\n\t\n\t hist.lastSelTime = +new Date;\n\t hist.lastSelOrigin = origin;\n\t hist.lastSelOp = opId;\n\t if (options && options.clearRedo !== false)\n\t { clearSelectionEvents(hist.undone); }\n\t}\n\t\n\tfunction pushSelectionToHistory(sel, dest) {\n\t var top = lst(dest);\n\t if (!(top && top.ranges && top.equals(sel)))\n\t { dest.push(sel); }\n\t}\n\t\n\t// Used to store marked span information in the history.\n\tfunction attachLocalSpans(doc, change, from, to) {\n\t var existing = change[\"spans_\" + doc.id], n = 0;\n\t doc.iter(Math.max(doc.first, from), Math.min(doc.first + doc.size, to), function (line) {\n\t if (line.markedSpans)\n\t { (existing || (existing = change[\"spans_\" + doc.id] = {}))[n] = line.markedSpans; }\n\t ++n;\n\t });\n\t}\n\t\n\t// When un/re-doing restores text containing marked spans, those\n\t// that have been explicitly cleared should not be restored.\n\tfunction removeClearedSpans(spans) {\n\t if (!spans) { return null }\n\t var out;\n\t for (var i = 0; i < spans.length; ++i) {\n\t if (spans[i].marker.explicitlyCleared) { if (!out) { out = spans.slice(0, i); } }\n\t else if (out) { out.push(spans[i]); }\n\t }\n\t return !out ? spans : out.length ? out : null\n\t}\n\t\n\t// Retrieve and filter the old marked spans stored in a change event.\n\tfunction getOldSpans(doc, change) {\n\t var found = change[\"spans_\" + doc.id];\n\t if (!found) { return null }\n\t var nw = [];\n\t for (var i = 0; i < change.text.length; ++i)\n\t { nw.push(removeClearedSpans(found[i])); }\n\t return nw\n\t}\n\t\n\t// Used for un/re-doing changes from the history. Combines the\n\t// result of computing the existing spans with the set of spans that\n\t// existed in the history (so that deleting around a span and then\n\t// undoing brings back the span).\n\tfunction mergeOldSpans(doc, change) {\n\t var old = getOldSpans(doc, change);\n\t var stretched = stretchSpansOverChange(doc, change);\n\t if (!old) { return stretched }\n\t if (!stretched) { return old }\n\t\n\t for (var i = 0; i < old.length; ++i) {\n\t var oldCur = old[i], stretchCur = stretched[i];\n\t if (oldCur && stretchCur) {\n\t spans: for (var j = 0; j < stretchCur.length; ++j) {\n\t var span = stretchCur[j];\n\t for (var k = 0; k < oldCur.length; ++k)\n\t { if (oldCur[k].marker == span.marker) { continue spans } }\n\t oldCur.push(span);\n\t }\n\t } else if (stretchCur) {\n\t old[i] = stretchCur;\n\t }\n\t }\n\t return old\n\t}\n\t\n\t// Used both to provide a JSON-safe object in .getHistory, and, when\n\t// detaching a document, to split the history in two\n\tfunction copyHistoryArray(events, newGroup, instantiateSel) {\n\t var copy = [];\n\t for (var i = 0; i < events.length; ++i) {\n\t var event = events[i];\n\t if (event.ranges) {\n\t copy.push(instantiateSel ? Selection.prototype.deepCopy.call(event) : event);\n\t continue\n\t }\n\t var changes = event.changes, newChanges = [];\n\t copy.push({changes: newChanges});\n\t for (var j = 0; j < changes.length; ++j) {\n\t var change = changes[j], m = (void 0);\n\t newChanges.push({from: change.from, to: change.to, text: change.text});\n\t if (newGroup) { for (var prop in change) { if (m = prop.match(/^spans_(\\d+)$/)) {\n\t if (indexOf(newGroup, Number(m[1])) > -1) {\n\t lst(newChanges)[prop] = change[prop];\n\t delete change[prop];\n\t }\n\t } } }\n\t }\n\t }\n\t return copy\n\t}\n\t\n\t// The 'scroll' parameter given to many of these indicated whether\n\t// the new cursor position should be scrolled into view after\n\t// modifying the selection.\n\t\n\t// If shift is held or the extend flag is set, extends a range to\n\t// include a given position (and optionally a second position).\n\t// Otherwise, simply returns the range between the given positions.\n\t// Used for cursor motion and such.\n\tfunction extendRange(doc, range, head, other) {\n\t if (doc.cm && doc.cm.display.shift || doc.extend) {\n\t var anchor = range.anchor;\n\t if (other) {\n\t var posBefore = cmp(head, anchor) < 0;\n\t if (posBefore != (cmp(other, anchor) < 0)) {\n\t anchor = head;\n\t head = other;\n\t } else if (posBefore != (cmp(head, other) < 0)) {\n\t head = other;\n\t }\n\t }\n\t return new Range(anchor, head)\n\t } else {\n\t return new Range(other || head, head)\n\t }\n\t}\n\t\n\t// Extend the primary selection range, discard the rest.\n\tfunction extendSelection(doc, head, other, options) {\n\t setSelection(doc, new Selection([extendRange(doc, doc.sel.primary(), head, other)], 0), options);\n\t}\n\t\n\t// Extend all selections (pos is an array of selections with length\n\t// equal the number of selections)\n\tfunction extendSelections(doc, heads, options) {\n\t var out = [];\n\t for (var i = 0; i < doc.sel.ranges.length; i++)\n\t { out[i] = extendRange(doc, doc.sel.ranges[i], heads[i], null); }\n\t var newSel = normalizeSelection(out, doc.sel.primIndex);\n\t setSelection(doc, newSel, options);\n\t}\n\t\n\t// Updates a single range in the selection.\n\tfunction replaceOneSelection(doc, i, range, options) {\n\t var ranges = doc.sel.ranges.slice(0);\n\t ranges[i] = range;\n\t setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);\n\t}\n\t\n\t// Reset the selection to a single range.\n\tfunction setSimpleSelection(doc, anchor, head, options) {\n\t setSelection(doc, simpleSelection(anchor, head), options);\n\t}\n\t\n\t// Give beforeSelectionChange handlers a change to influence a\n\t// selection update.\n\tfunction filterSelectionChange(doc, sel, options) {\n\t var obj = {\n\t ranges: sel.ranges,\n\t update: function(ranges) {\n\t var this$1 = this;\n\t\n\t this.ranges = [];\n\t for (var i = 0; i < ranges.length; i++)\n\t { this$1.ranges[i] = new Range(clipPos(doc, ranges[i].anchor),\n\t clipPos(doc, ranges[i].head)); }\n\t },\n\t origin: options && options.origin\n\t };\n\t signal(doc, \"beforeSelectionChange\", doc, obj);\n\t if (doc.cm) { signal(doc.cm, \"beforeSelectionChange\", doc.cm, obj); }\n\t if (obj.ranges != sel.ranges) { return normalizeSelection(obj.ranges, obj.ranges.length - 1) }\n\t else { return sel }\n\t}\n\t\n\tfunction setSelectionReplaceHistory(doc, sel, options) {\n\t var done = doc.history.done, last = lst(done);\n\t if (last && last.ranges) {\n\t done[done.length - 1] = sel;\n\t setSelectionNoUndo(doc, sel, options);\n\t } else {\n\t setSelection(doc, sel, options);\n\t }\n\t}\n\t\n\t// Set a new selection.\n\tfunction setSelection(doc, sel, options) {\n\t setSelectionNoUndo(doc, sel, options);\n\t addSelectionToHistory(doc, doc.sel, doc.cm ? doc.cm.curOp.id : NaN, options);\n\t}\n\t\n\tfunction setSelectionNoUndo(doc, sel, options) {\n\t if (hasHandler(doc, \"beforeSelectionChange\") || doc.cm && hasHandler(doc.cm, \"beforeSelectionChange\"))\n\t { sel = filterSelectionChange(doc, sel, options); }\n\t\n\t var bias = options && options.bias ||\n\t (cmp(sel.primary().head, doc.sel.primary().head) < 0 ? -1 : 1);\n\t setSelectionInner(doc, skipAtomicInSelection(doc, sel, bias, true));\n\t\n\t if (!(options && options.scroll === false) && doc.cm)\n\t { ensureCursorVisible(doc.cm); }\n\t}\n\t\n\tfunction setSelectionInner(doc, sel) {\n\t if (sel.equals(doc.sel)) { return }\n\t\n\t doc.sel = sel;\n\t\n\t if (doc.cm) {\n\t doc.cm.curOp.updateInput = doc.cm.curOp.selectionChanged = true;\n\t signalCursorActivity(doc.cm);\n\t }\n\t signalLater(doc, \"cursorActivity\", doc);\n\t}\n\t\n\t// Verify that the selection does not partially select any atomic\n\t// marked ranges.\n\tfunction reCheckSelection(doc) {\n\t setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false), sel_dontScroll);\n\t}\n\t\n\t// Return a selection that does not partially select any atomic\n\t// ranges.\n\tfunction skipAtomicInSelection(doc, sel, bias, mayClear) {\n\t var out;\n\t for (var i = 0; i < sel.ranges.length; i++) {\n\t var range = sel.ranges[i];\n\t var old = sel.ranges.length == doc.sel.ranges.length && doc.sel.ranges[i];\n\t var newAnchor = skipAtomic(doc, range.anchor, old && old.anchor, bias, mayClear);\n\t var newHead = skipAtomic(doc, range.head, old && old.head, bias, mayClear);\n\t if (out || newAnchor != range.anchor || newHead != range.head) {\n\t if (!out) { out = sel.ranges.slice(0, i); }\n\t out[i] = new Range(newAnchor, newHead);\n\t }\n\t }\n\t return out ? normalizeSelection(out, sel.primIndex) : sel\n\t}\n\t\n\tfunction skipAtomicInner(doc, pos, oldPos, dir, mayClear) {\n\t var line = getLine(doc, pos.line);\n\t if (line.markedSpans) { for (var i = 0; i < line.markedSpans.length; ++i) {\n\t var sp = line.markedSpans[i], m = sp.marker;\n\t if ((sp.from == null || (m.inclusiveLeft ? sp.from <= pos.ch : sp.from < pos.ch)) &&\n\t (sp.to == null || (m.inclusiveRight ? sp.to >= pos.ch : sp.to > pos.ch))) {\n\t if (mayClear) {\n\t signal(m, \"beforeCursorEnter\");\n\t if (m.explicitlyCleared) {\n\t if (!line.markedSpans) { break }\n\t else {--i; continue}\n\t }\n\t }\n\t if (!m.atomic) { continue }\n\t\n\t if (oldPos) {\n\t var near = m.find(dir < 0 ? 1 : -1), diff = (void 0);\n\t if (dir < 0 ? m.inclusiveRight : m.inclusiveLeft)\n\t { near = movePos(doc, near, -dir, near && near.line == pos.line ? line : null); }\n\t if (near && near.line == pos.line && (diff = cmp(near, oldPos)) && (dir < 0 ? diff < 0 : diff > 0))\n\t { return skipAtomicInner(doc, near, pos, dir, mayClear) }\n\t }\n\t\n\t var far = m.find(dir < 0 ? -1 : 1);\n\t if (dir < 0 ? m.inclusiveLeft : m.inclusiveRight)\n\t { far = movePos(doc, far, dir, far.line == pos.line ? line : null); }\n\t return far ? skipAtomicInner(doc, far, pos, dir, mayClear) : null\n\t }\n\t } }\n\t return pos\n\t}\n\t\n\t// Ensure a given position is not inside an atomic range.\n\tfunction skipAtomic(doc, pos, oldPos, bias, mayClear) {\n\t var dir = bias || 1;\n\t var found = skipAtomicInner(doc, pos, oldPos, dir, mayClear) ||\n\t (!mayClear && skipAtomicInner(doc, pos, oldPos, dir, true)) ||\n\t skipAtomicInner(doc, pos, oldPos, -dir, mayClear) ||\n\t (!mayClear && skipAtomicInner(doc, pos, oldPos, -dir, true));\n\t if (!found) {\n\t doc.cantEdit = true;\n\t return Pos(doc.first, 0)\n\t }\n\t return found\n\t}\n\t\n\tfunction movePos(doc, pos, dir, line) {\n\t if (dir < 0 && pos.ch == 0) {\n\t if (pos.line > doc.first) { return clipPos(doc, Pos(pos.line - 1)) }\n\t else { return null }\n\t } else if (dir > 0 && pos.ch == (line || getLine(doc, pos.line)).text.length) {\n\t if (pos.line < doc.first + doc.size - 1) { return Pos(pos.line + 1, 0) }\n\t else { return null }\n\t } else {\n\t return new Pos(pos.line, pos.ch + dir)\n\t }\n\t}\n\t\n\tfunction selectAll(cm) {\n\t cm.setSelection(Pos(cm.firstLine(), 0), Pos(cm.lastLine()), sel_dontScroll);\n\t}\n\t\n\t// UPDATING\n\t\n\t// Allow \"beforeChange\" event handlers to influence a change\n\tfunction filterChange(doc, change, update) {\n\t var obj = {\n\t canceled: false,\n\t from: change.from,\n\t to: change.to,\n\t text: change.text,\n\t origin: change.origin,\n\t cancel: function () { return obj.canceled = true; }\n\t };\n\t if (update) { obj.update = function (from, to, text, origin) {\n\t if (from) { obj.from = clipPos(doc, from); }\n\t if (to) { obj.to = clipPos(doc, to); }\n\t if (text) { obj.text = text; }\n\t if (origin !== undefined) { obj.origin = origin; }\n\t }; }\n\t signal(doc, \"beforeChange\", doc, obj);\n\t if (doc.cm) { signal(doc.cm, \"beforeChange\", doc.cm, obj); }\n\t\n\t if (obj.canceled) { return null }\n\t return {from: obj.from, to: obj.to, text: obj.text, origin: obj.origin}\n\t}\n\t\n\t// Apply a change to a document, and add it to the document's\n\t// history, and propagating it to all linked documents.\n\tfunction makeChange(doc, change, ignoreReadOnly) {\n\t if (doc.cm) {\n\t if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n\t if (doc.cm.state.suppressEdits) { return }\n\t }\n\t\n\t if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n\t change = filterChange(doc, change, true);\n\t if (!change) { return }\n\t }\n\t\n\t // Possibly split or suppress the update based on the presence\n\t // of read-only spans in its range.\n\t var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n\t if (split) {\n\t for (var i = split.length - 1; i >= 0; --i)\n\t { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text}); }\n\t } else {\n\t makeChangeInner(doc, change);\n\t }\n\t}\n\t\n\tfunction makeChangeInner(doc, change) {\n\t if (change.text.length == 1 && change.text[0] == \"\" && cmp(change.from, change.to) == 0) { return }\n\t var selAfter = computeSelAfterChange(doc, change);\n\t addChangeToHistory(doc, change, selAfter, doc.cm ? doc.cm.curOp.id : NaN);\n\t\n\t makeChangeSingleDoc(doc, change, selAfter, stretchSpansOverChange(doc, change));\n\t var rebased = [];\n\t\n\t linkedDocs(doc, function (doc, sharedHist) {\n\t if (!sharedHist && indexOf(rebased, doc.history) == -1) {\n\t rebaseHist(doc.history, change);\n\t rebased.push(doc.history);\n\t }\n\t makeChangeSingleDoc(doc, change, null, stretchSpansOverChange(doc, change));\n\t });\n\t}\n\t\n\t// Revert a change stored in a document's history.\n\tfunction makeChangeFromHistory(doc, type, allowSelectionOnly) {\n\t if (doc.cm && doc.cm.state.suppressEdits && !allowSelectionOnly) { return }\n\t\n\t var hist = doc.history, event, selAfter = doc.sel;\n\t var source = type == \"undo\" ? hist.done : hist.undone, dest = type == \"undo\" ? hist.undone : hist.done;\n\t\n\t // Verify that there is a useable event (so that ctrl-z won't\n\t // needlessly clear selection events)\n\t var i = 0;\n\t for (; i < source.length; i++) {\n\t event = source[i];\n\t if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges)\n\t { break }\n\t }\n\t if (i == source.length) { return }\n\t hist.lastOrigin = hist.lastSelOrigin = null;\n\t\n\t for (;;) {\n\t event = source.pop();\n\t if (event.ranges) {\n\t pushSelectionToHistory(event, dest);\n\t if (allowSelectionOnly && !event.equals(doc.sel)) {\n\t setSelection(doc, event, {clearRedo: false});\n\t return\n\t }\n\t selAfter = event;\n\t }\n\t else { break }\n\t }\n\t\n\t // Build up a reverse change object to add to the opposite history\n\t // stack (redo when undoing, and vice versa).\n\t var antiChanges = [];\n\t pushSelectionToHistory(selAfter, dest);\n\t dest.push({changes: antiChanges, generation: hist.generation});\n\t hist.generation = event.generation || ++hist.maxGeneration;\n\t\n\t var filter = hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\");\n\t\n\t var loop = function ( i ) {\n\t var change = event.changes[i];\n\t change.origin = type;\n\t if (filter && !filterChange(doc, change, false)) {\n\t source.length = 0;\n\t return {}\n\t }\n\t\n\t antiChanges.push(historyChangeFromChange(doc, change));\n\t\n\t var after = i ? computeSelAfterChange(doc, change) : lst(source);\n\t makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change));\n\t if (!i && doc.cm) { doc.cm.scrollIntoView({from: change.from, to: changeEnd(change)}); }\n\t var rebased = [];\n\t\n\t // Propagate to the linked documents\n\t linkedDocs(doc, function (doc, sharedHist) {\n\t if (!sharedHist && indexOf(rebased, doc.history) == -1) {\n\t rebaseHist(doc.history, change);\n\t rebased.push(doc.history);\n\t }\n\t makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change));\n\t });\n\t };\n\t\n\t for (var i$1 = event.changes.length - 1; i$1 >= 0; --i$1) {\n\t var returned = loop( i$1 );\n\t\n\t if ( returned ) return returned.v;\n\t }\n\t}\n\t\n\t// Sub-views need their line numbers shifted when text is added\n\t// above or below them in the parent document.\n\tfunction shiftDoc(doc, distance) {\n\t if (distance == 0) { return }\n\t doc.first += distance;\n\t doc.sel = new Selection(map(doc.sel.ranges, function (range) { return new Range(\n\t Pos(range.anchor.line + distance, range.anchor.ch),\n\t Pos(range.head.line + distance, range.head.ch)\n\t ); }), doc.sel.primIndex);\n\t if (doc.cm) {\n\t regChange(doc.cm, doc.first, doc.first - distance, distance);\n\t for (var d = doc.cm.display, l = d.viewFrom; l < d.viewTo; l++)\n\t { regLineChange(doc.cm, l, \"gutter\"); }\n\t }\n\t}\n\t\n\t// More lower-level change function, handling only a single document\n\t// (not linked ones).\n\tfunction makeChangeSingleDoc(doc, change, selAfter, spans) {\n\t if (doc.cm && !doc.cm.curOp)\n\t { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\t\n\t if (change.to.line < doc.first) {\n\t shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n\t return\n\t }\n\t if (change.from.line > doc.lastLine()) { return }\n\t\n\t // Clip the change to the size of this doc\n\t if (change.from.line < doc.first) {\n\t var shift = change.text.length - 1 - (doc.first - change.from.line);\n\t shiftDoc(doc, shift);\n\t change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n\t text: [lst(change.text)], origin: change.origin};\n\t }\n\t var last = doc.lastLine();\n\t if (change.to.line > last) {\n\t change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n\t text: [change.text[0]], origin: change.origin};\n\t }\n\t\n\t change.removed = getBetween(doc, change.from, change.to);\n\t\n\t if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n\t if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n\t else { updateDoc(doc, change, spans); }\n\t setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n\t}\n\t\n\t// Handle the interaction of a change to a document with the editor\n\t// that this document is part of.\n\tfunction makeChangeSingleDocInEditor(cm, change, spans) {\n\t var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\t\n\t var recomputeMaxLength = false, checkWidthStart = from.line;\n\t if (!cm.options.lineWrapping) {\n\t checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n\t doc.iter(checkWidthStart, to.line + 1, function (line) {\n\t if (line == display.maxLine) {\n\t recomputeMaxLength = true;\n\t return true\n\t }\n\t });\n\t }\n\t\n\t if (doc.sel.contains(change.from, change.to) > -1)\n\t { signalCursorActivity(cm); }\n\t\n\t updateDoc(doc, change, spans, estimateHeight(cm));\n\t\n\t if (!cm.options.lineWrapping) {\n\t doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n\t var len = lineLength(line);\n\t if (len > display.maxLineLength) {\n\t display.maxLine = line;\n\t display.maxLineLength = len;\n\t display.maxLineChanged = true;\n\t recomputeMaxLength = false;\n\t }\n\t });\n\t if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n\t }\n\t\n\t // Adjust frontier, schedule worker\n\t doc.frontier = Math.min(doc.frontier, from.line);\n\t startWorker(cm, 400);\n\t\n\t var lendiff = change.text.length - (to.line - from.line) - 1;\n\t // Remember that these lines changed, for updating the display\n\t if (change.full)\n\t { regChange(cm); }\n\t else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n\t { regLineChange(cm, from.line, \"text\"); }\n\t else\n\t { regChange(cm, from.line, to.line + 1, lendiff); }\n\t\n\t var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n\t if (changeHandler || changesHandler) {\n\t var obj = {\n\t from: from, to: to,\n\t text: change.text,\n\t removed: change.removed,\n\t origin: change.origin\n\t };\n\t if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n\t if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n\t }\n\t cm.display.selForContextMenu = null;\n\t}\n\t\n\tfunction replaceRange(doc, code, from, to, origin) {\n\t if (!to) { to = from; }\n\t if (cmp(to, from) < 0) { var tmp = to; to = from; from = tmp; }\n\t if (typeof code == \"string\") { code = doc.splitLines(code); }\n\t makeChange(doc, {from: from, to: to, text: code, origin: origin});\n\t}\n\t\n\t// Rebasing/resetting history to deal with externally-sourced changes\n\t\n\tfunction rebaseHistSelSingle(pos, from, to, diff) {\n\t if (to < pos.line) {\n\t pos.line += diff;\n\t } else if (from < pos.line) {\n\t pos.line = from;\n\t pos.ch = 0;\n\t }\n\t}\n\t\n\t// Tries to rebase an array of history events given a change in the\n\t// document. If the change touches the same lines as the event, the\n\t// event, and everything 'behind' it, is discarded. If the change is\n\t// before the event, the event's positions are updated. Uses a\n\t// copy-on-write scheme for the positions, to avoid having to\n\t// reallocate them all on every rebase, but also avoid problems with\n\t// shared position objects being unsafely updated.\n\tfunction rebaseHistArray(array, from, to, diff) {\n\t for (var i = 0; i < array.length; ++i) {\n\t var sub = array[i], ok = true;\n\t if (sub.ranges) {\n\t if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n\t for (var j = 0; j < sub.ranges.length; j++) {\n\t rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n\t rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n\t }\n\t continue\n\t }\n\t for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\n\t var cur = sub.changes[j$1];\n\t if (to < cur.from.line) {\n\t cur.from = Pos(cur.from.line + diff, cur.from.ch);\n\t cur.to = Pos(cur.to.line + diff, cur.to.ch);\n\t } else if (from <= cur.to.line) {\n\t ok = false;\n\t break\n\t }\n\t }\n\t if (!ok) {\n\t array.splice(0, i + 1);\n\t i = 0;\n\t }\n\t }\n\t}\n\t\n\tfunction rebaseHist(hist, change) {\n\t var from = change.from.line, to = change.to.line, diff = change.text.length - (to - from) - 1;\n\t rebaseHistArray(hist.done, from, to, diff);\n\t rebaseHistArray(hist.undone, from, to, diff);\n\t}\n\t\n\t// Utility for applying a change to a line by handle or number,\n\t// returning the number and optionally registering the line as\n\t// changed.\n\tfunction changeLine(doc, handle, changeType, op) {\n\t var no = handle, line = handle;\n\t if (typeof handle == \"number\") { line = getLine(doc, clipLine(doc, handle)); }\n\t else { no = lineNo(handle); }\n\t if (no == null) { return null }\n\t if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); }\n\t return line\n\t}\n\t\n\t// The document is represented as a BTree consisting of leaves, with\n\t// chunk of lines in them, and branches, with up to ten leaves or\n\t// other branch nodes below them. The top node is always a branch\n\t// node, and is the document object itself (meaning it has\n\t// additional methods and properties).\n\t//\n\t// All nodes have parent links. The tree is used both to go from\n\t// line numbers to line objects, and to go from objects to numbers.\n\t// It also indexes by height, and is used to convert between height\n\t// and line object, and to find the total height of the document.\n\t//\n\t// See also http://marijnhaverbeke.nl/blog/codemirror-line-tree.html\n\t\n\tvar LeafChunk = function(lines) {\n\t var this$1 = this;\n\t\n\t this.lines = lines;\n\t this.parent = null;\n\t var height = 0;\n\t for (var i = 0; i < lines.length; ++i) {\n\t lines[i].parent = this$1;\n\t height += lines[i].height;\n\t }\n\t this.height = height;\n\t};\n\t\n\tLeafChunk.prototype.chunkSize = function () { return this.lines.length };\n\t\n\t// Remove the n lines at offset 'at'.\n\tLeafChunk.prototype.removeInner = function (at, n) {\n\t var this$1 = this;\n\t\n\t for (var i = at, e = at + n; i < e; ++i) {\n\t var line = this$1.lines[i];\n\t this$1.height -= line.height;\n\t cleanUpLine(line);\n\t signalLater(line, \"delete\");\n\t }\n\t this.lines.splice(at, n);\n\t};\n\t\n\t// Helper used to collapse a small branch into a single leaf.\n\tLeafChunk.prototype.collapse = function (lines) {\n\t lines.push.apply(lines, this.lines);\n\t};\n\t\n\t// Insert the given array of lines at offset 'at', count them as\n\t// having the given height.\n\tLeafChunk.prototype.insertInner = function (at, lines, height) {\n\t var this$1 = this;\n\t\n\t this.height += height;\n\t this.lines = this.lines.slice(0, at).concat(lines).concat(this.lines.slice(at));\n\t for (var i = 0; i < lines.length; ++i) { lines[i].parent = this$1; }\n\t};\n\t\n\t// Used to iterate over a part of the tree.\n\tLeafChunk.prototype.iterN = function (at, n, op) {\n\t var this$1 = this;\n\t\n\t for (var e = at + n; at < e; ++at)\n\t { if (op(this$1.lines[at])) { return true } }\n\t};\n\t\n\tvar BranchChunk = function(children) {\n\t var this$1 = this;\n\t\n\t this.children = children;\n\t var size = 0, height = 0;\n\t for (var i = 0; i < children.length; ++i) {\n\t var ch = children[i];\n\t size += ch.chunkSize(); height += ch.height;\n\t ch.parent = this$1;\n\t }\n\t this.size = size;\n\t this.height = height;\n\t this.parent = null;\n\t};\n\t\n\tBranchChunk.prototype.chunkSize = function () { return this.size };\n\t\n\tBranchChunk.prototype.removeInner = function (at, n) {\n\t var this$1 = this;\n\t\n\t this.size -= n;\n\t for (var i = 0; i < this.children.length; ++i) {\n\t var child = this$1.children[i], sz = child.chunkSize();\n\t if (at < sz) {\n\t var rm = Math.min(n, sz - at), oldHeight = child.height;\n\t child.removeInner(at, rm);\n\t this$1.height -= oldHeight - child.height;\n\t if (sz == rm) { this$1.children.splice(i--, 1); child.parent = null; }\n\t if ((n -= rm) == 0) { break }\n\t at = 0;\n\t } else { at -= sz; }\n\t }\n\t // If the result is smaller than 25 lines, ensure that it is a\n\t // single leaf node.\n\t if (this.size - n < 25 &&\n\t (this.children.length > 1 || !(this.children[0] instanceof LeafChunk))) {\n\t var lines = [];\n\t this.collapse(lines);\n\t this.children = [new LeafChunk(lines)];\n\t this.children[0].parent = this;\n\t }\n\t};\n\t\n\tBranchChunk.prototype.collapse = function (lines) {\n\t var this$1 = this;\n\t\n\t for (var i = 0; i < this.children.length; ++i) { this$1.children[i].collapse(lines); }\n\t};\n\t\n\tBranchChunk.prototype.insertInner = function (at, lines, height) {\n\t var this$1 = this;\n\t\n\t this.size += lines.length;\n\t this.height += height;\n\t for (var i = 0; i < this.children.length; ++i) {\n\t var child = this$1.children[i], sz = child.chunkSize();\n\t if (at <= sz) {\n\t child.insertInner(at, lines, height);\n\t if (child.lines && child.lines.length > 50) {\n\t // To avoid memory thrashing when child.lines is huge (e.g. first view of a large file), it's never spliced.\n\t // Instead, small slices are taken. They're taken in order because sequential memory accesses are fastest.\n\t var remaining = child.lines.length % 25 + 25;\n\t for (var pos = remaining; pos < child.lines.length;) {\n\t var leaf = new LeafChunk(child.lines.slice(pos, pos += 25));\n\t child.height -= leaf.height;\n\t this$1.children.splice(++i, 0, leaf);\n\t leaf.parent = this$1;\n\t }\n\t child.lines = child.lines.slice(0, remaining);\n\t this$1.maybeSpill();\n\t }\n\t break\n\t }\n\t at -= sz;\n\t }\n\t};\n\t\n\t// When a node has grown, check whether it should be split.\n\tBranchChunk.prototype.maybeSpill = function () {\n\t if (this.children.length <= 10) { return }\n\t var me = this;\n\t do {\n\t var spilled = me.children.splice(me.children.length - 5, 5);\n\t var sibling = new BranchChunk(spilled);\n\t if (!me.parent) { // Become the parent node\n\t var copy = new BranchChunk(me.children);\n\t copy.parent = me;\n\t me.children = [copy, sibling];\n\t me = copy;\n\t } else {\n\t me.size -= sibling.size;\n\t me.height -= sibling.height;\n\t var myIndex = indexOf(me.parent.children, me);\n\t me.parent.children.splice(myIndex + 1, 0, sibling);\n\t }\n\t sibling.parent = me.parent;\n\t } while (me.children.length > 10)\n\t me.parent.maybeSpill();\n\t};\n\t\n\tBranchChunk.prototype.iterN = function (at, n, op) {\n\t var this$1 = this;\n\t\n\t for (var i = 0; i < this.children.length; ++i) {\n\t var child = this$1.children[i], sz = child.chunkSize();\n\t if (at < sz) {\n\t var used = Math.min(n, sz - at);\n\t if (child.iterN(at, used, op)) { return true }\n\t if ((n -= used) == 0) { break }\n\t at = 0;\n\t } else { at -= sz; }\n\t }\n\t};\n\t\n\t// Line widgets are block elements displayed above or below a line.\n\t\n\tvar LineWidget = function(doc, node, options) {\n\t var this$1 = this;\n\t\n\t if (options) { for (var opt in options) { if (options.hasOwnProperty(opt))\n\t { this$1[opt] = options[opt]; } } }\n\t this.doc = doc;\n\t this.node = node;\n\t};\n\t\n\tLineWidget.prototype.clear = function () {\n\t var this$1 = this;\n\t\n\t var cm = this.doc.cm, ws = this.line.widgets, line = this.line, no = lineNo(line);\n\t if (no == null || !ws) { return }\n\t for (var i = 0; i < ws.length; ++i) { if (ws[i] == this$1) { ws.splice(i--, 1); } }\n\t if (!ws.length) { line.widgets = null; }\n\t var height = widgetHeight(this);\n\t updateLineHeight(line, Math.max(0, line.height - height));\n\t if (cm) {\n\t runInOp(cm, function () {\n\t adjustScrollWhenAboveVisible(cm, line, -height);\n\t regLineChange(cm, no, \"widget\");\n\t });\n\t signalLater(cm, \"lineWidgetCleared\", cm, this, no);\n\t }\n\t};\n\t\n\tLineWidget.prototype.changed = function () {\n\t var this$1 = this;\n\t\n\t var oldH = this.height, cm = this.doc.cm, line = this.line;\n\t this.height = null;\n\t var diff = widgetHeight(this) - oldH;\n\t if (!diff) { return }\n\t updateLineHeight(line, line.height + diff);\n\t if (cm) {\n\t runInOp(cm, function () {\n\t cm.curOp.forceUpdate = true;\n\t adjustScrollWhenAboveVisible(cm, line, diff);\n\t signalLater(cm, \"lineWidgetChanged\", cm, this$1, lineNo(line));\n\t });\n\t }\n\t};\n\teventMixin(LineWidget);\n\t\n\tfunction adjustScrollWhenAboveVisible(cm, line, diff) {\n\t if (heightAtLine(line) < ((cm.curOp && cm.curOp.scrollTop) || cm.doc.scrollTop))\n\t { addToScrollPos(cm, null, diff); }\n\t}\n\t\n\tfunction addLineWidget(doc, handle, node, options) {\n\t var widget = new LineWidget(doc, node, options);\n\t var cm = doc.cm;\n\t if (cm && widget.noHScroll) { cm.display.alignWidgets = true; }\n\t changeLine(doc, handle, \"widget\", function (line) {\n\t var widgets = line.widgets || (line.widgets = []);\n\t if (widget.insertAt == null) { widgets.push(widget); }\n\t else { widgets.splice(Math.min(widgets.length - 1, Math.max(0, widget.insertAt)), 0, widget); }\n\t widget.line = line;\n\t if (cm && !lineIsHidden(doc, line)) {\n\t var aboveVisible = heightAtLine(line) < doc.scrollTop;\n\t updateLineHeight(line, line.height + widgetHeight(widget));\n\t if (aboveVisible) { addToScrollPos(cm, null, widget.height); }\n\t cm.curOp.forceUpdate = true;\n\t }\n\t return true\n\t });\n\t signalLater(cm, \"lineWidgetAdded\", cm, widget, typeof handle == \"number\" ? handle : lineNo(handle));\n\t return widget\n\t}\n\t\n\t// TEXTMARKERS\n\t\n\t// Created with markText and setBookmark methods. A TextMarker is a\n\t// handle that can be used to clear or find a marked position in the\n\t// document. Line objects hold arrays (markedSpans) containing\n\t// {from, to, marker} object pointing to such marker objects, and\n\t// indicating that such a marker is present on that line. Multiple\n\t// lines may point to the same marker when it spans across lines.\n\t// The spans will have null for their from/to properties when the\n\t// marker continues beyond the start/end of the line. Markers have\n\t// links back to the lines they currently touch.\n\t\n\t// Collapsed markers have unique ids, in order to be able to order\n\t// them, which is needed for uniquely determining an outer marker\n\t// when they overlap (they may nest, but not partially overlap).\n\tvar nextMarkerId = 0;\n\t\n\tvar TextMarker = function(doc, type) {\n\t this.lines = [];\n\t this.type = type;\n\t this.doc = doc;\n\t this.id = ++nextMarkerId;\n\t};\n\t\n\t// Clear the marker.\n\tTextMarker.prototype.clear = function () {\n\t var this$1 = this;\n\t\n\t if (this.explicitlyCleared) { return }\n\t var cm = this.doc.cm, withOp = cm && !cm.curOp;\n\t if (withOp) { startOperation(cm); }\n\t if (hasHandler(this, \"clear\")) {\n\t var found = this.find();\n\t if (found) { signalLater(this, \"clear\", found.from, found.to); }\n\t }\n\t var min = null, max = null;\n\t for (var i = 0; i < this.lines.length; ++i) {\n\t var line = this$1.lines[i];\n\t var span = getMarkedSpanFor(line.markedSpans, this$1);\n\t if (cm && !this$1.collapsed) { regLineChange(cm, lineNo(line), \"text\"); }\n\t else if (cm) {\n\t if (span.to != null) { max = lineNo(line); }\n\t if (span.from != null) { min = lineNo(line); }\n\t }\n\t line.markedSpans = removeMarkedSpan(line.markedSpans, span);\n\t if (span.from == null && this$1.collapsed && !lineIsHidden(this$1.doc, line) && cm)\n\t { updateLineHeight(line, textHeight(cm.display)); }\n\t }\n\t if (cm && this.collapsed && !cm.options.lineWrapping) { for (var i$1 = 0; i$1 < this.lines.length; ++i$1) {\n\t var visual = visualLine(this$1.lines[i$1]), len = lineLength(visual);\n\t if (len > cm.display.maxLineLength) {\n\t cm.display.maxLine = visual;\n\t cm.display.maxLineLength = len;\n\t cm.display.maxLineChanged = true;\n\t }\n\t } }\n\t\n\t if (min != null && cm && this.collapsed) { regChange(cm, min, max + 1); }\n\t this.lines.length = 0;\n\t this.explicitlyCleared = true;\n\t if (this.atomic && this.doc.cantEdit) {\n\t this.doc.cantEdit = false;\n\t if (cm) { reCheckSelection(cm.doc); }\n\t }\n\t if (cm) { signalLater(cm, \"markerCleared\", cm, this, min, max); }\n\t if (withOp) { endOperation(cm); }\n\t if (this.parent) { this.parent.clear(); }\n\t};\n\t\n\t// Find the position of the marker in the document. Returns a {from,\n\t// to} object by default. Side can be passed to get a specific side\n\t// -- 0 (both), -1 (left), or 1 (right). When lineObj is true, the\n\t// Pos objects returned contain a line object, rather than a line\n\t// number (used to prevent looking up the same line twice).\n\tTextMarker.prototype.find = function (side, lineObj) {\n\t var this$1 = this;\n\t\n\t if (side == null && this.type == \"bookmark\") { side = 1; }\n\t var from, to;\n\t for (var i = 0; i < this.lines.length; ++i) {\n\t var line = this$1.lines[i];\n\t var span = getMarkedSpanFor(line.markedSpans, this$1);\n\t if (span.from != null) {\n\t from = Pos(lineObj ? line : lineNo(line), span.from);\n\t if (side == -1) { return from }\n\t }\n\t if (span.to != null) {\n\t to = Pos(lineObj ? line : lineNo(line), span.to);\n\t if (side == 1) { return to }\n\t }\n\t }\n\t return from && {from: from, to: to}\n\t};\n\t\n\t// Signals that the marker's widget changed, and surrounding layout\n\t// should be recomputed.\n\tTextMarker.prototype.changed = function () {\n\t var this$1 = this;\n\t\n\t var pos = this.find(-1, true), widget = this, cm = this.doc.cm;\n\t if (!pos || !cm) { return }\n\t runInOp(cm, function () {\n\t var line = pos.line, lineN = lineNo(pos.line);\n\t var view = findViewForLine(cm, lineN);\n\t if (view) {\n\t clearLineMeasurementCacheFor(view);\n\t cm.curOp.selectionChanged = cm.curOp.forceUpdate = true;\n\t }\n\t cm.curOp.updateMaxLine = true;\n\t if (!lineIsHidden(widget.doc, line) && widget.height != null) {\n\t var oldHeight = widget.height;\n\t widget.height = null;\n\t var dHeight = widgetHeight(widget) - oldHeight;\n\t if (dHeight)\n\t { updateLineHeight(line, line.height + dHeight); }\n\t }\n\t signalLater(cm, \"markerChanged\", cm, this$1);\n\t });\n\t};\n\t\n\tTextMarker.prototype.attachLine = function (line) {\n\t if (!this.lines.length && this.doc.cm) {\n\t var op = this.doc.cm.curOp;\n\t if (!op.maybeHiddenMarkers || indexOf(op.maybeHiddenMarkers, this) == -1)\n\t { (op.maybeUnhiddenMarkers || (op.maybeUnhiddenMarkers = [])).push(this); }\n\t }\n\t this.lines.push(line);\n\t};\n\t\n\tTextMarker.prototype.detachLine = function (line) {\n\t this.lines.splice(indexOf(this.lines, line), 1);\n\t if (!this.lines.length && this.doc.cm) {\n\t var op = this.doc.cm.curOp;(op.maybeHiddenMarkers || (op.maybeHiddenMarkers = [])).push(this);\n\t }\n\t};\n\teventMixin(TextMarker);\n\t\n\t// Create a marker, wire it up to the right lines, and\n\tfunction markText(doc, from, to, options, type) {\n\t // Shared markers (across linked documents) are handled separately\n\t // (markTextShared will call out to this again, once per\n\t // document).\n\t if (options && options.shared) { return markTextShared(doc, from, to, options, type) }\n\t // Ensure we are in an operation.\n\t if (doc.cm && !doc.cm.curOp) { return operation(doc.cm, markText)(doc, from, to, options, type) }\n\t\n\t var marker = new TextMarker(doc, type), diff = cmp(from, to);\n\t if (options) { copyObj(options, marker, false); }\n\t // Don't connect empty markers unless clearWhenEmpty is false\n\t if (diff > 0 || diff == 0 && marker.clearWhenEmpty !== false)\n\t { return marker }\n\t if (marker.replacedWith) {\n\t // Showing up as a widget implies collapsed (widget replaces text)\n\t marker.collapsed = true;\n\t marker.widgetNode = eltP(\"span\", [marker.replacedWith], \"CodeMirror-widget\");\n\t if (!options.handleMouseEvents) { marker.widgetNode.setAttribute(\"cm-ignore-events\", \"true\"); }\n\t if (options.insertLeft) { marker.widgetNode.insertLeft = true; }\n\t }\n\t if (marker.collapsed) {\n\t if (conflictingCollapsedRange(doc, from.line, from, to, marker) ||\n\t from.line != to.line && conflictingCollapsedRange(doc, to.line, from, to, marker))\n\t { throw new Error(\"Inserting collapsed marker partially overlapping an existing one\") }\n\t seeCollapsedSpans();\n\t }\n\t\n\t if (marker.addToHistory)\n\t { addChangeToHistory(doc, {from: from, to: to, origin: \"markText\"}, doc.sel, NaN); }\n\t\n\t var curLine = from.line, cm = doc.cm, updateMaxLine;\n\t doc.iter(curLine, to.line + 1, function (line) {\n\t if (cm && marker.collapsed && !cm.options.lineWrapping && visualLine(line) == cm.display.maxLine)\n\t { updateMaxLine = true; }\n\t if (marker.collapsed && curLine != from.line) { updateLineHeight(line, 0); }\n\t addMarkedSpan(line, new MarkedSpan(marker,\n\t curLine == from.line ? from.ch : null,\n\t curLine == to.line ? to.ch : null));\n\t ++curLine;\n\t });\n\t // lineIsHidden depends on the presence of the spans, so needs a second pass\n\t if (marker.collapsed) { doc.iter(from.line, to.line + 1, function (line) {\n\t if (lineIsHidden(doc, line)) { updateLineHeight(line, 0); }\n\t }); }\n\t\n\t if (marker.clearOnEnter) { on(marker, \"beforeCursorEnter\", function () { return marker.clear(); }); }\n\t\n\t if (marker.readOnly) {\n\t seeReadOnlySpans();\n\t if (doc.history.done.length || doc.history.undone.length)\n\t { doc.clearHistory(); }\n\t }\n\t if (marker.collapsed) {\n\t marker.id = ++nextMarkerId;\n\t marker.atomic = true;\n\t }\n\t if (cm) {\n\t // Sync editor state\n\t if (updateMaxLine) { cm.curOp.updateMaxLine = true; }\n\t if (marker.collapsed)\n\t { regChange(cm, from.line, to.line + 1); }\n\t else if (marker.className || marker.title || marker.startStyle || marker.endStyle || marker.css)\n\t { for (var i = from.line; i <= to.line; i++) { regLineChange(cm, i, \"text\"); } }\n\t if (marker.atomic) { reCheckSelection(cm.doc); }\n\t signalLater(cm, \"markerAdded\", cm, marker);\n\t }\n\t return marker\n\t}\n\t\n\t// SHARED TEXTMARKERS\n\t\n\t// A shared marker spans multiple linked documents. It is\n\t// implemented as a meta-marker-object controlling multiple normal\n\t// markers.\n\tvar SharedTextMarker = function(markers, primary) {\n\t var this$1 = this;\n\t\n\t this.markers = markers;\n\t this.primary = primary;\n\t for (var i = 0; i < markers.length; ++i)\n\t { markers[i].parent = this$1; }\n\t};\n\t\n\tSharedTextMarker.prototype.clear = function () {\n\t var this$1 = this;\n\t\n\t if (this.explicitlyCleared) { return }\n\t this.explicitlyCleared = true;\n\t for (var i = 0; i < this.markers.length; ++i)\n\t { this$1.markers[i].clear(); }\n\t signalLater(this, \"clear\");\n\t};\n\t\n\tSharedTextMarker.prototype.find = function (side, lineObj) {\n\t return this.primary.find(side, lineObj)\n\t};\n\teventMixin(SharedTextMarker);\n\t\n\tfunction markTextShared(doc, from, to, options, type) {\n\t options = copyObj(options);\n\t options.shared = false;\n\t var markers = [markText(doc, from, to, options, type)], primary = markers[0];\n\t var widget = options.widgetNode;\n\t linkedDocs(doc, function (doc) {\n\t if (widget) { options.widgetNode = widget.cloneNode(true); }\n\t markers.push(markText(doc, clipPos(doc, from), clipPos(doc, to), options, type));\n\t for (var i = 0; i < doc.linked.length; ++i)\n\t { if (doc.linked[i].isParent) { return } }\n\t primary = lst(markers);\n\t });\n\t return new SharedTextMarker(markers, primary)\n\t}\n\t\n\tfunction findSharedMarkers(doc) {\n\t return doc.findMarks(Pos(doc.first, 0), doc.clipPos(Pos(doc.lastLine())), function (m) { return m.parent; })\n\t}\n\t\n\tfunction copySharedMarkers(doc, markers) {\n\t for (var i = 0; i < markers.length; i++) {\n\t var marker = markers[i], pos = marker.find();\n\t var mFrom = doc.clipPos(pos.from), mTo = doc.clipPos(pos.to);\n\t if (cmp(mFrom, mTo)) {\n\t var subMark = markText(doc, mFrom, mTo, marker.primary, marker.primary.type);\n\t marker.markers.push(subMark);\n\t subMark.parent = marker;\n\t }\n\t }\n\t}\n\t\n\tfunction detachSharedMarkers(markers) {\n\t var loop = function ( i ) {\n\t var marker = markers[i], linked = [marker.primary.doc];\n\t linkedDocs(marker.primary.doc, function (d) { return linked.push(d); });\n\t for (var j = 0; j < marker.markers.length; j++) {\n\t var subMarker = marker.markers[j];\n\t if (indexOf(linked, subMarker.doc) == -1) {\n\t subMarker.parent = null;\n\t marker.markers.splice(j--, 1);\n\t }\n\t }\n\t };\n\t\n\t for (var i = 0; i < markers.length; i++) loop( i );\n\t}\n\t\n\tvar nextDocId = 0;\n\tvar Doc = function(text, mode, firstLine, lineSep, direction) {\n\t if (!(this instanceof Doc)) { return new Doc(text, mode, firstLine, lineSep, direction) }\n\t if (firstLine == null) { firstLine = 0; }\n\t\n\t BranchChunk.call(this, [new LeafChunk([new Line(\"\", null)])]);\n\t this.first = firstLine;\n\t this.scrollTop = this.scrollLeft = 0;\n\t this.cantEdit = false;\n\t this.cleanGeneration = 1;\n\t this.frontier = firstLine;\n\t var start = Pos(firstLine, 0);\n\t this.sel = simpleSelection(start);\n\t this.history = new History(null);\n\t this.id = ++nextDocId;\n\t this.modeOption = mode;\n\t this.lineSep = lineSep;\n\t this.direction = (direction == \"rtl\") ? \"rtl\" : \"ltr\";\n\t this.extend = false;\n\t\n\t if (typeof text == \"string\") { text = this.splitLines(text); }\n\t updateDoc(this, {from: start, to: start, text: text});\n\t setSelection(this, simpleSelection(start), sel_dontScroll);\n\t};\n\t\n\tDoc.prototype = createObj(BranchChunk.prototype, {\n\t constructor: Doc,\n\t // Iterate over the document. Supports two forms -- with only one\n\t // argument, it calls that for each line in the document. With\n\t // three, it iterates over the range given by the first two (with\n\t // the second being non-inclusive).\n\t iter: function(from, to, op) {\n\t if (op) { this.iterN(from - this.first, to - from, op); }\n\t else { this.iterN(this.first, this.first + this.size, from); }\n\t },\n\t\n\t // Non-public interface for adding and removing lines.\n\t insert: function(at, lines) {\n\t var height = 0;\n\t for (var i = 0; i < lines.length; ++i) { height += lines[i].height; }\n\t this.insertInner(at - this.first, lines, height);\n\t },\n\t remove: function(at, n) { this.removeInner(at - this.first, n); },\n\t\n\t // From here, the methods are part of the public interface. Most\n\t // are also available from CodeMirror (editor) instances.\n\t\n\t getValue: function(lineSep) {\n\t var lines = getLines(this, this.first, this.first + this.size);\n\t if (lineSep === false) { return lines }\n\t return lines.join(lineSep || this.lineSeparator())\n\t },\n\t setValue: docMethodOp(function(code) {\n\t var top = Pos(this.first, 0), last = this.first + this.size - 1;\n\t makeChange(this, {from: top, to: Pos(last, getLine(this, last).text.length),\n\t text: this.splitLines(code), origin: \"setValue\", full: true}, true);\n\t setSelection(this, simpleSelection(top));\n\t }),\n\t replaceRange: function(code, from, to, origin) {\n\t from = clipPos(this, from);\n\t to = to ? clipPos(this, to) : from;\n\t replaceRange(this, code, from, to, origin);\n\t },\n\t getRange: function(from, to, lineSep) {\n\t var lines = getBetween(this, clipPos(this, from), clipPos(this, to));\n\t if (lineSep === false) { return lines }\n\t return lines.join(lineSep || this.lineSeparator())\n\t },\n\t\n\t getLine: function(line) {var l = this.getLineHandle(line); return l && l.text},\n\t\n\t getLineHandle: function(line) {if (isLine(this, line)) { return getLine(this, line) }},\n\t getLineNumber: function(line) {return lineNo(line)},\n\t\n\t getLineHandleVisualStart: function(line) {\n\t if (typeof line == \"number\") { line = getLine(this, line); }\n\t return visualLine(line)\n\t },\n\t\n\t lineCount: function() {return this.size},\n\t firstLine: function() {return this.first},\n\t lastLine: function() {return this.first + this.size - 1},\n\t\n\t clipPos: function(pos) {return clipPos(this, pos)},\n\t\n\t getCursor: function(start) {\n\t var range$$1 = this.sel.primary(), pos;\n\t if (start == null || start == \"head\") { pos = range$$1.head; }\n\t else if (start == \"anchor\") { pos = range$$1.anchor; }\n\t else if (start == \"end\" || start == \"to\" || start === false) { pos = range$$1.to(); }\n\t else { pos = range$$1.from(); }\n\t return pos\n\t },\n\t listSelections: function() { return this.sel.ranges },\n\t somethingSelected: function() {return this.sel.somethingSelected()},\n\t\n\t setCursor: docMethodOp(function(line, ch, options) {\n\t setSimpleSelection(this, clipPos(this, typeof line == \"number\" ? Pos(line, ch || 0) : line), null, options);\n\t }),\n\t setSelection: docMethodOp(function(anchor, head, options) {\n\t setSimpleSelection(this, clipPos(this, anchor), clipPos(this, head || anchor), options);\n\t }),\n\t extendSelection: docMethodOp(function(head, other, options) {\n\t extendSelection(this, clipPos(this, head), other && clipPos(this, other), options);\n\t }),\n\t extendSelections: docMethodOp(function(heads, options) {\n\t extendSelections(this, clipPosArray(this, heads), options);\n\t }),\n\t extendSelectionsBy: docMethodOp(function(f, options) {\n\t var heads = map(this.sel.ranges, f);\n\t extendSelections(this, clipPosArray(this, heads), options);\n\t }),\n\t setSelections: docMethodOp(function(ranges, primary, options) {\n\t var this$1 = this;\n\t\n\t if (!ranges.length) { return }\n\t var out = [];\n\t for (var i = 0; i < ranges.length; i++)\n\t { out[i] = new Range(clipPos(this$1, ranges[i].anchor),\n\t clipPos(this$1, ranges[i].head)); }\n\t if (primary == null) { primary = Math.min(ranges.length - 1, this.sel.primIndex); }\n\t setSelection(this, normalizeSelection(out, primary), options);\n\t }),\n\t addSelection: docMethodOp(function(anchor, head, options) {\n\t var ranges = this.sel.ranges.slice(0);\n\t ranges.push(new Range(clipPos(this, anchor), clipPos(this, head || anchor)));\n\t setSelection(this, normalizeSelection(ranges, ranges.length - 1), options);\n\t }),\n\t\n\t getSelection: function(lineSep) {\n\t var this$1 = this;\n\t\n\t var ranges = this.sel.ranges, lines;\n\t for (var i = 0; i < ranges.length; i++) {\n\t var sel = getBetween(this$1, ranges[i].from(), ranges[i].to());\n\t lines = lines ? lines.concat(sel) : sel;\n\t }\n\t if (lineSep === false) { return lines }\n\t else { return lines.join(lineSep || this.lineSeparator()) }\n\t },\n\t getSelections: function(lineSep) {\n\t var this$1 = this;\n\t\n\t var parts = [], ranges = this.sel.ranges;\n\t for (var i = 0; i < ranges.length; i++) {\n\t var sel = getBetween(this$1, ranges[i].from(), ranges[i].to());\n\t if (lineSep !== false) { sel = sel.join(lineSep || this$1.lineSeparator()); }\n\t parts[i] = sel;\n\t }\n\t return parts\n\t },\n\t replaceSelection: function(code, collapse, origin) {\n\t var dup = [];\n\t for (var i = 0; i < this.sel.ranges.length; i++)\n\t { dup[i] = code; }\n\t this.replaceSelections(dup, collapse, origin || \"+input\");\n\t },\n\t replaceSelections: docMethodOp(function(code, collapse, origin) {\n\t var this$1 = this;\n\t\n\t var changes = [], sel = this.sel;\n\t for (var i = 0; i < sel.ranges.length; i++) {\n\t var range$$1 = sel.ranges[i];\n\t changes[i] = {from: range$$1.from(), to: range$$1.to(), text: this$1.splitLines(code[i]), origin: origin};\n\t }\n\t var newSel = collapse && collapse != \"end\" && computeReplacedSel(this, changes, collapse);\n\t for (var i$1 = changes.length - 1; i$1 >= 0; i$1--)\n\t { makeChange(this$1, changes[i$1]); }\n\t if (newSel) { setSelectionReplaceHistory(this, newSel); }\n\t else if (this.cm) { ensureCursorVisible(this.cm); }\n\t }),\n\t undo: docMethodOp(function() {makeChangeFromHistory(this, \"undo\");}),\n\t redo: docMethodOp(function() {makeChangeFromHistory(this, \"redo\");}),\n\t undoSelection: docMethodOp(function() {makeChangeFromHistory(this, \"undo\", true);}),\n\t redoSelection: docMethodOp(function() {makeChangeFromHistory(this, \"redo\", true);}),\n\t\n\t setExtending: function(val) {this.extend = val;},\n\t getExtending: function() {return this.extend},\n\t\n\t historySize: function() {\n\t var hist = this.history, done = 0, undone = 0;\n\t for (var i = 0; i < hist.done.length; i++) { if (!hist.done[i].ranges) { ++done; } }\n\t for (var i$1 = 0; i$1 < hist.undone.length; i$1++) { if (!hist.undone[i$1].ranges) { ++undone; } }\n\t return {undo: done, redo: undone}\n\t },\n\t clearHistory: function() {this.history = new History(this.history.maxGeneration);},\n\t\n\t markClean: function() {\n\t this.cleanGeneration = this.changeGeneration(true);\n\t },\n\t changeGeneration: function(forceSplit) {\n\t if (forceSplit)\n\t { this.history.lastOp = this.history.lastSelOp = this.history.lastOrigin = null; }\n\t return this.history.generation\n\t },\n\t isClean: function (gen) {\n\t return this.history.generation == (gen || this.cleanGeneration)\n\t },\n\t\n\t getHistory: function() {\n\t return {done: copyHistoryArray(this.history.done),\n\t undone: copyHistoryArray(this.history.undone)}\n\t },\n\t setHistory: function(histData) {\n\t var hist = this.history = new History(this.history.maxGeneration);\n\t hist.done = copyHistoryArray(histData.done.slice(0), null, true);\n\t hist.undone = copyHistoryArray(histData.undone.slice(0), null, true);\n\t },\n\t\n\t setGutterMarker: docMethodOp(function(line, gutterID, value) {\n\t return changeLine(this, line, \"gutter\", function (line) {\n\t var markers = line.gutterMarkers || (line.gutterMarkers = {});\n\t markers[gutterID] = value;\n\t if (!value && isEmpty(markers)) { line.gutterMarkers = null; }\n\t return true\n\t })\n\t }),\n\t\n\t clearGutter: docMethodOp(function(gutterID) {\n\t var this$1 = this;\n\t\n\t this.iter(function (line) {\n\t if (line.gutterMarkers && line.gutterMarkers[gutterID]) {\n\t changeLine(this$1, line, \"gutter\", function () {\n\t line.gutterMarkers[gutterID] = null;\n\t if (isEmpty(line.gutterMarkers)) { line.gutterMarkers = null; }\n\t return true\n\t });\n\t }\n\t });\n\t }),\n\t\n\t lineInfo: function(line) {\n\t var n;\n\t if (typeof line == \"number\") {\n\t if (!isLine(this, line)) { return null }\n\t n = line;\n\t line = getLine(this, line);\n\t if (!line) { return null }\n\t } else {\n\t n = lineNo(line);\n\t if (n == null) { return null }\n\t }\n\t return {line: n, handle: line, text: line.text, gutterMarkers: line.gutterMarkers,\n\t textClass: line.textClass, bgClass: line.bgClass, wrapClass: line.wrapClass,\n\t widgets: line.widgets}\n\t },\n\t\n\t addLineClass: docMethodOp(function(handle, where, cls) {\n\t return changeLine(this, handle, where == \"gutter\" ? \"gutter\" : \"class\", function (line) {\n\t var prop = where == \"text\" ? \"textClass\"\n\t : where == \"background\" ? \"bgClass\"\n\t : where == \"gutter\" ? \"gutterClass\" : \"wrapClass\";\n\t if (!line[prop]) { line[prop] = cls; }\n\t else if (classTest(cls).test(line[prop])) { return false }\n\t else { line[prop] += \" \" + cls; }\n\t return true\n\t })\n\t }),\n\t removeLineClass: docMethodOp(function(handle, where, cls) {\n\t return changeLine(this, handle, where == \"gutter\" ? \"gutter\" : \"class\", function (line) {\n\t var prop = where == \"text\" ? \"textClass\"\n\t : where == \"background\" ? \"bgClass\"\n\t : where == \"gutter\" ? \"gutterClass\" : \"wrapClass\";\n\t var cur = line[prop];\n\t if (!cur) { return false }\n\t else if (cls == null) { line[prop] = null; }\n\t else {\n\t var found = cur.match(classTest(cls));\n\t if (!found) { return false }\n\t var end = found.index + found[0].length;\n\t line[prop] = cur.slice(0, found.index) + (!found.index || end == cur.length ? \"\" : \" \") + cur.slice(end) || null;\n\t }\n\t return true\n\t })\n\t }),\n\t\n\t addLineWidget: docMethodOp(function(handle, node, options) {\n\t return addLineWidget(this, handle, node, options)\n\t }),\n\t removeLineWidget: function(widget) { widget.clear(); },\n\t\n\t markText: function(from, to, options) {\n\t return markText(this, clipPos(this, from), clipPos(this, to), options, options && options.type || \"range\")\n\t },\n\t setBookmark: function(pos, options) {\n\t var realOpts = {replacedWith: options && (options.nodeType == null ? options.widget : options),\n\t insertLeft: options && options.insertLeft,\n\t clearWhenEmpty: false, shared: options && options.shared,\n\t handleMouseEvents: options && options.handleMouseEvents};\n\t pos = clipPos(this, pos);\n\t return markText(this, pos, pos, realOpts, \"bookmark\")\n\t },\n\t findMarksAt: function(pos) {\n\t pos = clipPos(this, pos);\n\t var markers = [], spans = getLine(this, pos.line).markedSpans;\n\t if (spans) { for (var i = 0; i < spans.length; ++i) {\n\t var span = spans[i];\n\t if ((span.from == null || span.from <= pos.ch) &&\n\t (span.to == null || span.to >= pos.ch))\n\t { markers.push(span.marker.parent || span.marker); }\n\t } }\n\t return markers\n\t },\n\t findMarks: function(from, to, filter) {\n\t from = clipPos(this, from); to = clipPos(this, to);\n\t var found = [], lineNo$$1 = from.line;\n\t this.iter(from.line, to.line + 1, function (line) {\n\t var spans = line.markedSpans;\n\t if (spans) { for (var i = 0; i < spans.length; i++) {\n\t var span = spans[i];\n\t if (!(span.to != null && lineNo$$1 == from.line && from.ch >= span.to ||\n\t span.from == null && lineNo$$1 != from.line ||\n\t span.from != null && lineNo$$1 == to.line && span.from >= to.ch) &&\n\t (!filter || filter(span.marker)))\n\t { found.push(span.marker.parent || span.marker); }\n\t } }\n\t ++lineNo$$1;\n\t });\n\t return found\n\t },\n\t getAllMarks: function() {\n\t var markers = [];\n\t this.iter(function (line) {\n\t var sps = line.markedSpans;\n\t if (sps) { for (var i = 0; i < sps.length; ++i)\n\t { if (sps[i].from != null) { markers.push(sps[i].marker); } } }\n\t });\n\t return markers\n\t },\n\t\n\t posFromIndex: function(off) {\n\t var ch, lineNo$$1 = this.first, sepSize = this.lineSeparator().length;\n\t this.iter(function (line) {\n\t var sz = line.text.length + sepSize;\n\t if (sz > off) { ch = off; return true }\n\t off -= sz;\n\t ++lineNo$$1;\n\t });\n\t return clipPos(this, Pos(lineNo$$1, ch))\n\t },\n\t indexFromPos: function (coords) {\n\t coords = clipPos(this, coords);\n\t var index = coords.ch;\n\t if (coords.line < this.first || coords.ch < 0) { return 0 }\n\t var sepSize = this.lineSeparator().length;\n\t this.iter(this.first, coords.line, function (line) { // iter aborts when callback returns a truthy value\n\t index += line.text.length + sepSize;\n\t });\n\t return index\n\t },\n\t\n\t copy: function(copyHistory) {\n\t var doc = new Doc(getLines(this, this.first, this.first + this.size),\n\t this.modeOption, this.first, this.lineSep, this.direction);\n\t doc.scrollTop = this.scrollTop; doc.scrollLeft = this.scrollLeft;\n\t doc.sel = this.sel;\n\t doc.extend = false;\n\t if (copyHistory) {\n\t doc.history.undoDepth = this.history.undoDepth;\n\t doc.setHistory(this.getHistory());\n\t }\n\t return doc\n\t },\n\t\n\t linkedDoc: function(options) {\n\t if (!options) { options = {}; }\n\t var from = this.first, to = this.first + this.size;\n\t if (options.from != null && options.from > from) { from = options.from; }\n\t if (options.to != null && options.to < to) { to = options.to; }\n\t var copy = new Doc(getLines(this, from, to), options.mode || this.modeOption, from, this.lineSep, this.direction);\n\t if (options.sharedHist) { copy.history = this.history\n\t ; }(this.linked || (this.linked = [])).push({doc: copy, sharedHist: options.sharedHist});\n\t copy.linked = [{doc: this, isParent: true, sharedHist: options.sharedHist}];\n\t copySharedMarkers(copy, findSharedMarkers(this));\n\t return copy\n\t },\n\t unlinkDoc: function(other) {\n\t var this$1 = this;\n\t\n\t if (other instanceof CodeMirror$1) { other = other.doc; }\n\t if (this.linked) { for (var i = 0; i < this.linked.length; ++i) {\n\t var link = this$1.linked[i];\n\t if (link.doc != other) { continue }\n\t this$1.linked.splice(i, 1);\n\t other.unlinkDoc(this$1);\n\t detachSharedMarkers(findSharedMarkers(this$1));\n\t break\n\t } }\n\t // If the histories were shared, split them again\n\t if (other.history == this.history) {\n\t var splitIds = [other.id];\n\t linkedDocs(other, function (doc) { return splitIds.push(doc.id); }, true);\n\t other.history = new History(null);\n\t other.history.done = copyHistoryArray(this.history.done, splitIds);\n\t other.history.undone = copyHistoryArray(this.history.undone, splitIds);\n\t }\n\t },\n\t iterLinkedDocs: function(f) {linkedDocs(this, f);},\n\t\n\t getMode: function() {return this.mode},\n\t getEditor: function() {return this.cm},\n\t\n\t splitLines: function(str) {\n\t if (this.lineSep) { return str.split(this.lineSep) }\n\t return splitLinesAuto(str)\n\t },\n\t lineSeparator: function() { return this.lineSep || \"\\n\" },\n\t\n\t setDirection: docMethodOp(function (dir) {\n\t if (dir != \"rtl\") { dir = \"ltr\"; }\n\t if (dir == this.direction) { return }\n\t this.direction = dir;\n\t this.iter(function (line) { return line.order = null; });\n\t if (this.cm) { directionChanged(this.cm); }\n\t })\n\t});\n\t\n\t// Public alias.\n\tDoc.prototype.eachLine = Doc.prototype.iter;\n\t\n\t// Kludge to work around strange IE behavior where it'll sometimes\n\t// re-fire a series of drag-related events right after the drop (#1551)\n\tvar lastDrop = 0;\n\t\n\tfunction onDrop(e) {\n\t var cm = this;\n\t clearDragCursor(cm);\n\t if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e))\n\t { return }\n\t e_preventDefault(e);\n\t if (ie) { lastDrop = +new Date; }\n\t var pos = posFromMouse(cm, e, true), files = e.dataTransfer.files;\n\t if (!pos || cm.isReadOnly()) { return }\n\t // Might be a file drop, in which case we simply extract the text\n\t // and insert it.\n\t if (files && files.length && window.FileReader && window.File) {\n\t var n = files.length, text = Array(n), read = 0;\n\t var loadFile = function (file, i) {\n\t if (cm.options.allowDropFileTypes &&\n\t indexOf(cm.options.allowDropFileTypes, file.type) == -1)\n\t { return }\n\t\n\t var reader = new FileReader;\n\t reader.onload = operation(cm, function () {\n\t var content = reader.result;\n\t if (/[\\x00-\\x08\\x0e-\\x1f]{2}/.test(content)) { content = \"\"; }\n\t text[i] = content;\n\t if (++read == n) {\n\t pos = clipPos(cm.doc, pos);\n\t var change = {from: pos, to: pos,\n\t text: cm.doc.splitLines(text.join(cm.doc.lineSeparator())),\n\t origin: \"paste\"};\n\t makeChange(cm.doc, change);\n\t setSelectionReplaceHistory(cm.doc, simpleSelection(pos, changeEnd(change)));\n\t }\n\t });\n\t reader.readAsText(file);\n\t };\n\t for (var i = 0; i < n; ++i) { loadFile(files[i], i); }\n\t } else { // Normal drop\n\t // Don't do a replace if the drop happened inside of the selected text.\n\t if (cm.state.draggingText && cm.doc.sel.contains(pos) > -1) {\n\t cm.state.draggingText(e);\n\t // Ensure the editor is re-focused\n\t setTimeout(function () { return cm.display.input.focus(); }, 20);\n\t return\n\t }\n\t try {\n\t var text$1 = e.dataTransfer.getData(\"Text\");\n\t if (text$1) {\n\t var selected;\n\t if (cm.state.draggingText && !cm.state.draggingText.copy)\n\t { selected = cm.listSelections(); }\n\t setSelectionNoUndo(cm.doc, simpleSelection(pos, pos));\n\t if (selected) { for (var i$1 = 0; i$1 < selected.length; ++i$1)\n\t { replaceRange(cm.doc, \"\", selected[i$1].anchor, selected[i$1].head, \"drag\"); } }\n\t cm.replaceSelection(text$1, \"around\", \"paste\");\n\t cm.display.input.focus();\n\t }\n\t }\n\t catch(e){}\n\t }\n\t}\n\t\n\tfunction onDragStart(cm, e) {\n\t if (ie && (!cm.state.draggingText || +new Date - lastDrop < 100)) { e_stop(e); return }\n\t if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e)) { return }\n\t\n\t e.dataTransfer.setData(\"Text\", cm.getSelection());\n\t e.dataTransfer.effectAllowed = \"copyMove\";\n\t\n\t // Use dummy image instead of default browsers image.\n\t // Recent Safari (~6.0.2) have a tendency to segfault when this happens, so we don't do it there.\n\t if (e.dataTransfer.setDragImage && !safari) {\n\t var img = elt(\"img\", null, null, \"position: fixed; left: 0; top: 0;\");\n\t img.src = \"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\";\n\t if (presto) {\n\t img.width = img.height = 1;\n\t cm.display.wrapper.appendChild(img);\n\t // Force a relayout, or Opera won't use our image for some obscure reason\n\t img._top = img.offsetTop;\n\t }\n\t e.dataTransfer.setDragImage(img, 0, 0);\n\t if (presto) { img.parentNode.removeChild(img); }\n\t }\n\t}\n\t\n\tfunction onDragOver(cm, e) {\n\t var pos = posFromMouse(cm, e);\n\t if (!pos) { return }\n\t var frag = document.createDocumentFragment();\n\t drawSelectionCursor(cm, pos, frag);\n\t if (!cm.display.dragCursor) {\n\t cm.display.dragCursor = elt(\"div\", null, \"CodeMirror-cursors CodeMirror-dragcursors\");\n\t cm.display.lineSpace.insertBefore(cm.display.dragCursor, cm.display.cursorDiv);\n\t }\n\t removeChildrenAndAdd(cm.display.dragCursor, frag);\n\t}\n\t\n\tfunction clearDragCursor(cm) {\n\t if (cm.display.dragCursor) {\n\t cm.display.lineSpace.removeChild(cm.display.dragCursor);\n\t cm.display.dragCursor = null;\n\t }\n\t}\n\t\n\t// These must be handled carefully, because naively registering a\n\t// handler for each editor will cause the editors to never be\n\t// garbage collected.\n\t\n\tfunction forEachCodeMirror(f) {\n\t if (!document.body.getElementsByClassName) { return }\n\t var byClass = document.body.getElementsByClassName(\"CodeMirror\");\n\t for (var i = 0; i < byClass.length; i++) {\n\t var cm = byClass[i].CodeMirror;\n\t if (cm) { f(cm); }\n\t }\n\t}\n\t\n\tvar globalsRegistered = false;\n\tfunction ensureGlobalHandlers() {\n\t if (globalsRegistered) { return }\n\t registerGlobalHandlers();\n\t globalsRegistered = true;\n\t}\n\tfunction registerGlobalHandlers() {\n\t // When the window resizes, we need to refresh active editors.\n\t var resizeTimer;\n\t on(window, \"resize\", function () {\n\t if (resizeTimer == null) { resizeTimer = setTimeout(function () {\n\t resizeTimer = null;\n\t forEachCodeMirror(onResize);\n\t }, 100); }\n\t });\n\t // When the window loses focus, we want to show the editor as blurred\n\t on(window, \"blur\", function () { return forEachCodeMirror(onBlur); });\n\t}\n\t// Called when the window resizes\n\tfunction onResize(cm) {\n\t var d = cm.display;\n\t if (d.lastWrapHeight == d.wrapper.clientHeight && d.lastWrapWidth == d.wrapper.clientWidth)\n\t { return }\n\t // Might be a text scaling operation, clear size caches.\n\t d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null;\n\t d.scrollbarsClipped = false;\n\t cm.setSize();\n\t}\n\t\n\tvar keyNames = {\n\t 3: \"Enter\", 8: \"Backspace\", 9: \"Tab\", 13: \"Enter\", 16: \"Shift\", 17: \"Ctrl\", 18: \"Alt\",\n\t 19: \"Pause\", 20: \"CapsLock\", 27: \"Esc\", 32: \"Space\", 33: \"PageUp\", 34: \"PageDown\", 35: \"End\",\n\t 36: \"Home\", 37: \"Left\", 38: \"Up\", 39: \"Right\", 40: \"Down\", 44: \"PrintScrn\", 45: \"Insert\",\n\t 46: \"Delete\", 59: \";\", 61: \"=\", 91: \"Mod\", 92: \"Mod\", 93: \"Mod\",\n\t 106: \"*\", 107: \"=\", 109: \"-\", 110: \".\", 111: \"/\", 127: \"Delete\",\n\t 173: \"-\", 186: \";\", 187: \"=\", 188: \",\", 189: \"-\", 190: \".\", 191: \"/\", 192: \"`\", 219: \"[\", 220: \"\\\\\",\n\t 221: \"]\", 222: \"'\", 63232: \"Up\", 63233: \"Down\", 63234: \"Left\", 63235: \"Right\", 63272: \"Delete\",\n\t 63273: \"Home\", 63275: \"End\", 63276: \"PageUp\", 63277: \"PageDown\", 63302: \"Insert\"\n\t};\n\t\n\t// Number keys\n\tfor (var i = 0; i < 10; i++) { keyNames[i + 48] = keyNames[i + 96] = String(i); }\n\t// Alphabetic keys\n\tfor (var i$1 = 65; i$1 <= 90; i$1++) { keyNames[i$1] = String.fromCharCode(i$1); }\n\t// Function keys\n\tfor (var i$2 = 1; i$2 <= 12; i$2++) { keyNames[i$2 + 111] = keyNames[i$2 + 63235] = \"F\" + i$2; }\n\t\n\tvar keyMap = {};\n\t\n\tkeyMap.basic = {\n\t \"Left\": \"goCharLeft\", \"Right\": \"goCharRight\", \"Up\": \"goLineUp\", \"Down\": \"goLineDown\",\n\t \"End\": \"goLineEnd\", \"Home\": \"goLineStartSmart\", \"PageUp\": \"goPageUp\", \"PageDown\": \"goPageDown\",\n\t \"Delete\": \"delCharAfter\", \"Backspace\": \"delCharBefore\", \"Shift-Backspace\": \"delCharBefore\",\n\t \"Tab\": \"defaultTab\", \"Shift-Tab\": \"indentAuto\",\n\t \"Enter\": \"newlineAndIndent\", \"Insert\": \"toggleOverwrite\",\n\t \"Esc\": \"singleSelection\"\n\t};\n\t// Note that the save and find-related commands aren't defined by\n\t// default. User code or addons can define them. Unknown commands\n\t// are simply ignored.\n\tkeyMap.pcDefault = {\n\t \"Ctrl-A\": \"selectAll\", \"Ctrl-D\": \"deleteLine\", \"Ctrl-Z\": \"undo\", \"Shift-Ctrl-Z\": \"redo\", \"Ctrl-Y\": \"redo\",\n\t \"Ctrl-Home\": \"goDocStart\", \"Ctrl-End\": \"goDocEnd\", \"Ctrl-Up\": \"goLineUp\", \"Ctrl-Down\": \"goLineDown\",\n\t \"Ctrl-Left\": \"goGroupLeft\", \"Ctrl-Right\": \"goGroupRight\", \"Alt-Left\": \"goLineStart\", \"Alt-Right\": \"goLineEnd\",\n\t \"Ctrl-Backspace\": \"delGroupBefore\", \"Ctrl-Delete\": \"delGroupAfter\", \"Ctrl-S\": \"save\", \"Ctrl-F\": \"find\",\n\t \"Ctrl-G\": \"findNext\", \"Shift-Ctrl-G\": \"findPrev\", \"Shift-Ctrl-F\": \"replace\", \"Shift-Ctrl-R\": \"replaceAll\",\n\t \"Ctrl-[\": \"indentLess\", \"Ctrl-]\": \"indentMore\",\n\t \"Ctrl-U\": \"undoSelection\", \"Shift-Ctrl-U\": \"redoSelection\", \"Alt-U\": \"redoSelection\",\n\t fallthrough: \"basic\"\n\t};\n\t// Very basic readline/emacs-style bindings, which are standard on Mac.\n\tkeyMap.emacsy = {\n\t \"Ctrl-F\": \"goCharRight\", \"Ctrl-B\": \"goCharLeft\", \"Ctrl-P\": \"goLineUp\", \"Ctrl-N\": \"goLineDown\",\n\t \"Alt-F\": \"goWordRight\", \"Alt-B\": \"goWordLeft\", \"Ctrl-A\": \"goLineStart\", \"Ctrl-E\": \"goLineEnd\",\n\t \"Ctrl-V\": \"goPageDown\", \"Shift-Ctrl-V\": \"goPageUp\", \"Ctrl-D\": \"delCharAfter\", \"Ctrl-H\": \"delCharBefore\",\n\t \"Alt-D\": \"delWordAfter\", \"Alt-Backspace\": \"delWordBefore\", \"Ctrl-K\": \"killLine\", \"Ctrl-T\": \"transposeChars\",\n\t \"Ctrl-O\": \"openLine\"\n\t};\n\tkeyMap.macDefault = {\n\t \"Cmd-A\": \"selectAll\", \"Cmd-D\": \"deleteLine\", \"Cmd-Z\": \"undo\", \"Shift-Cmd-Z\": \"redo\", \"Cmd-Y\": \"redo\",\n\t \"Cmd-Home\": \"goDocStart\", \"Cmd-Up\": \"goDocStart\", \"Cmd-End\": \"goDocEnd\", \"Cmd-Down\": \"goDocEnd\", \"Alt-Left\": \"goGroupLeft\",\n\t \"Alt-Right\": \"goGroupRight\", \"Cmd-Left\": \"goLineLeft\", \"Cmd-Right\": \"goLineRight\", \"Alt-Backspace\": \"delGroupBefore\",\n\t \"Ctrl-Alt-Backspace\": \"delGroupAfter\", \"Alt-Delete\": \"delGroupAfter\", \"Cmd-S\": \"save\", \"Cmd-F\": \"find\",\n\t \"Cmd-G\": \"findNext\", \"Shift-Cmd-G\": \"findPrev\", \"Cmd-Alt-F\": \"replace\", \"Shift-Cmd-Alt-F\": \"replaceAll\",\n\t \"Cmd-[\": \"indentLess\", \"Cmd-]\": \"indentMore\", \"Cmd-Backspace\": \"delWrappedLineLeft\", \"Cmd-Delete\": \"delWrappedLineRight\",\n\t \"Cmd-U\": \"undoSelection\", \"Shift-Cmd-U\": \"redoSelection\", \"Ctrl-Up\": \"goDocStart\", \"Ctrl-Down\": \"goDocEnd\",\n\t fallthrough: [\"basic\", \"emacsy\"]\n\t};\n\tkeyMap[\"default\"] = mac ? keyMap.macDefault : keyMap.pcDefault;\n\t\n\t// KEYMAP DISPATCH\n\t\n\tfunction normalizeKeyName(name) {\n\t var parts = name.split(/-(?!$)/);\n\t name = parts[parts.length - 1];\n\t var alt, ctrl, shift, cmd;\n\t for (var i = 0; i < parts.length - 1; i++) {\n\t var mod = parts[i];\n\t if (/^(cmd|meta|m)$/i.test(mod)) { cmd = true; }\n\t else if (/^a(lt)?$/i.test(mod)) { alt = true; }\n\t else if (/^(c|ctrl|control)$/i.test(mod)) { ctrl = true; }\n\t else if (/^s(hift)?$/i.test(mod)) { shift = true; }\n\t else { throw new Error(\"Unrecognized modifier name: \" + mod) }\n\t }\n\t if (alt) { name = \"Alt-\" + name; }\n\t if (ctrl) { name = \"Ctrl-\" + name; }\n\t if (cmd) { name = \"Cmd-\" + name; }\n\t if (shift) { name = \"Shift-\" + name; }\n\t return name\n\t}\n\t\n\t// This is a kludge to keep keymaps mostly working as raw objects\n\t// (backwards compatibility) while at the same time support features\n\t// like normalization and multi-stroke key bindings. It compiles a\n\t// new normalized keymap, and then updates the old object to reflect\n\t// this.\n\tfunction normalizeKeyMap(keymap) {\n\t var copy = {};\n\t for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) {\n\t var value = keymap[keyname];\n\t if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue }\n\t if (value == \"...\") { delete keymap[keyname]; continue }\n\t\n\t var keys = map(keyname.split(\" \"), normalizeKeyName);\n\t for (var i = 0; i < keys.length; i++) {\n\t var val = (void 0), name = (void 0);\n\t if (i == keys.length - 1) {\n\t name = keys.join(\" \");\n\t val = value;\n\t } else {\n\t name = keys.slice(0, i + 1).join(\" \");\n\t val = \"...\";\n\t }\n\t var prev = copy[name];\n\t if (!prev) { copy[name] = val; }\n\t else if (prev != val) { throw new Error(\"Inconsistent bindings for \" + name) }\n\t }\n\t delete keymap[keyname];\n\t } }\n\t for (var prop in copy) { keymap[prop] = copy[prop]; }\n\t return keymap\n\t}\n\t\n\tfunction lookupKey(key, map$$1, handle, context) {\n\t map$$1 = getKeyMap(map$$1);\n\t var found = map$$1.call ? map$$1.call(key, context) : map$$1[key];\n\t if (found === false) { return \"nothing\" }\n\t if (found === \"...\") { return \"multi\" }\n\t if (found != null && handle(found)) { return \"handled\" }\n\t\n\t if (map$$1.fallthrough) {\n\t if (Object.prototype.toString.call(map$$1.fallthrough) != \"[object Array]\")\n\t { return lookupKey(key, map$$1.fallthrough, handle, context) }\n\t for (var i = 0; i < map$$1.fallthrough.length; i++) {\n\t var result = lookupKey(key, map$$1.fallthrough[i], handle, context);\n\t if (result) { return result }\n\t }\n\t }\n\t}\n\t\n\t// Modifier key presses don't count as 'real' key presses for the\n\t// purpose of keymap fallthrough.\n\tfunction isModifierKey(value) {\n\t var name = typeof value == \"string\" ? value : keyNames[value.keyCode];\n\t return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\"\n\t}\n\t\n\t// Look up the name of a key as indicated by an event object.\n\tfunction keyName(event, noShift) {\n\t if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n\t var base = keyNames[event.keyCode], name = base;\n\t if (name == null || event.altGraphKey) { return false }\n\t if (event.altKey && base != \"Alt\") { name = \"Alt-\" + name; }\n\t if ((flipCtrlCmd ? event.metaKey : event.ctrlKey) && base != \"Ctrl\") { name = \"Ctrl-\" + name; }\n\t if ((flipCtrlCmd ? event.ctrlKey : event.metaKey) && base != \"Cmd\") { name = \"Cmd-\" + name; }\n\t if (!noShift && event.shiftKey && base != \"Shift\") { name = \"Shift-\" + name; }\n\t return name\n\t}\n\t\n\tfunction getKeyMap(val) {\n\t return typeof val == \"string\" ? keyMap[val] : val\n\t}\n\t\n\t// Helper for deleting text near the selection(s), used to implement\n\t// backspace, delete, and similar functionality.\n\tfunction deleteNearSelection(cm, compute) {\n\t var ranges = cm.doc.sel.ranges, kill = [];\n\t // Build up a set of ranges to kill first, merging overlapping\n\t // ranges.\n\t for (var i = 0; i < ranges.length; i++) {\n\t var toKill = compute(ranges[i]);\n\t while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n\t var replaced = kill.pop();\n\t if (cmp(replaced.from, toKill.from) < 0) {\n\t toKill.from = replaced.from;\n\t break\n\t }\n\t }\n\t kill.push(toKill);\n\t }\n\t // Next, remove those actual ranges.\n\t runInOp(cm, function () {\n\t for (var i = kill.length - 1; i >= 0; i--)\n\t { replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\"); }\n\t ensureCursorVisible(cm);\n\t });\n\t}\n\t\n\t// Commands are parameter-less actions that can be performed on an\n\t// editor, mostly used for keybindings.\n\tvar commands = {\n\t selectAll: selectAll,\n\t singleSelection: function (cm) { return cm.setSelection(cm.getCursor(\"anchor\"), cm.getCursor(\"head\"), sel_dontScroll); },\n\t killLine: function (cm) { return deleteNearSelection(cm, function (range) {\n\t if (range.empty()) {\n\t var len = getLine(cm.doc, range.head.line).text.length;\n\t if (range.head.ch == len && range.head.line < cm.lastLine())\n\t { return {from: range.head, to: Pos(range.head.line + 1, 0)} }\n\t else\n\t { return {from: range.head, to: Pos(range.head.line, len)} }\n\t } else {\n\t return {from: range.from(), to: range.to()}\n\t }\n\t }); },\n\t deleteLine: function (cm) { return deleteNearSelection(cm, function (range) { return ({\n\t from: Pos(range.from().line, 0),\n\t to: clipPos(cm.doc, Pos(range.to().line + 1, 0))\n\t }); }); },\n\t delLineLeft: function (cm) { return deleteNearSelection(cm, function (range) { return ({\n\t from: Pos(range.from().line, 0), to: range.from()\n\t }); }); },\n\t delWrappedLineLeft: function (cm) { return deleteNearSelection(cm, function (range) {\n\t var top = cm.charCoords(range.head, \"div\").top + 5;\n\t var leftPos = cm.coordsChar({left: 0, top: top}, \"div\");\n\t return {from: leftPos, to: range.from()}\n\t }); },\n\t delWrappedLineRight: function (cm) { return deleteNearSelection(cm, function (range) {\n\t var top = cm.charCoords(range.head, \"div\").top + 5;\n\t var rightPos = cm.coordsChar({left: cm.display.lineDiv.offsetWidth + 100, top: top}, \"div\");\n\t return {from: range.from(), to: rightPos }\n\t }); },\n\t undo: function (cm) { return cm.undo(); },\n\t redo: function (cm) { return cm.redo(); },\n\t undoSelection: function (cm) { return cm.undoSelection(); },\n\t redoSelection: function (cm) { return cm.redoSelection(); },\n\t goDocStart: function (cm) { return cm.extendSelection(Pos(cm.firstLine(), 0)); },\n\t goDocEnd: function (cm) { return cm.extendSelection(Pos(cm.lastLine())); },\n\t goLineStart: function (cm) { return cm.extendSelectionsBy(function (range) { return lineStart(cm, range.head.line); },\n\t {origin: \"+move\", bias: 1}\n\t ); },\n\t goLineStartSmart: function (cm) { return cm.extendSelectionsBy(function (range) { return lineStartSmart(cm, range.head); },\n\t {origin: \"+move\", bias: 1}\n\t ); },\n\t goLineEnd: function (cm) { return cm.extendSelectionsBy(function (range) { return lineEnd(cm, range.head.line); },\n\t {origin: \"+move\", bias: -1}\n\t ); },\n\t goLineRight: function (cm) { return cm.extendSelectionsBy(function (range) {\n\t var top = cm.charCoords(range.head, \"div\").top + 5;\n\t return cm.coordsChar({left: cm.display.lineDiv.offsetWidth + 100, top: top}, \"div\")\n\t }, sel_move); },\n\t goLineLeft: function (cm) { return cm.extendSelectionsBy(function (range) {\n\t var top = cm.charCoords(range.head, \"div\").top + 5;\n\t return cm.coordsChar({left: 0, top: top}, \"div\")\n\t }, sel_move); },\n\t goLineLeftSmart: function (cm) { return cm.extendSelectionsBy(function (range) {\n\t var top = cm.charCoords(range.head, \"div\").top + 5;\n\t var pos = cm.coordsChar({left: 0, top: top}, \"div\");\n\t if (pos.ch < cm.getLine(pos.line).search(/\\S/)) { return lineStartSmart(cm, range.head) }\n\t return pos\n\t }, sel_move); },\n\t goLineUp: function (cm) { return cm.moveV(-1, \"line\"); },\n\t goLineDown: function (cm) { return cm.moveV(1, \"line\"); },\n\t goPageUp: function (cm) { return cm.moveV(-1, \"page\"); },\n\t goPageDown: function (cm) { return cm.moveV(1, \"page\"); },\n\t goCharLeft: function (cm) { return cm.moveH(-1, \"char\"); },\n\t goCharRight: function (cm) { return cm.moveH(1, \"char\"); },\n\t goColumnLeft: function (cm) { return cm.moveH(-1, \"column\"); },\n\t goColumnRight: function (cm) { return cm.moveH(1, \"column\"); },\n\t goWordLeft: function (cm) { return cm.moveH(-1, \"word\"); },\n\t goGroupRight: function (cm) { return cm.moveH(1, \"group\"); },\n\t goGroupLeft: function (cm) { return cm.moveH(-1, \"group\"); },\n\t goWordRight: function (cm) { return cm.moveH(1, \"word\"); },\n\t delCharBefore: function (cm) { return cm.deleteH(-1, \"char\"); },\n\t delCharAfter: function (cm) { return cm.deleteH(1, \"char\"); },\n\t delWordBefore: function (cm) { return cm.deleteH(-1, \"word\"); },\n\t delWordAfter: function (cm) { return cm.deleteH(1, \"word\"); },\n\t delGroupBefore: function (cm) { return cm.deleteH(-1, \"group\"); },\n\t delGroupAfter: function (cm) { return cm.deleteH(1, \"group\"); },\n\t indentAuto: function (cm) { return cm.indentSelection(\"smart\"); },\n\t indentMore: function (cm) { return cm.indentSelection(\"add\"); },\n\t indentLess: function (cm) { return cm.indentSelection(\"subtract\"); },\n\t insertTab: function (cm) { return cm.replaceSelection(\"\\t\"); },\n\t insertSoftTab: function (cm) {\n\t var spaces = [], ranges = cm.listSelections(), tabSize = cm.options.tabSize;\n\t for (var i = 0; i < ranges.length; i++) {\n\t var pos = ranges[i].from();\n\t var col = countColumn(cm.getLine(pos.line), pos.ch, tabSize);\n\t spaces.push(spaceStr(tabSize - col % tabSize));\n\t }\n\t cm.replaceSelections(spaces);\n\t },\n\t defaultTab: function (cm) {\n\t if (cm.somethingSelected()) { cm.indentSelection(\"add\"); }\n\t else { cm.execCommand(\"insertTab\"); }\n\t },\n\t // Swap the two chars left and right of each selection's head.\n\t // Move cursor behind the two swapped characters afterwards.\n\t //\n\t // Doesn't consider line feeds a character.\n\t // Doesn't scan more than one line above to find a character.\n\t // Doesn't do anything on an empty line.\n\t // Doesn't do anything with non-empty selections.\n\t transposeChars: function (cm) { return runInOp(cm, function () {\n\t var ranges = cm.listSelections(), newSel = [];\n\t for (var i = 0; i < ranges.length; i++) {\n\t if (!ranges[i].empty()) { continue }\n\t var cur = ranges[i].head, line = getLine(cm.doc, cur.line).text;\n\t if (line) {\n\t if (cur.ch == line.length) { cur = new Pos(cur.line, cur.ch - 1); }\n\t if (cur.ch > 0) {\n\t cur = new Pos(cur.line, cur.ch + 1);\n\t cm.replaceRange(line.charAt(cur.ch - 1) + line.charAt(cur.ch - 2),\n\t Pos(cur.line, cur.ch - 2), cur, \"+transpose\");\n\t } else if (cur.line > cm.doc.first) {\n\t var prev = getLine(cm.doc, cur.line - 1).text;\n\t if (prev) {\n\t cur = new Pos(cur.line, 1);\n\t cm.replaceRange(line.charAt(0) + cm.doc.lineSeparator() +\n\t prev.charAt(prev.length - 1),\n\t Pos(cur.line - 1, prev.length - 1), cur, \"+transpose\");\n\t }\n\t }\n\t }\n\t newSel.push(new Range(cur, cur));\n\t }\n\t cm.setSelections(newSel);\n\t }); },\n\t newlineAndIndent: function (cm) { return runInOp(cm, function () {\n\t var sels = cm.listSelections();\n\t for (var i = sels.length - 1; i >= 0; i--)\n\t { cm.replaceRange(cm.doc.lineSeparator(), sels[i].anchor, sels[i].head, \"+input\"); }\n\t sels = cm.listSelections();\n\t for (var i$1 = 0; i$1 < sels.length; i$1++)\n\t { cm.indentLine(sels[i$1].from().line, null, true); }\n\t ensureCursorVisible(cm);\n\t }); },\n\t openLine: function (cm) { return cm.replaceSelection(\"\\n\", \"start\"); },\n\t toggleOverwrite: function (cm) { return cm.toggleOverwrite(); }\n\t};\n\t\n\t\n\tfunction lineStart(cm, lineN) {\n\t var line = getLine(cm.doc, lineN);\n\t var visual = visualLine(line);\n\t if (visual != line) { lineN = lineNo(visual); }\n\t return endOfLine(true, cm, visual, lineN, 1)\n\t}\n\tfunction lineEnd(cm, lineN) {\n\t var line = getLine(cm.doc, lineN);\n\t var visual = visualLineEnd(line);\n\t if (visual != line) { lineN = lineNo(visual); }\n\t return endOfLine(true, cm, line, lineN, -1)\n\t}\n\tfunction lineStartSmart(cm, pos) {\n\t var start = lineStart(cm, pos.line);\n\t var line = getLine(cm.doc, start.line);\n\t var order = getOrder(line, cm.doc.direction);\n\t if (!order || order[0].level == 0) {\n\t var firstNonWS = Math.max(0, line.text.search(/\\S/));\n\t var inWS = pos.line == start.line && pos.ch <= firstNonWS && pos.ch;\n\t return Pos(start.line, inWS ? 0 : firstNonWS, start.sticky)\n\t }\n\t return start\n\t}\n\t\n\t// Run a handler that was bound to a key.\n\tfunction doHandleBinding(cm, bound, dropShift) {\n\t if (typeof bound == \"string\") {\n\t bound = commands[bound];\n\t if (!bound) { return false }\n\t }\n\t // Ensure previous input has been read, so that the handler sees a\n\t // consistent view of the document\n\t cm.display.input.ensurePolled();\n\t var prevShift = cm.display.shift, done = false;\n\t try {\n\t if (cm.isReadOnly()) { cm.state.suppressEdits = true; }\n\t if (dropShift) { cm.display.shift = false; }\n\t done = bound(cm) != Pass;\n\t } finally {\n\t cm.display.shift = prevShift;\n\t cm.state.suppressEdits = false;\n\t }\n\t return done\n\t}\n\t\n\tfunction lookupKeyForEditor(cm, name, handle) {\n\t for (var i = 0; i < cm.state.keyMaps.length; i++) {\n\t var result = lookupKey(name, cm.state.keyMaps[i], handle, cm);\n\t if (result) { return result }\n\t }\n\t return (cm.options.extraKeys && lookupKey(name, cm.options.extraKeys, handle, cm))\n\t || lookupKey(name, cm.options.keyMap, handle, cm)\n\t}\n\t\n\tvar stopSeq = new Delayed;\n\tfunction dispatchKey(cm, name, e, handle) {\n\t var seq = cm.state.keySeq;\n\t if (seq) {\n\t if (isModifierKey(name)) { return \"handled\" }\n\t stopSeq.set(50, function () {\n\t if (cm.state.keySeq == seq) {\n\t cm.state.keySeq = null;\n\t cm.display.input.reset();\n\t }\n\t });\n\t name = seq + \" \" + name;\n\t }\n\t var result = lookupKeyForEditor(cm, name, handle);\n\t\n\t if (result == \"multi\")\n\t { cm.state.keySeq = name; }\n\t if (result == \"handled\")\n\t { signalLater(cm, \"keyHandled\", cm, name, e); }\n\t\n\t if (result == \"handled\" || result == \"multi\") {\n\t e_preventDefault(e);\n\t restartBlink(cm);\n\t }\n\t\n\t if (seq && !result && /\\'$/.test(name)) {\n\t e_preventDefault(e);\n\t return true\n\t }\n\t return !!result\n\t}\n\t\n\t// Handle a key from the keydown event.\n\tfunction handleKeyBinding(cm, e) {\n\t var name = keyName(e, true);\n\t if (!name) { return false }\n\t\n\t if (e.shiftKey && !cm.state.keySeq) {\n\t // First try to resolve full name (including 'Shift-'). Failing\n\t // that, see if there is a cursor-motion command (starting with\n\t // 'go') bound to the keyname without 'Shift-'.\n\t return dispatchKey(cm, \"Shift-\" + name, e, function (b) { return doHandleBinding(cm, b, true); })\n\t || dispatchKey(cm, name, e, function (b) {\n\t if (typeof b == \"string\" ? /^go[A-Z]/.test(b) : b.motion)\n\t { return doHandleBinding(cm, b) }\n\t })\n\t } else {\n\t return dispatchKey(cm, name, e, function (b) { return doHandleBinding(cm, b); })\n\t }\n\t}\n\t\n\t// Handle a key from the keypress event\n\tfunction handleCharBinding(cm, e, ch) {\n\t return dispatchKey(cm, \"'\" + ch + \"'\", e, function (b) { return doHandleBinding(cm, b, true); })\n\t}\n\t\n\tvar lastStoppedKey = null;\n\tfunction onKeyDown(e) {\n\t var cm = this;\n\t cm.curOp.focus = activeElt();\n\t if (signalDOMEvent(cm, e)) { return }\n\t // IE does strange things with escape.\n\t if (ie && ie_version < 11 && e.keyCode == 27) { e.returnValue = false; }\n\t var code = e.keyCode;\n\t cm.display.shift = code == 16 || e.shiftKey;\n\t var handled = handleKeyBinding(cm, e);\n\t if (presto) {\n\t lastStoppedKey = handled ? code : null;\n\t // Opera has no cut event... we try to at least catch the key combo\n\t if (!handled && code == 88 && !hasCopyEvent && (mac ? e.metaKey : e.ctrlKey))\n\t { cm.replaceSelection(\"\", null, \"cut\"); }\n\t }\n\t\n\t // Turn mouse into crosshair when Alt is held on Mac.\n\t if (code == 18 && !/\\bCodeMirror-crosshair\\b/.test(cm.display.lineDiv.className))\n\t { showCrossHair(cm); }\n\t}\n\t\n\tfunction showCrossHair(cm) {\n\t var lineDiv = cm.display.lineDiv;\n\t addClass(lineDiv, \"CodeMirror-crosshair\");\n\t\n\t function up(e) {\n\t if (e.keyCode == 18 || !e.altKey) {\n\t rmClass(lineDiv, \"CodeMirror-crosshair\");\n\t off(document, \"keyup\", up);\n\t off(document, \"mouseover\", up);\n\t }\n\t }\n\t on(document, \"keyup\", up);\n\t on(document, \"mouseover\", up);\n\t}\n\t\n\tfunction onKeyUp(e) {\n\t if (e.keyCode == 16) { this.doc.sel.shift = false; }\n\t signalDOMEvent(this, e);\n\t}\n\t\n\tfunction onKeyPress(e) {\n\t var cm = this;\n\t if (eventInWidget(cm.display, e) || signalDOMEvent(cm, e) || e.ctrlKey && !e.altKey || mac && e.metaKey) { return }\n\t var keyCode = e.keyCode, charCode = e.charCode;\n\t if (presto && keyCode == lastStoppedKey) {lastStoppedKey = null; e_preventDefault(e); return}\n\t if ((presto && (!e.which || e.which < 10)) && handleKeyBinding(cm, e)) { return }\n\t var ch = String.fromCharCode(charCode == null ? keyCode : charCode);\n\t // Some browsers fire keypress events for backspace\n\t if (ch == \"\\x08\") { return }\n\t if (handleCharBinding(cm, e, ch)) { return }\n\t cm.display.input.onKeyPress(e);\n\t}\n\t\n\t// A mouse down can be a single click, double click, triple click,\n\t// start of selection drag, start of text drag, new cursor\n\t// (ctrl-click), rectangle drag (alt-drag), or xwin\n\t// middle-click-paste. Or it might be a click on something we should\n\t// not interfere with, such as a scrollbar or widget.\n\tfunction onMouseDown(e) {\n\t var cm = this, display = cm.display;\n\t if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n\t display.input.ensurePolled();\n\t display.shift = e.shiftKey;\n\t\n\t if (eventInWidget(display, e)) {\n\t if (!webkit) {\n\t // Briefly turn off draggability, to allow widgets to do\n\t // normal dragging things.\n\t display.scroller.draggable = false;\n\t setTimeout(function () { return display.scroller.draggable = true; }, 100);\n\t }\n\t return\n\t }\n\t if (clickInGutter(cm, e)) { return }\n\t var start = posFromMouse(cm, e);\n\t window.focus();\n\t\n\t switch (e_button(e)) {\n\t case 1:\n\t // #3261: make sure, that we're not starting a second selection\n\t if (cm.state.selectingText)\n\t { cm.state.selectingText(e); }\n\t else if (start)\n\t { leftButtonDown(cm, e, start); }\n\t else if (e_target(e) == display.scroller)\n\t { e_preventDefault(e); }\n\t break\n\t case 2:\n\t if (webkit) { cm.state.lastMiddleDown = +new Date; }\n\t if (start) { extendSelection(cm.doc, start); }\n\t setTimeout(function () { return display.input.focus(); }, 20);\n\t e_preventDefault(e);\n\t break\n\t case 3:\n\t if (captureRightClick) { onContextMenu(cm, e); }\n\t else { delayBlurEvent(cm); }\n\t break\n\t }\n\t}\n\t\n\tvar lastClick;\n\tvar lastDoubleClick;\n\tfunction leftButtonDown(cm, e, start) {\n\t if (ie) { setTimeout(bind(ensureFocus, cm), 0); }\n\t else { cm.curOp.focus = activeElt(); }\n\t\n\t var now = +new Date, type;\n\t if (lastDoubleClick && lastDoubleClick.time > now - 400 && cmp(lastDoubleClick.pos, start) == 0) {\n\t type = \"triple\";\n\t } else if (lastClick && lastClick.time > now - 400 && cmp(lastClick.pos, start) == 0) {\n\t type = \"double\";\n\t lastDoubleClick = {time: now, pos: start};\n\t } else {\n\t type = \"single\";\n\t lastClick = {time: now, pos: start};\n\t }\n\t\n\t var sel = cm.doc.sel, modifier = mac ? e.metaKey : e.ctrlKey, contained;\n\t if (cm.options.dragDrop && dragAndDrop && !cm.isReadOnly() &&\n\t type == \"single\" && (contained = sel.contains(start)) > -1 &&\n\t (cmp((contained = sel.ranges[contained]).from(), start) < 0 || start.xRel > 0) &&\n\t (cmp(contained.to(), start) > 0 || start.xRel < 0))\n\t { leftButtonStartDrag(cm, e, start, modifier); }\n\t else\n\t { leftButtonSelect(cm, e, start, type, modifier); }\n\t}\n\t\n\t// Start a text drag. When it ends, see if any dragging actually\n\t// happen, and treat as a click if it didn't.\n\tfunction leftButtonStartDrag(cm, e, start, modifier) {\n\t var display = cm.display, startTime = +new Date;\n\t var dragEnd = operation(cm, function (e2) {\n\t if (webkit) { display.scroller.draggable = false; }\n\t cm.state.draggingText = false;\n\t off(document, \"mouseup\", dragEnd);\n\t off(display.scroller, \"drop\", dragEnd);\n\t if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {\n\t e_preventDefault(e2);\n\t if (!modifier && +new Date - 200 < startTime)\n\t { extendSelection(cm.doc, start); }\n\t // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n\t if (webkit || ie && ie_version == 9)\n\t { setTimeout(function () {document.body.focus(); display.input.focus();}, 20); }\n\t else\n\t { display.input.focus(); }\n\t }\n\t });\n\t // Let the drag handler handle this.\n\t if (webkit) { display.scroller.draggable = true; }\n\t cm.state.draggingText = dragEnd;\n\t dragEnd.copy = mac ? e.altKey : e.ctrlKey;\n\t // IE's approach to draggable\n\t if (display.scroller.dragDrop) { display.scroller.dragDrop(); }\n\t on(document, \"mouseup\", dragEnd);\n\t on(display.scroller, \"drop\", dragEnd);\n\t}\n\t\n\t// Normal selection, as opposed to text dragging.\n\tfunction leftButtonSelect(cm, e, start, type, addNew) {\n\t var display = cm.display, doc = cm.doc;\n\t e_preventDefault(e);\n\t\n\t var ourRange, ourIndex, startSel = doc.sel, ranges = startSel.ranges;\n\t if (addNew && !e.shiftKey) {\n\t ourIndex = doc.sel.contains(start);\n\t if (ourIndex > -1)\n\t { ourRange = ranges[ourIndex]; }\n\t else\n\t { ourRange = new Range(start, start); }\n\t } else {\n\t ourRange = doc.sel.primary();\n\t ourIndex = doc.sel.primIndex;\n\t }\n\t\n\t if (chromeOS ? e.shiftKey && e.metaKey : e.altKey) {\n\t type = \"rect\";\n\t if (!addNew) { ourRange = new Range(start, start); }\n\t start = posFromMouse(cm, e, true, true);\n\t ourIndex = -1;\n\t } else if (type == \"double\") {\n\t var word = cm.findWordAt(start);\n\t if (cm.display.shift || doc.extend)\n\t { ourRange = extendRange(doc, ourRange, word.anchor, word.head); }\n\t else\n\t { ourRange = word; }\n\t } else if (type == \"triple\") {\n\t var line = new Range(Pos(start.line, 0), clipPos(doc, Pos(start.line + 1, 0)));\n\t if (cm.display.shift || doc.extend)\n\t { ourRange = extendRange(doc, ourRange, line.anchor, line.head); }\n\t else\n\t { ourRange = line; }\n\t } else {\n\t ourRange = extendRange(doc, ourRange, start);\n\t }\n\t\n\t if (!addNew) {\n\t ourIndex = 0;\n\t setSelection(doc, new Selection([ourRange], 0), sel_mouse);\n\t startSel = doc.sel;\n\t } else if (ourIndex == -1) {\n\t ourIndex = ranges.length;\n\t setSelection(doc, normalizeSelection(ranges.concat([ourRange]), ourIndex),\n\t {scroll: false, origin: \"*mouse\"});\n\t } else if (ranges.length > 1 && ranges[ourIndex].empty() && type == \"single\" && !e.shiftKey) {\n\t setSelection(doc, normalizeSelection(ranges.slice(0, ourIndex).concat(ranges.slice(ourIndex + 1)), 0),\n\t {scroll: false, origin: \"*mouse\"});\n\t startSel = doc.sel;\n\t } else {\n\t replaceOneSelection(doc, ourIndex, ourRange, sel_mouse);\n\t }\n\t\n\t var lastPos = start;\n\t function extendTo(pos) {\n\t if (cmp(lastPos, pos) == 0) { return }\n\t lastPos = pos;\n\t\n\t if (type == \"rect\") {\n\t var ranges = [], tabSize = cm.options.tabSize;\n\t var startCol = countColumn(getLine(doc, start.line).text, start.ch, tabSize);\n\t var posCol = countColumn(getLine(doc, pos.line).text, pos.ch, tabSize);\n\t var left = Math.min(startCol, posCol), right = Math.max(startCol, posCol);\n\t for (var line = Math.min(start.line, pos.line), end = Math.min(cm.lastLine(), Math.max(start.line, pos.line));\n\t line <= end; line++) {\n\t var text = getLine(doc, line).text, leftPos = findColumn(text, left, tabSize);\n\t if (left == right)\n\t { ranges.push(new Range(Pos(line, leftPos), Pos(line, leftPos))); }\n\t else if (text.length > leftPos)\n\t { ranges.push(new Range(Pos(line, leftPos), Pos(line, findColumn(text, right, tabSize)))); }\n\t }\n\t if (!ranges.length) { ranges.push(new Range(start, start)); }\n\t setSelection(doc, normalizeSelection(startSel.ranges.slice(0, ourIndex).concat(ranges), ourIndex),\n\t {origin: \"*mouse\", scroll: false});\n\t cm.scrollIntoView(pos);\n\t } else {\n\t var oldRange = ourRange;\n\t var anchor = oldRange.anchor, head = pos;\n\t if (type != \"single\") {\n\t var range$$1;\n\t if (type == \"double\")\n\t { range$$1 = cm.findWordAt(pos); }\n\t else\n\t { range$$1 = new Range(Pos(pos.line, 0), clipPos(doc, Pos(pos.line + 1, 0))); }\n\t if (cmp(range$$1.anchor, anchor) > 0) {\n\t head = range$$1.head;\n\t anchor = minPos(oldRange.from(), range$$1.anchor);\n\t } else {\n\t head = range$$1.anchor;\n\t anchor = maxPos(oldRange.to(), range$$1.head);\n\t }\n\t }\n\t var ranges$1 = startSel.ranges.slice(0);\n\t ranges$1[ourIndex] = new Range(clipPos(doc, anchor), head);\n\t setSelection(doc, normalizeSelection(ranges$1, ourIndex), sel_mouse);\n\t }\n\t }\n\t\n\t var editorSize = display.wrapper.getBoundingClientRect();\n\t // Used to ensure timeout re-tries don't fire when another extend\n\t // happened in the meantime (clearTimeout isn't reliable -- at\n\t // least on Chrome, the timeouts still happen even when cleared,\n\t // if the clear happens after their scheduled firing time).\n\t var counter = 0;\n\t\n\t function extend(e) {\n\t var curCount = ++counter;\n\t var cur = posFromMouse(cm, e, true, type == \"rect\");\n\t if (!cur) { return }\n\t if (cmp(cur, lastPos) != 0) {\n\t cm.curOp.focus = activeElt();\n\t extendTo(cur);\n\t var visible = visibleLines(display, doc);\n\t if (cur.line >= visible.to || cur.line < visible.from)\n\t { setTimeout(operation(cm, function () {if (counter == curCount) { extend(e); }}), 150); }\n\t } else {\n\t var outside = e.clientY < editorSize.top ? -20 : e.clientY > editorSize.bottom ? 20 : 0;\n\t if (outside) { setTimeout(operation(cm, function () {\n\t if (counter != curCount) { return }\n\t display.scroller.scrollTop += outside;\n\t extend(e);\n\t }), 50); }\n\t }\n\t }\n\t\n\t function done(e) {\n\t cm.state.selectingText = false;\n\t counter = Infinity;\n\t e_preventDefault(e);\n\t display.input.focus();\n\t off(document, \"mousemove\", move);\n\t off(document, \"mouseup\", up);\n\t doc.history.lastSelOrigin = null;\n\t }\n\t\n\t var move = operation(cm, function (e) {\n\t if (!e_button(e)) { done(e); }\n\t else { extend(e); }\n\t });\n\t var up = operation(cm, done);\n\t cm.state.selectingText = up;\n\t on(document, \"mousemove\", move);\n\t on(document, \"mouseup\", up);\n\t}\n\t\n\t\n\t// Determines whether an event happened in the gutter, and fires the\n\t// handlers for the corresponding event.\n\tfunction gutterEvent(cm, e, type, prevent) {\n\t var mX, mY;\n\t try { mX = e.clientX; mY = e.clientY; }\n\t catch(e) { return false }\n\t if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n\t if (prevent) { e_preventDefault(e); }\n\t\n\t var display = cm.display;\n\t var lineBox = display.lineDiv.getBoundingClientRect();\n\t\n\t if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n\t mY -= lineBox.top - display.viewOffset;\n\t\n\t for (var i = 0; i < cm.options.gutters.length; ++i) {\n\t var g = display.gutters.childNodes[i];\n\t if (g && g.getBoundingClientRect().right >= mX) {\n\t var line = lineAtHeight(cm.doc, mY);\n\t var gutter = cm.options.gutters[i];\n\t signal(cm, type, cm, line, gutter, e);\n\t return e_defaultPrevented(e)\n\t }\n\t }\n\t}\n\t\n\tfunction clickInGutter(cm, e) {\n\t return gutterEvent(cm, e, \"gutterClick\", true)\n\t}\n\t\n\t// CONTEXT MENU HANDLING\n\t\n\t// To make the context menu work, we need to briefly unhide the\n\t// textarea (making it as unobtrusive as possible) to let the\n\t// right-click take effect on it.\n\tfunction onContextMenu(cm, e) {\n\t if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) { return }\n\t if (signalDOMEvent(cm, e, \"contextmenu\")) { return }\n\t cm.display.input.onContextMenu(e);\n\t}\n\t\n\tfunction contextMenuInGutter(cm, e) {\n\t if (!hasHandler(cm, \"gutterContextMenu\")) { return false }\n\t return gutterEvent(cm, e, \"gutterContextMenu\", false)\n\t}\n\t\n\tfunction themeChanged(cm) {\n\t cm.display.wrapper.className = cm.display.wrapper.className.replace(/\\s*cm-s-\\S+/g, \"\") +\n\t cm.options.theme.replace(/(^|\\s)\\s*/g, \" cm-s-\");\n\t clearCaches(cm);\n\t}\n\t\n\tvar Init = {toString: function(){return \"CodeMirror.Init\"}};\n\t\n\tvar defaults = {};\n\tvar optionHandlers = {};\n\t\n\tfunction defineOptions(CodeMirror) {\n\t var optionHandlers = CodeMirror.optionHandlers;\n\t\n\t function option(name, deflt, handle, notOnInit) {\n\t CodeMirror.defaults[name] = deflt;\n\t if (handle) { optionHandlers[name] =\n\t notOnInit ? function (cm, val, old) {if (old != Init) { handle(cm, val, old); }} : handle; }\n\t }\n\t\n\t CodeMirror.defineOption = option;\n\t\n\t // Passed to option handlers when there is no old value.\n\t CodeMirror.Init = Init;\n\t\n\t // These two are, on init, called from the constructor because they\n\t // have to be initialized before the editor can start at all.\n\t option(\"value\", \"\", function (cm, val) { return cm.setValue(val); }, true);\n\t option(\"mode\", null, function (cm, val) {\n\t cm.doc.modeOption = val;\n\t loadMode(cm);\n\t }, true);\n\t\n\t option(\"indentUnit\", 2, loadMode, true);\n\t option(\"indentWithTabs\", false);\n\t option(\"smartIndent\", true);\n\t option(\"tabSize\", 4, function (cm) {\n\t resetModeState(cm);\n\t clearCaches(cm);\n\t regChange(cm);\n\t }, true);\n\t option(\"lineSeparator\", null, function (cm, val) {\n\t cm.doc.lineSep = val;\n\t if (!val) { return }\n\t var newBreaks = [], lineNo = cm.doc.first;\n\t cm.doc.iter(function (line) {\n\t for (var pos = 0;;) {\n\t var found = line.text.indexOf(val, pos);\n\t if (found == -1) { break }\n\t pos = found + val.length;\n\t newBreaks.push(Pos(lineNo, found));\n\t }\n\t lineNo++;\n\t });\n\t for (var i = newBreaks.length - 1; i >= 0; i--)\n\t { replaceRange(cm.doc, val, newBreaks[i], Pos(newBreaks[i].line, newBreaks[i].ch + val.length)); }\n\t });\n\t option(\"specialChars\", /[\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u061c\\u200b-\\u200f\\u2028\\u2029\\ufeff]/g, function (cm, val, old) {\n\t cm.state.specialChars = new RegExp(val.source + (val.test(\"\\t\") ? \"\" : \"|\\t\"), \"g\");\n\t if (old != Init) { cm.refresh(); }\n\t });\n\t option(\"specialCharPlaceholder\", defaultSpecialCharPlaceholder, function (cm) { return cm.refresh(); }, true);\n\t option(\"electricChars\", true);\n\t option(\"inputStyle\", mobile ? \"contenteditable\" : \"textarea\", function () {\n\t throw new Error(\"inputStyle can not (yet) be changed in a running editor\") // FIXME\n\t }, true);\n\t option(\"spellcheck\", false, function (cm, val) { return cm.getInputField().spellcheck = val; }, true);\n\t option(\"rtlMoveVisually\", !windows);\n\t option(\"wholeLineUpdateBefore\", true);\n\t\n\t option(\"theme\", \"default\", function (cm) {\n\t themeChanged(cm);\n\t guttersChanged(cm);\n\t }, true);\n\t option(\"keyMap\", \"default\", function (cm, val, old) {\n\t var next = getKeyMap(val);\n\t var prev = old != Init && getKeyMap(old);\n\t if (prev && prev.detach) { prev.detach(cm, next); }\n\t if (next.attach) { next.attach(cm, prev || null); }\n\t });\n\t option(\"extraKeys\", null);\n\t\n\t option(\"lineWrapping\", false, wrappingChanged, true);\n\t option(\"gutters\", [], function (cm) {\n\t setGuttersForLineNumbers(cm.options);\n\t guttersChanged(cm);\n\t }, true);\n\t option(\"fixedGutter\", true, function (cm, val) {\n\t cm.display.gutters.style.left = val ? compensateForHScroll(cm.display) + \"px\" : \"0\";\n\t cm.refresh();\n\t }, true);\n\t option(\"coverGutterNextToScrollbar\", false, function (cm) { return updateScrollbars(cm); }, true);\n\t option(\"scrollbarStyle\", \"native\", function (cm) {\n\t initScrollbars(cm);\n\t updateScrollbars(cm);\n\t cm.display.scrollbars.setScrollTop(cm.doc.scrollTop);\n\t cm.display.scrollbars.setScrollLeft(cm.doc.scrollLeft);\n\t }, true);\n\t option(\"lineNumbers\", false, function (cm) {\n\t setGuttersForLineNumbers(cm.options);\n\t guttersChanged(cm);\n\t }, true);\n\t option(\"firstLineNumber\", 1, guttersChanged, true);\n\t option(\"lineNumberFormatter\", function (integer) { return integer; }, guttersChanged, true);\n\t option(\"showCursorWhenSelecting\", false, updateSelection, true);\n\t\n\t option(\"resetSelectionOnContextMenu\", true);\n\t option(\"lineWiseCopyCut\", true);\n\t\n\t option(\"readOnly\", false, function (cm, val) {\n\t if (val == \"nocursor\") {\n\t onBlur(cm);\n\t cm.display.input.blur();\n\t cm.display.disabled = true;\n\t } else {\n\t cm.display.disabled = false;\n\t }\n\t cm.display.input.readOnlyChanged(val);\n\t });\n\t option(\"disableInput\", false, function (cm, val) {if (!val) { cm.display.input.reset(); }}, true);\n\t option(\"dragDrop\", true, dragDropChanged);\n\t option(\"allowDropFileTypes\", null);\n\t\n\t option(\"cursorBlinkRate\", 530);\n\t option(\"cursorScrollMargin\", 0);\n\t option(\"cursorHeight\", 1, updateSelection, true);\n\t option(\"singleCursorHeightPerLine\", true, updateSelection, true);\n\t option(\"workTime\", 100);\n\t option(\"workDelay\", 100);\n\t option(\"flattenSpans\", true, resetModeState, true);\n\t option(\"addModeClass\", false, resetModeState, true);\n\t option(\"pollInterval\", 100);\n\t option(\"undoDepth\", 200, function (cm, val) { return cm.doc.history.undoDepth = val; });\n\t option(\"historyEventDelay\", 1250);\n\t option(\"viewportMargin\", 10, function (cm) { return cm.refresh(); }, true);\n\t option(\"maxHighlightLength\", 10000, resetModeState, true);\n\t option(\"moveInputWithCursor\", true, function (cm, val) {\n\t if (!val) { cm.display.input.resetPosition(); }\n\t });\n\t\n\t option(\"tabindex\", null, function (cm, val) { return cm.display.input.getField().tabIndex = val || \"\"; });\n\t option(\"autofocus\", null);\n\t option(\"direction\", \"ltr\", function (cm, val) { return cm.doc.setDirection(val); }, true);\n\t}\n\t\n\tfunction guttersChanged(cm) {\n\t updateGutters(cm);\n\t regChange(cm);\n\t alignHorizontally(cm);\n\t}\n\t\n\tfunction dragDropChanged(cm, value, old) {\n\t var wasOn = old && old != Init;\n\t if (!value != !wasOn) {\n\t var funcs = cm.display.dragFunctions;\n\t var toggle = value ? on : off;\n\t toggle(cm.display.scroller, \"dragstart\", funcs.start);\n\t toggle(cm.display.scroller, \"dragenter\", funcs.enter);\n\t toggle(cm.display.scroller, \"dragover\", funcs.over);\n\t toggle(cm.display.scroller, \"dragleave\", funcs.leave);\n\t toggle(cm.display.scroller, \"drop\", funcs.drop);\n\t }\n\t}\n\t\n\tfunction wrappingChanged(cm) {\n\t if (cm.options.lineWrapping) {\n\t addClass(cm.display.wrapper, \"CodeMirror-wrap\");\n\t cm.display.sizer.style.minWidth = \"\";\n\t cm.display.sizerWidth = null;\n\t } else {\n\t rmClass(cm.display.wrapper, \"CodeMirror-wrap\");\n\t findMaxLine(cm);\n\t }\n\t estimateLineHeights(cm);\n\t regChange(cm);\n\t clearCaches(cm);\n\t setTimeout(function () { return updateScrollbars(cm); }, 100);\n\t}\n\t\n\t// A CodeMirror instance represents an editor. This is the object\n\t// that user code is usually dealing with.\n\t\n\tfunction CodeMirror$1(place, options) {\n\t var this$1 = this;\n\t\n\t if (!(this instanceof CodeMirror$1)) { return new CodeMirror$1(place, options) }\n\t\n\t this.options = options = options ? copyObj(options) : {};\n\t // Determine effective options based on given values and defaults.\n\t copyObj(defaults, options, false);\n\t setGuttersForLineNumbers(options);\n\t\n\t var doc = options.value;\n\t if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n\t this.doc = doc;\n\t\n\t var input = new CodeMirror$1.inputStyles[options.inputStyle](this);\n\t var display = this.display = new Display(place, doc, input);\n\t display.wrapper.CodeMirror = this;\n\t updateGutters(this);\n\t themeChanged(this);\n\t if (options.lineWrapping)\n\t { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n\t initScrollbars(this);\n\t\n\t this.state = {\n\t keyMaps: [], // stores maps added by addKeyMap\n\t overlays: [], // highlighting overlays, as added by addOverlay\n\t modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n\t overwrite: false,\n\t delayingBlurEvent: false,\n\t focused: false,\n\t suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n\t pasteIncoming: false, cutIncoming: false, // help recognize paste/cut edits in input.poll\n\t selectingText: false,\n\t draggingText: false,\n\t highlight: new Delayed(), // stores highlight worker timeout\n\t keySeq: null, // Unfinished key sequence\n\t specialChars: null\n\t };\n\t\n\t if (options.autofocus && !mobile) { display.input.focus(); }\n\t\n\t // Override magic textarea content restore that IE sometimes does\n\t // on our hidden textarea on reload\n\t if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\t\n\t registerEventHandlers(this);\n\t ensureGlobalHandlers();\n\t\n\t startOperation(this);\n\t this.curOp.forceUpdate = true;\n\t attachDoc(this, doc);\n\t\n\t if ((options.autofocus && !mobile) || this.hasFocus())\n\t { setTimeout(bind(onFocus, this), 20); }\n\t else\n\t { onBlur(this); }\n\t\n\t for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n\t { optionHandlers[opt](this$1, options[opt], Init); } }\n\t maybeUpdateLineNumberWidth(this);\n\t if (options.finishInit) { options.finishInit(this); }\n\t for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this$1); }\n\t endOperation(this);\n\t // Suppress optimizelegibility in Webkit, since it breaks text\n\t // measuring on line wrapping boundaries.\n\t if (webkit && options.lineWrapping &&\n\t getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n\t { display.lineDiv.style.textRendering = \"auto\"; }\n\t}\n\t\n\t// The default configuration options.\n\tCodeMirror$1.defaults = defaults;\n\t// Functions to run when options are changed.\n\tCodeMirror$1.optionHandlers = optionHandlers;\n\t\n\t// Attach the necessary event handlers when initializing the editor\n\tfunction registerEventHandlers(cm) {\n\t var d = cm.display;\n\t on(d.scroller, \"mousedown\", operation(cm, onMouseDown));\n\t // Older IE's will not fire a second mousedown for a double click\n\t if (ie && ie_version < 11)\n\t { on(d.scroller, \"dblclick\", operation(cm, function (e) {\n\t if (signalDOMEvent(cm, e)) { return }\n\t var pos = posFromMouse(cm, e);\n\t if (!pos || clickInGutter(cm, e) || eventInWidget(cm.display, e)) { return }\n\t e_preventDefault(e);\n\t var word = cm.findWordAt(pos);\n\t extendSelection(cm.doc, word.anchor, word.head);\n\t })); }\n\t else\n\t { on(d.scroller, \"dblclick\", function (e) { return signalDOMEvent(cm, e) || e_preventDefault(e); }); }\n\t // Some browsers fire contextmenu *after* opening the menu, at\n\t // which point we can't mess with it anymore. Context menu is\n\t // handled in onMouseDown for these browsers.\n\t if (!captureRightClick) { on(d.scroller, \"contextmenu\", function (e) { return onContextMenu(cm, e); }); }\n\t\n\t // Used to suppress mouse event handling when a touch happens\n\t var touchFinished, prevTouch = {end: 0};\n\t function finishTouch() {\n\t if (d.activeTouch) {\n\t touchFinished = setTimeout(function () { return d.activeTouch = null; }, 1000);\n\t prevTouch = d.activeTouch;\n\t prevTouch.end = +new Date;\n\t }\n\t }\n\t function isMouseLikeTouchEvent(e) {\n\t if (e.touches.length != 1) { return false }\n\t var touch = e.touches[0];\n\t return touch.radiusX <= 1 && touch.radiusY <= 1\n\t }\n\t function farAway(touch, other) {\n\t if (other.left == null) { return true }\n\t var dx = other.left - touch.left, dy = other.top - touch.top;\n\t return dx * dx + dy * dy > 20 * 20\n\t }\n\t on(d.scroller, \"touchstart\", function (e) {\n\t if (!signalDOMEvent(cm, e) && !isMouseLikeTouchEvent(e)) {\n\t d.input.ensurePolled();\n\t clearTimeout(touchFinished);\n\t var now = +new Date;\n\t d.activeTouch = {start: now, moved: false,\n\t prev: now - prevTouch.end <= 300 ? prevTouch : null};\n\t if (e.touches.length == 1) {\n\t d.activeTouch.left = e.touches[0].pageX;\n\t d.activeTouch.top = e.touches[0].pageY;\n\t }\n\t }\n\t });\n\t on(d.scroller, \"touchmove\", function () {\n\t if (d.activeTouch) { d.activeTouch.moved = true; }\n\t });\n\t on(d.scroller, \"touchend\", function (e) {\n\t var touch = d.activeTouch;\n\t if (touch && !eventInWidget(d, e) && touch.left != null &&\n\t !touch.moved && new Date - touch.start < 300) {\n\t var pos = cm.coordsChar(d.activeTouch, \"page\"), range;\n\t if (!touch.prev || farAway(touch, touch.prev)) // Single tap\n\t { range = new Range(pos, pos); }\n\t else if (!touch.prev.prev || farAway(touch, touch.prev.prev)) // Double tap\n\t { range = cm.findWordAt(pos); }\n\t else // Triple tap\n\t { range = new Range(Pos(pos.line, 0), clipPos(cm.doc, Pos(pos.line + 1, 0))); }\n\t cm.setSelection(range.anchor, range.head);\n\t cm.focus();\n\t e_preventDefault(e);\n\t }\n\t finishTouch();\n\t });\n\t on(d.scroller, \"touchcancel\", finishTouch);\n\t\n\t // Sync scrolling between fake scrollbars and real scrollable\n\t // area, ensure viewport is updated when scrolling.\n\t on(d.scroller, \"scroll\", function () {\n\t if (d.scroller.clientHeight) {\n\t setScrollTop(cm, d.scroller.scrollTop);\n\t setScrollLeft(cm, d.scroller.scrollLeft, true);\n\t signal(cm, \"scroll\", cm);\n\t }\n\t });\n\t\n\t // Listen to wheel events in order to try and update the viewport on time.\n\t on(d.scroller, \"mousewheel\", function (e) { return onScrollWheel(cm, e); });\n\t on(d.scroller, \"DOMMouseScroll\", function (e) { return onScrollWheel(cm, e); });\n\t\n\t // Prevent wrapper from ever scrolling\n\t on(d.wrapper, \"scroll\", function () { return d.wrapper.scrollTop = d.wrapper.scrollLeft = 0; });\n\t\n\t d.dragFunctions = {\n\t enter: function (e) {if (!signalDOMEvent(cm, e)) { e_stop(e); }},\n\t over: function (e) {if (!signalDOMEvent(cm, e)) { onDragOver(cm, e); e_stop(e); }},\n\t start: function (e) { return onDragStart(cm, e); },\n\t drop: operation(cm, onDrop),\n\t leave: function (e) {if (!signalDOMEvent(cm, e)) { clearDragCursor(cm); }}\n\t };\n\t\n\t var inp = d.input.getField();\n\t on(inp, \"keyup\", function (e) { return onKeyUp.call(cm, e); });\n\t on(inp, \"keydown\", operation(cm, onKeyDown));\n\t on(inp, \"keypress\", operation(cm, onKeyPress));\n\t on(inp, \"focus\", function (e) { return onFocus(cm, e); });\n\t on(inp, \"blur\", function (e) { return onBlur(cm, e); });\n\t}\n\t\n\tvar initHooks = [];\n\tCodeMirror$1.defineInitHook = function (f) { return initHooks.push(f); };\n\t\n\t// Indent the given line. The how parameter can be \"smart\",\n\t// \"add\"/null, \"subtract\", or \"prev\". When aggressive is false\n\t// (typically set to true for forced single-line indents), empty\n\t// lines are not indented, and places where the mode returns Pass\n\t// are left alone.\n\tfunction indentLine(cm, n, how, aggressive) {\n\t var doc = cm.doc, state;\n\t if (how == null) { how = \"add\"; }\n\t if (how == \"smart\") {\n\t // Fall back to \"prev\" when the mode doesn't have an indentation\n\t // method.\n\t if (!doc.mode.indent) { how = \"prev\"; }\n\t else { state = getStateBefore(cm, n); }\n\t }\n\t\n\t var tabSize = cm.options.tabSize;\n\t var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n\t if (line.stateAfter) { line.stateAfter = null; }\n\t var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n\t if (!aggressive && !/\\S/.test(line.text)) {\n\t indentation = 0;\n\t how = \"not\";\n\t } else if (how == \"smart\") {\n\t indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n\t if (indentation == Pass || indentation > 150) {\n\t if (!aggressive) { return }\n\t how = \"prev\";\n\t }\n\t }\n\t if (how == \"prev\") {\n\t if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize); }\n\t else { indentation = 0; }\n\t } else if (how == \"add\") {\n\t indentation = curSpace + cm.options.indentUnit;\n\t } else if (how == \"subtract\") {\n\t indentation = curSpace - cm.options.indentUnit;\n\t } else if (typeof how == \"number\") {\n\t indentation = curSpace + how;\n\t }\n\t indentation = Math.max(0, indentation);\n\t\n\t var indentString = \"\", pos = 0;\n\t if (cm.options.indentWithTabs)\n\t { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";} }\n\t if (pos < indentation) { indentString += spaceStr(indentation - pos); }\n\t\n\t if (indentString != curSpaceString) {\n\t replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n\t line.stateAfter = null;\n\t return true\n\t } else {\n\t // Ensure that, if the cursor was in the whitespace at the start\n\t // of the line, it is moved to the end of that space.\n\t for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\n\t var range = doc.sel.ranges[i$1];\n\t if (range.head.line == n && range.head.ch < curSpaceString.length) {\n\t var pos$1 = Pos(n, curSpaceString.length);\n\t replaceOneSelection(doc, i$1, new Range(pos$1, pos$1));\n\t break\n\t }\n\t }\n\t }\n\t}\n\t\n\t// This will be set to a {lineWise: bool, text: [string]} object, so\n\t// that, when pasting, we know what kind of selections the copied\n\t// text was made out of.\n\tvar lastCopied = null;\n\t\n\tfunction setLastCopied(newLastCopied) {\n\t lastCopied = newLastCopied;\n\t}\n\t\n\tfunction applyTextInput(cm, inserted, deleted, sel, origin) {\n\t var doc = cm.doc;\n\t cm.display.shift = false;\n\t if (!sel) { sel = doc.sel; }\n\t\n\t var paste = cm.state.pasteIncoming || origin == \"paste\";\n\t var textLines = splitLinesAuto(inserted), multiPaste = null;\n\t // When pasing N lines into N selections, insert one line per selection\n\t if (paste && sel.ranges.length > 1) {\n\t if (lastCopied && lastCopied.text.join(\"\\n\") == inserted) {\n\t if (sel.ranges.length % lastCopied.text.length == 0) {\n\t multiPaste = [];\n\t for (var i = 0; i < lastCopied.text.length; i++)\n\t { multiPaste.push(doc.splitLines(lastCopied.text[i])); }\n\t }\n\t } else if (textLines.length == sel.ranges.length) {\n\t multiPaste = map(textLines, function (l) { return [l]; });\n\t }\n\t }\n\t\n\t var updateInput;\n\t // Normal behavior is to insert the new text into every selection\n\t for (var i$1 = sel.ranges.length - 1; i$1 >= 0; i$1--) {\n\t var range$$1 = sel.ranges[i$1];\n\t var from = range$$1.from(), to = range$$1.to();\n\t if (range$$1.empty()) {\n\t if (deleted && deleted > 0) // Handle deletion\n\t { from = Pos(from.line, from.ch - deleted); }\n\t else if (cm.state.overwrite && !paste) // Handle overwrite\n\t { to = Pos(to.line, Math.min(getLine(doc, to.line).text.length, to.ch + lst(textLines).length)); }\n\t else if (lastCopied && lastCopied.lineWise && lastCopied.text.join(\"\\n\") == inserted)\n\t { from = to = Pos(from.line, 0); }\n\t }\n\t updateInput = cm.curOp.updateInput;\n\t var changeEvent = {from: from, to: to, text: multiPaste ? multiPaste[i$1 % multiPaste.length] : textLines,\n\t origin: origin || (paste ? \"paste\" : cm.state.cutIncoming ? \"cut\" : \"+input\")};\n\t makeChange(cm.doc, changeEvent);\n\t signalLater(cm, \"inputRead\", cm, changeEvent);\n\t }\n\t if (inserted && !paste)\n\t { triggerElectric(cm, inserted); }\n\t\n\t ensureCursorVisible(cm);\n\t cm.curOp.updateInput = updateInput;\n\t cm.curOp.typing = true;\n\t cm.state.pasteIncoming = cm.state.cutIncoming = false;\n\t}\n\t\n\tfunction handlePaste(e, cm) {\n\t var pasted = e.clipboardData && e.clipboardData.getData(\"Text\");\n\t if (pasted) {\n\t e.preventDefault();\n\t if (!cm.isReadOnly() && !cm.options.disableInput)\n\t { runInOp(cm, function () { return applyTextInput(cm, pasted, 0, null, \"paste\"); }); }\n\t return true\n\t }\n\t}\n\t\n\tfunction triggerElectric(cm, inserted) {\n\t // When an 'electric' character is inserted, immediately trigger a reindent\n\t if (!cm.options.electricChars || !cm.options.smartIndent) { return }\n\t var sel = cm.doc.sel;\n\t\n\t for (var i = sel.ranges.length - 1; i >= 0; i--) {\n\t var range$$1 = sel.ranges[i];\n\t if (range$$1.head.ch > 100 || (i && sel.ranges[i - 1].head.line == range$$1.head.line)) { continue }\n\t var mode = cm.getModeAt(range$$1.head);\n\t var indented = false;\n\t if (mode.electricChars) {\n\t for (var j = 0; j < mode.electricChars.length; j++)\n\t { if (inserted.indexOf(mode.electricChars.charAt(j)) > -1) {\n\t indented = indentLine(cm, range$$1.head.line, \"smart\");\n\t break\n\t } }\n\t } else if (mode.electricInput) {\n\t if (mode.electricInput.test(getLine(cm.doc, range$$1.head.line).text.slice(0, range$$1.head.ch)))\n\t { indented = indentLine(cm, range$$1.head.line, \"smart\"); }\n\t }\n\t if (indented) { signalLater(cm, \"electricInput\", cm, range$$1.head.line); }\n\t }\n\t}\n\t\n\tfunction copyableRanges(cm) {\n\t var text = [], ranges = [];\n\t for (var i = 0; i < cm.doc.sel.ranges.length; i++) {\n\t var line = cm.doc.sel.ranges[i].head.line;\n\t var lineRange = {anchor: Pos(line, 0), head: Pos(line + 1, 0)};\n\t ranges.push(lineRange);\n\t text.push(cm.getRange(lineRange.anchor, lineRange.head));\n\t }\n\t return {text: text, ranges: ranges}\n\t}\n\t\n\tfunction disableBrowserMagic(field, spellcheck) {\n\t field.setAttribute(\"autocorrect\", \"off\");\n\t field.setAttribute(\"autocapitalize\", \"off\");\n\t field.setAttribute(\"spellcheck\", !!spellcheck);\n\t}\n\t\n\tfunction hiddenTextarea() {\n\t var te = elt(\"textarea\", null, null, \"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none\");\n\t var div = elt(\"div\", [te], null, \"overflow: hidden; position: relative; width: 3px; height: 0px;\");\n\t // The textarea is kept positioned near the cursor to prevent the\n\t // fact that it'll be scrolled into view on input from scrolling\n\t // our fake cursor out of view. On webkit, when wrap=off, paste is\n\t // very slow. So make the area wide instead.\n\t if (webkit) { te.style.width = \"1000px\"; }\n\t else { te.setAttribute(\"wrap\", \"off\"); }\n\t // If border: 0; -- iOS fails to open keyboard (issue #1287)\n\t if (ios) { te.style.border = \"1px solid black\"; }\n\t disableBrowserMagic(te);\n\t return div\n\t}\n\t\n\t// The publicly visible API. Note that methodOp(f) means\n\t// 'wrap f in an operation, performed on its `this` parameter'.\n\t\n\t// This is not the complete set of editor methods. Most of the\n\t// methods defined on the Doc type are also injected into\n\t// CodeMirror.prototype, for backwards compatibility and\n\t// convenience.\n\t\n\tvar addEditorMethods = function(CodeMirror) {\n\t var optionHandlers = CodeMirror.optionHandlers;\n\t\n\t var helpers = CodeMirror.helpers = {};\n\t\n\t CodeMirror.prototype = {\n\t constructor: CodeMirror,\n\t focus: function(){window.focus(); this.display.input.focus();},\n\t\n\t setOption: function(option, value) {\n\t var options = this.options, old = options[option];\n\t if (options[option] == value && option != \"mode\") { return }\n\t options[option] = value;\n\t if (optionHandlers.hasOwnProperty(option))\n\t { operation(this, optionHandlers[option])(this, value, old); }\n\t signal(this, \"optionChange\", this, option);\n\t },\n\t\n\t getOption: function(option) {return this.options[option]},\n\t getDoc: function() {return this.doc},\n\t\n\t addKeyMap: function(map$$1, bottom) {\n\t this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map$$1));\n\t },\n\t removeKeyMap: function(map$$1) {\n\t var maps = this.state.keyMaps;\n\t for (var i = 0; i < maps.length; ++i)\n\t { if (maps[i] == map$$1 || maps[i].name == map$$1) {\n\t maps.splice(i, 1);\n\t return true\n\t } }\n\t },\n\t\n\t addOverlay: methodOp(function(spec, options) {\n\t var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n\t if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n\t insertSorted(this.state.overlays,\n\t {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n\t priority: (options && options.priority) || 0},\n\t function (overlay) { return overlay.priority; });\n\t this.state.modeGen++;\n\t regChange(this);\n\t }),\n\t removeOverlay: methodOp(function(spec) {\n\t var this$1 = this;\n\t\n\t var overlays = this.state.overlays;\n\t for (var i = 0; i < overlays.length; ++i) {\n\t var cur = overlays[i].modeSpec;\n\t if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n\t overlays.splice(i, 1);\n\t this$1.state.modeGen++;\n\t regChange(this$1);\n\t return\n\t }\n\t }\n\t }),\n\t\n\t indentLine: methodOp(function(n, dir, aggressive) {\n\t if (typeof dir != \"string\" && typeof dir != \"number\") {\n\t if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n\t else { dir = dir ? \"add\" : \"subtract\"; }\n\t }\n\t if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n\t }),\n\t indentSelection: methodOp(function(how) {\n\t var this$1 = this;\n\t\n\t var ranges = this.doc.sel.ranges, end = -1;\n\t for (var i = 0; i < ranges.length; i++) {\n\t var range$$1 = ranges[i];\n\t if (!range$$1.empty()) {\n\t var from = range$$1.from(), to = range$$1.to();\n\t var start = Math.max(end, from.line);\n\t end = Math.min(this$1.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n\t for (var j = start; j < end; ++j)\n\t { indentLine(this$1, j, how); }\n\t var newRanges = this$1.doc.sel.ranges;\n\t if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n\t { replaceOneSelection(this$1.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n\t } else if (range$$1.head.line > end) {\n\t indentLine(this$1, range$$1.head.line, how, true);\n\t end = range$$1.head.line;\n\t if (i == this$1.doc.sel.primIndex) { ensureCursorVisible(this$1); }\n\t }\n\t }\n\t }),\n\t\n\t // Fetch the parser token for a given character. Useful for hacks\n\t // that want to inspect the mode state (say, for completion).\n\t getTokenAt: function(pos, precise) {\n\t return takeToken(this, pos, precise)\n\t },\n\t\n\t getLineTokens: function(line, precise) {\n\t return takeToken(this, Pos(line), precise, true)\n\t },\n\t\n\t getTokenTypeAt: function(pos) {\n\t pos = clipPos(this.doc, pos);\n\t var styles = getLineStyles(this, getLine(this.doc, pos.line));\n\t var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n\t var type;\n\t if (ch == 0) { type = styles[2]; }\n\t else { for (;;) {\n\t var mid = (before + after) >> 1;\n\t if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n\t else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n\t else { type = styles[mid * 2 + 2]; break }\n\t } }\n\t var cut = type ? type.indexOf(\"overlay \") : -1;\n\t return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n\t },\n\t\n\t getModeAt: function(pos) {\n\t var mode = this.doc.mode;\n\t if (!mode.innerMode) { return mode }\n\t return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n\t },\n\t\n\t getHelper: function(pos, type) {\n\t return this.getHelpers(pos, type)[0]\n\t },\n\t\n\t getHelpers: function(pos, type) {\n\t var this$1 = this;\n\t\n\t var found = [];\n\t if (!helpers.hasOwnProperty(type)) { return found }\n\t var help = helpers[type], mode = this.getModeAt(pos);\n\t if (typeof mode[type] == \"string\") {\n\t if (help[mode[type]]) { found.push(help[mode[type]]); }\n\t } else if (mode[type]) {\n\t for (var i = 0; i < mode[type].length; i++) {\n\t var val = help[mode[type][i]];\n\t if (val) { found.push(val); }\n\t }\n\t } else if (mode.helperType && help[mode.helperType]) {\n\t found.push(help[mode.helperType]);\n\t } else if (help[mode.name]) {\n\t found.push(help[mode.name]);\n\t }\n\t for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n\t var cur = help._global[i$1];\n\t if (cur.pred(mode, this$1) && indexOf(found, cur.val) == -1)\n\t { found.push(cur.val); }\n\t }\n\t return found\n\t },\n\t\n\t getStateAfter: function(line, precise) {\n\t var doc = this.doc;\n\t line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n\t return getStateBefore(this, line + 1, precise)\n\t },\n\t\n\t cursorCoords: function(start, mode) {\n\t var pos, range$$1 = this.doc.sel.primary();\n\t if (start == null) { pos = range$$1.head; }\n\t else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n\t else { pos = start ? range$$1.from() : range$$1.to(); }\n\t return cursorCoords(this, pos, mode || \"page\")\n\t },\n\t\n\t charCoords: function(pos, mode) {\n\t return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n\t },\n\t\n\t coordsChar: function(coords, mode) {\n\t coords = fromCoordSystem(this, coords, mode || \"page\");\n\t return coordsChar(this, coords.left, coords.top)\n\t },\n\t\n\t lineAtHeight: function(height, mode) {\n\t height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n\t return lineAtHeight(this.doc, height + this.display.viewOffset)\n\t },\n\t heightAtLine: function(line, mode, includeWidgets) {\n\t var end = false, lineObj;\n\t if (typeof line == \"number\") {\n\t var last = this.doc.first + this.doc.size - 1;\n\t if (line < this.doc.first) { line = this.doc.first; }\n\t else if (line > last) { line = last; end = true; }\n\t lineObj = getLine(this.doc, line);\n\t } else {\n\t lineObj = line;\n\t }\n\t return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n\t (end ? this.doc.height - heightAtLine(lineObj) : 0)\n\t },\n\t\n\t defaultTextHeight: function() { return textHeight(this.display) },\n\t defaultCharWidth: function() { return charWidth(this.display) },\n\t\n\t getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\t\n\t addWidget: function(pos, node, scroll, vert, horiz) {\n\t var display = this.display;\n\t pos = cursorCoords(this, clipPos(this.doc, pos));\n\t var top = pos.bottom, left = pos.left;\n\t node.style.position = \"absolute\";\n\t node.setAttribute(\"cm-ignore-events\", \"true\");\n\t this.display.input.setUneditable(node);\n\t display.sizer.appendChild(node);\n\t if (vert == \"over\") {\n\t top = pos.top;\n\t } else if (vert == \"above\" || vert == \"near\") {\n\t var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n\t hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n\t // Default to positioning above (if specified and possible); otherwise default to positioning below\n\t if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n\t { top = pos.top - node.offsetHeight; }\n\t else if (pos.bottom + node.offsetHeight <= vspace)\n\t { top = pos.bottom; }\n\t if (left + node.offsetWidth > hspace)\n\t { left = hspace - node.offsetWidth; }\n\t }\n\t node.style.top = top + \"px\";\n\t node.style.left = node.style.right = \"\";\n\t if (horiz == \"right\") {\n\t left = display.sizer.clientWidth - node.offsetWidth;\n\t node.style.right = \"0px\";\n\t } else {\n\t if (horiz == \"left\") { left = 0; }\n\t else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n\t node.style.left = left + \"px\";\n\t }\n\t if (scroll)\n\t { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n\t },\n\t\n\t triggerOnKeyDown: methodOp(onKeyDown),\n\t triggerOnKeyPress: methodOp(onKeyPress),\n\t triggerOnKeyUp: onKeyUp,\n\t\n\t execCommand: function(cmd) {\n\t if (commands.hasOwnProperty(cmd))\n\t { return commands[cmd].call(null, this) }\n\t },\n\t\n\t triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\t\n\t findPosH: function(from, amount, unit, visually) {\n\t var this$1 = this;\n\t\n\t var dir = 1;\n\t if (amount < 0) { dir = -1; amount = -amount; }\n\t var cur = clipPos(this.doc, from);\n\t for (var i = 0; i < amount; ++i) {\n\t cur = findPosH(this$1.doc, cur, dir, unit, visually);\n\t if (cur.hitSide) { break }\n\t }\n\t return cur\n\t },\n\t\n\t moveH: methodOp(function(dir, unit) {\n\t var this$1 = this;\n\t\n\t this.extendSelectionsBy(function (range$$1) {\n\t if (this$1.display.shift || this$1.doc.extend || range$$1.empty())\n\t { return findPosH(this$1.doc, range$$1.head, dir, unit, this$1.options.rtlMoveVisually) }\n\t else\n\t { return dir < 0 ? range$$1.from() : range$$1.to() }\n\t }, sel_move);\n\t }),\n\t\n\t deleteH: methodOp(function(dir, unit) {\n\t var sel = this.doc.sel, doc = this.doc;\n\t if (sel.somethingSelected())\n\t { doc.replaceSelection(\"\", null, \"+delete\"); }\n\t else\n\t { deleteNearSelection(this, function (range$$1) {\n\t var other = findPosH(doc, range$$1.head, dir, unit, false);\n\t return dir < 0 ? {from: other, to: range$$1.head} : {from: range$$1.head, to: other}\n\t }); }\n\t }),\n\t\n\t findPosV: function(from, amount, unit, goalColumn) {\n\t var this$1 = this;\n\t\n\t var dir = 1, x = goalColumn;\n\t if (amount < 0) { dir = -1; amount = -amount; }\n\t var cur = clipPos(this.doc, from);\n\t for (var i = 0; i < amount; ++i) {\n\t var coords = cursorCoords(this$1, cur, \"div\");\n\t if (x == null) { x = coords.left; }\n\t else { coords.left = x; }\n\t cur = findPosV(this$1, coords, dir, unit);\n\t if (cur.hitSide) { break }\n\t }\n\t return cur\n\t },\n\t\n\t moveV: methodOp(function(dir, unit) {\n\t var this$1 = this;\n\t\n\t var doc = this.doc, goals = [];\n\t var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n\t doc.extendSelectionsBy(function (range$$1) {\n\t if (collapse)\n\t { return dir < 0 ? range$$1.from() : range$$1.to() }\n\t var headPos = cursorCoords(this$1, range$$1.head, \"div\");\n\t if (range$$1.goalColumn != null) { headPos.left = range$$1.goalColumn; }\n\t goals.push(headPos.left);\n\t var pos = findPosV(this$1, headPos, dir, unit);\n\t if (unit == \"page\" && range$$1 == doc.sel.primary())\n\t { addToScrollPos(this$1, null, charCoords(this$1, pos, \"div\").top - headPos.top); }\n\t return pos\n\t }, sel_move);\n\t if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n\t { doc.sel.ranges[i].goalColumn = goals[i]; } }\n\t }),\n\t\n\t // Find the word at the given position (as returned by coordsChar).\n\t findWordAt: function(pos) {\n\t var doc = this.doc, line = getLine(doc, pos.line).text;\n\t var start = pos.ch, end = pos.ch;\n\t if (line) {\n\t var helper = this.getHelper(pos, \"wordChars\");\n\t if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n\t var startChar = line.charAt(start);\n\t var check = isWordChar(startChar, helper)\n\t ? function (ch) { return isWordChar(ch, helper); }\n\t : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n\t : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n\t while (start > 0 && check(line.charAt(start - 1))) { --start; }\n\t while (end < line.length && check(line.charAt(end))) { ++end; }\n\t }\n\t return new Range(Pos(pos.line, start), Pos(pos.line, end))\n\t },\n\t\n\t toggleOverwrite: function(value) {\n\t if (value != null && value == this.state.overwrite) { return }\n\t if (this.state.overwrite = !this.state.overwrite)\n\t { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\t else\n\t { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\t\n\t signal(this, \"overwriteToggle\", this, this.state.overwrite);\n\t },\n\t hasFocus: function() { return this.display.input.getField() == activeElt() },\n\t isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\t\n\t scrollTo: methodOp(function(x, y) {\n\t if (x != null || y != null) { resolveScrollToPos(this); }\n\t if (x != null) { this.curOp.scrollLeft = x; }\n\t if (y != null) { this.curOp.scrollTop = y; }\n\t }),\n\t getScrollInfo: function() {\n\t var scroller = this.display.scroller;\n\t return {left: scroller.scrollLeft, top: scroller.scrollTop,\n\t height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n\t width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n\t clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n\t },\n\t\n\t scrollIntoView: methodOp(function(range$$1, margin) {\n\t if (range$$1 == null) {\n\t range$$1 = {from: this.doc.sel.primary().head, to: null};\n\t if (margin == null) { margin = this.options.cursorScrollMargin; }\n\t } else if (typeof range$$1 == \"number\") {\n\t range$$1 = {from: Pos(range$$1, 0), to: null};\n\t } else if (range$$1.from == null) {\n\t range$$1 = {from: range$$1, to: null};\n\t }\n\t if (!range$$1.to) { range$$1.to = range$$1.from; }\n\t range$$1.margin = margin || 0;\n\t\n\t if (range$$1.from.line != null) {\n\t resolveScrollToPos(this);\n\t this.curOp.scrollToPos = range$$1;\n\t } else {\n\t var sPos = calculateScrollPos(this, {\n\t left: Math.min(range$$1.from.left, range$$1.to.left),\n\t top: Math.min(range$$1.from.top, range$$1.to.top) - range$$1.margin,\n\t right: Math.max(range$$1.from.right, range$$1.to.right),\n\t bottom: Math.max(range$$1.from.bottom, range$$1.to.bottom) + range$$1.margin\n\t });\n\t this.scrollTo(sPos.scrollLeft, sPos.scrollTop);\n\t }\n\t }),\n\t\n\t setSize: methodOp(function(width, height) {\n\t var this$1 = this;\n\t\n\t var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n\t if (width != null) { this.display.wrapper.style.width = interpret(width); }\n\t if (height != null) { this.display.wrapper.style.height = interpret(height); }\n\t if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n\t var lineNo$$1 = this.display.viewFrom;\n\t this.doc.iter(lineNo$$1, this.display.viewTo, function (line) {\n\t if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n\t { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo$$1, \"widget\"); break } } }\n\t ++lineNo$$1;\n\t });\n\t this.curOp.forceUpdate = true;\n\t signal(this, \"refresh\", this);\n\t }),\n\t\n\t operation: function(f){return runInOp(this, f)},\n\t\n\t refresh: methodOp(function() {\n\t var oldHeight = this.display.cachedTextHeight;\n\t regChange(this);\n\t this.curOp.forceUpdate = true;\n\t clearCaches(this);\n\t this.scrollTo(this.doc.scrollLeft, this.doc.scrollTop);\n\t updateGutterSpace(this);\n\t if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5)\n\t { estimateLineHeights(this); }\n\t signal(this, \"refresh\", this);\n\t }),\n\t\n\t swapDoc: methodOp(function(doc) {\n\t var old = this.doc;\n\t old.cm = null;\n\t attachDoc(this, doc);\n\t clearCaches(this);\n\t this.display.input.reset();\n\t this.scrollTo(doc.scrollLeft, doc.scrollTop);\n\t this.curOp.forceScroll = true;\n\t signalLater(this, \"swapDoc\", this, old);\n\t return old\n\t }),\n\t\n\t getInputField: function(){return this.display.input.getField()},\n\t getWrapperElement: function(){return this.display.wrapper},\n\t getScrollerElement: function(){return this.display.scroller},\n\t getGutterElement: function(){return this.display.gutters}\n\t };\n\t eventMixin(CodeMirror);\n\t\n\t CodeMirror.registerHelper = function(type, name, value) {\n\t if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n\t helpers[type][name] = value;\n\t };\n\t CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n\t CodeMirror.registerHelper(type, name, value);\n\t helpers[type]._global.push({pred: predicate, val: value});\n\t };\n\t};\n\t\n\t// Used for horizontal relative motion. Dir is -1 or 1 (left or\n\t// right), unit can be \"char\", \"column\" (like char, but doesn't\n\t// cross line boundaries), \"word\" (across next word), or \"group\" (to\n\t// the start of next group of word or non-word-non-whitespace\n\t// chars). The visually param controls whether, in right-to-left\n\t// text, direction 1 means to move towards the next index in the\n\t// string, or towards the character to the right of the current\n\t// position. The resulting position will have a hitSide=true\n\t// property if it reached the end of the document.\n\tfunction findPosH(doc, pos, dir, unit, visually) {\n\t var oldPos = pos;\n\t var origDir = dir;\n\t var lineObj = getLine(doc, pos.line);\n\t function findNextLine() {\n\t var l = pos.line + dir;\n\t if (l < doc.first || l >= doc.first + doc.size) { return false }\n\t pos = new Pos(l, pos.ch, pos.sticky);\n\t return lineObj = getLine(doc, l)\n\t }\n\t function moveOnce(boundToLine) {\n\t var next;\n\t if (visually) {\n\t next = moveVisually(doc.cm, lineObj, pos, dir);\n\t } else {\n\t next = moveLogically(lineObj, pos, dir);\n\t }\n\t if (next == null) {\n\t if (!boundToLine && findNextLine())\n\t { pos = endOfLine(visually, doc.cm, lineObj, pos.line, dir); }\n\t else\n\t { return false }\n\t } else {\n\t pos = next;\n\t }\n\t return true\n\t }\n\t\n\t if (unit == \"char\") {\n\t moveOnce();\n\t } else if (unit == \"column\") {\n\t moveOnce(true);\n\t } else if (unit == \"word\" || unit == \"group\") {\n\t var sawType = null, group = unit == \"group\";\n\t var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n\t for (var first = true;; first = false) {\n\t if (dir < 0 && !moveOnce(!first)) { break }\n\t var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n\t var type = isWordChar(cur, helper) ? \"w\"\n\t : group && cur == \"\\n\" ? \"n\"\n\t : !group || /\\s/.test(cur) ? null\n\t : \"p\";\n\t if (group && !first && !type) { type = \"s\"; }\n\t if (sawType && sawType != type) {\n\t if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n\t break\n\t }\n\t\n\t if (type) { sawType = type; }\n\t if (dir > 0 && !moveOnce(!first)) { break }\n\t }\n\t }\n\t var result = skipAtomic(doc, pos, oldPos, origDir, true);\n\t if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n\t return result\n\t}\n\t\n\t// For relative vertical movement. Dir may be -1 or 1. Unit can be\n\t// \"page\" or \"line\". The resulting position will have a hitSide=true\n\t// property if it reached the end of the document.\n\tfunction findPosV(cm, pos, dir, unit) {\n\t var doc = cm.doc, x = pos.left, y;\n\t if (unit == \"page\") {\n\t var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n\t var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n\t y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\t\n\t } else if (unit == \"line\") {\n\t y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n\t }\n\t var target;\n\t for (;;) {\n\t target = coordsChar(cm, x, y);\n\t if (!target.outside) { break }\n\t if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n\t y += dir * 5;\n\t }\n\t return target\n\t}\n\t\n\t// CONTENTEDITABLE INPUT STYLE\n\t\n\tvar ContentEditableInput = function(cm) {\n\t this.cm = cm;\n\t this.lastAnchorNode = this.lastAnchorOffset = this.lastFocusNode = this.lastFocusOffset = null;\n\t this.polling = new Delayed();\n\t this.composing = null;\n\t this.gracePeriod = false;\n\t this.readDOMTimeout = null;\n\t};\n\t\n\tContentEditableInput.prototype.init = function (display) {\n\t var this$1 = this;\n\t\n\t var input = this, cm = input.cm;\n\t var div = input.div = display.lineDiv;\n\t disableBrowserMagic(div, cm.options.spellcheck);\n\t\n\t on(div, \"paste\", function (e) {\n\t if (signalDOMEvent(cm, e) || handlePaste(e, cm)) { return }\n\t // IE doesn't fire input events, so we schedule a read for the pasted content in this way\n\t if (ie_version <= 11) { setTimeout(operation(cm, function () { return this$1.updateFromDOM(); }), 20); }\n\t });\n\t\n\t on(div, \"compositionstart\", function (e) {\n\t this$1.composing = {data: e.data, done: false};\n\t });\n\t on(div, \"compositionupdate\", function (e) {\n\t if (!this$1.composing) { this$1.composing = {data: e.data, done: false}; }\n\t });\n\t on(div, \"compositionend\", function (e) {\n\t if (this$1.composing) {\n\t if (e.data != this$1.composing.data) { this$1.readFromDOMSoon(); }\n\t this$1.composing.done = true;\n\t }\n\t });\n\t\n\t on(div, \"touchstart\", function () { return input.forceCompositionEnd(); });\n\t\n\t on(div, \"input\", function () {\n\t if (!this$1.composing) { this$1.readFromDOMSoon(); }\n\t });\n\t\n\t function onCopyCut(e) {\n\t if (signalDOMEvent(cm, e)) { return }\n\t if (cm.somethingSelected()) {\n\t setLastCopied({lineWise: false, text: cm.getSelections()});\n\t if (e.type == \"cut\") { cm.replaceSelection(\"\", null, \"cut\"); }\n\t } else if (!cm.options.lineWiseCopyCut) {\n\t return\n\t } else {\n\t var ranges = copyableRanges(cm);\n\t setLastCopied({lineWise: true, text: ranges.text});\n\t if (e.type == \"cut\") {\n\t cm.operation(function () {\n\t cm.setSelections(ranges.ranges, 0, sel_dontScroll);\n\t cm.replaceSelection(\"\", null, \"cut\");\n\t });\n\t }\n\t }\n\t if (e.clipboardData) {\n\t e.clipboardData.clearData();\n\t var content = lastCopied.text.join(\"\\n\");\n\t // iOS exposes the clipboard API, but seems to discard content inserted into it\n\t e.clipboardData.setData(\"Text\", content);\n\t if (e.clipboardData.getData(\"Text\") == content) {\n\t e.preventDefault();\n\t return\n\t }\n\t }\n\t // Old-fashioned briefly-focus-a-textarea hack\n\t var kludge = hiddenTextarea(), te = kludge.firstChild;\n\t cm.display.lineSpace.insertBefore(kludge, cm.display.lineSpace.firstChild);\n\t te.value = lastCopied.text.join(\"\\n\");\n\t var hadFocus = document.activeElement;\n\t selectInput(te);\n\t setTimeout(function () {\n\t cm.display.lineSpace.removeChild(kludge);\n\t hadFocus.focus();\n\t if (hadFocus == div) { input.showPrimarySelection(); }\n\t }, 50);\n\t }\n\t on(div, \"copy\", onCopyCut);\n\t on(div, \"cut\", onCopyCut);\n\t};\n\t\n\tContentEditableInput.prototype.prepareSelection = function () {\n\t var result = prepareSelection(this.cm, false);\n\t result.focus = this.cm.state.focused;\n\t return result\n\t};\n\t\n\tContentEditableInput.prototype.showSelection = function (info, takeFocus) {\n\t if (!info || !this.cm.display.view.length) { return }\n\t if (info.focus || takeFocus) { this.showPrimarySelection(); }\n\t this.showMultipleSelections(info);\n\t};\n\t\n\tContentEditableInput.prototype.showPrimarySelection = function () {\n\t var sel = window.getSelection(), prim = this.cm.doc.sel.primary();\n\t var curAnchor = domToPos(this.cm, sel.anchorNode, sel.anchorOffset);\n\t var curFocus = domToPos(this.cm, sel.focusNode, sel.focusOffset);\n\t if (curAnchor && !curAnchor.bad && curFocus && !curFocus.bad &&\n\t cmp(minPos(curAnchor, curFocus), prim.from()) == 0 &&\n\t cmp(maxPos(curAnchor, curFocus), prim.to()) == 0)\n\t { return }\n\t\n\t var start = posToDOM(this.cm, prim.from());\n\t var end = posToDOM(this.cm, prim.to());\n\t if (!start && !end) {\n\t sel.removeAllRanges();\n\t return\n\t }\n\t\n\t var view = this.cm.display.view;\n\t var old = sel.rangeCount && sel.getRangeAt(0);\n\t if (!start) {\n\t start = {node: view[0].measure.map[2], offset: 0};\n\t } else if (!end) { // FIXME dangerously hacky\n\t var measure = view[view.length - 1].measure;\n\t var map$$1 = measure.maps ? measure.maps[measure.maps.length - 1] : measure.map;\n\t end = {node: map$$1[map$$1.length - 1], offset: map$$1[map$$1.length - 2] - map$$1[map$$1.length - 3]};\n\t }\n\t\n\t var rng;\n\t try { rng = range(start.node, start.offset, end.offset, end.node); }\n\t catch(e) {} // Our model of the DOM might be outdated, in which case the range we try to set can be impossible\n\t if (rng) {\n\t if (!gecko && this.cm.state.focused) {\n\t sel.collapse(start.node, start.offset);\n\t if (!rng.collapsed) {\n\t sel.removeAllRanges();\n\t sel.addRange(rng);\n\t }\n\t } else {\n\t sel.removeAllRanges();\n\t sel.addRange(rng);\n\t }\n\t if (old && sel.anchorNode == null) { sel.addRange(old); }\n\t else if (gecko) { this.startGracePeriod(); }\n\t }\n\t this.rememberSelection();\n\t};\n\t\n\tContentEditableInput.prototype.startGracePeriod = function () {\n\t var this$1 = this;\n\t\n\t clearTimeout(this.gracePeriod);\n\t this.gracePeriod = setTimeout(function () {\n\t this$1.gracePeriod = false;\n\t if (this$1.selectionChanged())\n\t { this$1.cm.operation(function () { return this$1.cm.curOp.selectionChanged = true; }); }\n\t }, 20);\n\t};\n\t\n\tContentEditableInput.prototype.showMultipleSelections = function (info) {\n\t removeChildrenAndAdd(this.cm.display.cursorDiv, info.cursors);\n\t removeChildrenAndAdd(this.cm.display.selectionDiv, info.selection);\n\t};\n\t\n\tContentEditableInput.prototype.rememberSelection = function () {\n\t var sel = window.getSelection();\n\t this.lastAnchorNode = sel.anchorNode; this.lastAnchorOffset = sel.anchorOffset;\n\t this.lastFocusNode = sel.focusNode; this.lastFocusOffset = sel.focusOffset;\n\t};\n\t\n\tContentEditableInput.prototype.selectionInEditor = function () {\n\t var sel = window.getSelection();\n\t if (!sel.rangeCount) { return false }\n\t var node = sel.getRangeAt(0).commonAncestorContainer;\n\t return contains(this.div, node)\n\t};\n\t\n\tContentEditableInput.prototype.focus = function () {\n\t if (this.cm.options.readOnly != \"nocursor\") {\n\t if (!this.selectionInEditor())\n\t { this.showSelection(this.prepareSelection(), true); }\n\t this.div.focus();\n\t }\n\t};\n\tContentEditableInput.prototype.blur = function () { this.div.blur(); };\n\tContentEditableInput.prototype.getField = function () { return this.div };\n\t\n\tContentEditableInput.prototype.supportsTouch = function () { return true };\n\t\n\tContentEditableInput.prototype.receivedFocus = function () {\n\t var input = this;\n\t if (this.selectionInEditor())\n\t { this.pollSelection(); }\n\t else\n\t { runInOp(this.cm, function () { return input.cm.curOp.selectionChanged = true; }); }\n\t\n\t function poll() {\n\t if (input.cm.state.focused) {\n\t input.pollSelection();\n\t input.polling.set(input.cm.options.pollInterval, poll);\n\t }\n\t }\n\t this.polling.set(this.cm.options.pollInterval, poll);\n\t};\n\t\n\tContentEditableInput.prototype.selectionChanged = function () {\n\t var sel = window.getSelection();\n\t return sel.anchorNode != this.lastAnchorNode || sel.anchorOffset != this.lastAnchorOffset ||\n\t sel.focusNode != this.lastFocusNode || sel.focusOffset != this.lastFocusOffset\n\t};\n\t\n\tContentEditableInput.prototype.pollSelection = function () {\n\t if (this.readDOMTimeout != null || this.gracePeriod || !this.selectionChanged()) { return }\n\t var sel = window.getSelection(), cm = this.cm;\n\t // On Android Chrome (version 56, at least), backspacing into an\n\t // uneditable block element will put the cursor in that element,\n\t // and then, because it's not editable, hide the virtual keyboard.\n\t // Because Android doesn't allow us to actually detect backspace\n\t // presses in a sane way, this code checks for when that happens\n\t // and simulates a backspace press in this case.\n\t if (android && chrome && this.cm.options.gutters.length && isInGutter(sel.anchorNode)) {\n\t this.cm.triggerOnKeyDown({type: \"keydown\", keyCode: 8, preventDefault: Math.abs});\n\t this.blur();\n\t this.focus();\n\t return\n\t }\n\t if (this.composing) { return }\n\t this.rememberSelection();\n\t var anchor = domToPos(cm, sel.anchorNode, sel.anchorOffset);\n\t var head = domToPos(cm, sel.focusNode, sel.focusOffset);\n\t if (anchor && head) { runInOp(cm, function () {\n\t setSelection(cm.doc, simpleSelection(anchor, head), sel_dontScroll);\n\t if (anchor.bad || head.bad) { cm.curOp.selectionChanged = true; }\n\t }); }\n\t};\n\t\n\tContentEditableInput.prototype.pollContent = function () {\n\t if (this.readDOMTimeout != null) {\n\t clearTimeout(this.readDOMTimeout);\n\t this.readDOMTimeout = null;\n\t }\n\t\n\t var cm = this.cm, display = cm.display, sel = cm.doc.sel.primary();\n\t var from = sel.from(), to = sel.to();\n\t if (from.ch == 0 && from.line > cm.firstLine())\n\t { from = Pos(from.line - 1, getLine(cm.doc, from.line - 1).length); }\n\t if (to.ch == getLine(cm.doc, to.line).text.length && to.line < cm.lastLine())\n\t { to = Pos(to.line + 1, 0); }\n\t if (from.line < display.viewFrom || to.line > display.viewTo - 1) { return false }\n\t\n\t var fromIndex, fromLine, fromNode;\n\t if (from.line == display.viewFrom || (fromIndex = findViewIndex(cm, from.line)) == 0) {\n\t fromLine = lineNo(display.view[0].line);\n\t fromNode = display.view[0].node;\n\t } else {\n\t fromLine = lineNo(display.view[fromIndex].line);\n\t fromNode = display.view[fromIndex - 1].node.nextSibling;\n\t }\n\t var toIndex = findViewIndex(cm, to.line);\n\t var toLine, toNode;\n\t if (toIndex == display.view.length - 1) {\n\t toLine = display.viewTo - 1;\n\t toNode = display.lineDiv.lastChild;\n\t } else {\n\t toLine = lineNo(display.view[toIndex + 1].line) - 1;\n\t toNode = display.view[toIndex + 1].node.previousSibling;\n\t }\n\t\n\t if (!fromNode) { return false }\n\t var newText = cm.doc.splitLines(domTextBetween(cm, fromNode, toNode, fromLine, toLine));\n\t var oldText = getBetween(cm.doc, Pos(fromLine, 0), Pos(toLine, getLine(cm.doc, toLine).text.length));\n\t while (newText.length > 1 && oldText.length > 1) {\n\t if (lst(newText) == lst(oldText)) { newText.pop(); oldText.pop(); toLine--; }\n\t else if (newText[0] == oldText[0]) { newText.shift(); oldText.shift(); fromLine++; }\n\t else { break }\n\t }\n\t\n\t var cutFront = 0, cutEnd = 0;\n\t var newTop = newText[0], oldTop = oldText[0], maxCutFront = Math.min(newTop.length, oldTop.length);\n\t while (cutFront < maxCutFront && newTop.charCodeAt(cutFront) == oldTop.charCodeAt(cutFront))\n\t { ++cutFront; }\n\t var newBot = lst(newText), oldBot = lst(oldText);\n\t var maxCutEnd = Math.min(newBot.length - (newText.length == 1 ? cutFront : 0),\n\t oldBot.length - (oldText.length == 1 ? cutFront : 0));\n\t while (cutEnd < maxCutEnd &&\n\t newBot.charCodeAt(newBot.length - cutEnd - 1) == oldBot.charCodeAt(oldBot.length - cutEnd - 1))\n\t { ++cutEnd; }\n\t // Try to move start of change to start of selection if ambiguous\n\t if (newText.length == 1 && oldText.length == 1 && fromLine == from.line) {\n\t while (cutFront && cutFront > from.ch &&\n\t newBot.charCodeAt(newBot.length - cutEnd - 1) == oldBot.charCodeAt(oldBot.length - cutEnd - 1)) {\n\t cutFront--;\n\t cutEnd++;\n\t }\n\t }\n\t\n\t newText[newText.length - 1] = newBot.slice(0, newBot.length - cutEnd).replace(/^\\u200b+/, \"\");\n\t newText[0] = newText[0].slice(cutFront).replace(/\\u200b+$/, \"\");\n\t\n\t var chFrom = Pos(fromLine, cutFront);\n\t var chTo = Pos(toLine, oldText.length ? lst(oldText).length - cutEnd : 0);\n\t if (newText.length > 1 || newText[0] || cmp(chFrom, chTo)) {\n\t replaceRange(cm.doc, newText, chFrom, chTo, \"+input\");\n\t return true\n\t }\n\t};\n\t\n\tContentEditableInput.prototype.ensurePolled = function () {\n\t this.forceCompositionEnd();\n\t};\n\tContentEditableInput.prototype.reset = function () {\n\t this.forceCompositionEnd();\n\t};\n\tContentEditableInput.prototype.forceCompositionEnd = function () {\n\t if (!this.composing) { return }\n\t clearTimeout(this.readDOMTimeout);\n\t this.composing = null;\n\t this.updateFromDOM();\n\t this.div.blur();\n\t this.div.focus();\n\t};\n\tContentEditableInput.prototype.readFromDOMSoon = function () {\n\t var this$1 = this;\n\t\n\t if (this.readDOMTimeout != null) { return }\n\t this.readDOMTimeout = setTimeout(function () {\n\t this$1.readDOMTimeout = null;\n\t if (this$1.composing) {\n\t if (this$1.composing.done) { this$1.composing = null; }\n\t else { return }\n\t }\n\t this$1.updateFromDOM();\n\t }, 80);\n\t};\n\t\n\tContentEditableInput.prototype.updateFromDOM = function () {\n\t var this$1 = this;\n\t\n\t if (this.cm.isReadOnly() || !this.pollContent())\n\t { runInOp(this.cm, function () { return regChange(this$1.cm); }); }\n\t};\n\t\n\tContentEditableInput.prototype.setUneditable = function (node) {\n\t node.contentEditable = \"false\";\n\t};\n\t\n\tContentEditableInput.prototype.onKeyPress = function (e) {\n\t if (e.charCode == 0) { return }\n\t e.preventDefault();\n\t if (!this.cm.isReadOnly())\n\t { operation(this.cm, applyTextInput)(this.cm, String.fromCharCode(e.charCode == null ? e.keyCode : e.charCode), 0); }\n\t};\n\t\n\tContentEditableInput.prototype.readOnlyChanged = function (val) {\n\t this.div.contentEditable = String(val != \"nocursor\");\n\t};\n\t\n\tContentEditableInput.prototype.onContextMenu = function () {};\n\tContentEditableInput.prototype.resetPosition = function () {};\n\t\n\tContentEditableInput.prototype.needsContentAttribute = true;\n\t\n\tfunction posToDOM(cm, pos) {\n\t var view = findViewForLine(cm, pos.line);\n\t if (!view || view.hidden) { return null }\n\t var line = getLine(cm.doc, pos.line);\n\t var info = mapFromLineView(view, line, pos.line);\n\t\n\t var order = getOrder(line, cm.doc.direction), side = \"left\";\n\t if (order) {\n\t var partPos = getBidiPartAt(order, pos.ch);\n\t side = partPos % 2 ? \"right\" : \"left\";\n\t }\n\t var result = nodeAndOffsetInLineMap(info.map, pos.ch, side);\n\t result.offset = result.collapse == \"right\" ? result.end : result.start;\n\t return result\n\t}\n\t\n\tfunction isInGutter(node) {\n\t for (var scan = node; scan; scan = scan.parentNode)\n\t { if (/CodeMirror-gutter-wrapper/.test(scan.className)) { return true } }\n\t return false\n\t}\n\t\n\tfunction badPos(pos, bad) { if (bad) { pos.bad = true; } return pos }\n\t\n\tfunction domTextBetween(cm, from, to, fromLine, toLine) {\n\t var text = \"\", closing = false, lineSep = cm.doc.lineSeparator();\n\t function recognizeMarker(id) { return function (marker) { return marker.id == id; } }\n\t function close() {\n\t if (closing) {\n\t text += lineSep;\n\t closing = false;\n\t }\n\t }\n\t function addText(str) {\n\t if (str) {\n\t close();\n\t text += str;\n\t }\n\t }\n\t function walk(node) {\n\t if (node.nodeType == 1) {\n\t var cmText = node.getAttribute(\"cm-text\");\n\t if (cmText != null) {\n\t addText(cmText || node.textContent.replace(/\\u200b/g, \"\"));\n\t return\n\t }\n\t var markerID = node.getAttribute(\"cm-marker\"), range$$1;\n\t if (markerID) {\n\t var found = cm.findMarks(Pos(fromLine, 0), Pos(toLine + 1, 0), recognizeMarker(+markerID));\n\t if (found.length && (range$$1 = found[0].find()))\n\t { addText(getBetween(cm.doc, range$$1.from, range$$1.to).join(lineSep)); }\n\t return\n\t }\n\t if (node.getAttribute(\"contenteditable\") == \"false\") { return }\n\t var isBlock = /^(pre|div|p)$/i.test(node.nodeName);\n\t if (isBlock) { close(); }\n\t for (var i = 0; i < node.childNodes.length; i++)\n\t { walk(node.childNodes[i]); }\n\t if (isBlock) { closing = true; }\n\t } else if (node.nodeType == 3) {\n\t addText(node.nodeValue);\n\t }\n\t }\n\t for (;;) {\n\t walk(from);\n\t if (from == to) { break }\n\t from = from.nextSibling;\n\t }\n\t return text\n\t}\n\t\n\tfunction domToPos(cm, node, offset) {\n\t var lineNode;\n\t if (node == cm.display.lineDiv) {\n\t lineNode = cm.display.lineDiv.childNodes[offset];\n\t if (!lineNode) { return badPos(cm.clipPos(Pos(cm.display.viewTo - 1)), true) }\n\t node = null; offset = 0;\n\t } else {\n\t for (lineNode = node;; lineNode = lineNode.parentNode) {\n\t if (!lineNode || lineNode == cm.display.lineDiv) { return null }\n\t if (lineNode.parentNode && lineNode.parentNode == cm.display.lineDiv) { break }\n\t }\n\t }\n\t for (var i = 0; i < cm.display.view.length; i++) {\n\t var lineView = cm.display.view[i];\n\t if (lineView.node == lineNode)\n\t { return locateNodeInLineView(lineView, node, offset) }\n\t }\n\t}\n\t\n\tfunction locateNodeInLineView(lineView, node, offset) {\n\t var wrapper = lineView.text.firstChild, bad = false;\n\t if (!node || !contains(wrapper, node)) { return badPos(Pos(lineNo(lineView.line), 0), true) }\n\t if (node == wrapper) {\n\t bad = true;\n\t node = wrapper.childNodes[offset];\n\t offset = 0;\n\t if (!node) {\n\t var line = lineView.rest ? lst(lineView.rest) : lineView.line;\n\t return badPos(Pos(lineNo(line), line.text.length), bad)\n\t }\n\t }\n\t\n\t var textNode = node.nodeType == 3 ? node : null, topNode = node;\n\t if (!textNode && node.childNodes.length == 1 && node.firstChild.nodeType == 3) {\n\t textNode = node.firstChild;\n\t if (offset) { offset = textNode.nodeValue.length; }\n\t }\n\t while (topNode.parentNode != wrapper) { topNode = topNode.parentNode; }\n\t var measure = lineView.measure, maps = measure.maps;\n\t\n\t function find(textNode, topNode, offset) {\n\t for (var i = -1; i < (maps ? maps.length : 0); i++) {\n\t var map$$1 = i < 0 ? measure.map : maps[i];\n\t for (var j = 0; j < map$$1.length; j += 3) {\n\t var curNode = map$$1[j + 2];\n\t if (curNode == textNode || curNode == topNode) {\n\t var line = lineNo(i < 0 ? lineView.line : lineView.rest[i]);\n\t var ch = map$$1[j] + offset;\n\t if (offset < 0 || curNode != textNode) { ch = map$$1[j + (offset ? 1 : 0)]; }\n\t return Pos(line, ch)\n\t }\n\t }\n\t }\n\t }\n\t var found = find(textNode, topNode, offset);\n\t if (found) { return badPos(found, bad) }\n\t\n\t // FIXME this is all really shaky. might handle the few cases it needs to handle, but likely to cause problems\n\t for (var after = topNode.nextSibling, dist = textNode ? textNode.nodeValue.length - offset : 0; after; after = after.nextSibling) {\n\t found = find(after, after.firstChild, 0);\n\t if (found)\n\t { return badPos(Pos(found.line, found.ch - dist), bad) }\n\t else\n\t { dist += after.textContent.length; }\n\t }\n\t for (var before = topNode.previousSibling, dist$1 = offset; before; before = before.previousSibling) {\n\t found = find(before, before.firstChild, -1);\n\t if (found)\n\t { return badPos(Pos(found.line, found.ch + dist$1), bad) }\n\t else\n\t { dist$1 += before.textContent.length; }\n\t }\n\t}\n\t\n\t// TEXTAREA INPUT STYLE\n\t\n\tvar TextareaInput = function(cm) {\n\t this.cm = cm;\n\t // See input.poll and input.reset\n\t this.prevInput = \"\";\n\t\n\t // Flag that indicates whether we expect input to appear real soon\n\t // now (after some event like 'keypress' or 'input') and are\n\t // polling intensively.\n\t this.pollingFast = false;\n\t // Self-resetting timeout for the poller\n\t this.polling = new Delayed();\n\t // Tracks when input.reset has punted to just putting a short\n\t // string into the textarea instead of the full selection.\n\t this.inaccurateSelection = false;\n\t // Used to work around IE issue with selection being forgotten when focus moves away from textarea\n\t this.hasSelection = false;\n\t this.composing = null;\n\t};\n\t\n\tTextareaInput.prototype.init = function (display) {\n\t var this$1 = this;\n\t\n\t var input = this, cm = this.cm;\n\t\n\t // Wraps and hides input textarea\n\t var div = this.wrapper = hiddenTextarea();\n\t // The semihidden textarea that is focused when the editor is\n\t // focused, and receives input.\n\t var te = this.textarea = div.firstChild;\n\t display.wrapper.insertBefore(div, display.wrapper.firstChild);\n\t\n\t // Needed to hide big blue blinking cursor on Mobile Safari (doesn't seem to work in iOS 8 anymore)\n\t if (ios) { te.style.width = \"0px\"; }\n\t\n\t on(te, \"input\", function () {\n\t if (ie && ie_version >= 9 && this$1.hasSelection) { this$1.hasSelection = null; }\n\t input.poll();\n\t });\n\t\n\t on(te, \"paste\", function (e) {\n\t if (signalDOMEvent(cm, e) || handlePaste(e, cm)) { return }\n\t\n\t cm.state.pasteIncoming = true;\n\t input.fastPoll();\n\t });\n\t\n\t function prepareCopyCut(e) {\n\t if (signalDOMEvent(cm, e)) { return }\n\t if (cm.somethingSelected()) {\n\t setLastCopied({lineWise: false, text: cm.getSelections()});\n\t if (input.inaccurateSelection) {\n\t input.prevInput = \"\";\n\t input.inaccurateSelection = false;\n\t te.value = lastCopied.text.join(\"\\n\");\n\t selectInput(te);\n\t }\n\t } else if (!cm.options.lineWiseCopyCut) {\n\t return\n\t } else {\n\t var ranges = copyableRanges(cm);\n\t setLastCopied({lineWise: true, text: ranges.text});\n\t if (e.type == \"cut\") {\n\t cm.setSelections(ranges.ranges, null, sel_dontScroll);\n\t } else {\n\t input.prevInput = \"\";\n\t te.value = ranges.text.join(\"\\n\");\n\t selectInput(te);\n\t }\n\t }\n\t if (e.type == \"cut\") { cm.state.cutIncoming = true; }\n\t }\n\t on(te, \"cut\", prepareCopyCut);\n\t on(te, \"copy\", prepareCopyCut);\n\t\n\t on(display.scroller, \"paste\", function (e) {\n\t if (eventInWidget(display, e) || signalDOMEvent(cm, e)) { return }\n\t cm.state.pasteIncoming = true;\n\t input.focus();\n\t });\n\t\n\t // Prevent normal selection in the editor (we handle our own)\n\t on(display.lineSpace, \"selectstart\", function (e) {\n\t if (!eventInWidget(display, e)) { e_preventDefault(e); }\n\t });\n\t\n\t on(te, \"compositionstart\", function () {\n\t var start = cm.getCursor(\"from\");\n\t if (input.composing) { input.composing.range.clear(); }\n\t input.composing = {\n\t start: start,\n\t range: cm.markText(start, cm.getCursor(\"to\"), {className: \"CodeMirror-composing\"})\n\t };\n\t });\n\t on(te, \"compositionend\", function () {\n\t if (input.composing) {\n\t input.poll();\n\t input.composing.range.clear();\n\t input.composing = null;\n\t }\n\t });\n\t};\n\t\n\tTextareaInput.prototype.prepareSelection = function () {\n\t // Redraw the selection and/or cursor\n\t var cm = this.cm, display = cm.display, doc = cm.doc;\n\t var result = prepareSelection(cm);\n\t\n\t // Move the hidden textarea near the cursor to prevent scrolling artifacts\n\t if (cm.options.moveInputWithCursor) {\n\t var headPos = cursorCoords(cm, doc.sel.primary().head, \"div\");\n\t var wrapOff = display.wrapper.getBoundingClientRect(), lineOff = display.lineDiv.getBoundingClientRect();\n\t result.teTop = Math.max(0, Math.min(display.wrapper.clientHeight - 10,\n\t headPos.top + lineOff.top - wrapOff.top));\n\t result.teLeft = Math.max(0, Math.min(display.wrapper.clientWidth - 10,\n\t headPos.left + lineOff.left - wrapOff.left));\n\t }\n\t\n\t return result\n\t};\n\t\n\tTextareaInput.prototype.showSelection = function (drawn) {\n\t var cm = this.cm, display = cm.display;\n\t removeChildrenAndAdd(display.cursorDiv, drawn.cursors);\n\t removeChildrenAndAdd(display.selectionDiv, drawn.selection);\n\t if (drawn.teTop != null) {\n\t this.wrapper.style.top = drawn.teTop + \"px\";\n\t this.wrapper.style.left = drawn.teLeft + \"px\";\n\t }\n\t};\n\t\n\t// Reset the input to correspond to the selection (or to be empty,\n\t// when not typing and nothing is selected)\n\tTextareaInput.prototype.reset = function (typing) {\n\t if (this.contextMenuPending) { return }\n\t var minimal, selected, cm = this.cm, doc = cm.doc;\n\t if (cm.somethingSelected()) {\n\t this.prevInput = \"\";\n\t var range$$1 = doc.sel.primary();\n\t minimal = hasCopyEvent &&\n\t (range$$1.to().line - range$$1.from().line > 100 || (selected = cm.getSelection()).length > 1000);\n\t var content = minimal ? \"-\" : selected || cm.getSelection();\n\t this.textarea.value = content;\n\t if (cm.state.focused) { selectInput(this.textarea); }\n\t if (ie && ie_version >= 9) { this.hasSelection = content; }\n\t } else if (!typing) {\n\t this.prevInput = this.textarea.value = \"\";\n\t if (ie && ie_version >= 9) { this.hasSelection = null; }\n\t }\n\t this.inaccurateSelection = minimal;\n\t};\n\t\n\tTextareaInput.prototype.getField = function () { return this.textarea };\n\t\n\tTextareaInput.prototype.supportsTouch = function () { return false };\n\t\n\tTextareaInput.prototype.focus = function () {\n\t if (this.cm.options.readOnly != \"nocursor\" && (!mobile || activeElt() != this.textarea)) {\n\t try { this.textarea.focus(); }\n\t catch (e) {} // IE8 will throw if the textarea is display: none or not in DOM\n\t }\n\t};\n\t\n\tTextareaInput.prototype.blur = function () { this.textarea.blur(); };\n\t\n\tTextareaInput.prototype.resetPosition = function () {\n\t this.wrapper.style.top = this.wrapper.style.left = 0;\n\t};\n\t\n\tTextareaInput.prototype.receivedFocus = function () { this.slowPoll(); };\n\t\n\t// Poll for input changes, using the normal rate of polling. This\n\t// runs as long as the editor is focused.\n\tTextareaInput.prototype.slowPoll = function () {\n\t var this$1 = this;\n\t\n\t if (this.pollingFast) { return }\n\t this.polling.set(this.cm.options.pollInterval, function () {\n\t this$1.poll();\n\t if (this$1.cm.state.focused) { this$1.slowPoll(); }\n\t });\n\t};\n\t\n\t// When an event has just come in that is likely to add or change\n\t// something in the input textarea, we poll faster, to ensure that\n\t// the change appears on the screen quickly.\n\tTextareaInput.prototype.fastPoll = function () {\n\t var missed = false, input = this;\n\t input.pollingFast = true;\n\t function p() {\n\t var changed = input.poll();\n\t if (!changed && !missed) {missed = true; input.polling.set(60, p);}\n\t else {input.pollingFast = false; input.slowPoll();}\n\t }\n\t input.polling.set(20, p);\n\t};\n\t\n\t// Read input from the textarea, and update the document to match.\n\t// When something is selected, it is present in the textarea, and\n\t// selected (unless it is huge, in which case a placeholder is\n\t// used). When nothing is selected, the cursor sits after previously\n\t// seen text (can be empty), which is stored in prevInput (we must\n\t// not reset the textarea when typing, because that breaks IME).\n\tTextareaInput.prototype.poll = function () {\n\t var this$1 = this;\n\t\n\t var cm = this.cm, input = this.textarea, prevInput = this.prevInput;\n\t // Since this is called a *lot*, try to bail out as cheaply as\n\t // possible when it is clear that nothing happened. hasSelection\n\t // will be the case when there is a lot of text in the textarea,\n\t // in which case reading its value would be expensive.\n\t if (this.contextMenuPending || !cm.state.focused ||\n\t (hasSelection(input) && !prevInput && !this.composing) ||\n\t cm.isReadOnly() || cm.options.disableInput || cm.state.keySeq)\n\t { return false }\n\t\n\t var text = input.value;\n\t // If nothing changed, bail.\n\t if (text == prevInput && !cm.somethingSelected()) { return false }\n\t // Work around nonsensical selection resetting in IE9/10, and\n\t // inexplicable appearance of private area unicode characters on\n\t // some key combos in Mac (#2689).\n\t if (ie && ie_version >= 9 && this.hasSelection === text ||\n\t mac && /[\\uf700-\\uf7ff]/.test(text)) {\n\t cm.display.input.reset();\n\t return false\n\t }\n\t\n\t if (cm.doc.sel == cm.display.selForContextMenu) {\n\t var first = text.charCodeAt(0);\n\t if (first == 0x200b && !prevInput) { prevInput = \"\\u200b\"; }\n\t if (first == 0x21da) { this.reset(); return this.cm.execCommand(\"undo\") }\n\t }\n\t // Find the part of the input that is actually new\n\t var same = 0, l = Math.min(prevInput.length, text.length);\n\t while (same < l && prevInput.charCodeAt(same) == text.charCodeAt(same)) { ++same; }\n\t\n\t runInOp(cm, function () {\n\t applyTextInput(cm, text.slice(same), prevInput.length - same,\n\t null, this$1.composing ? \"*compose\" : null);\n\t\n\t // Don't leave long text in the textarea, since it makes further polling slow\n\t if (text.length > 1000 || text.indexOf(\"\\n\") > -1) { input.value = this$1.prevInput = \"\"; }\n\t else { this$1.prevInput = text; }\n\t\n\t if (this$1.composing) {\n\t this$1.composing.range.clear();\n\t this$1.composing.range = cm.markText(this$1.composing.start, cm.getCursor(\"to\"),\n\t {className: \"CodeMirror-composing\"});\n\t }\n\t });\n\t return true\n\t};\n\t\n\tTextareaInput.prototype.ensurePolled = function () {\n\t if (this.pollingFast && this.poll()) { this.pollingFast = false; }\n\t};\n\t\n\tTextareaInput.prototype.onKeyPress = function () {\n\t if (ie && ie_version >= 9) { this.hasSelection = null; }\n\t this.fastPoll();\n\t};\n\t\n\tTextareaInput.prototype.onContextMenu = function (e) {\n\t var input = this, cm = input.cm, display = cm.display, te = input.textarea;\n\t var pos = posFromMouse(cm, e), scrollPos = display.scroller.scrollTop;\n\t if (!pos || presto) { return } // Opera is difficult.\n\t\n\t // Reset the current text selection only if the click is done outside of the selection\n\t // and 'resetSelectionOnContextMenu' option is true.\n\t var reset = cm.options.resetSelectionOnContextMenu;\n\t if (reset && cm.doc.sel.contains(pos) == -1)\n\t { operation(cm, setSelection)(cm.doc, simpleSelection(pos), sel_dontScroll); }\n\t\n\t var oldCSS = te.style.cssText, oldWrapperCSS = input.wrapper.style.cssText;\n\t input.wrapper.style.cssText = \"position: absolute\";\n\t var wrapperBox = input.wrapper.getBoundingClientRect();\n\t te.style.cssText = \"position: absolute; width: 30px; height: 30px;\\n top: \" + (e.clientY - wrapperBox.top - 5) + \"px; left: \" + (e.clientX - wrapperBox.left - 5) + \"px;\\n z-index: 1000; background: \" + (ie ? \"rgba(255, 255, 255, .05)\" : \"transparent\") + \";\\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);\";\n\t var oldScrollY;\n\t if (webkit) { oldScrollY = window.scrollY; } // Work around Chrome issue (#2712)\n\t display.input.focus();\n\t if (webkit) { window.scrollTo(null, oldScrollY); }\n\t display.input.reset();\n\t // Adds \"Select all\" to context menu in FF\n\t if (!cm.somethingSelected()) { te.value = input.prevInput = \" \"; }\n\t input.contextMenuPending = true;\n\t display.selForContextMenu = cm.doc.sel;\n\t clearTimeout(display.detectingSelectAll);\n\t\n\t // Select-all will be greyed out if there's nothing to select, so\n\t // this adds a zero-width space so that we can later check whether\n\t // it got selected.\n\t function prepareSelectAllHack() {\n\t if (te.selectionStart != null) {\n\t var selected = cm.somethingSelected();\n\t var extval = \"\\u200b\" + (selected ? te.value : \"\");\n\t te.value = \"\\u21da\"; // Used to catch context-menu undo\n\t te.value = extval;\n\t input.prevInput = selected ? \"\" : \"\\u200b\";\n\t te.selectionStart = 1; te.selectionEnd = extval.length;\n\t // Re-set this, in case some other handler touched the\n\t // selection in the meantime.\n\t display.selForContextMenu = cm.doc.sel;\n\t }\n\t }\n\t function rehide() {\n\t input.contextMenuPending = false;\n\t input.wrapper.style.cssText = oldWrapperCSS;\n\t te.style.cssText = oldCSS;\n\t if (ie && ie_version < 9) { display.scrollbars.setScrollTop(display.scroller.scrollTop = scrollPos); }\n\t\n\t // Try to detect the user choosing select-all\n\t if (te.selectionStart != null) {\n\t if (!ie || (ie && ie_version < 9)) { prepareSelectAllHack(); }\n\t var i = 0, poll = function () {\n\t if (display.selForContextMenu == cm.doc.sel && te.selectionStart == 0 &&\n\t te.selectionEnd > 0 && input.prevInput == \"\\u200b\") {\n\t operation(cm, selectAll)(cm);\n\t } else if (i++ < 10) {\n\t display.detectingSelectAll = setTimeout(poll, 500);\n\t } else {\n\t display.selForContextMenu = null;\n\t display.input.reset();\n\t }\n\t };\n\t display.detectingSelectAll = setTimeout(poll, 200);\n\t }\n\t }\n\t\n\t if (ie && ie_version >= 9) { prepareSelectAllHack(); }\n\t if (captureRightClick) {\n\t e_stop(e);\n\t var mouseup = function () {\n\t off(window, \"mouseup\", mouseup);\n\t setTimeout(rehide, 20);\n\t };\n\t on(window, \"mouseup\", mouseup);\n\t } else {\n\t setTimeout(rehide, 50);\n\t }\n\t};\n\t\n\tTextareaInput.prototype.readOnlyChanged = function (val) {\n\t if (!val) { this.reset(); }\n\t};\n\t\n\tTextareaInput.prototype.setUneditable = function () {};\n\t\n\tTextareaInput.prototype.needsContentAttribute = false;\n\t\n\tfunction fromTextArea(textarea, options) {\n\t options = options ? copyObj(options) : {};\n\t options.value = textarea.value;\n\t if (!options.tabindex && textarea.tabIndex)\n\t { options.tabindex = textarea.tabIndex; }\n\t if (!options.placeholder && textarea.placeholder)\n\t { options.placeholder = textarea.placeholder; }\n\t // Set autofocus to true if this textarea is focused, or if it has\n\t // autofocus and no other element is focused.\n\t if (options.autofocus == null) {\n\t var hasFocus = activeElt();\n\t options.autofocus = hasFocus == textarea ||\n\t textarea.getAttribute(\"autofocus\") != null && hasFocus == document.body;\n\t }\n\t\n\t function save() {textarea.value = cm.getValue();}\n\t\n\t var realSubmit;\n\t if (textarea.form) {\n\t on(textarea.form, \"submit\", save);\n\t // Deplorable hack to make the submit method do the right thing.\n\t if (!options.leaveSubmitMethodAlone) {\n\t var form = textarea.form;\n\t realSubmit = form.submit;\n\t try {\n\t var wrappedSubmit = form.submit = function () {\n\t save();\n\t form.submit = realSubmit;\n\t form.submit();\n\t form.submit = wrappedSubmit;\n\t };\n\t } catch(e) {}\n\t }\n\t }\n\t\n\t options.finishInit = function (cm) {\n\t cm.save = save;\n\t cm.getTextArea = function () { return textarea; };\n\t cm.toTextArea = function () {\n\t cm.toTextArea = isNaN; // Prevent this from being ran twice\n\t save();\n\t textarea.parentNode.removeChild(cm.getWrapperElement());\n\t textarea.style.display = \"\";\n\t if (textarea.form) {\n\t off(textarea.form, \"submit\", save);\n\t if (typeof textarea.form.submit == \"function\")\n\t { textarea.form.submit = realSubmit; }\n\t }\n\t };\n\t };\n\t\n\t textarea.style.display = \"none\";\n\t var cm = CodeMirror$1(function (node) { return textarea.parentNode.insertBefore(node, textarea.nextSibling); },\n\t options);\n\t return cm\n\t}\n\t\n\tfunction addLegacyProps(CodeMirror) {\n\t CodeMirror.off = off;\n\t CodeMirror.on = on;\n\t CodeMirror.wheelEventPixels = wheelEventPixels;\n\t CodeMirror.Doc = Doc;\n\t CodeMirror.splitLines = splitLinesAuto;\n\t CodeMirror.countColumn = countColumn;\n\t CodeMirror.findColumn = findColumn;\n\t CodeMirror.isWordChar = isWordCharBasic;\n\t CodeMirror.Pass = Pass;\n\t CodeMirror.signal = signal;\n\t CodeMirror.Line = Line;\n\t CodeMirror.changeEnd = changeEnd;\n\t CodeMirror.scrollbarModel = scrollbarModel;\n\t CodeMirror.Pos = Pos;\n\t CodeMirror.cmpPos = cmp;\n\t CodeMirror.modes = modes;\n\t CodeMirror.mimeModes = mimeModes;\n\t CodeMirror.resolveMode = resolveMode;\n\t CodeMirror.getMode = getMode;\n\t CodeMirror.modeExtensions = modeExtensions;\n\t CodeMirror.extendMode = extendMode;\n\t CodeMirror.copyState = copyState;\n\t CodeMirror.startState = startState;\n\t CodeMirror.innerMode = innerMode;\n\t CodeMirror.commands = commands;\n\t CodeMirror.keyMap = keyMap;\n\t CodeMirror.keyName = keyName;\n\t CodeMirror.isModifierKey = isModifierKey;\n\t CodeMirror.lookupKey = lookupKey;\n\t CodeMirror.normalizeKeyMap = normalizeKeyMap;\n\t CodeMirror.StringStream = StringStream;\n\t CodeMirror.SharedTextMarker = SharedTextMarker;\n\t CodeMirror.TextMarker = TextMarker;\n\t CodeMirror.LineWidget = LineWidget;\n\t CodeMirror.e_preventDefault = e_preventDefault;\n\t CodeMirror.e_stopPropagation = e_stopPropagation;\n\t CodeMirror.e_stop = e_stop;\n\t CodeMirror.addClass = addClass;\n\t CodeMirror.contains = contains;\n\t CodeMirror.rmClass = rmClass;\n\t CodeMirror.keyNames = keyNames;\n\t}\n\t\n\t// EDITOR CONSTRUCTOR\n\t\n\tdefineOptions(CodeMirror$1);\n\t\n\taddEditorMethods(CodeMirror$1);\n\t\n\t// Set up methods on CodeMirror's prototype to redirect to the editor's document.\n\tvar dontDelegate = \"iter insert remove copy getEditor constructor\".split(\" \");\n\tfor (var prop in Doc.prototype) { if (Doc.prototype.hasOwnProperty(prop) && indexOf(dontDelegate, prop) < 0)\n\t { CodeMirror$1.prototype[prop] = (function(method) {\n\t return function() {return method.apply(this.doc, arguments)}\n\t })(Doc.prototype[prop]); } }\n\t\n\teventMixin(Doc);\n\t\n\t// INPUT HANDLING\n\t\n\tCodeMirror$1.inputStyles = {\"textarea\": TextareaInput, \"contenteditable\": ContentEditableInput};\n\t\n\t// MODE DEFINITION AND QUERYING\n\t\n\t// Extra arguments are stored as the mode's dependencies, which is\n\t// used by (legacy) mechanisms like loadmode.js to automatically\n\t// load a mode. (Preferred mechanism is the require/define calls.)\n\tCodeMirror$1.defineMode = function(name/*, mode, …*/) {\n\t if (!CodeMirror$1.defaults.mode && name != \"null\") { CodeMirror$1.defaults.mode = name; }\n\t defineMode.apply(this, arguments);\n\t};\n\t\n\tCodeMirror$1.defineMIME = defineMIME;\n\t\n\t// Minimal default mode.\n\tCodeMirror$1.defineMode(\"null\", function () { return ({token: function (stream) { return stream.skipToEnd(); }}); });\n\tCodeMirror$1.defineMIME(\"text/plain\", \"null\");\n\t\n\t// EXTENSIONS\n\t\n\tCodeMirror$1.defineExtension = function (name, func) {\n\t CodeMirror$1.prototype[name] = func;\n\t};\n\tCodeMirror$1.defineDocExtension = function (name, func) {\n\t Doc.prototype[name] = func;\n\t};\n\t\n\tCodeMirror$1.fromTextArea = fromTextArea;\n\t\n\taddLegacyProps(CodeMirror$1);\n\t\n\tCodeMirror$1.version = \"5.25.0\";\n\t\n\treturn CodeMirror$1;\n\t\n\t})));\n\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(169);\n\tmodule.exports = angular;\n\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _View2 = __webpack_require__(3);\n\t\n\tvar _View3 = _interopRequireDefault(_View2);\n\t\n\tvar _UtilsOrderElement = __webpack_require__(20);\n\t\n\tvar _UtilsOrderElement2 = _interopRequireDefault(_UtilsOrderElement);\n\t\n\tvar ListView = (function (_View) {\n\t _inherits(ListView, _View);\n\t\n\t function ListView(name) {\n\t _classCallCheck(this, ListView);\n\t\n\t _get(Object.getPrototypeOf(ListView.prototype), 'constructor', this).call(this, name);\n\t\n\t this._type = 'ListView';\n\t this._perPage = 30;\n\t this._infinitePagination = false;\n\t this._listActions = [];\n\t this._batchActions = ['delete'];\n\t this._filters = [];\n\t this._permanentFilters = {};\n\t this._exportFields = null;\n\t this._exportOptions = {};\n\t this._entryCssClasses = null;\n\t\n\t this._sortField = 'id';\n\t this._sortDir = 'DESC';\n\t }\n\t\n\t _createClass(ListView, [{\n\t key: 'perPage',\n\t value: function perPage() {\n\t if (!arguments.length) {\n\t return this._perPage;\n\t }\n\t this._perPage = arguments[0];\n\t return this;\n\t }\n\t\n\t /** @deprecated Use perPage instead */\n\t }, {\n\t key: 'limit',\n\t value: function limit() {\n\t if (!arguments.length) {\n\t return this.perPage();\n\t }\n\t return this.perPage(arguments[0]);\n\t }\n\t }, {\n\t key: 'sortField',\n\t value: function sortField() {\n\t if (arguments.length) {\n\t this._sortField = arguments[0];\n\t return this;\n\t }\n\t\n\t return this._sortField;\n\t }\n\t }, {\n\t key: 'sortDir',\n\t value: function sortDir() {\n\t if (arguments.length) {\n\t this._sortDir = arguments[0];\n\t return this;\n\t }\n\t\n\t return this._sortDir;\n\t }\n\t }, {\n\t key: 'getSortFieldName',\n\t value: function getSortFieldName() {\n\t return this.name() + '.' + this._sortField;\n\t }\n\t }, {\n\t key: 'infinitePagination',\n\t value: function infinitePagination() {\n\t if (arguments.length) {\n\t this._infinitePagination = arguments[0];\n\t return this;\n\t }\n\t\n\t return this._infinitePagination;\n\t }\n\t }, {\n\t key: 'actions',\n\t value: function actions(_actions) {\n\t if (!arguments.length) {\n\t return this._actions;\n\t }\n\t\n\t this._actions = _actions;\n\t\n\t return this;\n\t }\n\t }, {\n\t key: 'exportFields',\n\t value: function exportFields(_exportFields) {\n\t if (!arguments.length) {\n\t return this._exportFields;\n\t }\n\t\n\t this._exportFields = _exportFields;\n\t\n\t return this;\n\t }\n\t }, {\n\t key: 'exportOptions',\n\t value: function exportOptions(_exportOptions) {\n\t if (!arguments.length) {\n\t return this._exportOptions;\n\t }\n\t\n\t this._exportOptions = _exportOptions;\n\t\n\t return this;\n\t }\n\t }, {\n\t key: 'batchActions',\n\t value: function batchActions(actions) {\n\t if (!arguments.length) {\n\t return this._batchActions;\n\t }\n\t\n\t this._batchActions = actions;\n\t\n\t return this;\n\t }\n\t\n\t /**\n\t * Define permanent filters to be added to the REST API calls\n\t *\n\t * posts.listView().permanentFilters({\n\t * published: true\n\t * });\n\t * // related API call will be /posts?published=true\n\t *\n\t * @param {Object} filters list of filters to apply to the call\n\t */\n\t }, {\n\t key: 'permanentFilters',\n\t value: function permanentFilters(filters) {\n\t if (!arguments.length) {\n\t return this._permanentFilters;\n\t }\n\t\n\t this._permanentFilters = filters;\n\t\n\t return this;\n\t }\n\t\n\t /**\n\t * Define filters the user can add to the datagrid\n\t *\n\t * posts.listView().filters([\n\t * nga.field('title'),\n\t * nga.field('age', 'number')\n\t * ]);\n\t *\n\t * @param {Field[]} filters list of filters to add to the GUI\n\t */\n\t }, {\n\t key: 'filters',\n\t value: function filters(_filters) {\n\t if (!arguments.length) {\n\t return this._filters;\n\t }\n\t\n\t this._filters = _UtilsOrderElement2['default'].order(_filters);\n\t\n\t return this;\n\t }\n\t }, {\n\t key: 'getFilterReferences',\n\t value: function getFilterReferences(withRemoteComplete) {\n\t var result = {};\n\t var lists = this._filters.filter(function (f) {\n\t return f.type() === 'reference';\n\t });\n\t\n\t var filterFunction = null;\n\t if (withRemoteComplete === true) {\n\t filterFunction = function (f) {\n\t return f.remoteComplete();\n\t };\n\t } else if (withRemoteComplete === false) {\n\t filterFunction = function (f) {\n\t return !f.remoteComplete();\n\t };\n\t }\n\t\n\t if (filterFunction !== null) {\n\t lists = lists.filter(filterFunction);\n\t }\n\t\n\t for (var i = 0, c = lists.length; i < c; i++) {\n\t var list = lists[i];\n\t result[list.name()] = list;\n\t }\n\t\n\t return result;\n\t }\n\t }, {\n\t key: 'listActions',\n\t value: function listActions(actions) {\n\t if (!arguments.length) {\n\t return this._listActions;\n\t }\n\t\n\t this._listActions = actions;\n\t\n\t return this;\n\t }\n\t }, {\n\t key: 'entryCssClasses',\n\t value: function entryCssClasses(classes) {\n\t if (!arguments.length) {\n\t return this._entryCssClasses;\n\t }\n\t\n\t this._entryCssClasses = classes;\n\t\n\t return this;\n\t }\n\t }, {\n\t key: 'getEntryCssClasses',\n\t value: function getEntryCssClasses(entry) {\n\t if (!this._entryCssClasses) {\n\t return '';\n\t }\n\t\n\t if (this._entryCssClasses.constructor === Array) {\n\t return this._entryCssClasses.join(' ');\n\t }\n\t\n\t if (typeof this._entryCssClasses === 'function') {\n\t return this._entryCssClasses(entry);\n\t }\n\t\n\t return this._entryCssClasses;\n\t }\n\t }]);\n\t\n\t return ListView;\n\t})(_View3['default']);\n\t\n\texports['default'] = ListView;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar _UtilsStringUtils = __webpack_require__(21);\n\t\n\tvar _UtilsStringUtils2 = _interopRequireDefault(_UtilsStringUtils);\n\t\n\tvar _FieldField = __webpack_require__(1);\n\t\n\tvar _FieldField2 = _interopRequireDefault(_FieldField);\n\t\n\tvar _ViewDashboardView = __webpack_require__(44);\n\t\n\tvar _ViewDashboardView2 = _interopRequireDefault(_ViewDashboardView);\n\t\n\tvar _ViewMenuView = __webpack_require__(48);\n\t\n\tvar _ViewMenuView2 = _interopRequireDefault(_ViewMenuView);\n\t\n\tvar _ViewListView = __webpack_require__(6);\n\t\n\tvar _ViewListView2 = _interopRequireDefault(_ViewListView);\n\t\n\tvar _ViewCreateView = __webpack_require__(43);\n\t\n\tvar _ViewCreateView2 = _interopRequireDefault(_ViewCreateView);\n\t\n\tvar _ViewEditView = __webpack_require__(46);\n\t\n\tvar _ViewEditView2 = _interopRequireDefault(_ViewEditView);\n\t\n\tvar _ViewDeleteView = __webpack_require__(45);\n\t\n\tvar _ViewDeleteView2 = _interopRequireDefault(_ViewDeleteView);\n\t\n\tvar _ViewShowView = __webpack_require__(49);\n\t\n\tvar _ViewShowView2 = _interopRequireDefault(_ViewShowView);\n\t\n\tvar _ViewBatchDeleteView = __webpack_require__(42);\n\t\n\tvar _ViewBatchDeleteView2 = _interopRequireDefault(_ViewBatchDeleteView);\n\t\n\tvar _ViewExportView = __webpack_require__(47);\n\t\n\tvar _ViewExportView2 = _interopRequireDefault(_ViewExportView);\n\t\n\tvar index = 0;\n\t\n\tvar Entity = (function () {\n\t function Entity(name) {\n\t _classCallCheck(this, Entity);\n\t\n\t this._name = name;\n\t this._uniqueId = this._name + '_' + index++;\n\t this._baseApiUrl = null;\n\t this._label = null;\n\t this._identifierField = new _FieldField2[\"default\"](\"id\");\n\t this._isReadOnly = false;\n\t this._errorMessage = null;\n\t this._order = 0;\n\t this._url = null;\n\t this._createMethod = null; // manually set the HTTP-method for create operation, defaults to post\n\t this._updateMethod = null; // manually set the HTTP-method for update operation, defaults to put\n\t this._retrieveMethod = null; // manually set the HTTP-method for the get operation, defaults to get\n\t this._deleteMethod = null; // manually set the HTTP-method for the delete operation, defaults to delete\n\t\n\t this._initViews();\n\t }\n\t\n\t _createClass(Entity, [{\n\t key: \"label\",\n\t value: function label() {\n\t if (arguments.length) {\n\t this._label = arguments[0];\n\t return this;\n\t }\n\t\n\t if (this._label === null) {\n\t return _UtilsStringUtils2[\"default\"].camelCase(this._name);\n\t }\n\t\n\t return this._label;\n\t }\n\t }, {\n\t key: \"name\",\n\t value: function name() {\n\t if (arguments.length) {\n\t this._name = arguments[0];\n\t return this;\n\t }\n\t\n\t return this._name;\n\t }\n\t }, {\n\t key: \"menuView\",\n\t value: function menuView() {\n\t return this._views[\"MenuView\"];\n\t }\n\t }, {\n\t key: \"dashboardView\",\n\t value: function dashboardView() {\n\t return this._views[\"DashboardView\"];\n\t }\n\t }, {\n\t key: \"listView\",\n\t value: function listView() {\n\t return this._views[\"ListView\"];\n\t }\n\t }, {\n\t key: \"creationView\",\n\t value: function creationView() {\n\t return this._views[\"CreateView\"];\n\t }\n\t }, {\n\t key: \"editionView\",\n\t value: function editionView() {\n\t return this._views[\"EditView\"];\n\t }\n\t }, {\n\t key: \"deletionView\",\n\t value: function deletionView() {\n\t return this._views[\"DeleteView\"];\n\t }\n\t }, {\n\t key: \"batchDeleteView\",\n\t value: function batchDeleteView() {\n\t return this._views[\"BatchDeleteView\"];\n\t }\n\t }, {\n\t key: \"exportView\",\n\t value: function exportView() {\n\t return this._views[\"ExportView\"];\n\t }\n\t }, {\n\t key: \"showView\",\n\t value: function showView() {\n\t return this._views[\"ShowView\"];\n\t }\n\t }, {\n\t key: \"baseApiUrl\",\n\t value: function baseApiUrl(_baseApiUrl) {\n\t if (!arguments.length) return this._baseApiUrl;\n\t this._baseApiUrl = _baseApiUrl;\n\t return this;\n\t }\n\t }, {\n\t key: \"_initViews\",\n\t value: function _initViews() {\n\t this._views = {\n\t \"DashboardView\": new _ViewDashboardView2[\"default\"]().setEntity(this),\n\t \"MenuView\": new _ViewMenuView2[\"default\"]().setEntity(this),\n\t \"ListView\": new _ViewListView2[\"default\"]().setEntity(this),\n\t \"CreateView\": new _ViewCreateView2[\"default\"]().setEntity(this),\n\t \"EditView\": new _ViewEditView2[\"default\"]().setEntity(this),\n\t \"DeleteView\": new _ViewDeleteView2[\"default\"]().setEntity(this),\n\t \"BatchDeleteView\": new _ViewBatchDeleteView2[\"default\"]().setEntity(this),\n\t \"ExportView\": new _ViewExportView2[\"default\"]().setEntity(this),\n\t \"ShowView\": new _ViewShowView2[\"default\"]().setEntity(this)\n\t };\n\t }\n\t }, {\n\t key: \"identifier\",\n\t value: function identifier(value) {\n\t if (!arguments.length) return this._identifierField;\n\t if (!(value instanceof _FieldField2[\"default\"])) {\n\t throw new Error('Entity ' + this.name() + ': identifier must be an instance of Field.');\n\t }\n\t this._identifierField = value;\n\t return this;\n\t }\n\t }, {\n\t key: \"readOnly\",\n\t value: function readOnly() {\n\t this._isReadOnly = true;\n\t\n\t this._views[\"CreateView\"].disable();\n\t this._views[\"EditView\"].disable();\n\t this._views[\"DeleteView\"].disable();\n\t this._views[\"BatchDeleteView\"].disable();\n\t\n\t return this;\n\t }\n\t }, {\n\t key: \"getErrorMessage\",\n\t value: function getErrorMessage(response) {\n\t if (typeof this._errorMessage === 'function') {\n\t return this._errorMessage(response);\n\t }\n\t\n\t return this._errorMessage;\n\t }\n\t }, {\n\t key: \"errorMessage\",\n\t value: function errorMessage(_errorMessage) {\n\t if (!arguments.length) return this._errorMessage;\n\t this._errorMessage = _errorMessage;\n\t return this;\n\t }\n\t }, {\n\t key: \"order\",\n\t value: function order(_order) {\n\t if (!arguments.length) return this._order;\n\t this._order = _order;\n\t return this;\n\t }\n\t }, {\n\t key: \"url\",\n\t value: function url(_url) {\n\t if (!arguments.length) return this._url;\n\t this._url = _url;\n\t return this;\n\t }\n\t }, {\n\t key: \"getUrl\",\n\t value: function getUrl(viewType, identifierValue, identifierName) {\n\t if (typeof this._url === 'function') {\n\t return this._url(this.name(), viewType, identifierValue, identifierName);\n\t }\n\t\n\t return this._url;\n\t }\n\t }, {\n\t key: \"createMethod\",\n\t value: function createMethod(_createMethod) {\n\t if (!arguments.length) return this._createMethod;\n\t this._createMethod = _createMethod;\n\t return this;\n\t }\n\t }, {\n\t key: \"updateMethod\",\n\t value: function updateMethod(_updateMethod) {\n\t if (!arguments.length) return this._updateMethod;\n\t this._updateMethod = _updateMethod;\n\t return this;\n\t }\n\t }, {\n\t key: \"retrieveMethod\",\n\t value: function retrieveMethod(_retrieveMethod) {\n\t if (!arguments.length) return this._retrieveMethod;\n\t this._retrieveMethod = _retrieveMethod;\n\t return this;\n\t }\n\t }, {\n\t key: \"deleteMethod\",\n\t value: function deleteMethod(_deleteMethod) {\n\t if (!arguments.length) return this._deleteMethod;\n\t this._deleteMethod = _deleteMethod;\n\t return this;\n\t }\n\t }, {\n\t key: \"uniqueId\",\n\t get: function get() {\n\t return this._uniqueId;\n\t }\n\t }, {\n\t key: \"views\",\n\t get: function get() {\n\t return this._views;\n\t }\n\t }, {\n\t key: \"isReadOnly\",\n\t get: function get() {\n\t return this._isReadOnly;\n\t }\n\t }]);\n\t\n\t return Entity;\n\t})();\n\t\n\texports[\"default\"] = Entity;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _Field2 = __webpack_require__(1);\n\t\n\tvar _Field3 = _interopRequireDefault(_Field2);\n\t\n\tvar ChoiceField = (function (_Field) {\n\t _inherits(ChoiceField, _Field);\n\t\n\t function ChoiceField(name) {\n\t _classCallCheck(this, ChoiceField);\n\t\n\t _get(Object.getPrototypeOf(ChoiceField.prototype), \"constructor\", this).call(this, name);\n\t this._type = \"choice\";\n\t this._choices = [];\n\t }\n\t\n\t _createClass(ChoiceField, [{\n\t key: \"choices\",\n\t value: function choices(_choices) {\n\t if (!arguments.length) return this._choices;\n\t this._choices = _choices;\n\t\n\t return this;\n\t }\n\t }, {\n\t key: \"getLabelForChoice\",\n\t value: function getLabelForChoice(value, entry) {\n\t var choices = typeof this._choices === 'function' ? this._choices(entry) : this._choices;\n\t var choice = choices.filter(function (c) {\n\t return c.value == value;\n\t }).pop();\n\t return choice ? choice.label : null;\n\t }\n\t }]);\n\t\n\t return ChoiceField;\n\t})(_Field3[\"default\"]);\n\t\n\texports[\"default\"] = ChoiceField;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _Field2 = __webpack_require__(1);\n\t\n\tvar _Field3 = _interopRequireDefault(_Field2);\n\t\n\tvar ReferenceField = (function (_Field) {\n\t _inherits(ReferenceField, _Field);\n\t\n\t function ReferenceField(name) {\n\t _classCallCheck(this, ReferenceField);\n\t\n\t _get(Object.getPrototypeOf(ReferenceField.prototype), 'constructor', this).call(this, name);\n\t this._type = 'reference';\n\t this._targetEntity = null;\n\t this._targetField = null;\n\t this._perPage = 30;\n\t this._permanentFilters = null;\n\t this._sortField = null;\n\t this._sortDir = null;\n\t this._singleApiCall = false;\n\t this._detailLink = true;\n\t this._remoteComplete = false;\n\t this._remoteCompleteOptions = {\n\t refreshDelay: 500\n\t };\n\t }\n\t\n\t _createClass(ReferenceField, [{\n\t key: 'perPage',\n\t value: function perPage(_perPage) {\n\t if (!arguments.length) return this._perPage;\n\t this._perPage = _perPage;\n\t return this;\n\t }\n\t }, {\n\t key: 'datagridName',\n\t value: function datagridName() {\n\t return this._targetEntity.name() + '_ListView';\n\t }\n\t }, {\n\t key: 'targetEntity',\n\t value: function targetEntity(entity) {\n\t if (!arguments.length) {\n\t return this._targetEntity;\n\t }\n\t this._targetEntity = entity;\n\t\n\t return this;\n\t }\n\t }, {\n\t key: 'targetField',\n\t value: function targetField(field) {\n\t if (!arguments.length) return this._targetField;\n\t this._targetField = field;\n\t\n\t return this;\n\t }\n\t\n\t /**\n\t * Define permanent filters to be added to the REST API calls\n\t *\n\t * nga.field('post_id', 'reference').permanentFilters({\n\t * published: true\n\t * });\n\t * // related API call will be /posts/:id?published=true\n\t *\n\t * @param {Object} filters list of filters to apply to the call\n\t */\n\t }, {\n\t key: 'permanentFilters',\n\t value: function permanentFilters(filters) {\n\t if (!arguments.length) {\n\t return this._permanentFilters;\n\t }\n\t\n\t this._permanentFilters = filters;\n\t\n\t return this;\n\t }\n\t\n\t /**\n\t * @deprecated use permanentFilters() instead\n\t */\n\t }, {\n\t key: 'filters',\n\t value: function filters(_filters) {\n\t console.warn('ReferenceField.filters() is deprecated, please use ReferenceField.permanentFilters() instead');\n\t return this.permanentFilters(_filters);\n\t }\n\t }, {\n\t key: 'sortField',\n\t value: function sortField() {\n\t if (arguments.length) {\n\t this._sortField = arguments[0];\n\t return this;\n\t }\n\t\n\t return this._sortField;\n\t }\n\t }, {\n\t key: 'sortDir',\n\t value: function sortDir() {\n\t if (arguments.length) {\n\t this._sortDir = arguments[0];\n\t return this;\n\t }\n\t\n\t return this._sortDir;\n\t }\n\t }, {\n\t key: 'singleApiCall',\n\t value: function singleApiCall(_singleApiCall) {\n\t if (!arguments.length) return this._singleApiCall;\n\t this._singleApiCall = _singleApiCall;\n\t return this;\n\t }\n\t }, {\n\t key: 'hasSingleApiCall',\n\t value: function hasSingleApiCall() {\n\t return typeof this._singleApiCall === 'function';\n\t }\n\t }, {\n\t key: 'getSingleApiCall',\n\t value: function getSingleApiCall(identifiers) {\n\t return this.hasSingleApiCall() ? this._singleApiCall(identifiers) : this._singleApiCall;\n\t }\n\t }, {\n\t key: 'getIdentifierValues',\n\t value: function getIdentifierValues(rawValues) {\n\t var results = {};\n\t var identifierName = this._name;\n\t for (var i = 0, l = rawValues.length; i < l; i++) {\n\t var identifier = rawValues[i][identifierName];\n\t if (identifier == null) {\n\t continue;\n\t }\n\t\n\t if (identifier instanceof Array) {\n\t for (var j in identifier) {\n\t results[identifier[j]] = true;\n\t }\n\t continue;\n\t }\n\t\n\t results[identifier] = true;\n\t }\n\t\n\t return Object.keys(results);\n\t }\n\t }, {\n\t key: 'getSortFieldName',\n\t value: function getSortFieldName() {\n\t if (!this.sortField()) {\n\t return null;\n\t }\n\t\n\t return this._targetEntity.name() + '_ListView.' + this.sortField();\n\t }\n\t\n\t /**\n\t * Enable autocompletion using REST API for choices.\n\t *\n\t * Available options are:\n\t *\n\t * * `refreshDelay`: minimal delay between two API calls in milliseconds. By default: 500.\n\t * * `searchQuery`: a function returning the parameters to add to the query string basd on the input string.\n\t *\n\t * new ReferenceField('authors')\n\t * .targetEntity(author)\n\t * .targetField(new Field('name'))\n\t * .remoteComplete(true, {\n\t * refreshDelay: 300,\n\t * // populate choices from the response of GET /tags?q=XXX\n\t * searchQuery: function(search) { return { q: search }; }\n\t * })\n\t * .perPage(10) // limit the number of results to 10\n\t *\n\t * @param {Boolean} remoteComplete true to enable remote complete. False by default\n\t * @param {Object} options Remote completion options (optional)\n\t */\n\t }, {\n\t key: 'remoteComplete',\n\t value: function remoteComplete(_remoteComplete, options) {\n\t if (!arguments.length) return this._remoteComplete;\n\t this._remoteComplete = _remoteComplete;\n\t if (options) {\n\t this.remoteCompleteOptions(options);\n\t }\n\t return this;\n\t }\n\t }, {\n\t key: 'remoteCompleteOptions',\n\t value: function remoteCompleteOptions(options) {\n\t if (!arguments.length) return this._remoteCompleteOptions;\n\t this._remoteCompleteOptions = options;\n\t return this;\n\t }\n\t }]);\n\t\n\t return ReferenceField;\n\t})(_Field3['default']);\n\t\n\texports['default'] = ReferenceField;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 10 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t\n\t getReferencedLists: function getReferencedLists(fields) {\n\t return this.indexByName(fields.filter(function (f) {\n\t return f.type() === 'referenced_list';\n\t }));\n\t },\n\t getReferences: function getReferences(fields, withRemoteComplete) {\n\t var optimized = arguments.length <= 2 || arguments[2] === undefined ? null : arguments[2];\n\t\n\t var references = fields.filter(function (f) {\n\t return f.type() === 'reference' || f.type() === 'reference_many';\n\t });\n\t if (withRemoteComplete === true) {\n\t references = references.filter(function (r) {\n\t return r.remoteComplete();\n\t });\n\t } else if (withRemoteComplete === false) {\n\t references = references.filter(function (r) {\n\t return !r.remoteComplete();\n\t });\n\t }\n\t if (optimized !== null) {\n\t references = references.filter(function (r) {\n\t return r.hasSingleApiCall() === optimized;\n\t });\n\t }\n\t return this.indexByName(references);\n\t },\n\t getNonOptimizedReferences: function getNonOptimizedReferences(fields, withRemoteComplete) {\n\t return this.getReferences(fields, withRemoteComplete, false);\n\t },\n\t getOptimizedReferences: function getOptimizedReferences(fields, withRemoteComplete) {\n\t return this.getReferences(fields, withRemoteComplete, true);\n\t },\n\t indexByName: function indexByName(references) {\n\t return references.reduce(function (referencesByName, reference) {\n\t referencesByName[reference.name()] = reference;\n\t return referencesByName;\n\t }, {});\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 11 */\n/***/ function(module, exports) {\n\n\t// shim for using process in browser\n\tvar process = module.exports = {};\n\t\n\t// cached from whatever global is present so that test runners that stub it\n\t// don't break things. But we need to wrap it in a try catch in case it is\n\t// wrapped in strict mode code which doesn't define any globals. It's inside a\n\t// function because try/catches deoptimize in certain engines.\n\t\n\tvar cachedSetTimeout;\n\tvar cachedClearTimeout;\n\t\n\tfunction defaultSetTimout() {\n\t throw new Error('setTimeout has not been defined');\n\t}\n\tfunction defaultClearTimeout () {\n\t throw new Error('clearTimeout has not been defined');\n\t}\n\t(function () {\n\t try {\n\t if (typeof setTimeout === 'function') {\n\t cachedSetTimeout = setTimeout;\n\t } else {\n\t cachedSetTimeout = defaultSetTimout;\n\t }\n\t } catch (e) {\n\t cachedSetTimeout = defaultSetTimout;\n\t }\n\t try {\n\t if (typeof clearTimeout === 'function') {\n\t cachedClearTimeout = clearTimeout;\n\t } else {\n\t cachedClearTimeout = defaultClearTimeout;\n\t }\n\t } catch (e) {\n\t cachedClearTimeout = defaultClearTimeout;\n\t }\n\t} ())\n\tfunction runTimeout(fun) {\n\t if (cachedSetTimeout === setTimeout) {\n\t //normal enviroments in sane situations\n\t return setTimeout(fun, 0);\n\t }\n\t // if setTimeout wasn't available but was latter defined\n\t if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n\t cachedSetTimeout = setTimeout;\n\t return setTimeout(fun, 0);\n\t }\n\t try {\n\t // when when somebody has screwed with setTimeout but no I.E. maddness\n\t return cachedSetTimeout(fun, 0);\n\t } catch(e){\n\t try {\n\t // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n\t return cachedSetTimeout.call(null, fun, 0);\n\t } catch(e){\n\t // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n\t return cachedSetTimeout.call(this, fun, 0);\n\t }\n\t }\n\t\n\t\n\t}\n\tfunction runClearTimeout(marker) {\n\t if (cachedClearTimeout === clearTimeout) {\n\t //normal enviroments in sane situations\n\t return clearTimeout(marker);\n\t }\n\t // if clearTimeout wasn't available but was latter defined\n\t if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n\t cachedClearTimeout = clearTimeout;\n\t return clearTimeout(marker);\n\t }\n\t try {\n\t // when when somebody has screwed with setTimeout but no I.E. maddness\n\t return cachedClearTimeout(marker);\n\t } catch (e){\n\t try {\n\t // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n\t return cachedClearTimeout.call(null, marker);\n\t } catch (e){\n\t // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n\t // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n\t return cachedClearTimeout.call(this, marker);\n\t }\n\t }\n\t\n\t\n\t\n\t}\n\tvar queue = [];\n\tvar draining = false;\n\tvar currentQueue;\n\tvar queueIndex = -1;\n\t\n\tfunction cleanUpNextTick() {\n\t if (!draining || !currentQueue) {\n\t return;\n\t }\n\t draining = false;\n\t if (currentQueue.length) {\n\t queue = currentQueue.concat(queue);\n\t } else {\n\t queueIndex = -1;\n\t }\n\t if (queue.length) {\n\t drainQueue();\n\t }\n\t}\n\t\n\tfunction drainQueue() {\n\t if (draining) {\n\t return;\n\t }\n\t var timeout = runTimeout(cleanUpNextTick);\n\t draining = true;\n\t\n\t var len = queue.length;\n\t while(len) {\n\t currentQueue = queue;\n\t queue = [];\n\t while (++queueIndex < len) {\n\t if (currentQueue) {\n\t currentQueue[queueIndex].run();\n\t }\n\t }\n\t queueIndex = -1;\n\t len = queue.length;\n\t }\n\t currentQueue = null;\n\t draining = false;\n\t runClearTimeout(timeout);\n\t}\n\t\n\tprocess.nextTick = function (fun) {\n\t var args = new Array(arguments.length - 1);\n\t if (arguments.length > 1) {\n\t for (var i = 1; i < arguments.length; i++) {\n\t args[i - 1] = arguments[i];\n\t }\n\t }\n\t queue.push(new Item(fun, args));\n\t if (queue.length === 1 && !draining) {\n\t runTimeout(drainQueue);\n\t }\n\t};\n\t\n\t// v8 likes predictible objects\n\tfunction Item(fun, array) {\n\t this.fun = fun;\n\t this.array = array;\n\t}\n\tItem.prototype.run = function () {\n\t this.fun.apply(null, this.array);\n\t};\n\tprocess.title = 'browser';\n\tprocess.browser = true;\n\tprocess.env = {};\n\tprocess.argv = [];\n\tprocess.version = ''; // empty string to avoid regexp issues\n\tprocess.versions = {};\n\t\n\tfunction noop() {}\n\t\n\tprocess.on = noop;\n\tprocess.addListener = noop;\n\tprocess.once = noop;\n\tprocess.off = noop;\n\tprocess.removeListener = noop;\n\tprocess.removeAllListeners = noop;\n\tprocess.emit = noop;\n\t\n\tprocess.binding = function (name) {\n\t throw new Error('process.binding is not supported');\n\t};\n\t\n\tprocess.cwd = function () { return '/' };\n\tprocess.chdir = function (dir) {\n\t throw new Error('process.chdir is not supported');\n\t};\n\tprocess.umask = function() { return 0; };\n\n\n/***/ },\n/* 12 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _ViewListView = __webpack_require__(6);\n\t\n\tvar _ViewListView2 = _interopRequireDefault(_ViewListView);\n\t\n\tvar Collection = (function (_ListView) {\n\t _inherits(Collection, _ListView);\n\t\n\t function Collection() {\n\t _classCallCheck(this, Collection);\n\t\n\t _get(Object.getPrototypeOf(Collection.prototype), 'constructor', this).apply(this, arguments);\n\t }\n\t\n\t _createClass(Collection, [{\n\t key: 'setEntity',\n\t value: function setEntity(entity) {\n\t this.entity = entity;\n\t if (!this._name) {\n\t this._name = entity.name();\n\t }\n\t return this;\n\t }\n\t }]);\n\t\n\t return Collection;\n\t})(_ViewListView2['default']);\n\t\n\texports['default'] = Collection;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 13 */\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar Dashboard = (function () {\n\t function Dashboard() {\n\t _classCallCheck(this, Dashboard);\n\t\n\t this._collections = {};\n\t this._template = null;\n\t }\n\t\n\t _createClass(Dashboard, [{\n\t key: \"addCollection\",\n\t value: function addCollection(collection) {\n\t this._collections[collection.name()] = collection;\n\t return this;\n\t }\n\t }, {\n\t key: \"collections\",\n\t value: function collections(_collections) {\n\t if (arguments.length) {\n\t this._collections = _collections;\n\t return this;\n\t }\n\t return this._collections;\n\t }\n\t }, {\n\t key: \"hasCollections\",\n\t value: function hasCollections() {\n\t return Object.keys(this._collections).length > 0;\n\t }\n\t }, {\n\t key: \"template\",\n\t value: function template(_template) {\n\t if (arguments.length) {\n\t this._template = _template;\n\t return this;\n\t }\n\t return this._template;\n\t }\n\t }]);\n\t\n\t return Dashboard;\n\t})();\n\t\n\texports[\"default\"] = Dashboard;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 14 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar DataStore = (function () {\n\t function DataStore() {\n\t _classCallCheck(this, DataStore);\n\t\n\t this._entries = {};\n\t }\n\t\n\t _createClass(DataStore, [{\n\t key: 'setEntries',\n\t value: function setEntries(name, entries) {\n\t this._entries[name] = entries;\n\t\n\t return this;\n\t }\n\t }, {\n\t key: 'addEntry',\n\t value: function addEntry(name, entry) {\n\t if (!(name in this._entries)) {\n\t this._entries[name] = [];\n\t }\n\t\n\t this._entries[name].push(entry);\n\t }\n\t }, {\n\t key: 'getEntries',\n\t value: function getEntries(name) {\n\t return this._entries[name] || [];\n\t }\n\t\n\t /**\n\t * Get first entry satisfying a filter function\n\t *\n\t * @example datastore.getEntry('books', book => book.title === 'War and Peace');\n\t */\n\t }, {\n\t key: 'getFirstEntry',\n\t value: function getFirstEntry(name) {\n\t var filter = arguments.length <= 1 || arguments[1] === undefined ? function () {\n\t return true;\n\t } : arguments[1];\n\t\n\t return this.getEntries(name).filter(filter).shift();\n\t }\n\t }, {\n\t key: 'getChoices',\n\t value: function getChoices(field) {\n\t var identifier = field.targetEntity().identifier().name();\n\t var name = field.targetField().name();\n\t\n\t return this.getEntries(field.targetEntity().uniqueId + '_choices').map(function (entry) {\n\t return {\n\t value: entry.values[identifier],\n\t label: entry.values[name]\n\t };\n\t });\n\t }\n\t }, {\n\t key: 'fillReferencesValuesFromCollection',\n\t value: function fillReferencesValuesFromCollection(collection, referencedValues, fillSimpleReference) {\n\t fillSimpleReference = typeof fillSimpleReference === 'undefined' ? false : fillSimpleReference;\n\t\n\t for (var i = 0, l = collection.length; i < l; i++) {\n\t collection[i] = this.fillReferencesValuesFromEntry(collection[i], referencedValues, fillSimpleReference);\n\t }\n\t\n\t return collection;\n\t }\n\t }, {\n\t key: 'fillReferencesValuesFromEntry',\n\t value: function fillReferencesValuesFromEntry(entry, referencedValues, fillSimpleReference) {\n\t for (var referenceField in referencedValues) {\n\t var reference = referencedValues[referenceField],\n\t choices = this.getReferenceChoicesById(reference),\n\t entries = [],\n\t identifier = reference.getMappedValue(entry.values[referenceField], entry.values);\n\t\n\t if (reference.type() === 'reference_many') {\n\t for (var i in identifier) {\n\t var id = identifier[i];\n\t entries.push(choices[id]);\n\t }\n\t\n\t entry.listValues[referenceField] = entries;\n\t } else if (fillSimpleReference && identifier != null && identifier in choices) {\n\t entry.listValues[referenceField] = reference.getMappedValue(choices[identifier], entry.values);\n\t }\n\t }\n\t\n\t return entry;\n\t }\n\t }, {\n\t key: 'getReferenceChoicesById',\n\t value: function getReferenceChoicesById(field) {\n\t var result = {},\n\t targetField = field.targetField().name(),\n\t targetIdentifier = field.targetEntity().identifier().name(),\n\t entries = this.getEntries(field.targetEntity().uniqueId + '_values');\n\t\n\t for (var i = 0, l = entries.length; i < l; i++) {\n\t var entry = entries[i];\n\t result[entry.values[targetIdentifier]] = entry.values[targetField];\n\t }\n\t\n\t return result;\n\t }\n\t }]);\n\t\n\t return DataStore;\n\t})();\n\t\n\texports['default'] = DataStore;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 15 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _Field2 = __webpack_require__(1);\n\t\n\tvar _Field3 = _interopRequireDefault(_Field2);\n\t\n\tvar DateField = (function (_Field) {\n\t _inherits(DateField, _Field);\n\t\n\t function DateField(name) {\n\t _classCallCheck(this, DateField);\n\t\n\t _get(Object.getPrototypeOf(DateField.prototype), \"constructor\", this).call(this, name);\n\t\n\t this._format = null;\n\t this._parse = function (date) {\n\t if (date instanceof Date) {\n\t // the datepicker returns a JS Date object, with hours, minutes and timezone\n\t // in order to convert it back to date, we must remove the timezone, then\n\t // remove hours and minutes\n\t date.setMinutes(date.getMinutes() - date.getTimezoneOffset());\n\t\n\t var dateString = date.toJSON();\n\t return dateString ? dateString.substr(0, 10) : null;\n\t }\n\t return date;\n\t };\n\t this._type = \"date\";\n\t }\n\t\n\t _createClass(DateField, [{\n\t key: \"format\",\n\t value: function format(value) {\n\t if (!arguments.length) return this._format;\n\t this._format = value;\n\t return this;\n\t }\n\t }, {\n\t key: \"parse\",\n\t value: function parse(value) {\n\t if (!arguments.length) return this._parse;\n\t this._parse = value;\n\t return this;\n\t }\n\t }]);\n\t\n\t return DateField;\n\t})(_Field3[\"default\"]);\n\t\n\texports[\"default\"] = DateField;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 16 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _Field2 = __webpack_require__(1);\n\t\n\tvar _Field3 = _interopRequireDefault(_Field2);\n\t\n\tvar NumberField = (function (_Field) {\n\t _inherits(NumberField, _Field);\n\t\n\t function NumberField(name) {\n\t _classCallCheck(this, NumberField);\n\t\n\t _get(Object.getPrototypeOf(NumberField.prototype), \"constructor\", this).call(this, name);\n\t this._type = \"number\";\n\t this._format = undefined;\n\t }\n\t\n\t /**\n\t * Specify format pattern for number to string conversion. \n\t *\n\t * Based on NumeralJs, which uses a syntax similar to Excel.\n\t *\n\t * {@link} http://numeraljs.com/\n\t * {@link} https://github.com/baumandm/angular-numeraljs\n\t * {@example}\n\t *\n\t * nga.field('height', 'number').format('$0,0.00');\n\t */\n\t\n\t _createClass(NumberField, [{\n\t key: \"format\",\n\t value: function format(value) {\n\t if (!arguments.length) return this._format;\n\t this._format = value;\n\t return this;\n\t }\n\t }, {\n\t key: \"fractionSize\",\n\t value: function fractionSize(decimals) {\n\t console.warn('NumberField.fractionSize() is deprecated, use NumberField.format() instead');\n\t this.format('0.' + '0'.repeat(decimals));\n\t return this;\n\t }\n\t }]);\n\t\n\t return NumberField;\n\t})(_Field3[\"default\"]);\n\t\n\texports[\"default\"] = NumberField;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 17 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar _EntityEntity = __webpack_require__(7);\n\t\n\tvar _EntityEntity2 = _interopRequireDefault(_EntityEntity);\n\t\n\tfunction alwaysFalse() {\n\t return false;\n\t}\n\t\n\tvar uuid = 0;\n\tvar _autoClose = true;\n\t\n\tvar Menu = (function () {\n\t function Menu() {\n\t _classCallCheck(this, Menu);\n\t\n\t this._link = null;\n\t this._activeFunc = alwaysFalse;\n\t this._title = null;\n\t this._icon = false;\n\t this._children = [];\n\t this._template = false;\n\t this._autoClose = true;\n\t this.uuid = uuid++;\n\t }\n\t\n\t _createClass(Menu, [{\n\t key: 'title',\n\t value: function title() {\n\t if (arguments.length) {\n\t this._title = arguments[0];\n\t return this;\n\t }\n\t return this._title;\n\t }\n\t }, {\n\t key: 'isLink',\n\t value: function isLink() {\n\t return !!this._link;\n\t }\n\t }, {\n\t key: 'link',\n\t value: function link() {\n\t var _this = this;\n\t\n\t if (arguments.length) {\n\t this._link = arguments[0];\n\t if (this._activeFunc == alwaysFalse) {\n\t this._activeFunc = function (url) {\n\t return url.indexOf(_this._link) === 0;\n\t };\n\t }\n\t return this;\n\t }\n\t return this._link;\n\t }\n\t }, {\n\t key: 'autoClose',\n\t value: function autoClose() {\n\t if (arguments.length) {\n\t _autoClose = arguments[0];\n\t return this;\n\t }\n\t return _autoClose;\n\t }\n\t }, {\n\t key: 'active',\n\t value: function active(activeFunc) {\n\t if (arguments.length) {\n\t this._activeFunc = arguments[0];\n\t return this;\n\t }\n\t return this._activeFunc;\n\t }\n\t }, {\n\t key: 'isActive',\n\t value: function isActive(url) {\n\t return this._activeFunc(url);\n\t }\n\t }, {\n\t key: 'isChildActive',\n\t value: function isChildActive(url) {\n\t return this.isActive(url) || this.children().filter(function (menu) {\n\t return menu.isChildActive(url);\n\t }).length > 0;\n\t }\n\t }, {\n\t key: 'addChild',\n\t value: function addChild(child) {\n\t if (!(child instanceof Menu)) {\n\t throw new Error('Only Menu instances are accepted as children of a Menu');\n\t }\n\t this._children.push(child);\n\t return this;\n\t }\n\t }, {\n\t key: 'hasChild',\n\t value: function hasChild() {\n\t return this._children.length > 0;\n\t }\n\t }, {\n\t key: 'getChildByTitle',\n\t value: function getChildByTitle(title) {\n\t return this.children().filter(function (child) {\n\t return child.title() == title;\n\t }).pop();\n\t }\n\t }, {\n\t key: 'children',\n\t value: function children() {\n\t if (arguments.length) {\n\t this._children = arguments[0];\n\t return this;\n\t }\n\t return this._children;\n\t }\n\t }, {\n\t key: 'icon',\n\t value: function icon() {\n\t if (arguments.length) {\n\t this._icon = arguments[0];\n\t return this;\n\t }\n\t return this._icon;\n\t }\n\t }, {\n\t key: 'template',\n\t value: function template() {\n\t if (arguments.length) {\n\t this._template = arguments[0];\n\t return this;\n\t }\n\t return this._template;\n\t }\n\t }, {\n\t key: 'populateFromEntity',\n\t value: function populateFromEntity(entity) {\n\t if (!(entity instanceof _EntityEntity2['default'])) {\n\t throw new Error('populateFromEntity() only accepts an Entity parameter');\n\t }\n\t this.title(entity.label());\n\t this.active(function (path) {\n\t return path.indexOf('/' + entity.name() + '/') === 0;\n\t });\n\t this.link('/' + entity.name() + '/list');\n\t // deprecated\n\t this.icon(entity.menuView().icon());\n\t return this;\n\t }\n\t }]);\n\t\n\t return Menu;\n\t})();\n\t\n\texports['default'] = Menu;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 18 */\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar Queries = function Queries(RestWrapper, PromisesResolver, Application) {\n\t _classCallCheck(this, Queries);\n\t\n\t this._restWrapper = RestWrapper;\n\t this._promisesResolver = PromisesResolver;\n\t this._application = Application;\n\t};\n\t\n\texports[\"default\"] = Queries;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 19 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports.clone = clone;\n\texports.cloneAndFlatten = cloneAndFlatten;\n\texports.cloneAndNest = cloneAndNest;\n\tfunction isObject(value) {\n\t if (value === null) return false;\n\t if (typeof value !== 'object') return false;\n\t if (Array.isArray(value)) return false;\n\t if (Object.prototype.toString.call(value) === '[object Date]') return false;\n\t return true;\n\t}\n\t\n\tfunction clone(object) {\n\t return Object.keys(object).reduce(function (values, name) {\n\t if (object.hasOwnProperty(name)) {\n\t values[name] = object[name];\n\t }\n\t return values;\n\t }, {});\n\t}\n\t\n\t/*\n\t * Flatten nested object into a single level object with 'foo.bar' property names\n\t *\n\t * The parameter object is left unchanged. All values in the returned object are scalar.\n\t *\n\t * cloneAndFlatten({ a: 1, b: { c: 2 }, d: { e: 3, f: { g: 4, h: 5 } }, i: { j: 6 } }, ['i'])\n\t * // { a: 1, 'b.c': 2, 'd.e': 3, 'd.f.g': 4, 'd.f.h': 5, i: { j: 6 } } }\n\t *\n\t * @param {Object} object\n\t * @param {String[]} excludedProperties\n\t * @return {Object}\n\t */\n\t\n\tfunction cloneAndFlatten(object) {\n\t var excludedProperties = arguments.length <= 1 || arguments[1] === undefined ? [] : arguments[1];\n\t\n\t if (typeof object !== 'object') {\n\t throw new Error('Expecting an object parameter');\n\t }\n\t return Object.keys(object).reduce(function (values, name) {\n\t if (!object.hasOwnProperty(name)) return values;\n\t if (isObject(object[name])) {\n\t if (excludedProperties.indexOf(name) === -1) {\n\t (function () {\n\t var flatObject = cloneAndFlatten(object[name]);\n\t Object.keys(flatObject).forEach(function (flatObjectKey) {\n\t if (!flatObject.hasOwnProperty(flatObjectKey)) return;\n\t values[name + '.' + flatObjectKey] = flatObject[flatObjectKey];\n\t });\n\t })();\n\t } else {\n\t values[name] = clone(object[name]);\n\t }\n\t } else {\n\t values[name] = object[name];\n\t }\n\t return values;\n\t }, {});\n\t}\n\t\n\t;\n\t\n\t/*\n\t * Clone flattened object into a nested object\n\t *\n\t * The parameter object is left unchanged.\n\t *\n\t * cloneAndNest({ a: 1, 'b.c': 2, 'd.e': 3, 'd.f.g': 4, 'd.f.h': 5 } )\n\t * // { a: 1, b: { c: 2 }, d: { e: 3, f: { g: 4, h: 5 } } }\n\t *\n\t * @param {Object} object\n\t * @return {Object}\n\t */\n\t\n\tfunction cloneAndNest(object) {\n\t if (typeof object !== 'object') {\n\t throw new Error('Expecting an object parameter');\n\t }\n\t return Object.keys(object).reduce(function (values, name) {\n\t if (!object.hasOwnProperty(name)) return values;\n\t name.split('.').reduce(function (previous, current, index, list) {\n\t if (previous != null) {\n\t if (typeof previous[current] === 'undefined') previous[current] = {};\n\t if (index < list.length - 1) {\n\t return previous[current];\n\t };\n\t previous[current] = object[name];\n\t }\n\t }, values);\n\t return values;\n\t }, {});\n\t}\n\n/***/ },\n/* 20 */\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports[\"default\"] = {\n\t order: function order(input) {\n\t var results = [],\n\t objectKey;\n\t\n\t for (objectKey in input) {\n\t results.push(input[objectKey]);\n\t }\n\t\n\t return results.sort(function (e1, e2) {\n\t return e1.order() - e2.order();\n\t });\n\t }\n\t};\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 21 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t /**\n\t * @see http://stackoverflow.com/questions/10425287/convert-string-to-camelcase-with-regular-expression\n\t * @see http://phpjs.org/functions/ucfirst/\n\t */\n\t camelCase: function camelCase(text) {\n\t if (!text) {\n\t return text;\n\t }\n\t\n\t var f = text.charAt(0).toUpperCase();\n\t text = f + text.substr(1);\n\t\n\t return text.replace(/[-_.\\s](.)/g, function (match, group1) {\n\t return ' ' + group1.toUpperCase();\n\t });\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 22 */\n/***/ function(module, exports) {\n\n\t/**\n\t * State-based routing for AngularJS\n\t * @version v0.2.18\n\t * @link http://angular-ui.github.com/\n\t * @license MIT License, http://www.opensource.org/licenses/MIT\n\t */\n\t\n\t/* commonjs package manager support (eg componentjs) */\n\tif (typeof module !== \"undefined\" && typeof exports !== \"undefined\" && module.exports === exports){\n\t module.exports = 'ui.router';\n\t}\n\t\n\t(function (window, angular, undefined) {\n\t/*jshint globalstrict:true*/\n\t/*global angular:false*/\n\t'use strict';\n\t\n\tvar isDefined = angular.isDefined,\n\t isFunction = angular.isFunction,\n\t isString = angular.isString,\n\t isObject = angular.isObject,\n\t isArray = angular.isArray,\n\t forEach = angular.forEach,\n\t extend = angular.extend,\n\t copy = angular.copy,\n\t toJson = angular.toJson;\n\t\n\tfunction inherit(parent, extra) {\n\t return extend(new (extend(function() {}, { prototype: parent }))(), extra);\n\t}\n\t\n\tfunction merge(dst) {\n\t forEach(arguments, function(obj) {\n\t if (obj !== dst) {\n\t forEach(obj, function(value, key) {\n\t if (!dst.hasOwnProperty(key)) dst[key] = value;\n\t });\n\t }\n\t });\n\t return dst;\n\t}\n\t\n\t/**\n\t * Finds the common ancestor path between two states.\n\t *\n\t * @param {Object} first The first state.\n\t * @param {Object} second The second state.\n\t * @return {Array} Returns an array of state names in descending order, not including the root.\n\t */\n\tfunction ancestors(first, second) {\n\t var path = [];\n\t\n\t for (var n in first.path) {\n\t if (first.path[n] !== second.path[n]) break;\n\t path.push(first.path[n]);\n\t }\n\t return path;\n\t}\n\t\n\t/**\n\t * IE8-safe wrapper for `Object.keys()`.\n\t *\n\t * @param {Object} object A JavaScript object.\n\t * @return {Array} Returns the keys of the object as an array.\n\t */\n\tfunction objectKeys(object) {\n\t if (Object.keys) {\n\t return Object.keys(object);\n\t }\n\t var result = [];\n\t\n\t forEach(object, function(val, key) {\n\t result.push(key);\n\t });\n\t return result;\n\t}\n\t\n\t/**\n\t * IE8-safe wrapper for `Array.prototype.indexOf()`.\n\t *\n\t * @param {Array} array A JavaScript array.\n\t * @param {*} value A value to search the array for.\n\t * @return {Number} Returns the array index value of `value`, or `-1` if not present.\n\t */\n\tfunction indexOf(array, value) {\n\t if (Array.prototype.indexOf) {\n\t return array.indexOf(value, Number(arguments[2]) || 0);\n\t }\n\t var len = array.length >>> 0, from = Number(arguments[2]) || 0;\n\t from = (from < 0) ? Math.ceil(from) : Math.floor(from);\n\t\n\t if (from < 0) from += len;\n\t\n\t for (; from < len; from++) {\n\t if (from in array && array[from] === value) return from;\n\t }\n\t return -1;\n\t}\n\t\n\t/**\n\t * Merges a set of parameters with all parameters inherited between the common parents of the\n\t * current state and a given destination state.\n\t *\n\t * @param {Object} currentParams The value of the current state parameters ($stateParams).\n\t * @param {Object} newParams The set of parameters which will be composited with inherited params.\n\t * @param {Object} $current Internal definition of object representing the current state.\n\t * @param {Object} $to Internal definition of object representing state to transition to.\n\t */\n\tfunction inheritParams(currentParams, newParams, $current, $to) {\n\t var parents = ancestors($current, $to), parentParams, inherited = {}, inheritList = [];\n\t\n\t for (var i in parents) {\n\t if (!parents[i] || !parents[i].params) continue;\n\t parentParams = objectKeys(parents[i].params);\n\t if (!parentParams.length) continue;\n\t\n\t for (var j in parentParams) {\n\t if (indexOf(inheritList, parentParams[j]) >= 0) continue;\n\t inheritList.push(parentParams[j]);\n\t inherited[parentParams[j]] = currentParams[parentParams[j]];\n\t }\n\t }\n\t return extend({}, inherited, newParams);\n\t}\n\t\n\t/**\n\t * Performs a non-strict comparison of the subset of two objects, defined by a list of keys.\n\t *\n\t * @param {Object} a The first object.\n\t * @param {Object} b The second object.\n\t * @param {Array} keys The list of keys within each object to compare. If the list is empty or not specified,\n\t * it defaults to the list of keys in `a`.\n\t * @return {Boolean} Returns `true` if the keys match, otherwise `false`.\n\t */\n\tfunction equalForKeys(a, b, keys) {\n\t if (!keys) {\n\t keys = [];\n\t for (var n in a) keys.push(n); // Used instead of Object.keys() for IE8 compatibility\n\t }\n\t\n\t for (var i=0; i\n\t * \n\t * \n\t * \n\t * \n\t * \n\t * \n\t * \n\t * \n\t * \n\t * \n\t * \n\t * \n\t */\n\tangular.module('ui.router', ['ui.router.state']);\n\t\n\tangular.module('ui.router.compat', ['ui.router']);\n\t\n\t/**\n\t * @ngdoc object\n\t * @name ui.router.util.$resolve\n\t *\n\t * @requires $q\n\t * @requires $injector\n\t *\n\t * @description\n\t * Manages resolution of (acyclic) graphs of promises.\n\t */\n\t$Resolve.$inject = ['$q', '$injector'];\n\tfunction $Resolve( $q, $injector) {\n\t \n\t var VISIT_IN_PROGRESS = 1,\n\t VISIT_DONE = 2,\n\t NOTHING = {},\n\t NO_DEPENDENCIES = [],\n\t NO_LOCALS = NOTHING,\n\t NO_PARENT = extend($q.when(NOTHING), { $$promises: NOTHING, $$values: NOTHING });\n\t \n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.util.$resolve#study\n\t * @methodOf ui.router.util.$resolve\n\t *\n\t * @description\n\t * Studies a set of invocables that are likely to be used multiple times.\n\t *
\n\t   * $resolve.study(invocables)(locals, parent, self)\n\t   * 
\n\t * is equivalent to\n\t *
\n\t   * $resolve.resolve(invocables, locals, parent, self)\n\t   * 
\n\t * but the former is more efficient (in fact `resolve` just calls `study` \n\t * internally).\n\t *\n\t * @param {object} invocables Invocable objects\n\t * @return {function} a function to pass in locals, parent and self\n\t */\n\t this.study = function (invocables) {\n\t if (!isObject(invocables)) throw new Error(\"'invocables' must be an object\");\n\t var invocableKeys = objectKeys(invocables || {});\n\t \n\t // Perform a topological sort of invocables to build an ordered plan\n\t var plan = [], cycle = [], visited = {};\n\t function visit(value, key) {\n\t if (visited[key] === VISIT_DONE) return;\n\t \n\t cycle.push(key);\n\t if (visited[key] === VISIT_IN_PROGRESS) {\n\t cycle.splice(0, indexOf(cycle, key));\n\t throw new Error(\"Cyclic dependency: \" + cycle.join(\" -> \"));\n\t }\n\t visited[key] = VISIT_IN_PROGRESS;\n\t \n\t if (isString(value)) {\n\t plan.push(key, [ function() { return $injector.get(value); }], NO_DEPENDENCIES);\n\t } else {\n\t var params = $injector.annotate(value);\n\t forEach(params, function (param) {\n\t if (param !== key && invocables.hasOwnProperty(param)) visit(invocables[param], param);\n\t });\n\t plan.push(key, value, params);\n\t }\n\t \n\t cycle.pop();\n\t visited[key] = VISIT_DONE;\n\t }\n\t forEach(invocables, visit);\n\t invocables = cycle = visited = null; // plan is all that's required\n\t \n\t function isResolve(value) {\n\t return isObject(value) && value.then && value.$$promises;\n\t }\n\t \n\t return function (locals, parent, self) {\n\t if (isResolve(locals) && self === undefined) {\n\t self = parent; parent = locals; locals = null;\n\t }\n\t if (!locals) locals = NO_LOCALS;\n\t else if (!isObject(locals)) {\n\t throw new Error(\"'locals' must be an object\");\n\t } \n\t if (!parent) parent = NO_PARENT;\n\t else if (!isResolve(parent)) {\n\t throw new Error(\"'parent' must be a promise returned by $resolve.resolve()\");\n\t }\n\t \n\t // To complete the overall resolution, we have to wait for the parent\n\t // promise and for the promise for each invokable in our plan.\n\t var resolution = $q.defer(),\n\t result = resolution.promise,\n\t promises = result.$$promises = {},\n\t values = extend({}, locals),\n\t wait = 1 + plan.length/3,\n\t merged = false;\n\t \n\t function done() {\n\t // Merge parent values we haven't got yet and publish our own $$values\n\t if (!--wait) {\n\t if (!merged) merge(values, parent.$$values); \n\t result.$$values = values;\n\t result.$$promises = result.$$promises || true; // keep for isResolve()\n\t delete result.$$inheritedValues;\n\t resolution.resolve(values);\n\t }\n\t }\n\t \n\t function fail(reason) {\n\t result.$$failure = reason;\n\t resolution.reject(reason);\n\t }\n\t\n\t // Short-circuit if parent has already failed\n\t if (isDefined(parent.$$failure)) {\n\t fail(parent.$$failure);\n\t return result;\n\t }\n\t \n\t if (parent.$$inheritedValues) {\n\t merge(values, omit(parent.$$inheritedValues, invocableKeys));\n\t }\n\t\n\t // Merge parent values if the parent has already resolved, or merge\n\t // parent promises and wait if the parent resolve is still in progress.\n\t extend(promises, parent.$$promises);\n\t if (parent.$$values) {\n\t merged = merge(values, omit(parent.$$values, invocableKeys));\n\t result.$$inheritedValues = omit(parent.$$values, invocableKeys);\n\t done();\n\t } else {\n\t if (parent.$$inheritedValues) {\n\t result.$$inheritedValues = omit(parent.$$inheritedValues, invocableKeys);\n\t } \n\t parent.then(done, fail);\n\t }\n\t \n\t // Process each invocable in the plan, but ignore any where a local of the same name exists.\n\t for (var i=0, ii=plan.length; i} The template html as a string, or a promise \n\t * for that string.\n\t */\n\t this.fromUrl = function (url, params) {\n\t if (isFunction(url)) url = url(params);\n\t if (url == null) return null;\n\t else return $http\n\t .get(url, { cache: $templateCache, headers: { Accept: 'text/html' }})\n\t .then(function(response) { return response.data; });\n\t };\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.util.$templateFactory#fromProvider\n\t * @methodOf ui.router.util.$templateFactory\n\t *\n\t * @description\n\t * Creates a template by invoking an injectable provider function.\n\t *\n\t * @param {Function} provider Function to invoke via `$injector.invoke`\n\t * @param {Object} params Parameters for the template.\n\t * @param {Object} locals Locals to pass to `invoke`. Defaults to \n\t * `{ params: params }`.\n\t * @return {string|Promise.} The template html as a string, or a promise \n\t * for that string.\n\t */\n\t this.fromProvider = function (provider, params, locals) {\n\t return $injector.invoke(provider, null, locals || { params: params });\n\t };\n\t}\n\t\n\tangular.module('ui.router.util').service('$templateFactory', $TemplateFactory);\n\t\n\tvar $$UMFP; // reference to $UrlMatcherFactoryProvider\n\t\n\t/**\n\t * @ngdoc object\n\t * @name ui.router.util.type:UrlMatcher\n\t *\n\t * @description\n\t * Matches URLs against patterns and extracts named parameters from the path or the search\n\t * part of the URL. A URL pattern consists of a path pattern, optionally followed by '?' and a list\n\t * of search parameters. Multiple search parameter names are separated by '&'. Search parameters\n\t * do not influence whether or not a URL is matched, but their values are passed through into\n\t * the matched parameters returned by {@link ui.router.util.type:UrlMatcher#methods_exec exec}.\n\t *\n\t * Path parameter placeholders can be specified using simple colon/catch-all syntax or curly brace\n\t * syntax, which optionally allows a regular expression for the parameter to be specified:\n\t *\n\t * * `':'` name - colon placeholder\n\t * * `'*'` name - catch-all placeholder\n\t * * `'{' name '}'` - curly placeholder\n\t * * `'{' name ':' regexp|type '}'` - curly placeholder with regexp or type name. Should the\n\t * regexp itself contain curly braces, they must be in matched pairs or escaped with a backslash.\n\t *\n\t * Parameter names may contain only word characters (latin letters, digits, and underscore) and\n\t * must be unique within the pattern (across both path and search parameters). For colon\n\t * placeholders or curly placeholders without an explicit regexp, a path parameter matches any\n\t * number of characters other than '/'. For catch-all placeholders the path parameter matches\n\t * any number of characters.\n\t *\n\t * Examples:\n\t *\n\t * * `'/hello/'` - Matches only if the path is exactly '/hello/'. There is no special treatment for\n\t * trailing slashes, and patterns have to match the entire path, not just a prefix.\n\t * * `'/user/:id'` - Matches '/user/bob' or '/user/1234!!!' or even '/user/' but not '/user' or\n\t * '/user/bob/details'. The second path segment will be captured as the parameter 'id'.\n\t * * `'/user/{id}'` - Same as the previous example, but using curly brace syntax.\n\t * * `'/user/{id:[^/]*}'` - Same as the previous example.\n\t * * `'/user/{id:[0-9a-fA-F]{1,8}}'` - Similar to the previous example, but only matches if the id\n\t * parameter consists of 1 to 8 hex digits.\n\t * * `'/files/{path:.*}'` - Matches any URL starting with '/files/' and captures the rest of the\n\t * path into the parameter 'path'.\n\t * * `'/files/*path'` - ditto.\n\t * * `'/calendar/{start:date}'` - Matches \"/calendar/2014-11-12\" (because the pattern defined\n\t * in the built-in `date` Type matches `2014-11-12`) and provides a Date object in $stateParams.start\n\t *\n\t * @param {string} pattern The pattern to compile into a matcher.\n\t * @param {Object} config A configuration object hash:\n\t * @param {Object=} parentMatcher Used to concatenate the pattern/config onto\n\t * an existing UrlMatcher\n\t *\n\t * * `caseInsensitive` - `true` if URL matching should be case insensitive, otherwise `false`, the default value (for backward compatibility) is `false`.\n\t * * `strict` - `false` if matching against a URL with a trailing slash should be treated as equivalent to a URL without a trailing slash, the default value is `true`.\n\t *\n\t * @property {string} prefix A static prefix of this pattern. The matcher guarantees that any\n\t * URL matching this matcher (i.e. any string for which {@link ui.router.util.type:UrlMatcher#methods_exec exec()} returns\n\t * non-null) will start with this prefix.\n\t *\n\t * @property {string} source The pattern that was passed into the constructor\n\t *\n\t * @property {string} sourcePath The path portion of the source property\n\t *\n\t * @property {string} sourceSearch The search portion of the source property\n\t *\n\t * @property {string} regex The constructed regex that will be used to match against the url when\n\t * it is time to determine which url will match.\n\t *\n\t * @returns {Object} New `UrlMatcher` object\n\t */\n\tfunction UrlMatcher(pattern, config, parentMatcher) {\n\t config = extend({ params: {} }, isObject(config) ? config : {});\n\t\n\t // Find all placeholders and create a compiled pattern, using either classic or curly syntax:\n\t // '*' name\n\t // ':' name\n\t // '{' name '}'\n\t // '{' name ':' regexp '}'\n\t // The regular expression is somewhat complicated due to the need to allow curly braces\n\t // inside the regular expression. The placeholder regexp breaks down as follows:\n\t // ([:*])([\\w\\[\\]]+) - classic placeholder ($1 / $2) (search version has - for snake-case)\n\t // \\{([\\w\\[\\]]+)(?:\\:\\s*( ... ))?\\} - curly brace placeholder ($3) with optional regexp/type ... ($4) (search version has - for snake-case\n\t // (?: ... | ... | ... )+ - the regexp consists of any number of atoms, an atom being either\n\t // [^{}\\\\]+ - anything other than curly braces or backslash\n\t // \\\\. - a backslash escape\n\t // \\{(?:[^{}\\\\]+|\\\\.)*\\} - a matched set of curly braces containing other atoms\n\t var placeholder = /([:*])([\\w\\[\\]]+)|\\{([\\w\\[\\]]+)(?:\\:\\s*((?:[^{}\\\\]+|\\\\.|\\{(?:[^{}\\\\]+|\\\\.)*\\})+))?\\}/g,\n\t searchPlaceholder = /([:]?)([\\w\\[\\].-]+)|\\{([\\w\\[\\].-]+)(?:\\:\\s*((?:[^{}\\\\]+|\\\\.|\\{(?:[^{}\\\\]+|\\\\.)*\\})+))?\\}/g,\n\t compiled = '^', last = 0, m,\n\t segments = this.segments = [],\n\t parentParams = parentMatcher ? parentMatcher.params : {},\n\t params = this.params = parentMatcher ? parentMatcher.params.$$new() : new $$UMFP.ParamSet(),\n\t paramNames = [];\n\t\n\t function addParameter(id, type, config, location) {\n\t paramNames.push(id);\n\t if (parentParams[id]) return parentParams[id];\n\t if (!/^\\w+([-.]+\\w+)*(?:\\[\\])?$/.test(id)) throw new Error(\"Invalid parameter name '\" + id + \"' in pattern '\" + pattern + \"'\");\n\t if (params[id]) throw new Error(\"Duplicate parameter name '\" + id + \"' in pattern '\" + pattern + \"'\");\n\t params[id] = new $$UMFP.Param(id, type, config, location);\n\t return params[id];\n\t }\n\t\n\t function quoteRegExp(string, pattern, squash, optional) {\n\t var surroundPattern = ['',''], result = string.replace(/[\\\\\\[\\]\\^$*+?.()|{}]/g, \"\\\\$&\");\n\t if (!pattern) return result;\n\t switch(squash) {\n\t case false: surroundPattern = ['(', ')' + (optional ? \"?\" : \"\")]; break;\n\t case true:\n\t result = result.replace(/\\/$/, '');\n\t surroundPattern = ['(?:\\/(', ')|\\/)?'];\n\t break;\n\t default: surroundPattern = ['(' + squash + \"|\", ')?']; break;\n\t }\n\t return result + surroundPattern[0] + pattern + surroundPattern[1];\n\t }\n\t\n\t this.source = pattern;\n\t\n\t // Split into static segments separated by path parameter placeholders.\n\t // The number of segments is always 1 more than the number of parameters.\n\t function matchDetails(m, isSearch) {\n\t var id, regexp, segment, type, cfg, arrayMode;\n\t id = m[2] || m[3]; // IE[78] returns '' for unmatched groups instead of null\n\t cfg = config.params[id];\n\t segment = pattern.substring(last, m.index);\n\t regexp = isSearch ? m[4] : m[4] || (m[1] == '*' ? '.*' : null);\n\t\n\t if (regexp) {\n\t type = $$UMFP.type(regexp) || inherit($$UMFP.type(\"string\"), { pattern: new RegExp(regexp, config.caseInsensitive ? 'i' : undefined) });\n\t }\n\t\n\t return {\n\t id: id, regexp: regexp, segment: segment, type: type, cfg: cfg\n\t };\n\t }\n\t\n\t var p, param, segment;\n\t while ((m = placeholder.exec(pattern))) {\n\t p = matchDetails(m, false);\n\t if (p.segment.indexOf('?') >= 0) break; // we're into the search part\n\t\n\t param = addParameter(p.id, p.type, p.cfg, \"path\");\n\t compiled += quoteRegExp(p.segment, param.type.pattern.source, param.squash, param.isOptional);\n\t segments.push(p.segment);\n\t last = placeholder.lastIndex;\n\t }\n\t segment = pattern.substring(last);\n\t\n\t // Find any search parameter names and remove them from the last segment\n\t var i = segment.indexOf('?');\n\t\n\t if (i >= 0) {\n\t var search = this.sourceSearch = segment.substring(i);\n\t segment = segment.substring(0, i);\n\t this.sourcePath = pattern.substring(0, last + i);\n\t\n\t if (search.length > 0) {\n\t last = 0;\n\t while ((m = searchPlaceholder.exec(search))) {\n\t p = matchDetails(m, true);\n\t param = addParameter(p.id, p.type, p.cfg, \"search\");\n\t last = placeholder.lastIndex;\n\t // check if ?&\n\t }\n\t }\n\t } else {\n\t this.sourcePath = pattern;\n\t this.sourceSearch = '';\n\t }\n\t\n\t compiled += quoteRegExp(segment) + (config.strict === false ? '\\/?' : '') + '$';\n\t segments.push(segment);\n\t\n\t this.regexp = new RegExp(compiled, config.caseInsensitive ? 'i' : undefined);\n\t this.prefix = segments[0];\n\t this.$$paramNames = paramNames;\n\t}\n\t\n\t/**\n\t * @ngdoc function\n\t * @name ui.router.util.type:UrlMatcher#concat\n\t * @methodOf ui.router.util.type:UrlMatcher\n\t *\n\t * @description\n\t * Returns a new matcher for a pattern constructed by appending the path part and adding the\n\t * search parameters of the specified pattern to this pattern. The current pattern is not\n\t * modified. This can be understood as creating a pattern for URLs that are relative to (or\n\t * suffixes of) the current pattern.\n\t *\n\t * @example\n\t * The following two matchers are equivalent:\n\t *
\n\t * new UrlMatcher('/user/{id}?q').concat('/details?date');\n\t * new UrlMatcher('/user/{id}/details?q&date');\n\t * 
\n\t *\n\t * @param {string} pattern The pattern to append.\n\t * @param {Object} config An object hash of the configuration for the matcher.\n\t * @returns {UrlMatcher} A matcher for the concatenated pattern.\n\t */\n\tUrlMatcher.prototype.concat = function (pattern, config) {\n\t // Because order of search parameters is irrelevant, we can add our own search\n\t // parameters to the end of the new pattern. Parse the new pattern by itself\n\t // and then join the bits together, but it's much easier to do this on a string level.\n\t var defaultConfig = {\n\t caseInsensitive: $$UMFP.caseInsensitive(),\n\t strict: $$UMFP.strictMode(),\n\t squash: $$UMFP.defaultSquashPolicy()\n\t };\n\t return new UrlMatcher(this.sourcePath + pattern + this.sourceSearch, extend(defaultConfig, config), this);\n\t};\n\t\n\tUrlMatcher.prototype.toString = function () {\n\t return this.source;\n\t};\n\t\n\t/**\n\t * @ngdoc function\n\t * @name ui.router.util.type:UrlMatcher#exec\n\t * @methodOf ui.router.util.type:UrlMatcher\n\t *\n\t * @description\n\t * Tests the specified path against this matcher, and returns an object containing the captured\n\t * parameter values, or null if the path does not match. The returned object contains the values\n\t * of any search parameters that are mentioned in the pattern, but their value may be null if\n\t * they are not present in `searchParams`. This means that search parameters are always treated\n\t * as optional.\n\t *\n\t * @example\n\t *
\n\t * new UrlMatcher('/user/{id}?q&r').exec('/user/bob', {\n\t *   x: '1', q: 'hello'\n\t * });\n\t * // returns { id: 'bob', q: 'hello', r: null }\n\t * 
\n\t *\n\t * @param {string} path The URL path to match, e.g. `$location.path()`.\n\t * @param {Object} searchParams URL search parameters, e.g. `$location.search()`.\n\t * @returns {Object} The captured parameter values.\n\t */\n\tUrlMatcher.prototype.exec = function (path, searchParams) {\n\t var m = this.regexp.exec(path);\n\t if (!m) return null;\n\t searchParams = searchParams || {};\n\t\n\t var paramNames = this.parameters(), nTotal = paramNames.length,\n\t nPath = this.segments.length - 1,\n\t values = {}, i, j, cfg, paramName;\n\t\n\t if (nPath !== m.length - 1) throw new Error(\"Unbalanced capture group in route '\" + this.source + \"'\");\n\t\n\t function decodePathArray(string) {\n\t function reverseString(str) { return str.split(\"\").reverse().join(\"\"); }\n\t function unquoteDashes(str) { return str.replace(/\\\\-/g, \"-\"); }\n\t\n\t var split = reverseString(string).split(/-(?!\\\\)/);\n\t var allReversed = map(split, reverseString);\n\t return map(allReversed, unquoteDashes).reverse();\n\t }\n\t\n\t var param, paramVal;\n\t for (i = 0; i < nPath; i++) {\n\t paramName = paramNames[i];\n\t param = this.params[paramName];\n\t paramVal = m[i+1];\n\t // if the param value matches a pre-replace pair, replace the value before decoding.\n\t for (j = 0; j < param.replace.length; j++) {\n\t if (param.replace[j].from === paramVal) paramVal = param.replace[j].to;\n\t }\n\t if (paramVal && param.array === true) paramVal = decodePathArray(paramVal);\n\t if (isDefined(paramVal)) paramVal = param.type.decode(paramVal);\n\t values[paramName] = param.value(paramVal);\n\t }\n\t for (/**/; i < nTotal; i++) {\n\t paramName = paramNames[i];\n\t values[paramName] = this.params[paramName].value(searchParams[paramName]);\n\t param = this.params[paramName];\n\t paramVal = searchParams[paramName];\n\t for (j = 0; j < param.replace.length; j++) {\n\t if (param.replace[j].from === paramVal) paramVal = param.replace[j].to;\n\t }\n\t if (isDefined(paramVal)) paramVal = param.type.decode(paramVal);\n\t values[paramName] = param.value(paramVal);\n\t }\n\t\n\t return values;\n\t};\n\t\n\t/**\n\t * @ngdoc function\n\t * @name ui.router.util.type:UrlMatcher#parameters\n\t * @methodOf ui.router.util.type:UrlMatcher\n\t *\n\t * @description\n\t * Returns the names of all path and search parameters of this pattern in an unspecified order.\n\t *\n\t * @returns {Array.} An array of parameter names. Must be treated as read-only. If the\n\t * pattern has no parameters, an empty array is returned.\n\t */\n\tUrlMatcher.prototype.parameters = function (param) {\n\t if (!isDefined(param)) return this.$$paramNames;\n\t return this.params[param] || null;\n\t};\n\t\n\t/**\n\t * @ngdoc function\n\t * @name ui.router.util.type:UrlMatcher#validates\n\t * @methodOf ui.router.util.type:UrlMatcher\n\t *\n\t * @description\n\t * Checks an object hash of parameters to validate their correctness according to the parameter\n\t * types of this `UrlMatcher`.\n\t *\n\t * @param {Object} params The object hash of parameters to validate.\n\t * @returns {boolean} Returns `true` if `params` validates, otherwise `false`.\n\t */\n\tUrlMatcher.prototype.validates = function (params) {\n\t return this.params.$$validates(params);\n\t};\n\t\n\t/**\n\t * @ngdoc function\n\t * @name ui.router.util.type:UrlMatcher#format\n\t * @methodOf ui.router.util.type:UrlMatcher\n\t *\n\t * @description\n\t * Creates a URL that matches this pattern by substituting the specified values\n\t * for the path and search parameters. Null values for path parameters are\n\t * treated as empty strings.\n\t *\n\t * @example\n\t *
\n\t * new UrlMatcher('/user/{id}?q').format({ id:'bob', q:'yes' });\n\t * // returns '/user/bob?q=yes'\n\t * 
\n\t *\n\t * @param {Object} values the values to substitute for the parameters in this pattern.\n\t * @returns {string} the formatted URL (path and optionally search part).\n\t */\n\tUrlMatcher.prototype.format = function (values) {\n\t values = values || {};\n\t var segments = this.segments, params = this.parameters(), paramset = this.params;\n\t if (!this.validates(values)) return null;\n\t\n\t var i, search = false, nPath = segments.length - 1, nTotal = params.length, result = segments[0];\n\t\n\t function encodeDashes(str) { // Replace dashes with encoded \"\\-\"\n\t return encodeURIComponent(str).replace(/-/g, function(c) { return '%5C%' + c.charCodeAt(0).toString(16).toUpperCase(); });\n\t }\n\t\n\t for (i = 0; i < nTotal; i++) {\n\t var isPathParam = i < nPath;\n\t var name = params[i], param = paramset[name], value = param.value(values[name]);\n\t var isDefaultValue = param.isOptional && param.type.equals(param.value(), value);\n\t var squash = isDefaultValue ? param.squash : false;\n\t var encoded = param.type.encode(value);\n\t\n\t if (isPathParam) {\n\t var nextSegment = segments[i + 1];\n\t var isFinalPathParam = i + 1 === nPath;\n\t\n\t if (squash === false) {\n\t if (encoded != null) {\n\t if (isArray(encoded)) {\n\t result += map(encoded, encodeDashes).join(\"-\");\n\t } else {\n\t result += encodeURIComponent(encoded);\n\t }\n\t }\n\t result += nextSegment;\n\t } else if (squash === true) {\n\t var capture = result.match(/\\/$/) ? /\\/?(.*)/ : /(.*)/;\n\t result += nextSegment.match(capture)[1];\n\t } else if (isString(squash)) {\n\t result += squash + nextSegment;\n\t }\n\t\n\t if (isFinalPathParam && param.squash === true && result.slice(-1) === '/') result = result.slice(0, -1);\n\t } else {\n\t if (encoded == null || (isDefaultValue && squash !== false)) continue;\n\t if (!isArray(encoded)) encoded = [ encoded ];\n\t if (encoded.length === 0) continue;\n\t encoded = map(encoded, encodeURIComponent).join('&' + name + '=');\n\t result += (search ? '&' : '?') + (name + '=' + encoded);\n\t search = true;\n\t }\n\t }\n\t\n\t return result;\n\t};\n\t\n\t/**\n\t * @ngdoc object\n\t * @name ui.router.util.type:Type\n\t *\n\t * @description\n\t * Implements an interface to define custom parameter types that can be decoded from and encoded to\n\t * string parameters matched in a URL. Used by {@link ui.router.util.type:UrlMatcher `UrlMatcher`}\n\t * objects when matching or formatting URLs, or comparing or validating parameter values.\n\t *\n\t * See {@link ui.router.util.$urlMatcherFactory#methods_type `$urlMatcherFactory#type()`} for more\n\t * information on registering custom types.\n\t *\n\t * @param {Object} config A configuration object which contains the custom type definition. The object's\n\t * properties will override the default methods and/or pattern in `Type`'s public interface.\n\t * @example\n\t *
\n\t * {\n\t *   decode: function(val) { return parseInt(val, 10); },\n\t *   encode: function(val) { return val && val.toString(); },\n\t *   equals: function(a, b) { return this.is(a) && a === b; },\n\t *   is: function(val) { return angular.isNumber(val) isFinite(val) && val % 1 === 0; },\n\t *   pattern: /\\d+/\n\t * }\n\t * 
\n\t *\n\t * @property {RegExp} pattern The regular expression pattern used to match values of this type when\n\t * coming from a substring of a URL.\n\t *\n\t * @returns {Object} Returns a new `Type` object.\n\t */\n\tfunction Type(config) {\n\t extend(this, config);\n\t}\n\t\n\t/**\n\t * @ngdoc function\n\t * @name ui.router.util.type:Type#is\n\t * @methodOf ui.router.util.type:Type\n\t *\n\t * @description\n\t * Detects whether a value is of a particular type. Accepts a native (decoded) value\n\t * and determines whether it matches the current `Type` object.\n\t *\n\t * @param {*} val The value to check.\n\t * @param {string} key Optional. If the type check is happening in the context of a specific\n\t * {@link ui.router.util.type:UrlMatcher `UrlMatcher`} object, this is the name of the\n\t * parameter in which `val` is stored. Can be used for meta-programming of `Type` objects.\n\t * @returns {Boolean} Returns `true` if the value matches the type, otherwise `false`.\n\t */\n\tType.prototype.is = function(val, key) {\n\t return true;\n\t};\n\t\n\t/**\n\t * @ngdoc function\n\t * @name ui.router.util.type:Type#encode\n\t * @methodOf ui.router.util.type:Type\n\t *\n\t * @description\n\t * Encodes a custom/native type value to a string that can be embedded in a URL. Note that the\n\t * return value does *not* need to be URL-safe (i.e. passed through `encodeURIComponent()`), it\n\t * only needs to be a representation of `val` that has been coerced to a string.\n\t *\n\t * @param {*} val The value to encode.\n\t * @param {string} key The name of the parameter in which `val` is stored. Can be used for\n\t * meta-programming of `Type` objects.\n\t * @returns {string} Returns a string representation of `val` that can be encoded in a URL.\n\t */\n\tType.prototype.encode = function(val, key) {\n\t return val;\n\t};\n\t\n\t/**\n\t * @ngdoc function\n\t * @name ui.router.util.type:Type#decode\n\t * @methodOf ui.router.util.type:Type\n\t *\n\t * @description\n\t * Converts a parameter value (from URL string or transition param) to a custom/native value.\n\t *\n\t * @param {string} val The URL parameter value to decode.\n\t * @param {string} key The name of the parameter in which `val` is stored. Can be used for\n\t * meta-programming of `Type` objects.\n\t * @returns {*} Returns a custom representation of the URL parameter value.\n\t */\n\tType.prototype.decode = function(val, key) {\n\t return val;\n\t};\n\t\n\t/**\n\t * @ngdoc function\n\t * @name ui.router.util.type:Type#equals\n\t * @methodOf ui.router.util.type:Type\n\t *\n\t * @description\n\t * Determines whether two decoded values are equivalent.\n\t *\n\t * @param {*} a A value to compare against.\n\t * @param {*} b A value to compare against.\n\t * @returns {Boolean} Returns `true` if the values are equivalent/equal, otherwise `false`.\n\t */\n\tType.prototype.equals = function(a, b) {\n\t return a == b;\n\t};\n\t\n\tType.prototype.$subPattern = function() {\n\t var sub = this.pattern.toString();\n\t return sub.substr(1, sub.length - 2);\n\t};\n\t\n\tType.prototype.pattern = /.*/;\n\t\n\tType.prototype.toString = function() { return \"{Type:\" + this.name + \"}\"; };\n\t\n\t/** Given an encoded string, or a decoded object, returns a decoded object */\n\tType.prototype.$normalize = function(val) {\n\t return this.is(val) ? val : this.decode(val);\n\t};\n\t\n\t/*\n\t * Wraps an existing custom Type as an array of Type, depending on 'mode'.\n\t * e.g.:\n\t * - urlmatcher pattern \"/path?{queryParam[]:int}\"\n\t * - url: \"/path?queryParam=1&queryParam=2\n\t * - $stateParams.queryParam will be [1, 2]\n\t * if `mode` is \"auto\", then\n\t * - url: \"/path?queryParam=1 will create $stateParams.queryParam: 1\n\t * - url: \"/path?queryParam=1&queryParam=2 will create $stateParams.queryParam: [1, 2]\n\t */\n\tType.prototype.$asArray = function(mode, isSearch) {\n\t if (!mode) return this;\n\t if (mode === \"auto\" && !isSearch) throw new Error(\"'auto' array mode is for query parameters only\");\n\t\n\t function ArrayType(type, mode) {\n\t function bindTo(type, callbackName) {\n\t return function() {\n\t return type[callbackName].apply(type, arguments);\n\t };\n\t }\n\t\n\t // Wrap non-array value as array\n\t function arrayWrap(val) { return isArray(val) ? val : (isDefined(val) ? [ val ] : []); }\n\t // Unwrap array value for \"auto\" mode. Return undefined for empty array.\n\t function arrayUnwrap(val) {\n\t switch(val.length) {\n\t case 0: return undefined;\n\t case 1: return mode === \"auto\" ? val[0] : val;\n\t default: return val;\n\t }\n\t }\n\t function falsey(val) { return !val; }\n\t\n\t // Wraps type (.is/.encode/.decode) functions to operate on each value of an array\n\t function arrayHandler(callback, allTruthyMode) {\n\t return function handleArray(val) {\n\t if (isArray(val) && val.length === 0) return val;\n\t val = arrayWrap(val);\n\t var result = map(val, callback);\n\t if (allTruthyMode === true)\n\t return filter(result, falsey).length === 0;\n\t return arrayUnwrap(result);\n\t };\n\t }\n\t\n\t // Wraps type (.equals) functions to operate on each value of an array\n\t function arrayEqualsHandler(callback) {\n\t return function handleArray(val1, val2) {\n\t var left = arrayWrap(val1), right = arrayWrap(val2);\n\t if (left.length !== right.length) return false;\n\t for (var i = 0; i < left.length; i++) {\n\t if (!callback(left[i], right[i])) return false;\n\t }\n\t return true;\n\t };\n\t }\n\t\n\t this.encode = arrayHandler(bindTo(type, 'encode'));\n\t this.decode = arrayHandler(bindTo(type, 'decode'));\n\t this.is = arrayHandler(bindTo(type, 'is'), true);\n\t this.equals = arrayEqualsHandler(bindTo(type, 'equals'));\n\t this.pattern = type.pattern;\n\t this.$normalize = arrayHandler(bindTo(type, '$normalize'));\n\t this.name = type.name;\n\t this.$arrayMode = mode;\n\t }\n\t\n\t return new ArrayType(this, mode);\n\t};\n\t\n\t\n\t\n\t/**\n\t * @ngdoc object\n\t * @name ui.router.util.$urlMatcherFactory\n\t *\n\t * @description\n\t * Factory for {@link ui.router.util.type:UrlMatcher `UrlMatcher`} instances. The factory\n\t * is also available to providers under the name `$urlMatcherFactoryProvider`.\n\t */\n\tfunction $UrlMatcherFactory() {\n\t $$UMFP = this;\n\t\n\t var isCaseInsensitive = false, isStrictMode = true, defaultSquashPolicy = false;\n\t\n\t // Use tildes to pre-encode slashes.\n\t // If the slashes are simply URLEncoded, the browser can choose to pre-decode them,\n\t // and bidirectional encoding/decoding fails.\n\t // Tilde was chosen because it's not a RFC 3986 section 2.2 Reserved Character\n\t function valToString(val) { return val != null ? val.toString().replace(/~/g, \"~~\").replace(/\\//g, \"~2F\") : val; }\n\t function valFromString(val) { return val != null ? val.toString().replace(/~2F/g, \"/\").replace(/~~/g, \"~\") : val; }\n\t\n\t var $types = {}, enqueue = true, typeQueue = [], injector, defaultTypes = {\n\t \"string\": {\n\t encode: valToString,\n\t decode: valFromString,\n\t // TODO: in 1.0, make string .is() return false if value is undefined/null by default.\n\t // In 0.2.x, string params are optional by default for backwards compat\n\t is: function(val) { return val == null || !isDefined(val) || typeof val === \"string\"; },\n\t pattern: /[^/]*/\n\t },\n\t \"int\": {\n\t encode: valToString,\n\t decode: function(val) { return parseInt(val, 10); },\n\t is: function(val) { return isDefined(val) && this.decode(val.toString()) === val; },\n\t pattern: /\\d+/\n\t },\n\t \"bool\": {\n\t encode: function(val) { return val ? 1 : 0; },\n\t decode: function(val) { return parseInt(val, 10) !== 0; },\n\t is: function(val) { return val === true || val === false; },\n\t pattern: /0|1/\n\t },\n\t \"date\": {\n\t encode: function (val) {\n\t if (!this.is(val))\n\t return undefined;\n\t return [ val.getFullYear(),\n\t ('0' + (val.getMonth() + 1)).slice(-2),\n\t ('0' + val.getDate()).slice(-2)\n\t ].join(\"-\");\n\t },\n\t decode: function (val) {\n\t if (this.is(val)) return val;\n\t var match = this.capture.exec(val);\n\t return match ? new Date(match[1], match[2] - 1, match[3]) : undefined;\n\t },\n\t is: function(val) { return val instanceof Date && !isNaN(val.valueOf()); },\n\t equals: function (a, b) { return this.is(a) && this.is(b) && a.toISOString() === b.toISOString(); },\n\t pattern: /[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,\n\t capture: /([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/\n\t },\n\t \"json\": {\n\t encode: angular.toJson,\n\t decode: angular.fromJson,\n\t is: angular.isObject,\n\t equals: angular.equals,\n\t pattern: /[^/]*/\n\t },\n\t \"any\": { // does not encode/decode\n\t encode: angular.identity,\n\t decode: angular.identity,\n\t equals: angular.equals,\n\t pattern: /.*/\n\t }\n\t };\n\t\n\t function getDefaultConfig() {\n\t return {\n\t strict: isStrictMode,\n\t caseInsensitive: isCaseInsensitive\n\t };\n\t }\n\t\n\t function isInjectable(value) {\n\t return (isFunction(value) || (isArray(value) && isFunction(value[value.length - 1])));\n\t }\n\t\n\t /**\n\t * [Internal] Get the default value of a parameter, which may be an injectable function.\n\t */\n\t $UrlMatcherFactory.$$getDefaultValue = function(config) {\n\t if (!isInjectable(config.value)) return config.value;\n\t if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n\t return injector.invoke(config.value);\n\t };\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.util.$urlMatcherFactory#caseInsensitive\n\t * @methodOf ui.router.util.$urlMatcherFactory\n\t *\n\t * @description\n\t * Defines whether URL matching should be case sensitive (the default behavior), or not.\n\t *\n\t * @param {boolean} value `false` to match URL in a case sensitive manner; otherwise `true`;\n\t * @returns {boolean} the current value of caseInsensitive\n\t */\n\t this.caseInsensitive = function(value) {\n\t if (isDefined(value))\n\t isCaseInsensitive = value;\n\t return isCaseInsensitive;\n\t };\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.util.$urlMatcherFactory#strictMode\n\t * @methodOf ui.router.util.$urlMatcherFactory\n\t *\n\t * @description\n\t * Defines whether URLs should match trailing slashes, or not (the default behavior).\n\t *\n\t * @param {boolean=} value `false` to match trailing slashes in URLs, otherwise `true`.\n\t * @returns {boolean} the current value of strictMode\n\t */\n\t this.strictMode = function(value) {\n\t if (isDefined(value))\n\t isStrictMode = value;\n\t return isStrictMode;\n\t };\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.util.$urlMatcherFactory#defaultSquashPolicy\n\t * @methodOf ui.router.util.$urlMatcherFactory\n\t *\n\t * @description\n\t * Sets the default behavior when generating or matching URLs with default parameter values.\n\t *\n\t * @param {string} value A string that defines the default parameter URL squashing behavior.\n\t * `nosquash`: When generating an href with a default parameter value, do not squash the parameter value from the URL\n\t * `slash`: When generating an href with a default parameter value, squash (remove) the parameter value, and, if the\n\t * parameter is surrounded by slashes, squash (remove) one slash from the URL\n\t * any other string, e.g. \"~\": When generating an href with a default parameter value, squash (remove)\n\t * the parameter value from the URL and replace it with this string.\n\t */\n\t this.defaultSquashPolicy = function(value) {\n\t if (!isDefined(value)) return defaultSquashPolicy;\n\t if (value !== true && value !== false && !isString(value))\n\t throw new Error(\"Invalid squash policy: \" + value + \". Valid policies: false, true, arbitrary-string\");\n\t defaultSquashPolicy = value;\n\t return value;\n\t };\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.util.$urlMatcherFactory#compile\n\t * @methodOf ui.router.util.$urlMatcherFactory\n\t *\n\t * @description\n\t * Creates a {@link ui.router.util.type:UrlMatcher `UrlMatcher`} for the specified pattern.\n\t *\n\t * @param {string} pattern The URL pattern.\n\t * @param {Object} config The config object hash.\n\t * @returns {UrlMatcher} The UrlMatcher.\n\t */\n\t this.compile = function (pattern, config) {\n\t return new UrlMatcher(pattern, extend(getDefaultConfig(), config));\n\t };\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.util.$urlMatcherFactory#isMatcher\n\t * @methodOf ui.router.util.$urlMatcherFactory\n\t *\n\t * @description\n\t * Returns true if the specified object is a `UrlMatcher`, or false otherwise.\n\t *\n\t * @param {Object} object The object to perform the type check against.\n\t * @returns {Boolean} Returns `true` if the object matches the `UrlMatcher` interface, by\n\t * implementing all the same methods.\n\t */\n\t this.isMatcher = function (o) {\n\t if (!isObject(o)) return false;\n\t var result = true;\n\t\n\t forEach(UrlMatcher.prototype, function(val, name) {\n\t if (isFunction(val)) {\n\t result = result && (isDefined(o[name]) && isFunction(o[name]));\n\t }\n\t });\n\t return result;\n\t };\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.util.$urlMatcherFactory#type\n\t * @methodOf ui.router.util.$urlMatcherFactory\n\t *\n\t * @description\n\t * Registers a custom {@link ui.router.util.type:Type `Type`} object that can be used to\n\t * generate URLs with typed parameters.\n\t *\n\t * @param {string} name The type name.\n\t * @param {Object|Function} definition The type definition. See\n\t * {@link ui.router.util.type:Type `Type`} for information on the values accepted.\n\t * @param {Object|Function} definitionFn (optional) A function that is injected before the app\n\t * runtime starts. The result of this function is merged into the existing `definition`.\n\t * See {@link ui.router.util.type:Type `Type`} for information on the values accepted.\n\t *\n\t * @returns {Object} Returns `$urlMatcherFactoryProvider`.\n\t *\n\t * @example\n\t * This is a simple example of a custom type that encodes and decodes items from an\n\t * array, using the array index as the URL-encoded value:\n\t *\n\t *
\n\t   * var list = ['John', 'Paul', 'George', 'Ringo'];\n\t   *\n\t   * $urlMatcherFactoryProvider.type('listItem', {\n\t   *   encode: function(item) {\n\t   *     // Represent the list item in the URL using its corresponding index\n\t   *     return list.indexOf(item);\n\t   *   },\n\t   *   decode: function(item) {\n\t   *     // Look up the list item by index\n\t   *     return list[parseInt(item, 10)];\n\t   *   },\n\t   *   is: function(item) {\n\t   *     // Ensure the item is valid by checking to see that it appears\n\t   *     // in the list\n\t   *     return list.indexOf(item) > -1;\n\t   *   }\n\t   * });\n\t   *\n\t   * $stateProvider.state('list', {\n\t   *   url: \"/list/{item:listItem}\",\n\t   *   controller: function($scope, $stateParams) {\n\t   *     console.log($stateParams.item);\n\t   *   }\n\t   * });\n\t   *\n\t   * // ...\n\t   *\n\t   * // Changes URL to '/list/3', logs \"Ringo\" to the console\n\t   * $state.go('list', { item: \"Ringo\" });\n\t   * 
\n\t *\n\t * This is a more complex example of a type that relies on dependency injection to\n\t * interact with services, and uses the parameter name from the URL to infer how to\n\t * handle encoding and decoding parameter values:\n\t *\n\t *
\n\t   * // Defines a custom type that gets a value from a service,\n\t   * // where each service gets different types of values from\n\t   * // a backend API:\n\t   * $urlMatcherFactoryProvider.type('dbObject', {}, function(Users, Posts) {\n\t   *\n\t   *   // Matches up services to URL parameter names\n\t   *   var services = {\n\t   *     user: Users,\n\t   *     post: Posts\n\t   *   };\n\t   *\n\t   *   return {\n\t   *     encode: function(object) {\n\t   *       // Represent the object in the URL using its unique ID\n\t   *       return object.id;\n\t   *     },\n\t   *     decode: function(value, key) {\n\t   *       // Look up the object by ID, using the parameter\n\t   *       // name (key) to call the correct service\n\t   *       return services[key].findById(value);\n\t   *     },\n\t   *     is: function(object, key) {\n\t   *       // Check that object is a valid dbObject\n\t   *       return angular.isObject(object) && object.id && services[key];\n\t   *     }\n\t   *     equals: function(a, b) {\n\t   *       // Check the equality of decoded objects by comparing\n\t   *       // their unique IDs\n\t   *       return a.id === b.id;\n\t   *     }\n\t   *   };\n\t   * });\n\t   *\n\t   * // In a config() block, you can then attach URLs with\n\t   * // type-annotated parameters:\n\t   * $stateProvider.state('users', {\n\t   *   url: \"/users\",\n\t   *   // ...\n\t   * }).state('users.item', {\n\t   *   url: \"/{user:dbObject}\",\n\t   *   controller: function($scope, $stateParams) {\n\t   *     // $stateParams.user will now be an object returned from\n\t   *     // the Users service\n\t   *   },\n\t   *   // ...\n\t   * });\n\t   * 
\n\t */\n\t this.type = function (name, definition, definitionFn) {\n\t if (!isDefined(definition)) return $types[name];\n\t if ($types.hasOwnProperty(name)) throw new Error(\"A type named '\" + name + \"' has already been defined.\");\n\t\n\t $types[name] = new Type(extend({ name: name }, definition));\n\t if (definitionFn) {\n\t typeQueue.push({ name: name, def: definitionFn });\n\t if (!enqueue) flushTypeQueue();\n\t }\n\t return this;\n\t };\n\t\n\t // `flushTypeQueue()` waits until `$urlMatcherFactory` is injected before invoking the queued `definitionFn`s\n\t function flushTypeQueue() {\n\t while(typeQueue.length) {\n\t var type = typeQueue.shift();\n\t if (type.pattern) throw new Error(\"You cannot override a type's .pattern at runtime.\");\n\t angular.extend($types[type.name], injector.invoke(type.def));\n\t }\n\t }\n\t\n\t // Register default types. Store them in the prototype of $types.\n\t forEach(defaultTypes, function(type, name) { $types[name] = new Type(extend({name: name}, type)); });\n\t $types = inherit($types, {});\n\t\n\t /* No need to document $get, since it returns this */\n\t this.$get = ['$injector', function ($injector) {\n\t injector = $injector;\n\t enqueue = false;\n\t flushTypeQueue();\n\t\n\t forEach(defaultTypes, function(type, name) {\n\t if (!$types[name]) $types[name] = new Type(type);\n\t });\n\t return this;\n\t }];\n\t\n\t this.Param = function Param(id, type, config, location) {\n\t var self = this;\n\t config = unwrapShorthand(config);\n\t type = getType(config, type, location);\n\t var arrayMode = getArrayMode();\n\t type = arrayMode ? type.$asArray(arrayMode, location === \"search\") : type;\n\t if (type.name === \"string\" && !arrayMode && location === \"path\" && config.value === undefined)\n\t config.value = \"\"; // for 0.2.x; in 0.3.0+ do not automatically default to \"\"\n\t var isOptional = config.value !== undefined;\n\t var squash = getSquashPolicy(config, isOptional);\n\t var replace = getReplace(config, arrayMode, isOptional, squash);\n\t\n\t function unwrapShorthand(config) {\n\t var keys = isObject(config) ? objectKeys(config) : [];\n\t var isShorthand = indexOf(keys, \"value\") === -1 && indexOf(keys, \"type\") === -1 &&\n\t indexOf(keys, \"squash\") === -1 && indexOf(keys, \"array\") === -1;\n\t if (isShorthand) config = { value: config };\n\t config.$$fn = isInjectable(config.value) ? config.value : function () { return config.value; };\n\t return config;\n\t }\n\t\n\t function getType(config, urlType, location) {\n\t if (config.type && urlType) throw new Error(\"Param '\"+id+\"' has two type configurations.\");\n\t if (urlType) return urlType;\n\t if (!config.type) return (location === \"config\" ? $types.any : $types.string);\n\t\n\t if (angular.isString(config.type))\n\t return $types[config.type];\n\t if (config.type instanceof Type)\n\t return config.type;\n\t return new Type(config.type);\n\t }\n\t\n\t // array config: param name (param[]) overrides default settings. explicit config overrides param name.\n\t function getArrayMode() {\n\t var arrayDefaults = { array: (location === \"search\" ? \"auto\" : false) };\n\t var arrayParamNomenclature = id.match(/\\[\\]$/) ? { array: true } : {};\n\t return extend(arrayDefaults, arrayParamNomenclature, config).array;\n\t }\n\t\n\t /**\n\t * returns false, true, or the squash value to indicate the \"default parameter url squash policy\".\n\t */\n\t function getSquashPolicy(config, isOptional) {\n\t var squash = config.squash;\n\t if (!isOptional || squash === false) return false;\n\t if (!isDefined(squash) || squash == null) return defaultSquashPolicy;\n\t if (squash === true || isString(squash)) return squash;\n\t throw new Error(\"Invalid squash policy: '\" + squash + \"'. Valid policies: false, true, or arbitrary string\");\n\t }\n\t\n\t function getReplace(config, arrayMode, isOptional, squash) {\n\t var replace, configuredKeys, defaultPolicy = [\n\t { from: \"\", to: (isOptional || arrayMode ? undefined : \"\") },\n\t { from: null, to: (isOptional || arrayMode ? undefined : \"\") }\n\t ];\n\t replace = isArray(config.replace) ? config.replace : [];\n\t if (isString(squash))\n\t replace.push({ from: squash, to: undefined });\n\t configuredKeys = map(replace, function(item) { return item.from; } );\n\t return filter(defaultPolicy, function(item) { return indexOf(configuredKeys, item.from) === -1; }).concat(replace);\n\t }\n\t\n\t /**\n\t * [Internal] Get the default value of a parameter, which may be an injectable function.\n\t */\n\t function $$getDefaultValue() {\n\t if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n\t var defaultValue = injector.invoke(config.$$fn);\n\t if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n\t throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n\t return defaultValue;\n\t }\n\t\n\t /**\n\t * [Internal] Gets the decoded representation of a value if the value is defined, otherwise, returns the\n\t * default value, which may be the result of an injectable function.\n\t */\n\t function $value(value) {\n\t function hasReplaceVal(val) { return function(obj) { return obj.from === val; }; }\n\t function $replace(value) {\n\t var replacement = map(filter(self.replace, hasReplaceVal(value)), function(obj) { return obj.to; });\n\t return replacement.length ? replacement[0] : value;\n\t }\n\t value = $replace(value);\n\t return !isDefined(value) ? $$getDefaultValue() : self.type.$normalize(value);\n\t }\n\t\n\t function toString() { return \"{Param:\" + id + \" \" + type + \" squash: '\" + squash + \"' optional: \" + isOptional + \"}\"; }\n\t\n\t extend(this, {\n\t id: id,\n\t type: type,\n\t location: location,\n\t array: arrayMode,\n\t squash: squash,\n\t replace: replace,\n\t isOptional: isOptional,\n\t value: $value,\n\t dynamic: undefined,\n\t config: config,\n\t toString: toString\n\t });\n\t };\n\t\n\t function ParamSet(params) {\n\t extend(this, params || {});\n\t }\n\t\n\t ParamSet.prototype = {\n\t $$new: function() {\n\t return inherit(this, extend(new ParamSet(), { $$parent: this}));\n\t },\n\t $$keys: function () {\n\t var keys = [], chain = [], parent = this,\n\t ignore = objectKeys(ParamSet.prototype);\n\t while (parent) { chain.push(parent); parent = parent.$$parent; }\n\t chain.reverse();\n\t forEach(chain, function(paramset) {\n\t forEach(objectKeys(paramset), function(key) {\n\t if (indexOf(keys, key) === -1 && indexOf(ignore, key) === -1) keys.push(key);\n\t });\n\t });\n\t return keys;\n\t },\n\t $$values: function(paramValues) {\n\t var values = {}, self = this;\n\t forEach(self.$$keys(), function(key) {\n\t values[key] = self[key].value(paramValues && paramValues[key]);\n\t });\n\t return values;\n\t },\n\t $$equals: function(paramValues1, paramValues2) {\n\t var equal = true, self = this;\n\t forEach(self.$$keys(), function(key) {\n\t var left = paramValues1 && paramValues1[key], right = paramValues2 && paramValues2[key];\n\t if (!self[key].type.equals(left, right)) equal = false;\n\t });\n\t return equal;\n\t },\n\t $$validates: function $$validate(paramValues) {\n\t var keys = this.$$keys(), i, param, rawVal, normalized, encoded;\n\t for (i = 0; i < keys.length; i++) {\n\t param = this[keys[i]];\n\t rawVal = paramValues[keys[i]];\n\t if ((rawVal === undefined || rawVal === null) && param.isOptional)\n\t break; // There was no parameter value, but the param is optional\n\t normalized = param.type.$normalize(rawVal);\n\t if (!param.type.is(normalized))\n\t return false; // The value was not of the correct Type, and could not be decoded to the correct Type\n\t encoded = param.type.encode(normalized);\n\t if (angular.isString(encoded) && !param.type.pattern.exec(encoded))\n\t return false; // The value was of the correct type, but when encoded, did not match the Type's regexp\n\t }\n\t return true;\n\t },\n\t $$parent: undefined\n\t };\n\t\n\t this.ParamSet = ParamSet;\n\t}\n\t\n\t// Register as a provider so it's available to other providers\n\tangular.module('ui.router.util').provider('$urlMatcherFactory', $UrlMatcherFactory);\n\tangular.module('ui.router.util').run(['$urlMatcherFactory', function($urlMatcherFactory) { }]);\n\t\n\t/**\n\t * @ngdoc object\n\t * @name ui.router.router.$urlRouterProvider\n\t *\n\t * @requires ui.router.util.$urlMatcherFactoryProvider\n\t * @requires $locationProvider\n\t *\n\t * @description\n\t * `$urlRouterProvider` has the responsibility of watching `$location`. \n\t * When `$location` changes it runs through a list of rules one by one until a \n\t * match is found. `$urlRouterProvider` is used behind the scenes anytime you specify \n\t * a url in a state configuration. All urls are compiled into a UrlMatcher object.\n\t *\n\t * There are several methods on `$urlRouterProvider` that make it useful to use directly\n\t * in your module config.\n\t */\n\t$UrlRouterProvider.$inject = ['$locationProvider', '$urlMatcherFactoryProvider'];\n\tfunction $UrlRouterProvider( $locationProvider, $urlMatcherFactory) {\n\t var rules = [], otherwise = null, interceptDeferred = false, listener;\n\t\n\t // Returns a string that is a prefix of all strings matching the RegExp\n\t function regExpPrefix(re) {\n\t var prefix = /^\\^((?:\\\\[^a-zA-Z0-9]|[^\\\\\\[\\]\\^$*+?.()|{}]+)*)/.exec(re.source);\n\t return (prefix != null) ? prefix[1].replace(/\\\\(.)/g, \"$1\") : '';\n\t }\n\t\n\t // Interpolates matched values into a String.replace()-style pattern\n\t function interpolate(pattern, match) {\n\t return pattern.replace(/\\$(\\$|\\d{1,2})/, function (m, what) {\n\t return match[what === '$' ? 0 : Number(what)];\n\t });\n\t }\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.router.$urlRouterProvider#rule\n\t * @methodOf ui.router.router.$urlRouterProvider\n\t *\n\t * @description\n\t * Defines rules that are used by `$urlRouterProvider` to find matches for\n\t * specific URLs.\n\t *\n\t * @example\n\t *
\n\t   * var app = angular.module('app', ['ui.router.router']);\n\t   *\n\t   * app.config(function ($urlRouterProvider) {\n\t   *   // Here's an example of how you might allow case insensitive urls\n\t   *   $urlRouterProvider.rule(function ($injector, $location) {\n\t   *     var path = $location.path(),\n\t   *         normalized = path.toLowerCase();\n\t   *\n\t   *     if (path !== normalized) {\n\t   *       return normalized;\n\t   *     }\n\t   *   });\n\t   * });\n\t   * 
\n\t *\n\t * @param {function} rule Handler function that takes `$injector` and `$location`\n\t * services as arguments. You can use them to return a valid path as a string.\n\t *\n\t * @return {object} `$urlRouterProvider` - `$urlRouterProvider` instance\n\t */\n\t this.rule = function (rule) {\n\t if (!isFunction(rule)) throw new Error(\"'rule' must be a function\");\n\t rules.push(rule);\n\t return this;\n\t };\n\t\n\t /**\n\t * @ngdoc object\n\t * @name ui.router.router.$urlRouterProvider#otherwise\n\t * @methodOf ui.router.router.$urlRouterProvider\n\t *\n\t * @description\n\t * Defines a path that is used when an invalid route is requested.\n\t *\n\t * @example\n\t *
\n\t   * var app = angular.module('app', ['ui.router.router']);\n\t   *\n\t   * app.config(function ($urlRouterProvider) {\n\t   *   // if the path doesn't match any of the urls you configured\n\t   *   // otherwise will take care of routing the user to the\n\t   *   // specified url\n\t   *   $urlRouterProvider.otherwise('/index');\n\t   *\n\t   *   // Example of using function rule as param\n\t   *   $urlRouterProvider.otherwise(function ($injector, $location) {\n\t   *     return '/a/valid/url';\n\t   *   });\n\t   * });\n\t   * 
\n\t *\n\t * @param {string|function} rule The url path you want to redirect to or a function \n\t * rule that returns the url path. The function version is passed two params: \n\t * `$injector` and `$location` services, and must return a url string.\n\t *\n\t * @return {object} `$urlRouterProvider` - `$urlRouterProvider` instance\n\t */\n\t this.otherwise = function (rule) {\n\t if (isString(rule)) {\n\t var redirect = rule;\n\t rule = function () { return redirect; };\n\t }\n\t else if (!isFunction(rule)) throw new Error(\"'rule' must be a function\");\n\t otherwise = rule;\n\t return this;\n\t };\n\t\n\t\n\t function handleIfMatch($injector, handler, match) {\n\t if (!match) return false;\n\t var result = $injector.invoke(handler, handler, { $match: match });\n\t return isDefined(result) ? result : true;\n\t }\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.router.$urlRouterProvider#when\n\t * @methodOf ui.router.router.$urlRouterProvider\n\t *\n\t * @description\n\t * Registers a handler for a given url matching. \n\t * \n\t * If the handler is a string, it is\n\t * treated as a redirect, and is interpolated according to the syntax of match\n\t * (i.e. like `String.replace()` for `RegExp`, or like a `UrlMatcher` pattern otherwise).\n\t *\n\t * If the handler is a function, it is injectable. It gets invoked if `$location`\n\t * matches. You have the option of inject the match object as `$match`.\n\t *\n\t * The handler can return\n\t *\n\t * - **falsy** to indicate that the rule didn't match after all, then `$urlRouter`\n\t * will continue trying to find another one that matches.\n\t * - **string** which is treated as a redirect and passed to `$location.url()`\n\t * - **void** or any **truthy** value tells `$urlRouter` that the url was handled.\n\t *\n\t * @example\n\t *
\n\t   * var app = angular.module('app', ['ui.router.router']);\n\t   *\n\t   * app.config(function ($urlRouterProvider) {\n\t   *   $urlRouterProvider.when($state.url, function ($match, $stateParams) {\n\t   *     if ($state.$current.navigable !== state ||\n\t   *         !equalForKeys($match, $stateParams) {\n\t   *      $state.transitionTo(state, $match, false);\n\t   *     }\n\t   *   });\n\t   * });\n\t   * 
\n\t *\n\t * @param {string|object} what The incoming path that you want to redirect.\n\t * @param {string|function} handler The path you want to redirect your user to.\n\t */\n\t this.when = function (what, handler) {\n\t var redirect, handlerIsString = isString(handler);\n\t if (isString(what)) what = $urlMatcherFactory.compile(what);\n\t\n\t if (!handlerIsString && !isFunction(handler) && !isArray(handler))\n\t throw new Error(\"invalid 'handler' in when()\");\n\t\n\t var strategies = {\n\t matcher: function (what, handler) {\n\t if (handlerIsString) {\n\t redirect = $urlMatcherFactory.compile(handler);\n\t handler = ['$match', function ($match) { return redirect.format($match); }];\n\t }\n\t return extend(function ($injector, $location) {\n\t return handleIfMatch($injector, handler, what.exec($location.path(), $location.search()));\n\t }, {\n\t prefix: isString(what.prefix) ? what.prefix : ''\n\t });\n\t },\n\t regex: function (what, handler) {\n\t if (what.global || what.sticky) throw new Error(\"when() RegExp must not be global or sticky\");\n\t\n\t if (handlerIsString) {\n\t redirect = handler;\n\t handler = ['$match', function ($match) { return interpolate(redirect, $match); }];\n\t }\n\t return extend(function ($injector, $location) {\n\t return handleIfMatch($injector, handler, what.exec($location.path()));\n\t }, {\n\t prefix: regExpPrefix(what)\n\t });\n\t }\n\t };\n\t\n\t var check = { matcher: $urlMatcherFactory.isMatcher(what), regex: what instanceof RegExp };\n\t\n\t for (var n in check) {\n\t if (check[n]) return this.rule(strategies[n](what, handler));\n\t }\n\t\n\t throw new Error(\"invalid 'what' in when()\");\n\t };\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.router.$urlRouterProvider#deferIntercept\n\t * @methodOf ui.router.router.$urlRouterProvider\n\t *\n\t * @description\n\t * Disables (or enables) deferring location change interception.\n\t *\n\t * If you wish to customize the behavior of syncing the URL (for example, if you wish to\n\t * defer a transition but maintain the current URL), call this method at configuration time.\n\t * Then, at run time, call `$urlRouter.listen()` after you have configured your own\n\t * `$locationChangeSuccess` event handler.\n\t *\n\t * @example\n\t *
\n\t   * var app = angular.module('app', ['ui.router.router']);\n\t   *\n\t   * app.config(function ($urlRouterProvider) {\n\t   *\n\t   *   // Prevent $urlRouter from automatically intercepting URL changes;\n\t   *   // this allows you to configure custom behavior in between\n\t   *   // location changes and route synchronization:\n\t   *   $urlRouterProvider.deferIntercept();\n\t   *\n\t   * }).run(function ($rootScope, $urlRouter, UserService) {\n\t   *\n\t   *   $rootScope.$on('$locationChangeSuccess', function(e) {\n\t   *     // UserService is an example service for managing user state\n\t   *     if (UserService.isLoggedIn()) return;\n\t   *\n\t   *     // Prevent $urlRouter's default handler from firing\n\t   *     e.preventDefault();\n\t   *\n\t   *     UserService.handleLogin().then(function() {\n\t   *       // Once the user has logged in, sync the current URL\n\t   *       // to the router:\n\t   *       $urlRouter.sync();\n\t   *     });\n\t   *   });\n\t   *\n\t   *   // Configures $urlRouter's listener *after* your custom listener\n\t   *   $urlRouter.listen();\n\t   * });\n\t   * 
\n\t *\n\t * @param {boolean} defer Indicates whether to defer location change interception. Passing\n\t no parameter is equivalent to `true`.\n\t */\n\t this.deferIntercept = function (defer) {\n\t if (defer === undefined) defer = true;\n\t interceptDeferred = defer;\n\t };\n\t\n\t /**\n\t * @ngdoc object\n\t * @name ui.router.router.$urlRouter\n\t *\n\t * @requires $location\n\t * @requires $rootScope\n\t * @requires $injector\n\t * @requires $browser\n\t *\n\t * @description\n\t *\n\t */\n\t this.$get = $get;\n\t $get.$inject = ['$location', '$rootScope', '$injector', '$browser', '$sniffer'];\n\t function $get( $location, $rootScope, $injector, $browser, $sniffer) {\n\t\n\t var baseHref = $browser.baseHref(), location = $location.url(), lastPushedUrl;\n\t\n\t function appendBasePath(url, isHtml5, absolute) {\n\t if (baseHref === '/') return url;\n\t if (isHtml5) return baseHref.slice(0, -1) + url;\n\t if (absolute) return baseHref.slice(1) + url;\n\t return url;\n\t }\n\t\n\t // TODO: Optimize groups of rules with non-empty prefix into some sort of decision tree\n\t function update(evt) {\n\t if (evt && evt.defaultPrevented) return;\n\t var ignoreUpdate = lastPushedUrl && $location.url() === lastPushedUrl;\n\t lastPushedUrl = undefined;\n\t // TODO: Re-implement this in 1.0 for https://github.com/angular-ui/ui-router/issues/1573\n\t //if (ignoreUpdate) return true;\n\t\n\t function check(rule) {\n\t var handled = rule($injector, $location);\n\t\n\t if (!handled) return false;\n\t if (isString(handled)) $location.replace().url(handled);\n\t return true;\n\t }\n\t var n = rules.length, i;\n\t\n\t for (i = 0; i < n; i++) {\n\t if (check(rules[i])) return;\n\t }\n\t // always check otherwise last to allow dynamic updates to the set of rules\n\t if (otherwise) check(otherwise);\n\t }\n\t\n\t function listen() {\n\t listener = listener || $rootScope.$on('$locationChangeSuccess', update);\n\t return listener;\n\t }\n\t\n\t if (!interceptDeferred) listen();\n\t\n\t return {\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.router.$urlRouter#sync\n\t * @methodOf ui.router.router.$urlRouter\n\t *\n\t * @description\n\t * Triggers an update; the same update that happens when the address bar url changes, aka `$locationChangeSuccess`.\n\t * This method is useful when you need to use `preventDefault()` on the `$locationChangeSuccess` event,\n\t * perform some custom logic (route protection, auth, config, redirection, etc) and then finally proceed\n\t * with the transition by calling `$urlRouter.sync()`.\n\t *\n\t * @example\n\t *
\n\t       * angular.module('app', ['ui.router'])\n\t       *   .run(function($rootScope, $urlRouter) {\n\t       *     $rootScope.$on('$locationChangeSuccess', function(evt) {\n\t       *       // Halt state change from even starting\n\t       *       evt.preventDefault();\n\t       *       // Perform custom logic\n\t       *       var meetsRequirement = ...\n\t       *       // Continue with the update and state transition if logic allows\n\t       *       if (meetsRequirement) $urlRouter.sync();\n\t       *     });\n\t       * });\n\t       * 
\n\t */\n\t sync: function() {\n\t update();\n\t },\n\t\n\t listen: function() {\n\t return listen();\n\t },\n\t\n\t update: function(read) {\n\t if (read) {\n\t location = $location.url();\n\t return;\n\t }\n\t if ($location.url() === location) return;\n\t\n\t $location.url(location);\n\t $location.replace();\n\t },\n\t\n\t push: function(urlMatcher, params, options) {\n\t var url = urlMatcher.format(params || {});\n\t\n\t // Handle the special hash param, if needed\n\t if (url !== null && params && params['#']) {\n\t url += '#' + params['#'];\n\t }\n\t\n\t $location.url(url);\n\t lastPushedUrl = options && options.$$avoidResync ? $location.url() : undefined;\n\t if (options && options.replace) $location.replace();\n\t },\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.router.$urlRouter#href\n\t * @methodOf ui.router.router.$urlRouter\n\t *\n\t * @description\n\t * A URL generation method that returns the compiled URL for a given\n\t * {@link ui.router.util.type:UrlMatcher `UrlMatcher`}, populated with the provided parameters.\n\t *\n\t * @example\n\t *
\n\t       * $bob = $urlRouter.href(new UrlMatcher(\"/about/:person\"), {\n\t       *   person: \"bob\"\n\t       * });\n\t       * // $bob == \"/about/bob\";\n\t       * 
\n\t *\n\t * @param {UrlMatcher} urlMatcher The `UrlMatcher` object which is used as the template of the URL to generate.\n\t * @param {object=} params An object of parameter values to fill the matcher's required parameters.\n\t * @param {object=} options Options object. The options are:\n\t *\n\t * - **`absolute`** - {boolean=false}, If true will generate an absolute url, e.g. \"http://www.example.com/fullurl\".\n\t *\n\t * @returns {string} Returns the fully compiled URL, or `null` if `params` fail validation against `urlMatcher`\n\t */\n\t href: function(urlMatcher, params, options) {\n\t if (!urlMatcher.validates(params)) return null;\n\t\n\t var isHtml5 = $locationProvider.html5Mode();\n\t if (angular.isObject(isHtml5)) {\n\t isHtml5 = isHtml5.enabled;\n\t }\n\t\n\t isHtml5 = isHtml5 && $sniffer.history;\n\t \n\t var url = urlMatcher.format(params);\n\t options = options || {};\n\t\n\t if (!isHtml5 && url !== null) {\n\t url = \"#\" + $locationProvider.hashPrefix() + url;\n\t }\n\t\n\t // Handle special hash param, if needed\n\t if (url !== null && params && params['#']) {\n\t url += '#' + params['#'];\n\t }\n\t\n\t url = appendBasePath(url, isHtml5, options.absolute);\n\t\n\t if (!options.absolute || !url) {\n\t return url;\n\t }\n\t\n\t var slash = (!isHtml5 && url ? '/' : ''), port = $location.port();\n\t port = (port === 80 || port === 443 ? '' : ':' + port);\n\t\n\t return [$location.protocol(), '://', $location.host(), port, slash, url].join('');\n\t }\n\t };\n\t }\n\t}\n\t\n\tangular.module('ui.router.router').provider('$urlRouter', $UrlRouterProvider);\n\t\n\t/**\n\t * @ngdoc object\n\t * @name ui.router.state.$stateProvider\n\t *\n\t * @requires ui.router.router.$urlRouterProvider\n\t * @requires ui.router.util.$urlMatcherFactoryProvider\n\t *\n\t * @description\n\t * The new `$stateProvider` works similar to Angular's v1 router, but it focuses purely\n\t * on state.\n\t *\n\t * A state corresponds to a \"place\" in the application in terms of the overall UI and\n\t * navigation. A state describes (via the controller / template / view properties) what\n\t * the UI looks like and does at that place.\n\t *\n\t * States often have things in common, and the primary way of factoring out these\n\t * commonalities in this model is via the state hierarchy, i.e. parent/child states aka\n\t * nested states.\n\t *\n\t * The `$stateProvider` provides interfaces to declare these states for your app.\n\t */\n\t$StateProvider.$inject = ['$urlRouterProvider', '$urlMatcherFactoryProvider'];\n\tfunction $StateProvider( $urlRouterProvider, $urlMatcherFactory) {\n\t\n\t var root, states = {}, $state, queue = {}, abstractKey = 'abstract';\n\t\n\t // Builds state properties from definition passed to registerState()\n\t var stateBuilder = {\n\t\n\t // Derive parent state from a hierarchical name only if 'parent' is not explicitly defined.\n\t // state.children = [];\n\t // if (parent) parent.children.push(state);\n\t parent: function(state) {\n\t if (isDefined(state.parent) && state.parent) return findState(state.parent);\n\t // regex matches any valid composite state name\n\t // would match \"contact.list\" but not \"contacts\"\n\t var compositeName = /^(.+)\\.[^.]+$/.exec(state.name);\n\t return compositeName ? findState(compositeName[1]) : root;\n\t },\n\t\n\t // inherit 'data' from parent and override by own values (if any)\n\t data: function(state) {\n\t if (state.parent && state.parent.data) {\n\t state.data = state.self.data = inherit(state.parent.data, state.data);\n\t }\n\t return state.data;\n\t },\n\t\n\t // Build a URLMatcher if necessary, either via a relative or absolute URL\n\t url: function(state) {\n\t var url = state.url, config = { params: state.params || {} };\n\t\n\t if (isString(url)) {\n\t if (url.charAt(0) == '^') return $urlMatcherFactory.compile(url.substring(1), config);\n\t return (state.parent.navigable || root).url.concat(url, config);\n\t }\n\t\n\t if (!url || $urlMatcherFactory.isMatcher(url)) return url;\n\t throw new Error(\"Invalid url '\" + url + \"' in state '\" + state + \"'\");\n\t },\n\t\n\t // Keep track of the closest ancestor state that has a URL (i.e. is navigable)\n\t navigable: function(state) {\n\t return state.url ? state : (state.parent ? state.parent.navigable : null);\n\t },\n\t\n\t // Own parameters for this state. state.url.params is already built at this point. Create and add non-url params\n\t ownParams: function(state) {\n\t var params = state.url && state.url.params || new $$UMFP.ParamSet();\n\t forEach(state.params || {}, function(config, id) {\n\t if (!params[id]) params[id] = new $$UMFP.Param(id, null, config, \"config\");\n\t });\n\t return params;\n\t },\n\t\n\t // Derive parameters for this state and ensure they're a super-set of parent's parameters\n\t params: function(state) {\n\t var ownParams = pick(state.ownParams, state.ownParams.$$keys());\n\t return state.parent && state.parent.params ? extend(state.parent.params.$$new(), ownParams) : new $$UMFP.ParamSet();\n\t },\n\t\n\t // If there is no explicit multi-view configuration, make one up so we don't have\n\t // to handle both cases in the view directive later. Note that having an explicit\n\t // 'views' property will mean the default unnamed view properties are ignored. This\n\t // is also a good time to resolve view names to absolute names, so everything is a\n\t // straight lookup at link time.\n\t views: function(state) {\n\t var views = {};\n\t\n\t forEach(isDefined(state.views) ? state.views : { '': state }, function (view, name) {\n\t if (name.indexOf('@') < 0) name += '@' + state.parent.name;\n\t views[name] = view;\n\t });\n\t return views;\n\t },\n\t\n\t // Keep a full path from the root down to this state as this is needed for state activation.\n\t path: function(state) {\n\t return state.parent ? state.parent.path.concat(state) : []; // exclude root from path\n\t },\n\t\n\t // Speed up $state.contains() as it's used a lot\n\t includes: function(state) {\n\t var includes = state.parent ? extend({}, state.parent.includes) : {};\n\t includes[state.name] = true;\n\t return includes;\n\t },\n\t\n\t $delegates: {}\n\t };\n\t\n\t function isRelative(stateName) {\n\t return stateName.indexOf(\".\") === 0 || stateName.indexOf(\"^\") === 0;\n\t }\n\t\n\t function findState(stateOrName, base) {\n\t if (!stateOrName) return undefined;\n\t\n\t var isStr = isString(stateOrName),\n\t name = isStr ? stateOrName : stateOrName.name,\n\t path = isRelative(name);\n\t\n\t if (path) {\n\t if (!base) throw new Error(\"No reference point given for path '\" + name + \"'\");\n\t base = findState(base);\n\t \n\t var rel = name.split(\".\"), i = 0, pathLength = rel.length, current = base;\n\t\n\t for (; i < pathLength; i++) {\n\t if (rel[i] === \"\" && i === 0) {\n\t current = base;\n\t continue;\n\t }\n\t if (rel[i] === \"^\") {\n\t if (!current.parent) throw new Error(\"Path '\" + name + \"' not valid for state '\" + base.name + \"'\");\n\t current = current.parent;\n\t continue;\n\t }\n\t break;\n\t }\n\t rel = rel.slice(i).join(\".\");\n\t name = current.name + (current.name && rel ? \".\" : \"\") + rel;\n\t }\n\t var state = states[name];\n\t\n\t if (state && (isStr || (!isStr && (state === stateOrName || state.self === stateOrName)))) {\n\t return state;\n\t }\n\t return undefined;\n\t }\n\t\n\t function queueState(parentName, state) {\n\t if (!queue[parentName]) {\n\t queue[parentName] = [];\n\t }\n\t queue[parentName].push(state);\n\t }\n\t\n\t function flushQueuedChildren(parentName) {\n\t var queued = queue[parentName] || [];\n\t while(queued.length) {\n\t registerState(queued.shift());\n\t }\n\t }\n\t\n\t function registerState(state) {\n\t // Wrap a new object around the state so we can store our private details easily.\n\t state = inherit(state, {\n\t self: state,\n\t resolve: state.resolve || {},\n\t toString: function() { return this.name; }\n\t });\n\t\n\t var name = state.name;\n\t if (!isString(name) || name.indexOf('@') >= 0) throw new Error(\"State must have a valid name\");\n\t if (states.hasOwnProperty(name)) throw new Error(\"State '\" + name + \"' is already defined\");\n\t\n\t // Get parent name\n\t var parentName = (name.indexOf('.') !== -1) ? name.substring(0, name.lastIndexOf('.'))\n\t : (isString(state.parent)) ? state.parent\n\t : (isObject(state.parent) && isString(state.parent.name)) ? state.parent.name\n\t : '';\n\t\n\t // If parent is not registered yet, add state to queue and register later\n\t if (parentName && !states[parentName]) {\n\t return queueState(parentName, state.self);\n\t }\n\t\n\t for (var key in stateBuilder) {\n\t if (isFunction(stateBuilder[key])) state[key] = stateBuilder[key](state, stateBuilder.$delegates[key]);\n\t }\n\t states[name] = state;\n\t\n\t // Register the state in the global state list and with $urlRouter if necessary.\n\t if (!state[abstractKey] && state.url) {\n\t $urlRouterProvider.when(state.url, ['$match', '$stateParams', function ($match, $stateParams) {\n\t if ($state.$current.navigable != state || !equalForKeys($match, $stateParams)) {\n\t $state.transitionTo(state, $match, { inherit: true, location: false });\n\t }\n\t }]);\n\t }\n\t\n\t // Register any queued children\n\t flushQueuedChildren(name);\n\t\n\t return state;\n\t }\n\t\n\t // Checks text to see if it looks like a glob.\n\t function isGlob (text) {\n\t return text.indexOf('*') > -1;\n\t }\n\t\n\t // Returns true if glob matches current $state name.\n\t function doesStateMatchGlob (glob) {\n\t var globSegments = glob.split('.'),\n\t segments = $state.$current.name.split('.');\n\t\n\t //match single stars\n\t for (var i = 0, l = globSegments.length; i < l; i++) {\n\t if (globSegments[i] === '*') {\n\t segments[i] = '*';\n\t }\n\t }\n\t\n\t //match greedy starts\n\t if (globSegments[0] === '**') {\n\t segments = segments.slice(indexOf(segments, globSegments[1]));\n\t segments.unshift('**');\n\t }\n\t //match greedy ends\n\t if (globSegments[globSegments.length - 1] === '**') {\n\t segments.splice(indexOf(segments, globSegments[globSegments.length - 2]) + 1, Number.MAX_VALUE);\n\t segments.push('**');\n\t }\n\t\n\t if (globSegments.length != segments.length) {\n\t return false;\n\t }\n\t\n\t return segments.join('') === globSegments.join('');\n\t }\n\t\n\t\n\t // Implicit root state that is always active\n\t root = registerState({\n\t name: '',\n\t url: '^',\n\t views: null,\n\t 'abstract': true\n\t });\n\t root.navigable = null;\n\t\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.state.$stateProvider#decorator\n\t * @methodOf ui.router.state.$stateProvider\n\t *\n\t * @description\n\t * Allows you to extend (carefully) or override (at your own peril) the \n\t * `stateBuilder` object used internally by `$stateProvider`. This can be used \n\t * to add custom functionality to ui-router, for example inferring templateUrl \n\t * based on the state name.\n\t *\n\t * When passing only a name, it returns the current (original or decorated) builder\n\t * function that matches `name`.\n\t *\n\t * The builder functions that can be decorated are listed below. Though not all\n\t * necessarily have a good use case for decoration, that is up to you to decide.\n\t *\n\t * In addition, users can attach custom decorators, which will generate new \n\t * properties within the state's internal definition. There is currently no clear \n\t * use-case for this beyond accessing internal states (i.e. $state.$current), \n\t * however, expect this to become increasingly relevant as we introduce additional \n\t * meta-programming features.\n\t *\n\t * **Warning**: Decorators should not be interdependent because the order of \n\t * execution of the builder functions in non-deterministic. Builder functions \n\t * should only be dependent on the state definition object and super function.\n\t *\n\t *\n\t * Existing builder functions and current return values:\n\t *\n\t * - **parent** `{object}` - returns the parent state object.\n\t * - **data** `{object}` - returns state data, including any inherited data that is not\n\t * overridden by own values (if any).\n\t * - **url** `{object}` - returns a {@link ui.router.util.type:UrlMatcher UrlMatcher}\n\t * or `null`.\n\t * - **navigable** `{object}` - returns closest ancestor state that has a URL (aka is \n\t * navigable).\n\t * - **params** `{object}` - returns an array of state params that are ensured to \n\t * be a super-set of parent's params.\n\t * - **views** `{object}` - returns a views object where each key is an absolute view \n\t * name (i.e. \"viewName@stateName\") and each value is the config object \n\t * (template, controller) for the view. Even when you don't use the views object \n\t * explicitly on a state config, one is still created for you internally.\n\t * So by decorating this builder function you have access to decorating template \n\t * and controller properties.\n\t * - **ownParams** `{object}` - returns an array of params that belong to the state, \n\t * not including any params defined by ancestor states.\n\t * - **path** `{string}` - returns the full path from the root down to this state. \n\t * Needed for state activation.\n\t * - **includes** `{object}` - returns an object that includes every state that \n\t * would pass a `$state.includes()` test.\n\t *\n\t * @example\n\t *
\n\t   * // Override the internal 'views' builder with a function that takes the state\n\t   * // definition, and a reference to the internal function being overridden:\n\t   * $stateProvider.decorator('views', function (state, parent) {\n\t   *   var result = {},\n\t   *       views = parent(state);\n\t   *\n\t   *   angular.forEach(views, function (config, name) {\n\t   *     var autoName = (state.name + '.' + name).replace('.', '/');\n\t   *     config.templateUrl = config.templateUrl || '/partials/' + autoName + '.html';\n\t   *     result[name] = config;\n\t   *   });\n\t   *   return result;\n\t   * });\n\t   *\n\t   * $stateProvider.state('home', {\n\t   *   views: {\n\t   *     'contact.list': { controller: 'ListController' },\n\t   *     'contact.item': { controller: 'ItemController' }\n\t   *   }\n\t   * });\n\t   *\n\t   * // ...\n\t   *\n\t   * $state.go('home');\n\t   * // Auto-populates list and item views with /partials/home/contact/list.html,\n\t   * // and /partials/home/contact/item.html, respectively.\n\t   * 
\n\t *\n\t * @param {string} name The name of the builder function to decorate. \n\t * @param {object} func A function that is responsible for decorating the original \n\t * builder function. The function receives two parameters:\n\t *\n\t * - `{object}` - state - The state config object.\n\t * - `{object}` - super - The original builder function.\n\t *\n\t * @return {object} $stateProvider - $stateProvider instance\n\t */\n\t this.decorator = decorator;\n\t function decorator(name, func) {\n\t /*jshint validthis: true */\n\t if (isString(name) && !isDefined(func)) {\n\t return stateBuilder[name];\n\t }\n\t if (!isFunction(func) || !isString(name)) {\n\t return this;\n\t }\n\t if (stateBuilder[name] && !stateBuilder.$delegates[name]) {\n\t stateBuilder.$delegates[name] = stateBuilder[name];\n\t }\n\t stateBuilder[name] = func;\n\t return this;\n\t }\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.state.$stateProvider#state\n\t * @methodOf ui.router.state.$stateProvider\n\t *\n\t * @description\n\t * Registers a state configuration under a given state name. The stateConfig object\n\t * has the following acceptable properties.\n\t *\n\t * @param {string} name A unique state name, e.g. \"home\", \"about\", \"contacts\".\n\t * To create a parent/child state use a dot, e.g. \"about.sales\", \"home.newest\".\n\t * @param {object} stateConfig State configuration object.\n\t * @param {string|function=} stateConfig.template\n\t * \n\t * html template as a string or a function that returns\n\t * an html template as a string which should be used by the uiView directives. This property \n\t * takes precedence over templateUrl.\n\t * \n\t * If `template` is a function, it will be called with the following parameters:\n\t *\n\t * - {array.<object>} - state parameters extracted from the current $location.path() by\n\t * applying the current state\n\t *\n\t *
template:\n\t   *   \"

inline template definition

\" +\n\t * \"
\"
\n\t *
template: function(params) {\n\t   *       return \"

generated template

\"; }
\n\t *
\n\t *\n\t * @param {string|function=} stateConfig.templateUrl\n\t * \n\t *\n\t * path or function that returns a path to an html\n\t * template that should be used by uiView.\n\t * \n\t * If `templateUrl` is a function, it will be called with the following parameters:\n\t *\n\t * - {array.<object>} - state parameters extracted from the current $location.path() by \n\t * applying the current state\n\t *\n\t *
templateUrl: \"home.html\"
\n\t *
templateUrl: function(params) {\n\t   *     return myTemplates[params.pageId]; }
\n\t *\n\t * @param {function=} stateConfig.templateProvider\n\t * \n\t * Provider function that returns HTML content string.\n\t *
 templateProvider:\n\t   *       function(MyTemplateService, params) {\n\t   *         return MyTemplateService.getTemplate(params.pageId);\n\t   *       }
\n\t *\n\t * @param {string|function=} stateConfig.controller\n\t * \n\t *\n\t * Controller fn that should be associated with newly\n\t * related scope or the name of a registered controller if passed as a string.\n\t * Optionally, the ControllerAs may be declared here.\n\t *
controller: \"MyRegisteredController\"
\n\t *
controller:\n\t   *     \"MyRegisteredController as fooCtrl\"}
\n\t *
controller: function($scope, MyService) {\n\t   *     $scope.data = MyService.getData(); }
\n\t *\n\t * @param {function=} stateConfig.controllerProvider\n\t * \n\t *\n\t * Injectable provider function that returns the actual controller or string.\n\t *
controllerProvider:\n\t   *   function(MyResolveData) {\n\t   *     if (MyResolveData.foo)\n\t   *       return \"FooCtrl\"\n\t   *     else if (MyResolveData.bar)\n\t   *       return \"BarCtrl\";\n\t   *     else return function($scope) {\n\t   *       $scope.baz = \"Qux\";\n\t   *     }\n\t   *   }
\n\t *\n\t * @param {string=} stateConfig.controllerAs\n\t * \n\t * \n\t * A controller alias name. If present the controller will be\n\t * published to scope under the controllerAs name.\n\t *
controllerAs: \"myCtrl\"
\n\t *\n\t * @param {string|object=} stateConfig.parent\n\t * \n\t * Optionally specifies the parent state of this state.\n\t *\n\t *
parent: 'parentState'
\n\t *
parent: parentState // JS variable
\n\t *\n\t * @param {object=} stateConfig.resolve\n\t * \n\t *\n\t * An optional map<string, function> of dependencies which\n\t * should be injected into the controller. If any of these dependencies are promises, \n\t * the router will wait for them all to be resolved before the controller is instantiated.\n\t * If all the promises are resolved successfully, the $stateChangeSuccess event is fired\n\t * and the values of the resolved promises are injected into any controllers that reference them.\n\t * If any of the promises are rejected the $stateChangeError event is fired.\n\t *\n\t * The map object is:\n\t * \n\t * - key - {string}: name of dependency to be injected into controller\n\t * - factory - {string|function}: If string then it is alias for service. Otherwise if function, \n\t * it is injected and return value it treated as dependency. If result is a promise, it is \n\t * resolved before its value is injected into controller.\n\t *\n\t *
resolve: {\n\t   *     myResolve1:\n\t   *       function($http, $stateParams) {\n\t   *         return $http.get(\"/api/foos/\"+stateParams.fooID);\n\t   *       }\n\t   *     }
\n\t *\n\t * @param {string=} stateConfig.url\n\t * \n\t *\n\t * A url fragment with optional parameters. When a state is navigated or\n\t * transitioned to, the `$stateParams` service will be populated with any \n\t * parameters that were passed.\n\t *\n\t * (See {@link ui.router.util.type:UrlMatcher UrlMatcher} `UrlMatcher`} for\n\t * more details on acceptable patterns )\n\t *\n\t * examples:\n\t *
url: \"/home\"\n\t   * url: \"/users/:userid\"\n\t   * url: \"/books/{bookid:[a-zA-Z_-]}\"\n\t   * url: \"/books/{categoryid:int}\"\n\t   * url: \"/books/{publishername:string}/{categoryid:int}\"\n\t   * url: \"/messages?before&after\"\n\t   * url: \"/messages?{before:date}&{after:date}\"\n\t   * url: \"/messages/:mailboxid?{before:date}&{after:date}\"\n\t   * 
\n\t *\n\t * @param {object=} stateConfig.views\n\t * \n\t * an optional map<string, object> which defined multiple views, or targets views\n\t * manually/explicitly.\n\t *\n\t * Examples:\n\t *\n\t * Targets three named `ui-view`s in the parent state's template\n\t *
views: {\n\t   *     header: {\n\t   *       controller: \"headerCtrl\",\n\t   *       templateUrl: \"header.html\"\n\t   *     }, body: {\n\t   *       controller: \"bodyCtrl\",\n\t   *       templateUrl: \"body.html\"\n\t   *     }, footer: {\n\t   *       controller: \"footCtrl\",\n\t   *       templateUrl: \"footer.html\"\n\t   *     }\n\t   *   }
\n\t *\n\t * Targets named `ui-view=\"header\"` from grandparent state 'top''s template, and named `ui-view=\"body\" from parent state's template.\n\t *
views: {\n\t   *     'header@top': {\n\t   *       controller: \"msgHeaderCtrl\",\n\t   *       templateUrl: \"msgHeader.html\"\n\t   *     }, 'body': {\n\t   *       controller: \"messagesCtrl\",\n\t   *       templateUrl: \"messages.html\"\n\t   *     }\n\t   *   }
\n\t *\n\t * @param {boolean=} [stateConfig.abstract=false]\n\t * \n\t * An abstract state will never be directly activated,\n\t * but can provide inherited properties to its common children states.\n\t *
abstract: true
\n\t *\n\t * @param {function=} stateConfig.onEnter\n\t * \n\t *\n\t * Callback function for when a state is entered. Good way\n\t * to trigger an action or dispatch an event, such as opening a dialog.\n\t * If minifying your scripts, make sure to explicitly annotate this function,\n\t * because it won't be automatically annotated by your build tools.\n\t *\n\t *
onEnter: function(MyService, $stateParams) {\n\t   *     MyService.foo($stateParams.myParam);\n\t   * }
\n\t *\n\t * @param {function=} stateConfig.onExit\n\t * \n\t *\n\t * Callback function for when a state is exited. Good way to\n\t * trigger an action or dispatch an event, such as opening a dialog.\n\t * If minifying your scripts, make sure to explicitly annotate this function,\n\t * because it won't be automatically annotated by your build tools.\n\t *\n\t *
onExit: function(MyService, $stateParams) {\n\t   *     MyService.cleanup($stateParams.myParam);\n\t   * }
\n\t *\n\t * @param {boolean=} [stateConfig.reloadOnSearch=true]\n\t * \n\t *\n\t * If `false`, will not retrigger the same state\n\t * just because a search/query parameter has changed (via $location.search() or $location.hash()). \n\t * Useful for when you'd like to modify $location.search() without triggering a reload.\n\t *
reloadOnSearch: false
\n\t *\n\t * @param {object=} stateConfig.data\n\t * \n\t *\n\t * Arbitrary data object, useful for custom configuration. The parent state's `data` is\n\t * prototypally inherited. In other words, adding a data property to a state adds it to\n\t * the entire subtree via prototypal inheritance.\n\t *\n\t *
data: {\n\t   *     requiredRole: 'foo'\n\t   * } 
\n\t *\n\t * @param {object=} stateConfig.params\n\t * \n\t *\n\t * A map which optionally configures parameters declared in the `url`, or\n\t * defines additional non-url parameters. For each parameter being\n\t * configured, add a configuration object keyed to the name of the parameter.\n\t *\n\t * Each parameter configuration object may contain the following properties:\n\t *\n\t * - ** value ** - {object|function=}: specifies the default value for this\n\t * parameter. This implicitly sets this parameter as optional.\n\t *\n\t * When UI-Router routes to a state and no value is\n\t * specified for this parameter in the URL or transition, the\n\t * default value will be used instead. If `value` is a function,\n\t * it will be injected and invoked, and the return value used.\n\t *\n\t * *Note*: `undefined` is treated as \"no default value\" while `null`\n\t * is treated as \"the default value is `null`\".\n\t *\n\t * *Shorthand*: If you only need to configure the default value of the\n\t * parameter, you may use a shorthand syntax. In the **`params`**\n\t * map, instead mapping the param name to a full parameter configuration\n\t * object, simply set map it to the default parameter value, e.g.:\n\t *\n\t *
// define a parameter's default value\n\t   * params: {\n\t   *     param1: { value: \"defaultValue\" }\n\t   * }\n\t   * // shorthand default values\n\t   * params: {\n\t   *     param1: \"defaultValue\",\n\t   *     param2: \"param2Default\"\n\t   * }
\n\t *\n\t * - ** array ** - {boolean=}: *(default: false)* If true, the param value will be\n\t * treated as an array of values. If you specified a Type, the value will be\n\t * treated as an array of the specified Type. Note: query parameter values\n\t * default to a special `\"auto\"` mode.\n\t *\n\t * For query parameters in `\"auto\"` mode, if multiple values for a single parameter\n\t * are present in the URL (e.g.: `/foo?bar=1&bar=2&bar=3`) then the values\n\t * are mapped to an array (e.g.: `{ foo: [ '1', '2', '3' ] }`). However, if\n\t * only one value is present (e.g.: `/foo?bar=1`) then the value is treated as single\n\t * value (e.g.: `{ foo: '1' }`).\n\t *\n\t *
params: {\n\t   *     param1: { array: true }\n\t   * }
\n\t *\n\t * - ** squash ** - {bool|string=}: `squash` configures how a default parameter value is represented in the URL when\n\t * the current parameter value is the same as the default value. If `squash` is not set, it uses the\n\t * configured default squash policy.\n\t * (See {@link ui.router.util.$urlMatcherFactory#methods_defaultSquashPolicy `defaultSquashPolicy()`})\n\t *\n\t * There are three squash settings:\n\t *\n\t * - false: The parameter's default value is not squashed. It is encoded and included in the URL\n\t * - true: The parameter's default value is omitted from the URL. If the parameter is preceeded and followed\n\t * by slashes in the state's `url` declaration, then one of those slashes are omitted.\n\t * This can allow for cleaner looking URLs.\n\t * - `\"\"`: The parameter's default value is replaced with an arbitrary placeholder of your choice.\n\t *\n\t *
params: {\n\t   *     param1: {\n\t   *       value: \"defaultId\",\n\t   *       squash: true\n\t   * } }\n\t   * // squash \"defaultValue\" to \"~\"\n\t   * params: {\n\t   *     param1: {\n\t   *       value: \"defaultValue\",\n\t   *       squash: \"~\"\n\t   * } }\n\t   * 
\n\t *\n\t *\n\t * @example\n\t *
\n\t   * // Some state name examples\n\t   *\n\t   * // stateName can be a single top-level name (must be unique).\n\t   * $stateProvider.state(\"home\", {});\n\t   *\n\t   * // Or it can be a nested state name. This state is a child of the\n\t   * // above \"home\" state.\n\t   * $stateProvider.state(\"home.newest\", {});\n\t   *\n\t   * // Nest states as deeply as needed.\n\t   * $stateProvider.state(\"home.newest.abc.xyz.inception\", {});\n\t   *\n\t   * // state() returns $stateProvider, so you can chain state declarations.\n\t   * $stateProvider\n\t   *   .state(\"home\", {})\n\t   *   .state(\"about\", {})\n\t   *   .state(\"contacts\", {});\n\t   * 
\n\t *\n\t */\n\t this.state = state;\n\t function state(name, definition) {\n\t /*jshint validthis: true */\n\t if (isObject(name)) definition = name;\n\t else definition.name = name;\n\t registerState(definition);\n\t return this;\n\t }\n\t\n\t /**\n\t * @ngdoc object\n\t * @name ui.router.state.$state\n\t *\n\t * @requires $rootScope\n\t * @requires $q\n\t * @requires ui.router.state.$view\n\t * @requires $injector\n\t * @requires ui.router.util.$resolve\n\t * @requires ui.router.state.$stateParams\n\t * @requires ui.router.router.$urlRouter\n\t *\n\t * @property {object} params A param object, e.g. {sectionId: section.id)}, that \n\t * you'd like to test against the current active state.\n\t * @property {object} current A reference to the state's config object. However \n\t * you passed it in. Useful for accessing custom data.\n\t * @property {object} transition Currently pending transition. A promise that'll \n\t * resolve or reject.\n\t *\n\t * @description\n\t * `$state` service is responsible for representing states as well as transitioning\n\t * between them. It also provides interfaces to ask for current state or even states\n\t * you're coming from.\n\t */\n\t this.$get = $get;\n\t $get.$inject = ['$rootScope', '$q', '$view', '$injector', '$resolve', '$stateParams', '$urlRouter', '$location', '$urlMatcherFactory'];\n\t function $get( $rootScope, $q, $view, $injector, $resolve, $stateParams, $urlRouter, $location, $urlMatcherFactory) {\n\t\n\t var TransitionSuperseded = $q.reject(new Error('transition superseded'));\n\t var TransitionPrevented = $q.reject(new Error('transition prevented'));\n\t var TransitionAborted = $q.reject(new Error('transition aborted'));\n\t var TransitionFailed = $q.reject(new Error('transition failed'));\n\t\n\t // Handles the case where a state which is the target of a transition is not found, and the user\n\t // can optionally retry or defer the transition\n\t function handleRedirect(redirect, state, params, options) {\n\t /**\n\t * @ngdoc event\n\t * @name ui.router.state.$state#$stateNotFound\n\t * @eventOf ui.router.state.$state\n\t * @eventType broadcast on root scope\n\t * @description\n\t * Fired when a requested state **cannot be found** using the provided state name during transition.\n\t * The event is broadcast allowing any handlers a single chance to deal with the error (usually by\n\t * lazy-loading the unfound state). A special `unfoundState` object is passed to the listener handler,\n\t * you can see its three properties in the example. You can use `event.preventDefault()` to abort the\n\t * transition and the promise returned from `go` will be rejected with a `'transition aborted'` value.\n\t *\n\t * @param {Object} event Event object.\n\t * @param {Object} unfoundState Unfound State information. Contains: `to, toParams, options` properties.\n\t * @param {State} fromState Current state object.\n\t * @param {Object} fromParams Current state params.\n\t *\n\t * @example\n\t *\n\t *
\n\t       * // somewhere, assume lazy.state has not been defined\n\t       * $state.go(\"lazy.state\", {a:1, b:2}, {inherit:false});\n\t       *\n\t       * // somewhere else\n\t       * $scope.$on('$stateNotFound',\n\t       * function(event, unfoundState, fromState, fromParams){\n\t       *     console.log(unfoundState.to); // \"lazy.state\"\n\t       *     console.log(unfoundState.toParams); // {a:1, b:2}\n\t       *     console.log(unfoundState.options); // {inherit:false} + default options\n\t       * })\n\t       * 
\n\t */\n\t var evt = $rootScope.$broadcast('$stateNotFound', redirect, state, params);\n\t\n\t if (evt.defaultPrevented) {\n\t $urlRouter.update();\n\t return TransitionAborted;\n\t }\n\t\n\t if (!evt.retry) {\n\t return null;\n\t }\n\t\n\t // Allow the handler to return a promise to defer state lookup retry\n\t if (options.$retry) {\n\t $urlRouter.update();\n\t return TransitionFailed;\n\t }\n\t var retryTransition = $state.transition = $q.when(evt.retry);\n\t\n\t retryTransition.then(function() {\n\t if (retryTransition !== $state.transition) return TransitionSuperseded;\n\t redirect.options.$retry = true;\n\t return $state.transitionTo(redirect.to, redirect.toParams, redirect.options);\n\t }, function() {\n\t return TransitionAborted;\n\t });\n\t $urlRouter.update();\n\t\n\t return retryTransition;\n\t }\n\t\n\t root.locals = { resolve: null, globals: { $stateParams: {} } };\n\t\n\t $state = {\n\t params: {},\n\t current: root.self,\n\t $current: root,\n\t transition: null\n\t };\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.state.$state#reload\n\t * @methodOf ui.router.state.$state\n\t *\n\t * @description\n\t * A method that force reloads the current state. All resolves are re-resolved,\n\t * controllers reinstantiated, and events re-fired.\n\t *\n\t * @example\n\t *
\n\t     * var app angular.module('app', ['ui.router']);\n\t     *\n\t     * app.controller('ctrl', function ($scope, $state) {\n\t     *   $scope.reload = function(){\n\t     *     $state.reload();\n\t     *   }\n\t     * });\n\t     * 
\n\t *\n\t * `reload()` is just an alias for:\n\t *
\n\t     * $state.transitionTo($state.current, $stateParams, { \n\t     *   reload: true, inherit: false, notify: true\n\t     * });\n\t     * 
\n\t *\n\t * @param {string=|object=} state - A state name or a state object, which is the root of the resolves to be re-resolved.\n\t * @example\n\t *
\n\t     * //assuming app application consists of 3 states: 'contacts', 'contacts.detail', 'contacts.detail.item' \n\t     * //and current state is 'contacts.detail.item'\n\t     * var app angular.module('app', ['ui.router']);\n\t     *\n\t     * app.controller('ctrl', function ($scope, $state) {\n\t     *   $scope.reload = function(){\n\t     *     //will reload 'contact.detail' and 'contact.detail.item' states\n\t     *     $state.reload('contact.detail');\n\t     *   }\n\t     * });\n\t     * 
\n\t *\n\t * `reload()` is just an alias for:\n\t *
\n\t     * $state.transitionTo($state.current, $stateParams, { \n\t     *   reload: true, inherit: false, notify: true\n\t     * });\n\t     * 
\n\t\n\t * @returns {promise} A promise representing the state of the new transition. See\n\t * {@link ui.router.state.$state#methods_go $state.go}.\n\t */\n\t $state.reload = function reload(state) {\n\t return $state.transitionTo($state.current, $stateParams, { reload: state || true, inherit: false, notify: true});\n\t };\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.state.$state#go\n\t * @methodOf ui.router.state.$state\n\t *\n\t * @description\n\t * Convenience method for transitioning to a new state. `$state.go` calls \n\t * `$state.transitionTo` internally but automatically sets options to \n\t * `{ location: true, inherit: true, relative: $state.$current, notify: true }`. \n\t * This allows you to easily use an absolute or relative to path and specify \n\t * only the parameters you'd like to update (while letting unspecified parameters \n\t * inherit from the currently active ancestor states).\n\t *\n\t * @example\n\t *
\n\t     * var app = angular.module('app', ['ui.router']);\n\t     *\n\t     * app.controller('ctrl', function ($scope, $state) {\n\t     *   $scope.changeState = function () {\n\t     *     $state.go('contact.detail');\n\t     *   };\n\t     * });\n\t     * 
\n\t * \n\t *\n\t * @param {string} to Absolute state name or relative state path. Some examples:\n\t *\n\t * - `$state.go('contact.detail')` - will go to the `contact.detail` state\n\t * - `$state.go('^')` - will go to a parent state\n\t * - `$state.go('^.sibling')` - will go to a sibling state\n\t * - `$state.go('.child.grandchild')` - will go to grandchild state\n\t *\n\t * @param {object=} params A map of the parameters that will be sent to the state, \n\t * will populate $stateParams. Any parameters that are not specified will be inherited from currently \n\t * defined parameters. Only parameters specified in the state definition can be overridden, new \n\t * parameters will be ignored. This allows, for example, going to a sibling state that shares parameters\n\t * specified in a parent state. Parameter inheritance only works between common ancestor states, I.e.\n\t * transitioning to a sibling will get you the parameters for all parents, transitioning to a child\n\t * will get you all current parameters, etc.\n\t * @param {object=} options Options object. The options are:\n\t *\n\t * - **`location`** - {boolean=true|string=} - If `true` will update the url in the location bar, if `false`\n\t * will not. If string, must be `\"replace\"`, which will update url and also replace last history record.\n\t * - **`inherit`** - {boolean=true}, If `true` will inherit url parameters from current url.\n\t * - **`relative`** - {object=$state.$current}, When transitioning with relative path (e.g '^'), \n\t * defines which state to be relative from.\n\t * - **`notify`** - {boolean=true}, If `true` will broadcast $stateChangeStart and $stateChangeSuccess events.\n\t * - **`reload`** (v0.2.5) - {boolean=false|string|object}, If `true` will force transition even if no state or params\n\t * have changed. It will reload the resolves and views of the current state and parent states.\n\t * If `reload` is a string (or state object), the state object is fetched (by name, or object reference); and \\\n\t * the transition reloads the resolves and views for that matched state, and all its children states.\n\t *\n\t * @returns {promise} A promise representing the state of the new transition.\n\t *\n\t * Possible success values:\n\t *\n\t * - $state.current\n\t *\n\t *
Possible rejection values:\n\t *\n\t * - 'transition superseded' - when a newer transition has been started after this one\n\t * - 'transition prevented' - when `event.preventDefault()` has been called in a `$stateChangeStart` listener\n\t * - 'transition aborted' - when `event.preventDefault()` has been called in a `$stateNotFound` listener or\n\t * when a `$stateNotFound` `event.retry` promise errors.\n\t * - 'transition failed' - when a state has been unsuccessfully found after 2 tries.\n\t * - *resolve error* - when an error has occurred with a `resolve`\n\t *\n\t */\n\t $state.go = function go(to, params, options) {\n\t return $state.transitionTo(to, params, extend({ inherit: true, relative: $state.$current }, options));\n\t };\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.state.$state#transitionTo\n\t * @methodOf ui.router.state.$state\n\t *\n\t * @description\n\t * Low-level method for transitioning to a new state. {@link ui.router.state.$state#methods_go $state.go}\n\t * uses `transitionTo` internally. `$state.go` is recommended in most situations.\n\t *\n\t * @example\n\t *
\n\t     * var app = angular.module('app', ['ui.router']);\n\t     *\n\t     * app.controller('ctrl', function ($scope, $state) {\n\t     *   $scope.changeState = function () {\n\t     *     $state.transitionTo('contact.detail');\n\t     *   };\n\t     * });\n\t     * 
\n\t *\n\t * @param {string} to State name.\n\t * @param {object=} toParams A map of the parameters that will be sent to the state,\n\t * will populate $stateParams.\n\t * @param {object=} options Options object. The options are:\n\t *\n\t * - **`location`** - {boolean=true|string=} - If `true` will update the url in the location bar, if `false`\n\t * will not. If string, must be `\"replace\"`, which will update url and also replace last history record.\n\t * - **`inherit`** - {boolean=false}, If `true` will inherit url parameters from current url.\n\t * - **`relative`** - {object=}, When transitioning with relative path (e.g '^'), \n\t * defines which state to be relative from.\n\t * - **`notify`** - {boolean=true}, If `true` will broadcast $stateChangeStart and $stateChangeSuccess events.\n\t * - **`reload`** (v0.2.5) - {boolean=false|string=|object=}, If `true` will force transition even if the state or params \n\t * have not changed, aka a reload of the same state. It differs from reloadOnSearch because you'd\n\t * use this when you want to force a reload when *everything* is the same, including search params.\n\t * if String, then will reload the state with the name given in reload, and any children.\n\t * if Object, then a stateObj is expected, will reload the state found in stateObj, and any children.\n\t *\n\t * @returns {promise} A promise representing the state of the new transition. See\n\t * {@link ui.router.state.$state#methods_go $state.go}.\n\t */\n\t $state.transitionTo = function transitionTo(to, toParams, options) {\n\t toParams = toParams || {};\n\t options = extend({\n\t location: true, inherit: false, relative: null, notify: true, reload: false, $retry: false\n\t }, options || {});\n\t\n\t var from = $state.$current, fromParams = $state.params, fromPath = from.path;\n\t var evt, toState = findState(to, options.relative);\n\t\n\t // Store the hash param for later (since it will be stripped out by various methods)\n\t var hash = toParams['#'];\n\t\n\t if (!isDefined(toState)) {\n\t var redirect = { to: to, toParams: toParams, options: options };\n\t var redirectResult = handleRedirect(redirect, from.self, fromParams, options);\n\t\n\t if (redirectResult) {\n\t return redirectResult;\n\t }\n\t\n\t // Always retry once if the $stateNotFound was not prevented\n\t // (handles either redirect changed or state lazy-definition)\n\t to = redirect.to;\n\t toParams = redirect.toParams;\n\t options = redirect.options;\n\t toState = findState(to, options.relative);\n\t\n\t if (!isDefined(toState)) {\n\t if (!options.relative) throw new Error(\"No such state '\" + to + \"'\");\n\t throw new Error(\"Could not resolve '\" + to + \"' from state '\" + options.relative + \"'\");\n\t }\n\t }\n\t if (toState[abstractKey]) throw new Error(\"Cannot transition to abstract state '\" + to + \"'\");\n\t if (options.inherit) toParams = inheritParams($stateParams, toParams || {}, $state.$current, toState);\n\t if (!toState.params.$$validates(toParams)) return TransitionFailed;\n\t\n\t toParams = toState.params.$$values(toParams);\n\t to = toState;\n\t\n\t var toPath = to.path;\n\t\n\t // Starting from the root of the path, keep all levels that haven't changed\n\t var keep = 0, state = toPath[keep], locals = root.locals, toLocals = [];\n\t\n\t if (!options.reload) {\n\t while (state && state === fromPath[keep] && state.ownParams.$$equals(toParams, fromParams)) {\n\t locals = toLocals[keep] = state.locals;\n\t keep++;\n\t state = toPath[keep];\n\t }\n\t } else if (isString(options.reload) || isObject(options.reload)) {\n\t if (isObject(options.reload) && !options.reload.name) {\n\t throw new Error('Invalid reload state object');\n\t }\n\t \n\t var reloadState = options.reload === true ? fromPath[0] : findState(options.reload);\n\t if (options.reload && !reloadState) {\n\t throw new Error(\"No such reload state '\" + (isString(options.reload) ? options.reload : options.reload.name) + \"'\");\n\t }\n\t\n\t while (state && state === fromPath[keep] && state !== reloadState) {\n\t locals = toLocals[keep] = state.locals;\n\t keep++;\n\t state = toPath[keep];\n\t }\n\t }\n\t\n\t // If we're going to the same state and all locals are kept, we've got nothing to do.\n\t // But clear 'transition', as we still want to cancel any other pending transitions.\n\t // TODO: We may not want to bump 'transition' if we're called from a location change\n\t // that we've initiated ourselves, because we might accidentally abort a legitimate\n\t // transition initiated from code?\n\t if (shouldSkipReload(to, toParams, from, fromParams, locals, options)) {\n\t if (hash) toParams['#'] = hash;\n\t $state.params = toParams;\n\t copy($state.params, $stateParams);\n\t copy(filterByKeys(to.params.$$keys(), $stateParams), to.locals.globals.$stateParams);\n\t if (options.location && to.navigable && to.navigable.url) {\n\t $urlRouter.push(to.navigable.url, toParams, {\n\t $$avoidResync: true, replace: options.location === 'replace'\n\t });\n\t $urlRouter.update(true);\n\t }\n\t $state.transition = null;\n\t return $q.when($state.current);\n\t }\n\t\n\t // Filter parameters before we pass them to event handlers etc.\n\t toParams = filterByKeys(to.params.$$keys(), toParams || {});\n\t \n\t // Re-add the saved hash before we start returning things or broadcasting $stateChangeStart\n\t if (hash) toParams['#'] = hash;\n\t \n\t // Broadcast start event and cancel the transition if requested\n\t if (options.notify) {\n\t /**\n\t * @ngdoc event\n\t * @name ui.router.state.$state#$stateChangeStart\n\t * @eventOf ui.router.state.$state\n\t * @eventType broadcast on root scope\n\t * @description\n\t * Fired when the state transition **begins**. You can use `event.preventDefault()`\n\t * to prevent the transition from happening and then the transition promise will be\n\t * rejected with a `'transition prevented'` value.\n\t *\n\t * @param {Object} event Event object.\n\t * @param {State} toState The state being transitioned to.\n\t * @param {Object} toParams The params supplied to the `toState`.\n\t * @param {State} fromState The current state, pre-transition.\n\t * @param {Object} fromParams The params supplied to the `fromState`.\n\t *\n\t * @example\n\t *\n\t *
\n\t         * $rootScope.$on('$stateChangeStart',\n\t         * function(event, toState, toParams, fromState, fromParams){\n\t         *     event.preventDefault();\n\t         *     // transitionTo() promise will be rejected with\n\t         *     // a 'transition prevented' error\n\t         * })\n\t         * 
\n\t */\n\t if ($rootScope.$broadcast('$stateChangeStart', to.self, toParams, from.self, fromParams, options).defaultPrevented) {\n\t $rootScope.$broadcast('$stateChangeCancel', to.self, toParams, from.self, fromParams);\n\t //Don't update and resync url if there's been a new transition started. see issue #2238, #600\n\t if ($state.transition == null) $urlRouter.update();\n\t return TransitionPrevented;\n\t }\n\t }\n\t\n\t // Resolve locals for the remaining states, but don't update any global state just\n\t // yet -- if anything fails to resolve the current state needs to remain untouched.\n\t // We also set up an inheritance chain for the locals here. This allows the view directive\n\t // to quickly look up the correct definition for each view in the current state. Even\n\t // though we create the locals object itself outside resolveState(), it is initially\n\t // empty and gets filled asynchronously. We need to keep track of the promise for the\n\t // (fully resolved) current locals, and pass this down the chain.\n\t var resolved = $q.when(locals);\n\t\n\t for (var l = keep; l < toPath.length; l++, state = toPath[l]) {\n\t locals = toLocals[l] = inherit(locals);\n\t resolved = resolveState(state, toParams, state === to, resolved, locals, options);\n\t }\n\t\n\t // Once everything is resolved, we are ready to perform the actual transition\n\t // and return a promise for the new state. We also keep track of what the\n\t // current promise is, so that we can detect overlapping transitions and\n\t // keep only the outcome of the last transition.\n\t var transition = $state.transition = resolved.then(function () {\n\t var l, entering, exiting;\n\t\n\t if ($state.transition !== transition) return TransitionSuperseded;\n\t\n\t // Exit 'from' states not kept\n\t for (l = fromPath.length - 1; l >= keep; l--) {\n\t exiting = fromPath[l];\n\t if (exiting.self.onExit) {\n\t $injector.invoke(exiting.self.onExit, exiting.self, exiting.locals.globals);\n\t }\n\t exiting.locals = null;\n\t }\n\t\n\t // Enter 'to' states not kept\n\t for (l = keep; l < toPath.length; l++) {\n\t entering = toPath[l];\n\t entering.locals = toLocals[l];\n\t if (entering.self.onEnter) {\n\t $injector.invoke(entering.self.onEnter, entering.self, entering.locals.globals);\n\t }\n\t }\n\t\n\t // Run it again, to catch any transitions in callbacks\n\t if ($state.transition !== transition) return TransitionSuperseded;\n\t\n\t // Update globals in $state\n\t $state.$current = to;\n\t $state.current = to.self;\n\t $state.params = toParams;\n\t copy($state.params, $stateParams);\n\t $state.transition = null;\n\t\n\t if (options.location && to.navigable) {\n\t $urlRouter.push(to.navigable.url, to.navigable.locals.globals.$stateParams, {\n\t $$avoidResync: true, replace: options.location === 'replace'\n\t });\n\t }\n\t\n\t if (options.notify) {\n\t /**\n\t * @ngdoc event\n\t * @name ui.router.state.$state#$stateChangeSuccess\n\t * @eventOf ui.router.state.$state\n\t * @eventType broadcast on root scope\n\t * @description\n\t * Fired once the state transition is **complete**.\n\t *\n\t * @param {Object} event Event object.\n\t * @param {State} toState The state being transitioned to.\n\t * @param {Object} toParams The params supplied to the `toState`.\n\t * @param {State} fromState The current state, pre-transition.\n\t * @param {Object} fromParams The params supplied to the `fromState`.\n\t */\n\t $rootScope.$broadcast('$stateChangeSuccess', to.self, toParams, from.self, fromParams);\n\t }\n\t $urlRouter.update(true);\n\t\n\t return $state.current;\n\t }, function (error) {\n\t if ($state.transition !== transition) return TransitionSuperseded;\n\t\n\t $state.transition = null;\n\t /**\n\t * @ngdoc event\n\t * @name ui.router.state.$state#$stateChangeError\n\t * @eventOf ui.router.state.$state\n\t * @eventType broadcast on root scope\n\t * @description\n\t * Fired when an **error occurs** during transition. It's important to note that if you\n\t * have any errors in your resolve functions (javascript errors, non-existent services, etc)\n\t * they will not throw traditionally. You must listen for this $stateChangeError event to\n\t * catch **ALL** errors.\n\t *\n\t * @param {Object} event Event object.\n\t * @param {State} toState The state being transitioned to.\n\t * @param {Object} toParams The params supplied to the `toState`.\n\t * @param {State} fromState The current state, pre-transition.\n\t * @param {Object} fromParams The params supplied to the `fromState`.\n\t * @param {Error} error The resolve error object.\n\t */\n\t evt = $rootScope.$broadcast('$stateChangeError', to.self, toParams, from.self, fromParams, error);\n\t\n\t if (!evt.defaultPrevented) {\n\t $urlRouter.update();\n\t }\n\t\n\t return $q.reject(error);\n\t });\n\t\n\t return transition;\n\t };\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.state.$state#is\n\t * @methodOf ui.router.state.$state\n\t *\n\t * @description\n\t * Similar to {@link ui.router.state.$state#methods_includes $state.includes},\n\t * but only checks for the full state name. If params is supplied then it will be\n\t * tested for strict equality against the current active params object, so all params\n\t * must match with none missing and no extras.\n\t *\n\t * @example\n\t *
\n\t     * $state.$current.name = 'contacts.details.item';\n\t     *\n\t     * // absolute name\n\t     * $state.is('contact.details.item'); // returns true\n\t     * $state.is(contactDetailItemStateObject); // returns true\n\t     *\n\t     * // relative name (. and ^), typically from a template\n\t     * // E.g. from the 'contacts.details' template\n\t     * 
Item
\n\t *
\n\t *\n\t * @param {string|object} stateOrName The state name (absolute or relative) or state object you'd like to check.\n\t * @param {object=} params A param object, e.g. `{sectionId: section.id}`, that you'd like\n\t * to test against the current active state.\n\t * @param {object=} options An options object. The options are:\n\t *\n\t * - **`relative`** - {string|object} - If `stateOrName` is a relative state name and `options.relative` is set, .is will\n\t * test relative to `options.relative` state (or name).\n\t *\n\t * @returns {boolean} Returns true if it is the state.\n\t */\n\t $state.is = function is(stateOrName, params, options) {\n\t options = extend({ relative: $state.$current }, options || {});\n\t var state = findState(stateOrName, options.relative);\n\t\n\t if (!isDefined(state)) { return undefined; }\n\t if ($state.$current !== state) { return false; }\n\t return params ? equalForKeys(state.params.$$values(params), $stateParams) : true;\n\t };\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.state.$state#includes\n\t * @methodOf ui.router.state.$state\n\t *\n\t * @description\n\t * A method to determine if the current active state is equal to or is the child of the\n\t * state stateName. If any params are passed then they will be tested for a match as well.\n\t * Not all the parameters need to be passed, just the ones you'd like to test for equality.\n\t *\n\t * @example\n\t * Partial and relative names\n\t *
\n\t     * $state.$current.name = 'contacts.details.item';\n\t     *\n\t     * // Using partial names\n\t     * $state.includes(\"contacts\"); // returns true\n\t     * $state.includes(\"contacts.details\"); // returns true\n\t     * $state.includes(\"contacts.details.item\"); // returns true\n\t     * $state.includes(\"contacts.list\"); // returns false\n\t     * $state.includes(\"about\"); // returns false\n\t     *\n\t     * // Using relative names (. and ^), typically from a template\n\t     * // E.g. from the 'contacts.details' template\n\t     * 
Item
\n\t *
\n\t *\n\t * Basic globbing patterns\n\t *
\n\t     * $state.$current.name = 'contacts.details.item.url';\n\t     *\n\t     * $state.includes(\"*.details.*.*\"); // returns true\n\t     * $state.includes(\"*.details.**\"); // returns true\n\t     * $state.includes(\"**.item.**\"); // returns true\n\t     * $state.includes(\"*.details.item.url\"); // returns true\n\t     * $state.includes(\"*.details.*.url\"); // returns true\n\t     * $state.includes(\"*.details.*\"); // returns false\n\t     * $state.includes(\"item.**\"); // returns false\n\t     * 
\n\t *\n\t * @param {string} stateOrName A partial name, relative name, or glob pattern\n\t * to be searched for within the current state name.\n\t * @param {object=} params A param object, e.g. `{sectionId: section.id}`,\n\t * that you'd like to test against the current active state.\n\t * @param {object=} options An options object. The options are:\n\t *\n\t * - **`relative`** - {string|object=} - If `stateOrName` is a relative state reference and `options.relative` is set,\n\t * .includes will test relative to `options.relative` state (or name).\n\t *\n\t * @returns {boolean} Returns true if it does include the state\n\t */\n\t $state.includes = function includes(stateOrName, params, options) {\n\t options = extend({ relative: $state.$current }, options || {});\n\t if (isString(stateOrName) && isGlob(stateOrName)) {\n\t if (!doesStateMatchGlob(stateOrName)) {\n\t return false;\n\t }\n\t stateOrName = $state.$current.name;\n\t }\n\t\n\t var state = findState(stateOrName, options.relative);\n\t if (!isDefined(state)) { return undefined; }\n\t if (!isDefined($state.$current.includes[state.name])) { return false; }\n\t return params ? equalForKeys(state.params.$$values(params), $stateParams, objectKeys(params)) : true;\n\t };\n\t\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.state.$state#href\n\t * @methodOf ui.router.state.$state\n\t *\n\t * @description\n\t * A url generation method that returns the compiled url for the given state populated with the given params.\n\t *\n\t * @example\n\t *
\n\t     * expect($state.href(\"about.person\", { person: \"bob\" })).toEqual(\"/about/bob\");\n\t     * 
\n\t *\n\t * @param {string|object} stateOrName The state name or state object you'd like to generate a url from.\n\t * @param {object=} params An object of parameter values to fill the state's required parameters.\n\t * @param {object=} options Options object. The options are:\n\t *\n\t * - **`lossy`** - {boolean=true} - If true, and if there is no url associated with the state provided in the\n\t * first parameter, then the constructed href url will be built from the first navigable ancestor (aka\n\t * ancestor with a valid url).\n\t * - **`inherit`** - {boolean=true}, If `true` will inherit url parameters from current url.\n\t * - **`relative`** - {object=$state.$current}, When transitioning with relative path (e.g '^'), \n\t * defines which state to be relative from.\n\t * - **`absolute`** - {boolean=false}, If true will generate an absolute url, e.g. \"http://www.example.com/fullurl\".\n\t * \n\t * @returns {string} compiled state url\n\t */\n\t $state.href = function href(stateOrName, params, options) {\n\t options = extend({\n\t lossy: true,\n\t inherit: true,\n\t absolute: false,\n\t relative: $state.$current\n\t }, options || {});\n\t\n\t var state = findState(stateOrName, options.relative);\n\t\n\t if (!isDefined(state)) return null;\n\t if (options.inherit) params = inheritParams($stateParams, params || {}, $state.$current, state);\n\t \n\t var nav = (state && options.lossy) ? state.navigable : state;\n\t\n\t if (!nav || nav.url === undefined || nav.url === null) {\n\t return null;\n\t }\n\t return $urlRouter.href(nav.url, filterByKeys(state.params.$$keys().concat('#'), params || {}), {\n\t absolute: options.absolute\n\t });\n\t };\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.state.$state#get\n\t * @methodOf ui.router.state.$state\n\t *\n\t * @description\n\t * Returns the state configuration object for any specific state or all states.\n\t *\n\t * @param {string|object=} stateOrName (absolute or relative) If provided, will only get the config for\n\t * the requested state. If not provided, returns an array of ALL state configs.\n\t * @param {string|object=} context When stateOrName is a relative state reference, the state will be retrieved relative to context.\n\t * @returns {Object|Array} State configuration object or array of all objects.\n\t */\n\t $state.get = function (stateOrName, context) {\n\t if (arguments.length === 0) return map(objectKeys(states), function(name) { return states[name].self; });\n\t var state = findState(stateOrName, context || $state.$current);\n\t return (state && state.self) ? state.self : null;\n\t };\n\t\n\t function resolveState(state, params, paramsAreFiltered, inherited, dst, options) {\n\t // Make a restricted $stateParams with only the parameters that apply to this state if\n\t // necessary. In addition to being available to the controller and onEnter/onExit callbacks,\n\t // we also need $stateParams to be available for any $injector calls we make during the\n\t // dependency resolution process.\n\t var $stateParams = (paramsAreFiltered) ? params : filterByKeys(state.params.$$keys(), params);\n\t var locals = { $stateParams: $stateParams };\n\t\n\t // Resolve 'global' dependencies for the state, i.e. those not specific to a view.\n\t // We're also including $stateParams in this; that way the parameters are restricted\n\t // to the set that should be visible to the state, and are independent of when we update\n\t // the global $state and $stateParams values.\n\t dst.resolve = $resolve.resolve(state.resolve, locals, dst.resolve, state);\n\t var promises = [dst.resolve.then(function (globals) {\n\t dst.globals = globals;\n\t })];\n\t if (inherited) promises.push(inherited);\n\t\n\t function resolveViews() {\n\t var viewsPromises = [];\n\t\n\t // Resolve template and dependencies for all views.\n\t forEach(state.views, function (view, name) {\n\t var injectables = (view.resolve && view.resolve !== state.resolve ? view.resolve : {});\n\t injectables.$template = [ function () {\n\t return $view.load(name, { view: view, locals: dst.globals, params: $stateParams, notify: options.notify }) || '';\n\t }];\n\t\n\t viewsPromises.push($resolve.resolve(injectables, dst.globals, dst.resolve, state).then(function (result) {\n\t // References to the controller (only instantiated at link time)\n\t if (isFunction(view.controllerProvider) || isArray(view.controllerProvider)) {\n\t var injectLocals = angular.extend({}, injectables, dst.globals);\n\t result.$$controller = $injector.invoke(view.controllerProvider, null, injectLocals);\n\t } else {\n\t result.$$controller = view.controller;\n\t }\n\t // Provide access to the state itself for internal use\n\t result.$$state = state;\n\t result.$$controllerAs = view.controllerAs;\n\t dst[name] = result;\n\t }));\n\t });\n\t\n\t return $q.all(viewsPromises).then(function(){\n\t return dst.globals;\n\t });\n\t }\n\t\n\t // Wait for all the promises and then return the activation object\n\t return $q.all(promises).then(resolveViews).then(function (values) {\n\t return dst;\n\t });\n\t }\n\t\n\t return $state;\n\t }\n\t\n\t function shouldSkipReload(to, toParams, from, fromParams, locals, options) {\n\t // Return true if there are no differences in non-search (path/object) params, false if there are differences\n\t function nonSearchParamsEqual(fromAndToState, fromParams, toParams) {\n\t // Identify whether all the parameters that differ between `fromParams` and `toParams` were search params.\n\t function notSearchParam(key) {\n\t return fromAndToState.params[key].location != \"search\";\n\t }\n\t var nonQueryParamKeys = fromAndToState.params.$$keys().filter(notSearchParam);\n\t var nonQueryParams = pick.apply({}, [fromAndToState.params].concat(nonQueryParamKeys));\n\t var nonQueryParamSet = new $$UMFP.ParamSet(nonQueryParams);\n\t return nonQueryParamSet.$$equals(fromParams, toParams);\n\t }\n\t\n\t // If reload was not explicitly requested\n\t // and we're transitioning to the same state we're already in\n\t // and the locals didn't change\n\t // or they changed in a way that doesn't merit reloading\n\t // (reloadOnParams:false, or reloadOnSearch.false and only search params changed)\n\t // Then return true.\n\t if (!options.reload && to === from &&\n\t (locals === from.locals || (to.self.reloadOnSearch === false && nonSearchParamsEqual(from, fromParams, toParams)))) {\n\t return true;\n\t }\n\t }\n\t}\n\t\n\tangular.module('ui.router.state')\n\t .factory('$stateParams', function () { return {}; })\n\t .provider('$state', $StateProvider);\n\t\n\t\n\t$ViewProvider.$inject = [];\n\tfunction $ViewProvider() {\n\t\n\t this.$get = $get;\n\t /**\n\t * @ngdoc object\n\t * @name ui.router.state.$view\n\t *\n\t * @requires ui.router.util.$templateFactory\n\t * @requires $rootScope\n\t *\n\t * @description\n\t *\n\t */\n\t $get.$inject = ['$rootScope', '$templateFactory'];\n\t function $get( $rootScope, $templateFactory) {\n\t return {\n\t // $view.load('full.viewName', { template: ..., controller: ..., resolve: ..., async: false, params: ... })\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.state.$view#load\n\t * @methodOf ui.router.state.$view\n\t *\n\t * @description\n\t *\n\t * @param {string} name name\n\t * @param {object} options option object.\n\t */\n\t load: function load(name, options) {\n\t var result, defaults = {\n\t template: null, controller: null, view: null, locals: null, notify: true, async: true, params: {}\n\t };\n\t options = extend(defaults, options);\n\t\n\t if (options.view) {\n\t result = $templateFactory.fromConfig(options.view, options.params, options.locals);\n\t }\n\t return result;\n\t }\n\t };\n\t }\n\t}\n\t\n\tangular.module('ui.router.state').provider('$view', $ViewProvider);\n\t\n\t/**\n\t * @ngdoc object\n\t * @name ui.router.state.$uiViewScrollProvider\n\t *\n\t * @description\n\t * Provider that returns the {@link ui.router.state.$uiViewScroll} service function.\n\t */\n\tfunction $ViewScrollProvider() {\n\t\n\t var useAnchorScroll = false;\n\t\n\t /**\n\t * @ngdoc function\n\t * @name ui.router.state.$uiViewScrollProvider#useAnchorScroll\n\t * @methodOf ui.router.state.$uiViewScrollProvider\n\t *\n\t * @description\n\t * Reverts back to using the core [`$anchorScroll`](http://docs.angularjs.org/api/ng.$anchorScroll) service for\n\t * scrolling based on the url anchor.\n\t */\n\t this.useAnchorScroll = function () {\n\t useAnchorScroll = true;\n\t };\n\t\n\t /**\n\t * @ngdoc object\n\t * @name ui.router.state.$uiViewScroll\n\t *\n\t * @requires $anchorScroll\n\t * @requires $timeout\n\t *\n\t * @description\n\t * When called with a jqLite element, it scrolls the element into view (after a\n\t * `$timeout` so the DOM has time to refresh).\n\t *\n\t * If you prefer to rely on `$anchorScroll` to scroll the view to the anchor,\n\t * this can be enabled by calling {@link ui.router.state.$uiViewScrollProvider#methods_useAnchorScroll `$uiViewScrollProvider.useAnchorScroll()`}.\n\t */\n\t this.$get = ['$anchorScroll', '$timeout', function ($anchorScroll, $timeout) {\n\t if (useAnchorScroll) {\n\t return $anchorScroll;\n\t }\n\t\n\t return function ($element) {\n\t return $timeout(function () {\n\t $element[0].scrollIntoView();\n\t }, 0, false);\n\t };\n\t }];\n\t}\n\t\n\tangular.module('ui.router.state').provider('$uiViewScroll', $ViewScrollProvider);\n\t\n\tvar ngMajorVer = angular.version.major;\n\tvar ngMinorVer = angular.version.minor;\n\t/**\n\t * @ngdoc directive\n\t * @name ui.router.state.directive:ui-view\n\t *\n\t * @requires ui.router.state.$state\n\t * @requires $compile\n\t * @requires $controller\n\t * @requires $injector\n\t * @requires ui.router.state.$uiViewScroll\n\t * @requires $document\n\t *\n\t * @restrict ECA\n\t *\n\t * @description\n\t * The ui-view directive tells $state where to place your templates.\n\t *\n\t * @param {string=} name A view name. The name should be unique amongst the other views in the\n\t * same state. You can have views of the same name that live in different states.\n\t *\n\t * @param {string=} autoscroll It allows you to set the scroll behavior of the browser window\n\t * when a view is populated. By default, $anchorScroll is overridden by ui-router's custom scroll\n\t * service, {@link ui.router.state.$uiViewScroll}. This custom service let's you\n\t * scroll ui-view elements into view when they are populated during a state activation.\n\t *\n\t * @param {string=} noanimation If truthy, the non-animated renderer will be selected (no animations\n\t * will be applied to the ui-view)\n\t *\n\t * *Note: To revert back to old [`$anchorScroll`](http://docs.angularjs.org/api/ng.$anchorScroll)\n\t * functionality, call `$uiViewScrollProvider.useAnchorScroll()`.*\n\t *\n\t * @param {string=} onload Expression to evaluate whenever the view updates.\n\t * \n\t * @example\n\t * A view can be unnamed or named. \n\t *
\n\t * \n\t * 
\n\t * \n\t * \n\t *
\n\t *
\n\t *\n\t * You can only have one unnamed view within any template (or root html). If you are only using a \n\t * single view and it is unnamed then you can populate it like so:\n\t *
\n\t * 
\n\t * $stateProvider.state(\"home\", {\n\t * template: \"

HELLO!

\"\n\t * })\n\t *
\n\t * \n\t * The above is a convenient shortcut equivalent to specifying your view explicitly with the {@link ui.router.state.$stateProvider#views `views`}\n\t * config property, by name, in this case an empty name:\n\t *
\n\t * $stateProvider.state(\"home\", {\n\t *   views: {\n\t *     \"\": {\n\t *       template: \"

HELLO!

\"\n\t * }\n\t * } \n\t * })\n\t *
\n\t * \n\t * But typically you'll only use the views property if you name your view or have more than one view \n\t * in the same template. There's not really a compelling reason to name a view if its the only one, \n\t * but you could if you wanted, like so:\n\t *
\n\t * 
\n\t *
\n\t *
\n\t * $stateProvider.state(\"home\", {\n\t *   views: {\n\t *     \"main\": {\n\t *       template: \"

HELLO!

\"\n\t * }\n\t * } \n\t * })\n\t *
\n\t * \n\t * Really though, you'll use views to set up multiple views:\n\t *
\n\t * 
\n\t *
\n\t *
\n\t *
\n\t * \n\t *
\n\t * $stateProvider.state(\"home\", {\n\t *   views: {\n\t *     \"\": {\n\t *       template: \"

HELLO!

\"\n\t * },\n\t * \"chart\": {\n\t * template: \"\"\n\t * },\n\t * \"data\": {\n\t * template: \"\"\n\t * }\n\t * } \n\t * })\n\t *
\n\t *\n\t * Examples for `autoscroll`:\n\t *\n\t *
\n\t * \n\t * \n\t *\n\t * \n\t * \n\t * \n\t * \n\t * 
\n\t */\n\t$ViewDirective.$inject = ['$state', '$injector', '$uiViewScroll', '$interpolate'];\n\tfunction $ViewDirective( $state, $injector, $uiViewScroll, $interpolate) {\n\t\n\t function getService() {\n\t return ($injector.has) ? function(service) {\n\t return $injector.has(service) ? $injector.get(service) : null;\n\t } : function(service) {\n\t try {\n\t return $injector.get(service);\n\t } catch (e) {\n\t return null;\n\t }\n\t };\n\t }\n\t\n\t var service = getService(),\n\t $animator = service('$animator'),\n\t $animate = service('$animate');\n\t\n\t // Returns a set of DOM manipulation functions based on which Angular version\n\t // it should use\n\t function getRenderer(attrs, scope) {\n\t var statics = {\n\t enter: function (element, target, cb) { target.after(element); cb(); },\n\t leave: function (element, cb) { element.remove(); cb(); }\n\t };\n\t\n\t if (!!attrs.noanimation) return statics;\n\t\n\t function animEnabled(element) {\n\t if (ngMajorVer === 1 && ngMinorVer >= 4) return !!$animate.enabled(element);\n\t if (ngMajorVer === 1 && ngMinorVer >= 2) return !!$animate.enabled();\n\t return (!!$animator);\n\t }\n\t\n\t // ng 1.2+\n\t if ($animate) {\n\t return {\n\t enter: function(element, target, cb) {\n\t if (!animEnabled(element)) {\n\t statics.enter(element, target, cb);\n\t } else if (angular.version.minor > 2) {\n\t $animate.enter(element, null, target).then(cb);\n\t } else {\n\t $animate.enter(element, null, target, cb);\n\t }\n\t },\n\t leave: function(element, cb) {\n\t if (!animEnabled(element)) {\n\t statics.leave(element, cb);\n\t } else if (angular.version.minor > 2) {\n\t $animate.leave(element).then(cb);\n\t } else {\n\t $animate.leave(element, cb);\n\t }\n\t }\n\t };\n\t }\n\t\n\t // ng 1.1.5\n\t if ($animator) {\n\t var animate = $animator && $animator(scope, attrs);\n\t\n\t return {\n\t enter: function(element, target, cb) {animate.enter(element, null, target); cb(); },\n\t leave: function(element, cb) { animate.leave(element); cb(); }\n\t };\n\t }\n\t\n\t return statics;\n\t }\n\t\n\t var directive = {\n\t restrict: 'ECA',\n\t terminal: true,\n\t priority: 400,\n\t transclude: 'element',\n\t compile: function (tElement, tAttrs, $transclude) {\n\t return function (scope, $element, attrs) {\n\t var previousEl, currentEl, currentScope, latestLocals,\n\t onloadExp = attrs.onload || '',\n\t autoScrollExp = attrs.autoscroll,\n\t renderer = getRenderer(attrs, scope);\n\t\n\t scope.$on('$stateChangeSuccess', function() {\n\t updateView(false);\n\t });\n\t\n\t updateView(true);\n\t\n\t function cleanupLastView() {\n\t var _previousEl = previousEl;\n\t var _currentScope = currentScope;\n\t\n\t if (_currentScope) {\n\t _currentScope._willBeDestroyed = true;\n\t }\n\t\n\t function cleanOld() {\n\t if (_previousEl) {\n\t _previousEl.remove();\n\t }\n\t\n\t if (_currentScope) {\n\t _currentScope.$destroy();\n\t }\n\t }\n\t\n\t if (currentEl) {\n\t renderer.leave(currentEl, function() {\n\t cleanOld();\n\t previousEl = null;\n\t });\n\t\n\t previousEl = currentEl;\n\t } else {\n\t cleanOld();\n\t previousEl = null;\n\t }\n\t\n\t currentEl = null;\n\t currentScope = null;\n\t }\n\t\n\t function updateView(firstTime) {\n\t var newScope,\n\t name = getUiViewName(scope, attrs, $element, $interpolate),\n\t previousLocals = name && $state.$current && $state.$current.locals[name];\n\t\n\t if (!firstTime && previousLocals === latestLocals || scope._willBeDestroyed) return; // nothing to do\n\t newScope = scope.$new();\n\t latestLocals = $state.$current.locals[name];\n\t\n\t /**\n\t * @ngdoc event\n\t * @name ui.router.state.directive:ui-view#$viewContentLoading\n\t * @eventOf ui.router.state.directive:ui-view\n\t * @eventType emits on ui-view directive scope\n\t * @description\n\t *\n\t * Fired once the view **begins loading**, *before* the DOM is rendered.\n\t *\n\t * @param {Object} event Event object.\n\t * @param {string} viewName Name of the view.\n\t */\n\t newScope.$emit('$viewContentLoading', name);\n\t\n\t var clone = $transclude(newScope, function(clone) {\n\t renderer.enter(clone, $element, function onUiViewEnter() {\n\t if(currentScope) {\n\t currentScope.$emit('$viewContentAnimationEnded');\n\t }\n\t\n\t if (angular.isDefined(autoScrollExp) && !autoScrollExp || scope.$eval(autoScrollExp)) {\n\t $uiViewScroll(clone);\n\t }\n\t });\n\t cleanupLastView();\n\t });\n\t\n\t currentEl = clone;\n\t currentScope = newScope;\n\t /**\n\t * @ngdoc event\n\t * @name ui.router.state.directive:ui-view#$viewContentLoaded\n\t * @eventOf ui.router.state.directive:ui-view\n\t * @eventType emits on ui-view directive scope\n\t * @description\n\t * Fired once the view is **loaded**, *after* the DOM is rendered.\n\t *\n\t * @param {Object} event Event object.\n\t * @param {string} viewName Name of the view.\n\t */\n\t currentScope.$emit('$viewContentLoaded', name);\n\t currentScope.$eval(onloadExp);\n\t }\n\t };\n\t }\n\t };\n\t\n\t return directive;\n\t}\n\t\n\t$ViewDirectiveFill.$inject = ['$compile', '$controller', '$state', '$interpolate'];\n\tfunction $ViewDirectiveFill ( $compile, $controller, $state, $interpolate) {\n\t return {\n\t restrict: 'ECA',\n\t priority: -400,\n\t compile: function (tElement) {\n\t var initial = tElement.html();\n\t return function (scope, $element, attrs) {\n\t var current = $state.$current,\n\t name = getUiViewName(scope, attrs, $element, $interpolate),\n\t locals = current && current.locals[name];\n\t\n\t if (! locals) {\n\t return;\n\t }\n\t\n\t $element.data('$uiView', { name: name, state: locals.$$state });\n\t $element.html(locals.$template ? locals.$template : initial);\n\t\n\t var link = $compile($element.contents());\n\t\n\t if (locals.$$controller) {\n\t locals.$scope = scope;\n\t locals.$element = $element;\n\t var controller = $controller(locals.$$controller, locals);\n\t if (locals.$$controllerAs) {\n\t scope[locals.$$controllerAs] = controller;\n\t }\n\t $element.data('$ngControllerController', controller);\n\t $element.children().data('$ngControllerController', controller);\n\t }\n\t\n\t link(scope);\n\t };\n\t }\n\t };\n\t}\n\t\n\t/**\n\t * Shared ui-view code for both directives:\n\t * Given scope, element, and its attributes, return the view's name\n\t */\n\tfunction getUiViewName(scope, attrs, element, $interpolate) {\n\t var name = $interpolate(attrs.uiView || attrs.name || '')(scope);\n\t var inherited = element.inheritedData('$uiView');\n\t return name.indexOf('@') >= 0 ? name : (name + '@' + (inherited ? inherited.state.name : ''));\n\t}\n\t\n\tangular.module('ui.router.state').directive('uiView', $ViewDirective);\n\tangular.module('ui.router.state').directive('uiView', $ViewDirectiveFill);\n\t\n\tfunction parseStateRef(ref, current) {\n\t var preparsed = ref.match(/^\\s*({[^}]*})\\s*$/), parsed;\n\t if (preparsed) ref = current + '(' + preparsed[1] + ')';\n\t parsed = ref.replace(/\\n/g, \" \").match(/^([^(]+?)\\s*(\\((.*)\\))?$/);\n\t if (!parsed || parsed.length !== 4) throw new Error(\"Invalid state ref '\" + ref + \"'\");\n\t return { state: parsed[1], paramExpr: parsed[3] || null };\n\t}\n\t\n\tfunction stateContext(el) {\n\t var stateData = el.parent().inheritedData('$uiView');\n\t\n\t if (stateData && stateData.state && stateData.state.name) {\n\t return stateData.state;\n\t }\n\t}\n\t\n\tfunction getTypeInfo(el) {\n\t // SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute.\n\t var isSvg = Object.prototype.toString.call(el.prop('href')) === '[object SVGAnimatedString]';\n\t var isForm = el[0].nodeName === \"FORM\";\n\t\n\t return {\n\t attr: isForm ? \"action\" : (isSvg ? 'xlink:href' : 'href'),\n\t isAnchor: el.prop(\"tagName\").toUpperCase() === \"A\",\n\t clickable: !isForm\n\t };\n\t}\n\t\n\tfunction clickHook(el, $state, $timeout, type, current) {\n\t return function(e) {\n\t var button = e.which || e.button, target = current();\n\t\n\t if (!(button > 1 || e.ctrlKey || e.metaKey || e.shiftKey || el.attr('target'))) {\n\t // HACK: This is to allow ng-clicks to be processed before the transition is initiated:\n\t var transition = $timeout(function() {\n\t $state.go(target.state, target.params, target.options);\n\t });\n\t e.preventDefault();\n\t\n\t // if the state has no URL, ignore one preventDefault from the directive.\n\t var ignorePreventDefaultCount = type.isAnchor && !target.href ? 1: 0;\n\t\n\t e.preventDefault = function() {\n\t if (ignorePreventDefaultCount-- <= 0) $timeout.cancel(transition);\n\t };\n\t }\n\t };\n\t}\n\t\n\tfunction defaultOpts(el, $state) {\n\t return { relative: stateContext(el) || $state.$current, inherit: true };\n\t}\n\t\n\t/**\n\t * @ngdoc directive\n\t * @name ui.router.state.directive:ui-sref\n\t *\n\t * @requires ui.router.state.$state\n\t * @requires $timeout\n\t *\n\t * @restrict A\n\t *\n\t * @description\n\t * A directive that binds a link (`` tag) to a state. If the state has an associated\n\t * URL, the directive will automatically generate & update the `href` attribute via\n\t * the {@link ui.router.state.$state#methods_href $state.href()} method. Clicking\n\t * the link will trigger a state transition with optional parameters.\n\t *\n\t * Also middle-clicking, right-clicking, and ctrl-clicking on the link will be\n\t * handled natively by the browser.\n\t *\n\t * You can also use relative state paths within ui-sref, just like the relative\n\t * paths passed to `$state.go()`. You just need to be aware that the path is relative\n\t * to the state that the link lives in, in other words the state that loaded the\n\t * template containing the link.\n\t *\n\t * You can specify options to pass to {@link ui.router.state.$state#go $state.go()}\n\t * using the `ui-sref-opts` attribute. Options are restricted to `location`, `inherit`,\n\t * and `reload`.\n\t *\n\t * @example\n\t * Here's an example of how you'd use ui-sref and how it would compile. If you have the\n\t * following template:\n\t *
\n\t * Home | About | Next page\n\t *\n\t * \n\t * 
\n\t *\n\t * Then the compiled html would be (assuming Html5Mode is off and current state is contacts):\n\t *
\n\t * Home | About | Next page\n\t *\n\t * 
    \n\t *
  • \n\t * Joe\n\t *
  • \n\t *
  • \n\t * Alice\n\t *
  • \n\t *
  • \n\t * Bob\n\t *
  • \n\t *
\n\t *\n\t * Home\n\t *
\n\t *\n\t * @param {string} ui-sref 'stateName' can be any valid absolute or relative state\n\t * @param {Object} ui-sref-opts options to pass to {@link ui.router.state.$state#go $state.go()}\n\t */\n\t$StateRefDirective.$inject = ['$state', '$timeout'];\n\tfunction $StateRefDirective($state, $timeout) {\n\t return {\n\t restrict: 'A',\n\t require: ['?^uiSrefActive', '?^uiSrefActiveEq'],\n\t link: function(scope, element, attrs, uiSrefActive) {\n\t var ref = parseStateRef(attrs.uiSref, $state.current.name);\n\t var def = { state: ref.state, href: null, params: null };\n\t var type = getTypeInfo(element);\n\t var active = uiSrefActive[1] || uiSrefActive[0];\n\t\n\t def.options = extend(defaultOpts(element, $state), attrs.uiSrefOpts ? scope.$eval(attrs.uiSrefOpts) : {});\n\t\n\t var update = function(val) {\n\t if (val) def.params = angular.copy(val);\n\t def.href = $state.href(ref.state, def.params, def.options);\n\t\n\t if (active) active.$$addStateInfo(ref.state, def.params);\n\t if (def.href !== null) attrs.$set(type.attr, def.href);\n\t };\n\t\n\t if (ref.paramExpr) {\n\t scope.$watch(ref.paramExpr, function(val) { if (val !== def.params) update(val); }, true);\n\t def.params = angular.copy(scope.$eval(ref.paramExpr));\n\t }\n\t update();\n\t\n\t if (!type.clickable) return;\n\t element.bind(\"click\", clickHook(element, $state, $timeout, type, function() { return def; }));\n\t }\n\t };\n\t}\n\t\n\t/**\n\t * @ngdoc directive\n\t * @name ui.router.state.directive:ui-state\n\t *\n\t * @requires ui.router.state.uiSref\n\t *\n\t * @restrict A\n\t *\n\t * @description\n\t * Much like ui-sref, but will accept named $scope properties to evaluate for a state definition,\n\t * params and override options.\n\t *\n\t * @param {string} ui-state 'stateName' can be any valid absolute or relative state\n\t * @param {Object} ui-state-params params to pass to {@link ui.router.state.$state#href $state.href()}\n\t * @param {Object} ui-state-opts options to pass to {@link ui.router.state.$state#go $state.go()}\n\t */\n\t$StateRefDynamicDirective.$inject = ['$state', '$timeout'];\n\tfunction $StateRefDynamicDirective($state, $timeout) {\n\t return {\n\t restrict: 'A',\n\t require: ['?^uiSrefActive', '?^uiSrefActiveEq'],\n\t link: function(scope, element, attrs, uiSrefActive) {\n\t var type = getTypeInfo(element);\n\t var active = uiSrefActive[1] || uiSrefActive[0];\n\t var group = [attrs.uiState, attrs.uiStateParams || null, attrs.uiStateOpts || null];\n\t var watch = '[' + group.map(function(val) { return val || 'null'; }).join(', ') + ']';\n\t var def = { state: null, params: null, options: null, href: null };\n\t\n\t function runStateRefLink (group) {\n\t def.state = group[0]; def.params = group[1]; def.options = group[2];\n\t def.href = $state.href(def.state, def.params, def.options);\n\t\n\t if (active) active.$$addStateInfo(def.state, def.params);\n\t if (def.href) attrs.$set(type.attr, def.href);\n\t }\n\t\n\t scope.$watch(watch, runStateRefLink, true);\n\t runStateRefLink(scope.$eval(watch));\n\t\n\t if (!type.clickable) return;\n\t element.bind(\"click\", clickHook(element, $state, $timeout, type, function() { return def; }));\n\t }\n\t };\n\t}\n\t\n\t\n\t/**\n\t * @ngdoc directive\n\t * @name ui.router.state.directive:ui-sref-active\n\t *\n\t * @requires ui.router.state.$state\n\t * @requires ui.router.state.$stateParams\n\t * @requires $interpolate\n\t *\n\t * @restrict A\n\t *\n\t * @description\n\t * A directive working alongside ui-sref to add classes to an element when the\n\t * related ui-sref directive's state is active, and removing them when it is inactive.\n\t * The primary use-case is to simplify the special appearance of navigation menus\n\t * relying on `ui-sref`, by having the \"active\" state's menu button appear different,\n\t * distinguishing it from the inactive menu items.\n\t *\n\t * ui-sref-active can live on the same element as ui-sref or on a parent element. The first\n\t * ui-sref-active found at the same level or above the ui-sref will be used.\n\t *\n\t * Will activate when the ui-sref's target state or any child state is active. If you\n\t * need to activate only when the ui-sref target state is active and *not* any of\n\t * it's children, then you will use\n\t * {@link ui.router.state.directive:ui-sref-active-eq ui-sref-active-eq}\n\t *\n\t * @example\n\t * Given the following template:\n\t *
\n\t * \n\t * 
\n\t *\n\t *\n\t * When the app state is \"app.user\" (or any children states), and contains the state parameter \"user\" with value \"bilbobaggins\",\n\t * the resulting HTML will appear as (note the 'active' class):\n\t *
\n\t * \n\t * 
\n\t *\n\t * The class name is interpolated **once** during the directives link time (any further changes to the\n\t * interpolated value are ignored).\n\t *\n\t * Multiple classes may be specified in a space-separated format:\n\t *
\n\t * 
    \n\t *
  • \n\t * link\n\t *
  • \n\t *
\n\t *
\n\t *\n\t * It is also possible to pass ui-sref-active an expression that evaluates\n\t * to an object hash, whose keys represent active class names and whose\n\t * values represent the respective state names/globs.\n\t * ui-sref-active will match if the current active state **includes** any of\n\t * the specified state names/globs, even the abstract ones.\n\t *\n\t * @Example\n\t * Given the following template, with \"admin\" being an abstract state:\n\t *
\n\t * 
\n\t * Roles\n\t *
\n\t *
\n\t *\n\t * When the current state is \"admin.roles\" the \"active\" class will be applied\n\t * to both the
and elements. It is important to note that the state\n\t * names/globs passed to ui-sref-active shadow the state provided by ui-sref.\n\t */\n\t\n\t/**\n\t * @ngdoc directive\n\t * @name ui.router.state.directive:ui-sref-active-eq\n\t *\n\t * @requires ui.router.state.$state\n\t * @requires ui.router.state.$stateParams\n\t * @requires $interpolate\n\t *\n\t * @restrict A\n\t *\n\t * @description\n\t * The same as {@link ui.router.state.directive:ui-sref-active ui-sref-active} but will only activate\n\t * when the exact target state used in the `ui-sref` is active; no child states.\n\t *\n\t */\n\t$StateRefActiveDirective.$inject = ['$state', '$stateParams', '$interpolate'];\n\tfunction $StateRefActiveDirective($state, $stateParams, $interpolate) {\n\t return {\n\t restrict: \"A\",\n\t controller: ['$scope', '$element', '$attrs', '$timeout', function ($scope, $element, $attrs, $timeout) {\n\t var states = [], activeClasses = {}, activeEqClass, uiSrefActive;\n\t\n\t // There probably isn't much point in $observing this\n\t // uiSrefActive and uiSrefActiveEq share the same directive object with some\n\t // slight difference in logic routing\n\t activeEqClass = $interpolate($attrs.uiSrefActiveEq || '', false)($scope);\n\t\n\t try {\n\t uiSrefActive = $scope.$eval($attrs.uiSrefActive);\n\t } catch (e) {\n\t // Do nothing. uiSrefActive is not a valid expression.\n\t // Fall back to using $interpolate below\n\t }\n\t uiSrefActive = uiSrefActive || $interpolate($attrs.uiSrefActive || '', false)($scope);\n\t if (isObject(uiSrefActive)) {\n\t forEach(uiSrefActive, function(stateOrName, activeClass) {\n\t if (isString(stateOrName)) {\n\t var ref = parseStateRef(stateOrName, $state.current.name);\n\t addState(ref.state, $scope.$eval(ref.paramExpr), activeClass);\n\t }\n\t });\n\t }\n\t\n\t // Allow uiSref to communicate with uiSrefActive[Equals]\n\t this.$$addStateInfo = function (newState, newParams) {\n\t // we already got an explicit state provided by ui-sref-active, so we\n\t // shadow the one that comes from ui-sref\n\t if (isObject(uiSrefActive) && states.length > 0) {\n\t return;\n\t }\n\t addState(newState, newParams, uiSrefActive);\n\t update();\n\t };\n\t\n\t $scope.$on('$stateChangeSuccess', update);\n\t\n\t function addState(stateName, stateParams, activeClass) {\n\t var state = $state.get(stateName, stateContext($element));\n\t var stateHash = createStateHash(stateName, stateParams);\n\t\n\t states.push({\n\t state: state || { name: stateName },\n\t params: stateParams,\n\t hash: stateHash\n\t });\n\t\n\t activeClasses[stateHash] = activeClass;\n\t }\n\t\n\t /**\n\t * @param {string} state\n\t * @param {Object|string} [params]\n\t * @return {string}\n\t */\n\t function createStateHash(state, params) {\n\t if (!isString(state)) {\n\t throw new Error('state should be a string');\n\t }\n\t if (isObject(params)) {\n\t return state + toJson(params);\n\t }\n\t params = $scope.$eval(params);\n\t if (isObject(params)) {\n\t return state + toJson(params);\n\t }\n\t return state;\n\t }\n\t\n\t // Update route state\n\t function update() {\n\t for (var i = 0; i < states.length; i++) {\n\t if (anyMatch(states[i].state, states[i].params)) {\n\t addClass($element, activeClasses[states[i].hash]);\n\t } else {\n\t removeClass($element, activeClasses[states[i].hash]);\n\t }\n\t\n\t if (exactMatch(states[i].state, states[i].params)) {\n\t addClass($element, activeEqClass);\n\t } else {\n\t removeClass($element, activeEqClass);\n\t }\n\t }\n\t }\n\t\n\t function addClass(el, className) { $timeout(function () { el.addClass(className); }); }\n\t function removeClass(el, className) { el.removeClass(className); }\n\t function anyMatch(state, params) { return $state.includes(state.name, params); }\n\t function exactMatch(state, params) { return $state.is(state.name, params); }\n\t\n\t update();\n\t }]\n\t };\n\t}\n\t\n\tangular.module('ui.router.state')\n\t .directive('uiSref', $StateRefDirective)\n\t .directive('uiSrefActive', $StateRefActiveDirective)\n\t .directive('uiSrefActiveEq', $StateRefActiveDirective)\n\t .directive('uiState', $StateRefDynamicDirective);\n\t\n\t/**\n\t * @ngdoc filter\n\t * @name ui.router.state.filter:isState\n\t *\n\t * @requires ui.router.state.$state\n\t *\n\t * @description\n\t * Translates to {@link ui.router.state.$state#methods_is $state.is(\"stateName\")}.\n\t */\n\t$IsStateFilter.$inject = ['$state'];\n\tfunction $IsStateFilter($state) {\n\t var isFilter = function (state, params) {\n\t return $state.is(state, params);\n\t };\n\t isFilter.$stateful = true;\n\t return isFilter;\n\t}\n\t\n\t/**\n\t * @ngdoc filter\n\t * @name ui.router.state.filter:includedByState\n\t *\n\t * @requires ui.router.state.$state\n\t *\n\t * @description\n\t * Translates to {@link ui.router.state.$state#methods_includes $state.includes('fullOrPartialStateName')}.\n\t */\n\t$IncludedByStateFilter.$inject = ['$state'];\n\tfunction $IncludedByStateFilter($state) {\n\t var includesFilter = function (state, params, options) {\n\t return $state.includes(state, params, options);\n\t };\n\t includesFilter.$stateful = true;\n\t return includesFilter;\n\t}\n\t\n\tangular.module('ui.router.state')\n\t .filter('isState', $IsStateFilter)\n\t .filter('includedByState', $IncludedByStateFilter);\n\t})(window, window.angular);\n\n/***/ },\n/* 23 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar _MenuMenu = __webpack_require__(17);\n\t\n\tvar _MenuMenu2 = _interopRequireDefault(_MenuMenu);\n\t\n\tvar _Collection = __webpack_require__(12);\n\t\n\tvar _Collection2 = _interopRequireDefault(_Collection);\n\t\n\tvar _Dashboard = __webpack_require__(13);\n\t\n\tvar _Dashboard2 = _interopRequireDefault(_Dashboard);\n\t\n\tvar _UtilsOrderElement = __webpack_require__(20);\n\t\n\tvar _UtilsOrderElement2 = _interopRequireDefault(_UtilsOrderElement);\n\t\n\tvar Application = (function () {\n\t function Application() {\n\t var title = arguments.length <= 0 || arguments[0] === undefined ? 'ng-admin' : arguments[0];\n\t var debug = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1];\n\t\n\t _classCallCheck(this, Application);\n\t\n\t this._baseApiUrl = '';\n\t this._customTemplate = function (viewName) {};\n\t this._title = title;\n\t this._menu = null;\n\t this._dashboard = null;\n\t this._layout = false;\n\t this._header = false;\n\t this._entities = [];\n\t this._errorMessage = this.defaultErrorMessage;\n\t this._debug = debug;\n\t }\n\t\n\t _createClass(Application, [{\n\t key: 'defaultErrorMessage',\n\t value: function defaultErrorMessage(response) {\n\t var body = response.data;\n\t\n\t if (typeof body === 'object') {\n\t body = JSON.stringify(body);\n\t }\n\t\n\t return 'Oops, an error occured : (code: ' + response.status + ') ' + body;\n\t }\n\t }, {\n\t key: 'getViewsOfType',\n\t value: function getViewsOfType(type) {\n\t return _UtilsOrderElement2['default'].order(this.entities.map(function (entity) {\n\t return entity.views[type];\n\t }).filter(function (view) {\n\t return view.enabled;\n\t }));\n\t }\n\t }, {\n\t key: 'getRouteFor',\n\t value: function getRouteFor(entity, viewUrl, viewType, identifierValue, identifierName) {\n\t var baseApiUrl = entity.baseApiUrl() || this.baseApiUrl(),\n\t url = viewUrl || entity.getUrl(viewType, identifierValue, identifierName);\n\t\n\t // If the view or the entity don't define the url, retrieve it from the baseURL of the entity or the app\n\t if (!url) {\n\t url = baseApiUrl + encodeURIComponent(entity.name());\n\t if (identifierValue != null) {\n\t url += '/' + encodeURIComponent(identifierValue);\n\t }\n\t } else if (!/^(?:[a-z]+:)?\\/\\//.test(url)) {\n\t // Add baseUrl for relative URL\n\t url = baseApiUrl + url;\n\t }\n\t\n\t return url;\n\t }\n\t }, {\n\t key: 'debug',\n\t value: function debug(_debug) {\n\t if (!arguments.length) return this._debug;\n\t this._debug = _debug;\n\t return this;\n\t }\n\t }, {\n\t key: 'layout',\n\t value: function layout(_layout) {\n\t if (!arguments.length) return this._layout;\n\t this._layout = _layout;\n\t return this;\n\t }\n\t }, {\n\t key: 'header',\n\t value: function header(_header) {\n\t if (!arguments.length) return this._header;\n\t this._header = _header;\n\t return this;\n\t }\n\t }, {\n\t key: 'title',\n\t value: function title(_title) {\n\t if (!arguments.length) return this._title;\n\t this._title = _title;\n\t return this;\n\t }\n\t\n\t /**\n\t * Getter/Setter for the main application menu\n\t *\n\t * If the getter is called first, it will return a menu based on entities.\n\t *\n\t * application.addEntity(new Entity('posts'));\n\t * application.addEntity(new Entity('comments'));\n\t * application.menu(); // Menu { children: [ Menu { title: \"Posts\" }, Menu { title: \"Comments\" } ]}\n\t *\n\t * If the setter is called first, all subsequent calls to the getter will return the set menu.\n\t *\n\t * application.addEntity(new Entity('posts'));\n\t * application.addEntity(new Entity('comments'));\n\t * application.menu(new Menu().addChild(new Menu().title('Foo')));\n\t * application.menu(); // Menu { children: [ Menu { title: \"Foo\" } ]}\n\t *\n\t * @see Menu\n\t */\n\t }, {\n\t key: 'menu',\n\t value: function menu(_menu) {\n\t if (!arguments.length) {\n\t if (!this._menu) {\n\t this._menu = this.buildMenuFromEntities();\n\t }\n\t return this._menu;\n\t }\n\t\n\t this._menu = _menu;\n\t return this;\n\t }\n\t }, {\n\t key: 'buildMenuFromEntities',\n\t value: function buildMenuFromEntities() {\n\t return new _MenuMenu2['default']().children(this.entities.filter(function (entity) {\n\t return entity.menuView().enabled;\n\t }).sort(function (e1, e2) {\n\t return e1.menuView().order() - e2.menuView().order();\n\t }).map(function (entity) {\n\t return new _MenuMenu2['default']().populateFromEntity(entity);\n\t }));\n\t }\n\t }, {\n\t key: 'dashboard',\n\t value: function dashboard(_dashboard) {\n\t if (!arguments.length) {\n\t if (!this._dashboard) {\n\t this._dashboard = this.buildDashboardFromEntities();\n\t }\n\t return this._dashboard;\n\t }\n\t this._dashboard = _dashboard;\n\t return this;\n\t }\n\t }, {\n\t key: 'buildDashboardFromEntities',\n\t value: function buildDashboardFromEntities() {\n\t var dashboard = new _Dashboard2['default']();\n\t this.entities.filter(function (entity) {\n\t return entity.dashboardView().enabled;\n\t }).map(function (entity) {\n\t dashboard.addCollection(entity.dashboardView()); // yep, a collection is a ListView, and so is a DashboardView - forgive this duck typing for BC sake\n\t });\n\t if (!dashboard.hasCollections()) {\n\t // still no collection from dashboardViews, let's use listViews instead\n\t this.entities.filter(function (entity) {\n\t return entity.listView().enabled;\n\t }).map(function (entity, index) {\n\t var collection = new _Collection2['default']();\n\t var listView = entity.listView();\n\t collection.setEntity(entity);\n\t collection.perPage(listView.perPage());\n\t collection.sortField(listView.sortField());\n\t collection.sortDir(listView.sortDir());\n\t collection.order(index);\n\t // use only the first 3 cols\n\t collection.fields(listView.fields().filter(function (el, index) {\n\t return index < 3;\n\t }));\n\t dashboard.addCollection(collection);\n\t });\n\t }\n\t return dashboard;\n\t }\n\t }, {\n\t key: 'customTemplate',\n\t value: function customTemplate(_customTemplate) {\n\t if (!arguments.length) return this._customTemplate;\n\t this._customTemplate = _customTemplate;\n\t return this;\n\t }\n\t }, {\n\t key: 'baseApiUrl',\n\t value: function baseApiUrl(url) {\n\t if (!arguments.length) return this._baseApiUrl;\n\t this._baseApiUrl = url;\n\t return this;\n\t }\n\t }, {\n\t key: 'addEntity',\n\t value: function addEntity(entity) {\n\t if (!entity) {\n\t throw new Error(\"No entity given\");\n\t }\n\t\n\t this._entities.push(entity);\n\t\n\t return this;\n\t }\n\t }, {\n\t key: 'getEntity',\n\t value: function getEntity(entityName) {\n\t var foundEntity = this._entities.filter(function (e) {\n\t return e.name() === entityName;\n\t })[0];\n\t if (!foundEntity) {\n\t throw new Error('Unable to find entity \"' + entityName + '\"');\n\t }\n\t\n\t return foundEntity;\n\t }\n\t }, {\n\t key: 'hasEntity',\n\t value: function hasEntity(fieldName) {\n\t return !!this._entities.filter(function (f) {\n\t return f.name() === fieldName;\n\t }).length;\n\t }\n\t }, {\n\t key: 'getViewByEntityAndType',\n\t value: function getViewByEntityAndType(entityName, type) {\n\t return this._entities.filter(function (e) {\n\t return e.name() === entityName;\n\t })[0].views[type];\n\t }\n\t }, {\n\t key: 'getErrorMessage',\n\t value: function getErrorMessage(response) {\n\t if (typeof this._errorMessage === 'function') {\n\t return this._errorMessage(response);\n\t }\n\t\n\t return this._errorMessage;\n\t }\n\t }, {\n\t key: 'errorMessage',\n\t value: function errorMessage(_errorMessage) {\n\t if (!arguments.length) return this._errorMessage;\n\t this._errorMessage = _errorMessage;\n\t return this;\n\t }\n\t }, {\n\t key: 'getErrorMessageFor',\n\t value: function getErrorMessageFor(view, response) {\n\t return view.getErrorMessage(response) || view.getEntity().getErrorMessage(response) || this.getErrorMessage(response);\n\t }\n\t }, {\n\t key: 'getEntityNames',\n\t value: function getEntityNames() {\n\t return this.entities.map(function (f) {\n\t return f.name();\n\t });\n\t }\n\t }, {\n\t key: 'entities',\n\t get: function get() {\n\t return this._entities;\n\t }\n\t }]);\n\t\n\t return Application;\n\t})();\n\t\n\texports['default'] = Application;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 24 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar _Application = __webpack_require__(23);\n\t\n\tvar _Application2 = _interopRequireDefault(_Application);\n\t\n\tvar _EntityEntity = __webpack_require__(7);\n\t\n\tvar _EntityEntity2 = _interopRequireDefault(_EntityEntity);\n\t\n\tvar _DataStoreDataStore = __webpack_require__(14);\n\t\n\tvar _DataStoreDataStore2 = _interopRequireDefault(_DataStoreDataStore);\n\t\n\tvar _UtilsPromisesResolver = __webpack_require__(41);\n\t\n\tvar _UtilsPromisesResolver2 = _interopRequireDefault(_UtilsPromisesResolver);\n\t\n\tvar _QueriesReadQueries = __webpack_require__(39);\n\t\n\tvar _QueriesReadQueries2 = _interopRequireDefault(_QueriesReadQueries);\n\t\n\tvar _QueriesWriteQueries = __webpack_require__(40);\n\t\n\tvar _QueriesWriteQueries2 = _interopRequireDefault(_QueriesWriteQueries);\n\t\n\tvar _FieldField = __webpack_require__(1);\n\t\n\tvar _FieldField2 = _interopRequireDefault(_FieldField);\n\t\n\tvar _FieldBooleanField = __webpack_require__(25);\n\t\n\tvar _FieldBooleanField2 = _interopRequireDefault(_FieldBooleanField);\n\t\n\tvar _FieldChoiceField = __webpack_require__(8);\n\t\n\tvar _FieldChoiceField2 = _interopRequireDefault(_FieldChoiceField);\n\t\n\tvar _FieldChoicesField = __webpack_require__(26);\n\t\n\tvar _FieldChoicesField2 = _interopRequireDefault(_FieldChoicesField);\n\t\n\tvar _FieldDateField = __webpack_require__(15);\n\t\n\tvar _FieldDateField2 = _interopRequireDefault(_FieldDateField);\n\t\n\tvar _FieldDateTimeField = __webpack_require__(27);\n\t\n\tvar _FieldDateTimeField2 = _interopRequireDefault(_FieldDateTimeField);\n\t\n\tvar _FieldEmailField = __webpack_require__(28);\n\t\n\tvar _FieldEmailField2 = _interopRequireDefault(_FieldEmailField);\n\t\n\tvar _FieldEmbeddedListField = __webpack_require__(29);\n\t\n\tvar _FieldEmbeddedListField2 = _interopRequireDefault(_FieldEmbeddedListField);\n\t\n\tvar _FieldFloatFieldJs = __webpack_require__(31);\n\t\n\tvar _FieldFloatFieldJs2 = _interopRequireDefault(_FieldFloatFieldJs);\n\t\n\tvar _FieldFileField = __webpack_require__(30);\n\t\n\tvar _FieldFileField2 = _interopRequireDefault(_FieldFileField);\n\t\n\tvar _FieldJsonField = __webpack_require__(32);\n\t\n\tvar _FieldJsonField2 = _interopRequireDefault(_FieldJsonField);\n\t\n\tvar _FieldNumberField = __webpack_require__(16);\n\t\n\tvar _FieldNumberField2 = _interopRequireDefault(_FieldNumberField);\n\t\n\tvar _FieldPasswordField = __webpack_require__(33);\n\t\n\tvar _FieldPasswordField2 = _interopRequireDefault(_FieldPasswordField);\n\t\n\tvar _FieldReferenceField = __webpack_require__(9);\n\t\n\tvar _FieldReferenceField2 = _interopRequireDefault(_FieldReferenceField);\n\t\n\tvar _FieldReferencedListField = __webpack_require__(35);\n\t\n\tvar _FieldReferencedListField2 = _interopRequireDefault(_FieldReferencedListField);\n\t\n\tvar _FieldReferenceManyField = __webpack_require__(34);\n\t\n\tvar _FieldReferenceManyField2 = _interopRequireDefault(_FieldReferenceManyField);\n\t\n\tvar _FieldTemplateField = __webpack_require__(36);\n\t\n\tvar _FieldTemplateField2 = _interopRequireDefault(_FieldTemplateField);\n\t\n\tvar _FieldTextField = __webpack_require__(37);\n\t\n\tvar _FieldTextField2 = _interopRequireDefault(_FieldTextField);\n\t\n\tvar _FieldWysiwygField = __webpack_require__(38);\n\t\n\tvar _FieldWysiwygField2 = _interopRequireDefault(_FieldWysiwygField);\n\t\n\tvar _MenuMenu = __webpack_require__(17);\n\t\n\tvar _MenuMenu2 = _interopRequireDefault(_MenuMenu);\n\t\n\tvar _Collection = __webpack_require__(12);\n\t\n\tvar _Collection2 = _interopRequireDefault(_Collection);\n\t\n\tvar _Dashboard = __webpack_require__(13);\n\t\n\tvar _Dashboard2 = _interopRequireDefault(_Dashboard);\n\t\n\tvar _Entry = __webpack_require__(2);\n\t\n\tvar _Entry2 = _interopRequireDefault(_Entry);\n\t\n\tvar Factory = (function () {\n\t function Factory() {\n\t _classCallCheck(this, Factory);\n\t\n\t this._fieldTypes = [];\n\t this._init();\n\t }\n\t\n\t _createClass(Factory, [{\n\t key: \"application\",\n\t value: function application(name, debug) {\n\t return new _Application2[\"default\"](name, debug);\n\t }\n\t }, {\n\t key: \"entity\",\n\t value: function entity(name) {\n\t return new _EntityEntity2[\"default\"](name);\n\t }\n\t }, {\n\t key: \"field\",\n\t value: function field(name, type) {\n\t type = type || 'string';\n\t\n\t if (!(type in this._fieldTypes)) {\n\t throw new Error(\"Unknown field type \\\"\" + type + \"\\\".\");\n\t }\n\t\n\t return new this._fieldTypes[type](name);\n\t }\n\t }, {\n\t key: \"registerFieldType\",\n\t value: function registerFieldType(name, constructor) {\n\t this._fieldTypes[name] = constructor;\n\t }\n\t }, {\n\t key: \"getFieldConstructor\",\n\t value: function getFieldConstructor(name) {\n\t return this._fieldTypes[name];\n\t }\n\t }, {\n\t key: \"menu\",\n\t value: function menu(entity) {\n\t var menu = new _MenuMenu2[\"default\"]();\n\t if (entity) {\n\t menu.populateFromEntity(entity);\n\t }\n\t return menu;\n\t }\n\t }, {\n\t key: \"dashboard\",\n\t value: function dashboard() {\n\t return new _Dashboard2[\"default\"]();\n\t }\n\t }, {\n\t key: \"collection\",\n\t value: function collection(entity) {\n\t var collection = new _Collection2[\"default\"]();\n\t if (entity) {\n\t collection.setEntity(entity);\n\t }\n\t return collection;\n\t }\n\t }, {\n\t key: \"getEntryConstructor\",\n\t value: function getEntryConstructor() {\n\t return _Entry2[\"default\"];\n\t }\n\t }, {\n\t key: \"getDataStore\",\n\t value: function getDataStore() {\n\t return new _DataStoreDataStore2[\"default\"]();\n\t }\n\t }, {\n\t key: \"getReadQueries\",\n\t value: function getReadQueries(RestWrapper, PromisesResolver, Application) {\n\t return new _QueriesReadQueries2[\"default\"](RestWrapper, PromisesResolver, Application);\n\t }\n\t }, {\n\t key: \"getWriteQueries\",\n\t value: function getWriteQueries(RestWrapper, PromisesResolver, Application) {\n\t return new _QueriesWriteQueries2[\"default\"](RestWrapper, PromisesResolver, Application);\n\t }\n\t }, {\n\t key: \"getPromisesResolver\",\n\t value: function getPromisesResolver() {\n\t return _UtilsPromisesResolver2[\"default\"];\n\t }\n\t }, {\n\t key: \"_init\",\n\t value: function _init() {\n\t this.registerFieldType('boolean', _FieldBooleanField2[\"default\"]);\n\t this.registerFieldType('choice', _FieldChoiceField2[\"default\"]);\n\t this.registerFieldType('choices', _FieldChoicesField2[\"default\"]);\n\t this.registerFieldType('date', _FieldDateField2[\"default\"]);\n\t this.registerFieldType('datetime', _FieldDateTimeField2[\"default\"]);\n\t this.registerFieldType('email', _FieldEmailField2[\"default\"]);\n\t this.registerFieldType('embedded_list', _FieldEmbeddedListField2[\"default\"]);\n\t this.registerFieldType('float', _FieldFloatFieldJs2[\"default\"]);\n\t this.registerFieldType('string', _FieldField2[\"default\"]);\n\t this.registerFieldType('file', _FieldFileField2[\"default\"]);\n\t this.registerFieldType('json', _FieldJsonField2[\"default\"]);\n\t this.registerFieldType('number', _FieldNumberField2[\"default\"]);\n\t this.registerFieldType('password', _FieldPasswordField2[\"default\"]);\n\t this.registerFieldType('reference', _FieldReferenceField2[\"default\"]);\n\t this.registerFieldType('reference_many', _FieldReferenceManyField2[\"default\"]);\n\t this.registerFieldType('referenced_list', _FieldReferencedListField2[\"default\"]);\n\t this.registerFieldType('template', _FieldTemplateField2[\"default\"]);\n\t this.registerFieldType('text', _FieldTextField2[\"default\"]);\n\t this.registerFieldType('wysiwyg', _FieldWysiwygField2[\"default\"]);\n\t }\n\t }]);\n\t\n\t return Factory;\n\t})();\n\t\n\texports[\"default\"] = Factory;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 25 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _ChoiceField2 = __webpack_require__(8);\n\t\n\tvar _ChoiceField3 = _interopRequireDefault(_ChoiceField2);\n\t\n\tvar BooleanField = (function (_ChoiceField) {\n\t _inherits(BooleanField, _ChoiceField);\n\t\n\t function BooleanField(name) {\n\t _classCallCheck(this, BooleanField);\n\t\n\t _get(Object.getPrototypeOf(BooleanField.prototype), \"constructor\", this).call(this, name);\n\t this._type = \"boolean\";\n\t this._choices = [{ value: null, label: 'undefined' }, { value: true, label: 'true' }, { value: false, label: 'false' }];\n\t this._filterChoices = [{ value: true, label: 'true' }, { value: false, label: 'false' }];\n\t }\n\t\n\t _createClass(BooleanField, [{\n\t key: \"filterChoices\",\n\t value: function filterChoices(_filterChoices) {\n\t if (!arguments.length) return this._filterChoices;\n\t this._filterChoices = _filterChoices;\n\t\n\t return this;\n\t }\n\t }]);\n\t\n\t return BooleanField;\n\t})(_ChoiceField3[\"default\"]);\n\t\n\texports[\"default\"] = BooleanField;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 26 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _ChoiceField2 = __webpack_require__(8);\n\t\n\tvar _ChoiceField3 = _interopRequireDefault(_ChoiceField2);\n\t\n\tvar ChoicesField = (function (_ChoiceField) {\n\t _inherits(ChoicesField, _ChoiceField);\n\t\n\t function ChoicesField(name) {\n\t _classCallCheck(this, ChoicesField);\n\t\n\t _get(Object.getPrototypeOf(ChoicesField.prototype), \"constructor\", this).call(this, name);\n\t this._type = \"choices\";\n\t }\n\t\n\t return ChoicesField;\n\t})(_ChoiceField3[\"default\"]);\n\t\n\texports[\"default\"] = ChoicesField;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 27 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _DateField2 = __webpack_require__(15);\n\t\n\tvar _DateField3 = _interopRequireDefault(_DateField2);\n\t\n\tvar DateTimeField = (function (_DateField) {\n\t _inherits(DateTimeField, _DateField);\n\t\n\t function DateTimeField(name) {\n\t _classCallCheck(this, DateTimeField);\n\t\n\t _get(Object.getPrototypeOf(DateTimeField.prototype), \"constructor\", this).call(this, name);\n\t\n\t this._format = null;\n\t this._parse = function (date) {\n\t return date;\n\t };\n\t\n\t this._type = 'datetime';\n\t }\n\t\n\t return DateTimeField;\n\t})(_DateField3[\"default\"]);\n\t\n\texports[\"default\"] = DateTimeField;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 28 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _Field2 = __webpack_require__(1);\n\t\n\tvar _Field3 = _interopRequireDefault(_Field2);\n\t\n\tvar EmailField = (function (_Field) {\n\t _inherits(EmailField, _Field);\n\t\n\t function EmailField(name) {\n\t _classCallCheck(this, EmailField);\n\t\n\t _get(Object.getPrototypeOf(EmailField.prototype), \"constructor\", this).call(this, name);\n\t this._type = \"email\";\n\t }\n\t\n\t return EmailField;\n\t})(_Field3[\"default\"]);\n\t\n\texports[\"default\"] = EmailField;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 29 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _Field2 = __webpack_require__(1);\n\t\n\tvar _Field3 = _interopRequireDefault(_Field2);\n\t\n\tvar _EntityEntity = __webpack_require__(7);\n\t\n\tvar _EntityEntity2 = _interopRequireDefault(_EntityEntity);\n\t\n\t/**\n\t * Map an embedded list in the entry\n\t *\n\t * @example\n\t *\n\t * {\n\t * id: 123,\n\t * title: \"hello, world\",\n\t * comments: [\n\t * { date: \"2015-09-30\", author: \"John Doe\", body: \"Lorem Ipsum\" },\n\t * { date: \"2015-10-02\", author: \"Jane Doe\", body: \"Sic dolor amet\" }\n\t * ]\n\t * }\n\t *\n\t * let commentsField = new EmbeddedListField('comments')\n\t * .targetFields([\n\t * new DateField('date'),\n\t * new StringField('author'),\n\t * new StringField('body')\n\t * ])\n\t */\n\t\n\tvar EmbeddedListField = (function (_Field) {\n\t _inherits(EmbeddedListField, _Field);\n\t\n\t function EmbeddedListField(name) {\n\t _classCallCheck(this, EmbeddedListField);\n\t\n\t _get(Object.getPrototypeOf(EmbeddedListField.prototype), \"constructor\", this).call(this, name);\n\t this._type = 'embedded_list';\n\t this._flattenable = false;\n\t this._targetEntity = new _EntityEntity2[\"default\"](); // link to an empty entity by default\n\t this._targetFields = [];\n\t this._sortField = null;\n\t this._sortDir = null;\n\t this._permanentFilters = null;\n\t this._listActions = [];\n\t }\n\t\n\t /**\n\t * Optionally set the target Entity\n\t *\n\t * Useful if the embedded entries can be edited in standalone\n\t */\n\t\n\t _createClass(EmbeddedListField, [{\n\t key: \"targetEntity\",\n\t value: function targetEntity(entity) {\n\t if (!arguments.length) {\n\t return this._targetEntity;\n\t }\n\t this._targetEntity = entity;\n\t\n\t return this;\n\t }\n\t\n\t /**\n\t * List the fields to map in the embedded entries\n\t *\n\t * @example\n\t *\n\t * embeddedListField.targetFields([\n\t * new DateField('date'),\n\t * new StringField('author'),\n\t * new StringField('body')\n\t * ])\n\t */\n\t }, {\n\t key: \"targetFields\",\n\t value: function targetFields(value) {\n\t if (!arguments.length) return this._targetFields;\n\t this._targetFields = value;\n\t\n\t return this;\n\t }\n\t\n\t /**\n\t * Name of the field used for sorting.\n\t *\n\t * @param string\n\t */\n\t }, {\n\t key: \"sortField\",\n\t value: function sortField() {\n\t if (arguments.length) {\n\t this._sortField = arguments[0];\n\t return this;\n\t }\n\t\n\t return this._sortField ? this._sortField : this.targetEntity().identifier().name();\n\t }\n\t\n\t /**\n\t * Direction used for sorting.\n\t *\n\t * @param String either 'ASC' or 'DESC'\n\t */\n\t }, {\n\t key: \"sortDir\",\n\t value: function sortDir() {\n\t if (arguments.length) {\n\t this._sortDir = arguments[0];\n\t return this;\n\t }\n\t\n\t return this._sortDir;\n\t }\n\t }, {\n\t key: \"listActions\",\n\t value: function listActions(actions) {\n\t if (!arguments.length) {\n\t return this._listActions;\n\t }\n\t\n\t this._listActions = actions;\n\t\n\t return this;\n\t }\n\t\n\t /**\n\t * Define permanent filters to be added to the REST API calls\n\t *\n\t * nga.field('post_id', 'reference').permanentFilters({\n\t * published: true\n\t * });\n\t * // related API call will be /posts/:id?published=true\n\t *\n\t * @param {Object} filters list of filters to apply to the call\n\t */\n\t }, {\n\t key: \"permanentFilters\",\n\t value: function permanentFilters(filters) {\n\t if (!arguments.length) {\n\t return this._permanentFilters;\n\t }\n\t\n\t this._permanentFilters = filters;\n\t\n\t return this;\n\t }\n\t }]);\n\t\n\t return EmbeddedListField;\n\t})(_Field3[\"default\"]);\n\t\n\texports[\"default\"] = EmbeddedListField;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 30 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _Field2 = __webpack_require__(1);\n\t\n\tvar _Field3 = _interopRequireDefault(_Field2);\n\t\n\tvar FileField = (function (_Field) {\n\t _inherits(FileField, _Field);\n\t\n\t function FileField(name) {\n\t _classCallCheck(this, FileField);\n\t\n\t _get(Object.getPrototypeOf(FileField.prototype), \"constructor\", this).call(this, name);\n\t this._type = \"file\";\n\t this._uploadInformation = {\n\t url: '/upload',\n\t accept: '*'\n\t };\n\t }\n\t\n\t _createClass(FileField, [{\n\t key: \"uploadInformation\",\n\t value: function uploadInformation(information) {\n\t if (!arguments.length) return this._uploadInformation;\n\t this._uploadInformation = information;\n\t return this;\n\t }\n\t }]);\n\t\n\t return FileField;\n\t})(_Field3[\"default\"]);\n\t\n\texports[\"default\"] = FileField;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 31 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _NumberField2 = __webpack_require__(16);\n\t\n\tvar _NumberField3 = _interopRequireDefault(_NumberField2);\n\t\n\tvar FloatField = (function (_NumberField) {\n\t _inherits(FloatField, _NumberField);\n\t\n\t function FloatField(name) {\n\t _classCallCheck(this, FloatField);\n\t\n\t _get(Object.getPrototypeOf(FloatField.prototype), 'constructor', this).call(this, name);\n\t this._type = 'float';\n\t this._format = '0.000';\n\t }\n\t\n\t return FloatField;\n\t})(_NumberField3['default']);\n\t\n\texports['default'] = FloatField;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 32 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _Field2 = __webpack_require__(1);\n\t\n\tvar _Field3 = _interopRequireDefault(_Field2);\n\t\n\tvar JsonField = (function (_Field) {\n\t _inherits(JsonField, _Field);\n\t\n\t function JsonField(name) {\n\t _classCallCheck(this, JsonField);\n\t\n\t _get(Object.getPrototypeOf(JsonField.prototype), \"constructor\", this).call(this, name);\n\t this._type = \"json\";\n\t this._flattenable = false;\n\t }\n\t\n\t return JsonField;\n\t})(_Field3[\"default\"]);\n\t\n\texports[\"default\"] = JsonField;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 33 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _Field2 = __webpack_require__(1);\n\t\n\tvar _Field3 = _interopRequireDefault(_Field2);\n\t\n\tvar PasswordField = (function (_Field) {\n\t _inherits(PasswordField, _Field);\n\t\n\t function PasswordField(name) {\n\t _classCallCheck(this, PasswordField);\n\t\n\t _get(Object.getPrototypeOf(PasswordField.prototype), \"constructor\", this).call(this, name);\n\t this._type = \"password\";\n\t }\n\t\n\t return PasswordField;\n\t})(_Field3[\"default\"]);\n\t\n\texports[\"default\"] = PasswordField;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 34 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _ReferenceField2 = __webpack_require__(9);\n\t\n\tvar _ReferenceField3 = _interopRequireDefault(_ReferenceField2);\n\t\n\tvar ReferenceManyField = (function (_ReferenceField) {\n\t _inherits(ReferenceManyField, _ReferenceField);\n\t\n\t function ReferenceManyField(name) {\n\t _classCallCheck(this, ReferenceManyField);\n\t\n\t _get(Object.getPrototypeOf(ReferenceManyField.prototype), \"constructor\", this).call(this, name);\n\t this._type = 'reference_many';\n\t }\n\t\n\t return ReferenceManyField;\n\t})(_ReferenceField3[\"default\"]);\n\t\n\texports[\"default\"] = ReferenceManyField;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 35 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _ReferenceField2 = __webpack_require__(9);\n\t\n\tvar _ReferenceField3 = _interopRequireDefault(_ReferenceField2);\n\t\n\tvar _UtilsReferenceExtractor = __webpack_require__(10);\n\t\n\tvar _UtilsReferenceExtractor2 = _interopRequireDefault(_UtilsReferenceExtractor);\n\t\n\tvar ReferencedListField = (function (_ReferenceField) {\n\t _inherits(ReferencedListField, _ReferenceField);\n\t\n\t function ReferencedListField(name) {\n\t _classCallCheck(this, ReferencedListField);\n\t\n\t _get(Object.getPrototypeOf(ReferencedListField.prototype), 'constructor', this).call(this, name);\n\t this._type = 'referenced_list';\n\t this._targetReferenceField = null;\n\t this._targetFields = [];\n\t this._detailLink = false;\n\t this._listActions = [];\n\t this._entryCssClasses = null;\n\t }\n\t\n\t _createClass(ReferencedListField, [{\n\t key: 'targetReferenceField',\n\t value: function targetReferenceField(value) {\n\t if (!arguments.length) return this._targetReferenceField;\n\t this._targetReferenceField = value;\n\t return this;\n\t }\n\t }, {\n\t key: 'targetFields',\n\t value: function targetFields(value) {\n\t if (!arguments.length) return this._targetFields;\n\t this._targetFields = value;\n\t\n\t return this;\n\t }\n\t }, {\n\t key: 'getGridColumns',\n\t value: function getGridColumns() {\n\t var columns = [];\n\t for (var i = 0, l = this._targetFields.length; i < l; i++) {\n\t var field = this._targetFields[i];\n\t columns.push({\n\t field: field,\n\t label: field.label()\n\t });\n\t }\n\t\n\t return columns;\n\t }\n\t }, {\n\t key: 'getSortFieldName',\n\t value: function getSortFieldName() {\n\t if (!this.sortField()) {\n\t return null;\n\t }\n\t\n\t return this._targetEntity.name() + '_ListView.' + this.sortField();\n\t }\n\t }, {\n\t key: 'listActions',\n\t value: function listActions(actions) {\n\t if (!arguments.length) {\n\t return this._listActions;\n\t }\n\t\n\t this._listActions = actions;\n\t\n\t return this;\n\t }\n\t }, {\n\t key: 'entryCssClasses',\n\t value: function entryCssClasses(classes) {\n\t if (!arguments.length) {\n\t return this._entryCssClasses;\n\t }\n\t\n\t this._entryCssClasses = classes;\n\t\n\t return this;\n\t }\n\t }, {\n\t key: 'getReferences',\n\t value: function getReferences(withRemoteComplete) {\n\t return _UtilsReferenceExtractor2['default'].getReferences(this._targetFields, withRemoteComplete);\n\t }\n\t }, {\n\t key: 'getNonOptimizedReferences',\n\t value: function getNonOptimizedReferences(withRemoteComplete) {\n\t return _UtilsReferenceExtractor2['default'].getNonOptimizedReferences(this._targetFields, withRemoteComplete);\n\t }\n\t }, {\n\t key: 'getOptimizedReferences',\n\t value: function getOptimizedReferences(withRemoteComplete) {\n\t return _UtilsReferenceExtractor2['default'].getOptimizedReferences(this._targetFields, withRemoteComplete);\n\t }\n\t }]);\n\t\n\t return ReferencedListField;\n\t})(_ReferenceField3['default']);\n\t\n\texports['default'] = ReferencedListField;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 36 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _Field2 = __webpack_require__(1);\n\t\n\tvar _Field3 = _interopRequireDefault(_Field2);\n\t\n\tvar TemplateField = (function (_Field) {\n\t _inherits(TemplateField, _Field);\n\t\n\t function TemplateField(name) {\n\t _classCallCheck(this, TemplateField);\n\t\n\t _get(Object.getPrototypeOf(TemplateField.prototype), \"constructor\", this).call(this, name);\n\t this._type = \"template\";\n\t this._flattenable = false;\n\t }\n\t\n\t return TemplateField;\n\t})(_Field3[\"default\"]);\n\t\n\texports[\"default\"] = TemplateField;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 37 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _Field2 = __webpack_require__(1);\n\t\n\tvar _Field3 = _interopRequireDefault(_Field2);\n\t\n\tvar TextField = (function (_Field) {\n\t _inherits(TextField, _Field);\n\t\n\t function TextField(name) {\n\t _classCallCheck(this, TextField);\n\t\n\t _get(Object.getPrototypeOf(TextField.prototype), \"constructor\", this).call(this, name);\n\t this._type = \"text\";\n\t }\n\t\n\t return TextField;\n\t})(_Field3[\"default\"]);\n\t\n\texports[\"default\"] = TextField;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 38 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _Field2 = __webpack_require__(1);\n\t\n\tvar _Field3 = _interopRequireDefault(_Field2);\n\t\n\tvar WysiwygField = (function (_Field) {\n\t _inherits(WysiwygField, _Field);\n\t\n\t function WysiwygField(name) {\n\t _classCallCheck(this, WysiwygField);\n\t\n\t _get(Object.getPrototypeOf(WysiwygField.prototype), \"constructor\", this).call(this, name);\n\t this._type = \"wysiwyg\";\n\t this._stripTags = false;\n\t this._sanitize = true;\n\t }\n\t\n\t _createClass(WysiwygField, [{\n\t key: \"stripTags\",\n\t value: function stripTags(value) {\n\t if (!arguments.length) return this._stripTags;\n\t this._stripTags = value;\n\t return this;\n\t }\n\t }, {\n\t key: \"sanitize\",\n\t value: function sanitize(value) {\n\t if (!arguments.length) return this._sanitize;\n\t this._sanitize = value;\n\t return this;\n\t }\n\t }]);\n\t\n\t return WysiwygField;\n\t})(_Field3[\"default\"]);\n\t\n\texports[\"default\"] = WysiwygField;\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 39 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _Queries2 = __webpack_require__(18);\n\t\n\tvar _Queries3 = _interopRequireDefault(_Queries2);\n\t\n\tvar _UtilsReferenceExtractor = __webpack_require__(10);\n\t\n\tvar _UtilsReferenceExtractor2 = _interopRequireDefault(_UtilsReferenceExtractor);\n\t\n\tvar ReadQueries = (function (_Queries) {\n\t _inherits(ReadQueries, _Queries);\n\t\n\t function ReadQueries() {\n\t _classCallCheck(this, ReadQueries);\n\t\n\t _get(Object.getPrototypeOf(ReadQueries.prototype), 'constructor', this).apply(this, arguments);\n\t }\n\t\n\t _createClass(ReadQueries, [{\n\t key: 'getOne',\n\t\n\t /**\n\t * Get one entity\n\t *\n\t * @param {Entity} entity\n\t * @param {String} viewType\n\t * @param {mixed} identifierValue\n\t * @param {String} identifierName\n\t * @param {String} url\n\t *\n\t * @returns {promise} (list of fields (with their values if set) & the entity name, label & id-\n\t */\n\t value: function getOne(entity, viewType, identifierValue, identifierName, url) {\n\t return this._restWrapper.getOne(entity.name(), this._application.getRouteFor(entity, url, viewType, identifierValue, identifierName), entity.retrieveMethod());\n\t }\n\t\n\t /**\n\t * Return the list of all object of entityName type\n\t * Get all the object from the API\n\t *\n\t * @param {ListView} view the view associated to the entity\n\t * @param {Number} page the page number\n\t * @param {Object} filterValues searchQuery to filter elements\n\t * @param {String} sortField the field to be sorted ex: entity.fieldName\n\t * @param {String} sortDir the direction of the sort\n\t *\n\t * @returns {promise} the entity config & the list of objects\n\t */\n\t }, {\n\t key: 'getAll',\n\t value: function getAll(view, page, filterValues, sortField, sortDir) {\n\t page = page || 1;\n\t filterValues = filterValues || {};\n\t var url = view.getUrl();\n\t\n\t if (sortField && sortField.split('.')[0] === view.name()) {\n\t sortField = sortField;\n\t sortDir = sortDir;\n\t } else {\n\t sortField = view.getSortFieldName();\n\t sortDir = view.sortDir();\n\t }\n\t\n\t var allFilterValues = {};\n\t var permanentFilters = view.permanentFilters();\n\t Object.keys(filterValues).forEach(function (key) {\n\t allFilterValues[key] = filterValues[key];\n\t });\n\t Object.keys(permanentFilters).forEach(function (key) {\n\t allFilterValues[key] = permanentFilters[key];\n\t });\n\t\n\t return this.getRawValues(view.entity, view.name(), view.type, page, view.perPage(), allFilterValues, view.filters(), sortField, sortDir, url).then(function (values) {\n\t return {\n\t data: values.data,\n\t totalItems: values.totalCount || values.headers('X-Total-Count') || values.data.length\n\t };\n\t });\n\t }\n\t\n\t /**\n\t * Return the list of all object of entityName type\n\t * Get all the object from the API\n\t *\n\t * @param {Entity} entity\n\t * @param {String} viewName\n\t * @param {String} viewType\n\t * @param {Number} page\n\t * @param {Number} perPage\n\t * @param {Object} filterValues\n\t * @param {Object} filterFields\n\t * @param {String} sortField\n\t * @param {String} sortDir\n\t * @param {String} url\n\t *\n\t * @returns {promise} the entity config & the list of objects\n\t */\n\t }, {\n\t key: 'getRawValues',\n\t value: function getRawValues(entity, viewName, viewType, page, perPage, filterValues, filterFields, sortField, sortDir, url) {\n\t var params = {};\n\t\n\t // Compute pagination\n\t if (page !== -1) {\n\t params._page = typeof page === 'undefined' ? 1 : parseInt(page, 10);\n\t params._perPage = perPage;\n\t }\n\t\n\t // Compute sorting\n\t if (sortField && sortField.split('.')[0] === viewName) {\n\t params._sortField = sortField.substr(sortField.indexOf('.') + 1);\n\t params._sortDir = sortDir;\n\t }\n\t\n\t // Compute filtering\n\t if (filterValues && Object.keys(filterValues).length !== 0) {\n\t (function () {\n\t params._filters = {};\n\t var filterName = undefined,\n\t mappedValue = undefined;\n\t for (filterName in filterValues) {\n\t if (filterFields.hasOwnProperty(filterName) && filterFields[filterName].hasMaps()) {\n\t mappedValue = filterFields[filterName].getMappedValue(filterValues[filterName]);\n\t Object.keys(mappedValue).forEach(function (key) {\n\t params._filters[key] = mappedValue[key];\n\t });\n\t continue;\n\t }\n\t\n\t // It's weird to not map, but why not.\n\t params._filters[filterName] = filterValues[filterName];\n\t }\n\t })();\n\t }\n\t\n\t // Get grid data\n\t return this._restWrapper.getList(params, entity.name(), this._application.getRouteFor(entity, url, viewType), entity.retrieveMethod());\n\t }\n\t }, {\n\t key: 'getReferenceData',\n\t value: function getReferenceData(references, rawValues) {\n\t var nonOptimizedReferencedData = this.getFilteredReferenceData(_UtilsReferenceExtractor2['default'].getNonOptimizedReferences(references), rawValues);\n\t var optimizedReferencedData = this.getOptimizedReferenceData(_UtilsReferenceExtractor2['default'].getOptimizedReferences(references), rawValues);\n\t return Promise.all([nonOptimizedReferencedData, optimizedReferencedData]).then(function (results) {\n\t var data = {};\n\t var name = undefined;\n\t for (name in results[0]) {\n\t data[name] = results[0][name];\n\t }\n\t for (name in results[1]) {\n\t data[name] = results[1][name];\n\t }\n\t return data;\n\t });\n\t }\n\t\n\t /**\n\t * Returns all References for an entity with associated values [{targetEntity.identifier: targetLabel}, ...]\n\t * by calling the API for each entries\n\t *\n\t * @param {ReferenceField} references A hash of Reference and ReferenceMany objects\n\t * @param {Array} rawValues\n\t *\n\t * @returns {Promise}\n\t */\n\t }, {\n\t key: 'getFilteredReferenceData',\n\t value: function getFilteredReferenceData(references, rawValues) {\n\t if (!references || !Object.keys(references).length) {\n\t return this._promisesResolver.empty({});\n\t }\n\t\n\t var getOne = this.getOne.bind(this),\n\t calls = [];\n\t\n\t for (var i in references) {\n\t var reference = references[i],\n\t targetEntity = reference.targetEntity(),\n\t identifiers = reference.getIdentifierValues(rawValues);\n\t\n\t for (var k in identifiers) {\n\t calls.push(getOne(targetEntity, 'listView', identifiers[k], reference.name()));\n\t }\n\t }\n\t\n\t return this.fillFilteredReferencedData(calls, references, rawValues);\n\t }\n\t\n\t /**\n\t * Returns all References for an entity with associated values [{targetEntity.identifier: targetLabel}, ...]\n\t * by calling the API once\n\t *\n\t * @param {[ReferenceField]} references A hash of Reference and ReferenceMany objects\n\t * @param {Array} rawValues\n\t *\n\t * @returns {Promise}\n\t */\n\t }, {\n\t key: 'getOptimizedReferenceData',\n\t value: function getOptimizedReferenceData(references, rawValues) {\n\t if (!references || !Object.keys(references).length) {\n\t return this._promisesResolver.empty({});\n\t }\n\t\n\t var getRawValues = this.getRawValues.bind(this),\n\t calls = [];\n\t\n\t for (var i in references) {\n\t var reference = references[i],\n\t targetEntity = reference.targetEntity(),\n\t identifiers = reference.getIdentifierValues(rawValues);\n\t\n\t // Check if we should retrieve values with 1 or multiple requests\n\t var singleCallFilters = reference.getSingleApiCall(identifiers);\n\t calls.push(getRawValues(targetEntity, targetEntity.name() + '_ListView', 'listView', 1, reference.perPage(), singleCallFilters, {}, reference.sortField(), reference.sortDir()));\n\t }\n\t\n\t return this.fillOptimizedReferencedData(calls, references);\n\t }\n\t\n\t /**\n\t * Returns all References for an entity with associated values [{targetEntity.identifier: targetLabel}, ...]\n\t * without filters on an entity\n\t *\n\t * @param {[ReferenceField]} references A hash of Reference and ReferenceMany objects\n\t *\n\t * @returns {Promise}\n\t */\n\t }, {\n\t key: 'getAllReferencedData',\n\t value: function getAllReferencedData(references, search) {\n\t if (!references || !Object.keys(references).length) {\n\t return this._promisesResolver.empty({});\n\t }\n\t\n\t var calls = [],\n\t getRawValues = this.getRawValues.bind(this);\n\t\n\t var _loop = function (i) {\n\t var reference = references[i];\n\t var targetEntity = reference.targetEntity();\n\t\n\t var permanentFilters = reference.permanentFilters();\n\t var filterValues = permanentFilters || {};\n\t\n\t if (typeof permanentFilters === 'function') {\n\t console.warn('Reference.permanentFilters() called with a function is deprecated. Use the searchQuery option for remoteComplete() instead');\n\t filterValues = permanentFilters(search);\n\t }\n\t\n\t if (search) {\n\t // remote complete situation\n\t var options = reference.remoteCompleteOptions();\n\t if (options.searchQuery) {\n\t (function () {\n\t var filterValuesFromRemoteComplete = options.searchQuery(search);\n\t Object.keys(filterValuesFromRemoteComplete).forEach(function (key) {\n\t filterValues[key] = filterValuesFromRemoteComplete[key];\n\t });\n\t })();\n\t } else {\n\t // by default, filter the list by the referenceField name\n\t filterValues[reference.targetField().name()] = search;\n\t }\n\t }\n\t\n\t var filterFields = {};\n\t filterFields[reference.name()] = reference;\n\t\n\t calls.push(getRawValues(targetEntity, targetEntity.name() + '_ListView', 'listView', 1, reference.perPage(), filterValues, filterFields, reference.getSortFieldName(), reference.sortDir()));\n\t };\n\t\n\t for (var i in references) {\n\t _loop(i);\n\t }\n\t\n\t return this.fillOptimizedReferencedData(calls, references);\n\t }\n\t\n\t /**\n\t * Fill all reference entries to return [{targetEntity.identifier: targetLabel}, ...]\n\t *\n\t * @param {[Promise]} apiCalls\n\t * @param {[Reference]} references\n\t * @returns {Promise}\n\t */\n\t }, {\n\t key: 'fillOptimizedReferencedData',\n\t value: function fillOptimizedReferencedData(apiCalls, references) {\n\t return this._promisesResolver.allEvenFailed(apiCalls).then(function (responses) {\n\t if (responses.length === 0) {\n\t return {};\n\t }\n\t\n\t var referencedData = {},\n\t i = 0;\n\t\n\t for (var j in references) {\n\t var reference = references[j],\n\t response = responses[i++];\n\t\n\t // Retrieve entries depending on 1 or many request was done\n\t if (response.status == 'error') {\n\t // the response failed\n\t continue;\n\t }\n\t\n\t referencedData[reference.name()] = response.result.data;\n\t }\n\t\n\t return referencedData;\n\t });\n\t }\n\t\n\t /**\n\t * Fill all reference entries to return [{targetEntity.identifier: targetLabel}, ...]\n\t *\n\t * @param {[Promise]} apiCalls\n\t * @param {[Reference]} references\n\t * @param {[Object]} rawValues\n\t * @returns {Promise}\n\t */\n\t }, {\n\t key: 'fillFilteredReferencedData',\n\t value: function fillFilteredReferencedData(apiCalls, references, rawValues) {\n\t return this._promisesResolver.allEvenFailed(apiCalls).then(function (responses) {\n\t if (responses.length === 0) {\n\t return {};\n\t }\n\t\n\t var referencedData = {},\n\t response = undefined,\n\t i = 0;\n\t\n\t for (var j in references) {\n\t var data = [],\n\t reference = references[j],\n\t identifiers = reference.getIdentifierValues(rawValues);\n\t\n\t for (var k in identifiers) {\n\t response = responses[i++];\n\t if (response.status == 'error') {\n\t // one of the responses failed\n\t continue;\n\t }\n\t data.push(response.result);\n\t }\n\t\n\t if (!data.length) {\n\t continue;\n\t }\n\t\n\t referencedData[reference.name()] = data;\n\t }\n\t\n\t return referencedData;\n\t });\n\t }\n\t\n\t /**\n\t * Returns all ReferencedList for an entity for associated values [{targetEntity.identifier: [targetFields, ...]}}\n\t *\n\t * @param {View} referencedLists\n\t * @param {String} sortField\n\t * @param {String} sortDir\n\t * @param {*} entityId\n\t *\n\t * @returns {promise}\n\t */\n\t }, {\n\t key: 'getReferencedListData',\n\t value: function getReferencedListData(referencedLists, sortField, sortDir, entityId) {\n\t var getRawValues = this.getRawValues.bind(this),\n\t calls = [];\n\t\n\t var _loop2 = function (i) {\n\t var referencedList = referencedLists[i],\n\t targetEntity = referencedList.targetEntity(),\n\t viewName = referencedList.datagridName(),\n\t currentSortField = referencedList.getSortFieldName(),\n\t currentSortDir = referencedList.sortDir(),\n\t filter = {};\n\t\n\t if (sortField && sortField.split('.')[0] === viewName) {\n\t currentSortField = sortField;\n\t currentSortDir = sortDir || 'ASC';\n\t }\n\t\n\t var permanentFilters = referencedList.permanentFilters() || {};\n\t Object.keys(permanentFilters).forEach(function (key) {\n\t filter[key] = permanentFilters[key];\n\t });\n\t filter[referencedList.targetReferenceField()] = entityId;\n\t\n\t calls.push(getRawValues(targetEntity, viewName, 'listView', 1, referencedList.perPage(), filter, {}, currentSortField, currentSortDir));\n\t };\n\t\n\t for (var i in referencedLists) {\n\t _loop2(i);\n\t }\n\t\n\t return this._promisesResolver.allEvenFailed(calls).then(function (responses) {\n\t var j = 0,\n\t entries = {};\n\t\n\t for (var i in referencedLists) {\n\t var response = responses[j++];\n\t if (response.status == 'error') {\n\t // If a response fail, skip it\n\t continue;\n\t }\n\t\n\t entries[i] = response.result.data;\n\t }\n\t\n\t return entries;\n\t });\n\t }\n\t }, {\n\t key: 'getRecordsByIds',\n\t value: function getRecordsByIds(entity, ids) {\n\t var _this = this;\n\t\n\t if (!ids || !ids.length) {\n\t return this._promisesResolver.empty();\n\t }\n\t\n\t var calls = ids.map(function (id) {\n\t return _this.getOne(entity, 'listView', id, entity.identifier().name());\n\t });\n\t\n\t return this._promisesResolver.allEvenFailed(calls).then(function (responses) {\n\t return responses.filter(function (r) {\n\t return r.status != 'error';\n\t }).map(function (r) {\n\t return r.result;\n\t });\n\t });\n\t }\n\t }]);\n\t\n\t return ReadQueries;\n\t})(_Queries3['default']);\n\t\n\texports['default'] = ReadQueries;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 40 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _Queries2 = __webpack_require__(18);\n\t\n\tvar _Queries3 = _interopRequireDefault(_Queries2);\n\t\n\tvar WriteQueries = (function (_Queries) {\n\t _inherits(WriteQueries, _Queries);\n\t\n\t function WriteQueries() {\n\t _classCallCheck(this, WriteQueries);\n\t\n\t _get(Object.getPrototypeOf(WriteQueries.prototype), 'constructor', this).apply(this, arguments);\n\t }\n\t\n\t _createClass(WriteQueries, [{\n\t key: 'createOne',\n\t\n\t /**\n\t * Create a new entity\n\t * Post the data to the API to create the new object\n\t *\n\t * @param {View} view the formView related to the entity\n\t * @param {Object} rawEntity the entity's object\n\t *\n\t * @returns {promise} the new object\n\t */\n\t value: function createOne(view, rawEntity) {\n\t return this._restWrapper.createOne(rawEntity, view.entity.name(), this._application.getRouteFor(view.entity, view.getUrl(), view.type), view.entity.createMethod());\n\t }\n\t\n\t /**\n\t * Update an entity\n\t * Put the data to the API to create the new object\n\t *\n\t * @param {View} view the formView related to the entity\n\t * @param {Object} rawEntity the entity's object\n\t * @param {String} originEntityId if entity identifier is modified\n\t *\n\t * @returns {promise} the updated object\n\t */\n\t }, {\n\t key: 'updateOne',\n\t value: function updateOne(view, rawEntity, originEntityId) {\n\t var entityId = originEntityId || rawEntity[view.entity.identifier().name()];\n\t\n\t // Update element data\n\t return this._restWrapper.updateOne(rawEntity, view.entity.name(), this._application.getRouteFor(view.entity, view.getUrl(entityId), view.type, entityId, view.identifier()), view.entity.updateMethod());\n\t }\n\t\n\t /**\n\t * Delete an entity\n\t * Delete the data to the API\n\t *\n\t * @param {String} view the formView related to the entity\n\t * @param {*} entityId the entity's id\n\t *\n\t * @returns {promise}\n\t */\n\t }, {\n\t key: 'deleteOne',\n\t value: function deleteOne(view, entityId) {\n\t return this._restWrapper.deleteOne(view.entity.name(), this._application.getRouteFor(view.entity, view.getUrl(entityId), view.type, entityId, view.identifier()), view.entity.deleteMethod());\n\t }\n\t\n\t /**\n\t * Delete a batch of entity\n\t * Delete the data to the API\n\t *\n\t * @param {String} view the formView related to the entity\n\t * @param {*} entityIds the entities ids\n\t *\n\t * @returns {promise}\n\t */\n\t }, {\n\t key: 'batchDelete',\n\t value: function batchDelete(view, entityIds) {\n\t var deleteOne = this.deleteOne.bind(this);\n\t var promises = entityIds.map(function (id) {\n\t return deleteOne(view, id);\n\t });\n\t\n\t return this._promisesResolver.allEvenFailed(promises);\n\t }\n\t }]);\n\t\n\t return WriteQueries;\n\t})(_Queries3['default']);\n\t\n\texports['default'] = WriteQueries;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 41 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar PromisesResolver = (function () {\n\t function PromisesResolver() {\n\t _classCallCheck(this, PromisesResolver);\n\t }\n\t\n\t _createClass(PromisesResolver, null, [{\n\t key: 'empty',\n\t value: function empty(value) {\n\t return new Promise(function (resolve) {\n\t resolve(value);\n\t });\n\t }\n\t }, {\n\t key: 'allEvenFailed',\n\t value: function allEvenFailed(promises) {\n\t if (!Array.isArray(promises)) {\n\t throw Error('allEvenFailed can only handle an array of promises');\n\t }\n\t\n\t return new Promise(function (resolve, reject) {\n\t if (promises.length === 0) {\n\t return resolve([]);\n\t }\n\t\n\t var states = [],\n\t results = [];\n\t\n\t promises.forEach(function (promise, key) {\n\t states[key] = false; // promises are not resolved by default\n\t });\n\t\n\t promises.forEach(function (promise, key) {\n\t function resolveState(result) {\n\t states[key] = true;\n\t results[key] = result; // result may be an error\n\t for (var i in states) {\n\t if (!states[i]) {\n\t return;\n\t }\n\t }\n\t\n\t resolve(results);\n\t }\n\t\n\t function resolveSuccess(result) {\n\t return resolveState({ status: 'success', result: result });\n\t }\n\t\n\t function resolveError(result) {\n\t return resolveState({ status: 'error', error: result });\n\t }\n\t\n\t // whether the promise ends with success or error, consider it done\n\t promise.then(resolveSuccess, resolveError);\n\t });\n\t });\n\t }\n\t }]);\n\t\n\t return PromisesResolver;\n\t})();\n\t\n\texports['default'] = PromisesResolver;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 42 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _View2 = __webpack_require__(3);\n\t\n\tvar _View3 = _interopRequireDefault(_View2);\n\t\n\tvar BatchDeleteView = (function (_View) {\n\t _inherits(BatchDeleteView, _View);\n\t\n\t function BatchDeleteView(name) {\n\t _classCallCheck(this, BatchDeleteView);\n\t\n\t _get(Object.getPrototypeOf(BatchDeleteView.prototype), 'constructor', this).call(this, name);\n\t\n\t this._type = 'BatchDeleteView';\n\t this._enabled = true;\n\t }\n\t\n\t return BatchDeleteView;\n\t})(_View3['default']);\n\t\n\texports['default'] = BatchDeleteView;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 43 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _View2 = __webpack_require__(3);\n\t\n\tvar _View3 = _interopRequireDefault(_View2);\n\t\n\tvar CreateView = (function (_View) {\n\t _inherits(CreateView, _View);\n\t\n\t function CreateView(name) {\n\t _classCallCheck(this, CreateView);\n\t\n\t _get(Object.getPrototypeOf(CreateView.prototype), 'constructor', this).call(this, name);\n\t this._type = 'CreateView';\n\t this._submitCreationSuccess = null;\n\t this._submitCreationError = null;\n\t }\n\t\n\t /**\n\t * Add a function to be executed after the creation succeeds.\n\t *\n\t * This is the ideal place to use the response to update the entry, or\n\t * redirect to another view.\n\t *\n\t * If the function returns false, the default execution workflow is stopped.\n\t * This means that the function must provide a custom workflow.\n\t *\n\t * If the function throws an exception, the onSubmitError callback will\n\t * execute.\n\t *\n\t * The syntax depends on the framework calling the function.\n\t *\n\t * With ng-admin, the function can be an angular injectable, listing\n\t * required dependencies in an array. Among other, the function can receive\n\t * the following services:\n\t * - $event: the form submission event\n\t * - entry: the current Entry instance\n\t * - entity: the current entity\n\t * - form: the form object (for form validation and errors)\n\t * - progression: the controller for the loading indicator\n\t * - notification: the controller for top notifications\n\t *\n\t * The function can be asynchronous, in which case it should return\n\t * a Promise.\n\t *\n\t * @example\n\t *\n\t * post.creationView().onSubmitSuccess(['progression', 'notification', '$state', 'entry', 'entity', function(progression, notification, $state, entry, entity) {\n\t * // stop the progress bar\n\t * progression.done();\n\t * // add a notification\n\t * notification.log(`Element #${entry._identifierValue} successfully created.`, { addnCls: 'humane-flatty-success' });\n\t * // redirect to the list view\n\t * $state.go($state.get('list'), { entity: entity.name() });\n\t * // cancel the default action (redirect to the edition view)\n\t * return false;\n\t * }])\n\t *\n\t */\n\t\n\t _createClass(CreateView, [{\n\t key: 'onSubmitSuccess',\n\t value: function onSubmitSuccess(_onSubmitSuccess) {\n\t if (!arguments.length) return this._onSubmitSuccess;\n\t this._onSubmitSuccess = _onSubmitSuccess;\n\t return this;\n\t }\n\t\n\t /**\n\t * Add a function to be executed after the creation request receives a\n\t * failed http response from the server.\n\t *\n\t * This is the ideal place to use the response to update the entry, display\n\t * server-side validation error, or redirect to another view.\n\t *\n\t * If the function returns false, the default execution workflow is stopped.\n\t * This means that the function must provide a custom workflow.\n\t *\n\t * The syntax depends on the framework calling the function.\n\t *\n\t * With ng-admin, the function can be an angular injectable, listing\n\t * required dependencies in an array. Among other, the function can receive\n\t * the following services:\n\t * - $event: the form submission event\n\t * - error: the response from the server\n\t * - errorMessage: the error message based on the response\n\t * - entry: the current Entry instance\n\t * - entity: the current entity\n\t * - form: the form object (for form validation and errors)\n\t * - progression: the controller for the loading indicator\n\t * - notification: the controller for top notifications\n\t *\n\t * The function can be asynchronous, in which case it should return\n\t * a Promise.\n\t *\n\t * @example\n\t *\n\t * post.creationView().onSubmitError(['error', 'form', 'progression', 'notification', function(error, form, progression, notification) {\n\t * // mark fields based on errors from the response\n\t * error.violations.forEach(violation => {\n\t * if (form[violation.propertyPath]) {\n\t * form[violation.propertyPath].$valid = false;\n\t * }\n\t * });\n\t * // stop the progress bar\n\t * progression.done();\n\t * // add a notification\n\t * notification.log(`Some values are invalid, see details in the form`, { addnCls: 'humane-flatty-error' });\n\t * // cancel the default action (default error messages)\n\t * return false;\n\t * }]);\n\t */\n\t }, {\n\t key: 'onSubmitError',\n\t value: function onSubmitError(_onSubmitError) {\n\t if (!arguments.length) return this._onSubmitError;\n\t this._onSubmitError = _onSubmitError;\n\t return this;\n\t }\n\t }]);\n\t\n\t return CreateView;\n\t})(_View3['default']);\n\t\n\texports['default'] = CreateView;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 44 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _ListView2 = __webpack_require__(6);\n\t\n\tvar _ListView3 = _interopRequireDefault(_ListView2);\n\t\n\tvar DashboardView = (function (_ListView) {\n\t _inherits(DashboardView, _ListView);\n\t\n\t function DashboardView() {\n\t _classCallCheck(this, DashboardView);\n\t\n\t _get(Object.getPrototypeOf(DashboardView.prototype), 'constructor', this).apply(this, arguments);\n\t }\n\t\n\t _createClass(DashboardView, [{\n\t key: 'setEntity',\n\t value: function setEntity(entity) {\n\t this.entity = entity;\n\t if (!this._name) {\n\t this._name = entity.name();\n\t }\n\t return this;\n\t }\n\t }]);\n\t\n\t return DashboardView;\n\t})(_ListView3['default']);\n\t\n\texports['default'] = DashboardView;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 45 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _View2 = __webpack_require__(3);\n\t\n\tvar _View3 = _interopRequireDefault(_View2);\n\t\n\tvar DeleteView = (function (_View) {\n\t _inherits(DeleteView, _View);\n\t\n\t function DeleteView(name) {\n\t _classCallCheck(this, DeleteView);\n\t\n\t _get(Object.getPrototypeOf(DeleteView.prototype), 'constructor', this).call(this, name);\n\t this._type = 'DeleteView';\n\t this._enabled = true;\n\t }\n\t\n\t return DeleteView;\n\t})(_View3['default']);\n\t\n\texports['default'] = DeleteView;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 46 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _View2 = __webpack_require__(3);\n\t\n\tvar _View3 = _interopRequireDefault(_View2);\n\t\n\tvar EditView = (function (_View) {\n\t _inherits(EditView, _View);\n\t\n\t function EditView(name) {\n\t _classCallCheck(this, EditView);\n\t\n\t _get(Object.getPrototypeOf(EditView.prototype), 'constructor', this).call(this, name);\n\t this._type = 'EditView';\n\t this._submitCreationSuccess = null;\n\t this._submitCreationError = null;\n\t }\n\t\n\t /**\n\t * Add a function to be executed after the update succeeds.\n\t *\n\t * This is the ideal place to use the response to update the entry, or\n\t * redirect to another view.\n\t *\n\t * If the function returns false, the default execution workflow is stopped.\n\t * This means that the function must provide a custom workflow.\n\t *\n\t * If the function throws an exception, the onSubmitError callback will\n\t * execute.\n\t *\n\t * The syntax depends on the framework calling the function.\n\t *\n\t * With ng-admin, the function can be an angular injectable, listing\n\t * required dependencies in an array. Among other, the function can receive\n\t * the following services:\n\t * - $event: the form submission event\n\t * - entry: the current Entry instance\n\t * - entity: the current entity\n\t * - form: the form object (for form validation and errors)\n\t * - progression: the controller for the loading indicator\n\t * - notification: the controller for top notifications\n\t *\n\t * The function can be asynchronous, in which case it should return\n\t * a Promise.\n\t *\n\t * @example\n\t *\n\t * post.editionView().onSubmitSuccess(['progression', 'notification', '$state', 'entry', 'entity', function(progression, notification, $state, entry, entity) {\n\t * // stop the progress bar\n\t * progression.done();\n\t * // add a notification\n\t * notification.log(`Element #${entry._identifierValue} successfully edited.`, { addnCls: 'humane-flatty-success' });\n\t * // redirect to the list view\n\t * $state.go($state.get('list'), { entity: entity.name() });\n\t * // cancel the default action (redirect to the edition view)\n\t * return false;\n\t * }])\n\t */\n\t\n\t _createClass(EditView, [{\n\t key: 'onSubmitSuccess',\n\t value: function onSubmitSuccess(_onSubmitSuccess) {\n\t if (!arguments.length) return this._onSubmitSuccess;\n\t this._onSubmitSuccess = _onSubmitSuccess;\n\t return this;\n\t }\n\t\n\t /**\n\t * Add a function to be executed after the update request receives a failed\n\t * http response from the server.\n\t *\n\t * This is the ideal place to use the response to update the entry, display\n\t * server-side validation error, or redirect to another view.\n\t *\n\t * If the function returns false, the default execution workflow is stopped.\n\t * This means that the function must provide a custom workflow.\n\t *\n\t * The syntax depends on the framework calling the function.\n\t *\n\t * With ng-admin, the function can be an angular injectable, listing\n\t * required dependencies in an array. Among other, the function can receive\n\t * the following services:\n\t * - $event: the form submission event\n\t * - error: the response from the server\n\t * - errorMessage: the error message based on the response\n\t * - entry: the current Entry instance\n\t * - entity: the current entity\n\t * - form: the form object (for form validation and errors)\n\t * - progression: the controller for the loading indicator\n\t * - notification: the controller for top notifications\n\t *\n\t * The function can be asynchronous, in which case it should return\n\t * a Promise.\n\t *\n\t * @example\n\t *\n\t * post.editionView().onSubmitError(['error', 'form', 'progression', 'notification', function(error, form, progression, notification) {\n\t * // mark fields based on errors from the response\n\t * error.violations.forEach(violation => {\n\t * if (form[violation.propertyPath]) {\n\t * form[violation.propertyPath].$valid = false;\n\t * }\n\t * });\n\t * // stop the progress bar\n\t * progression.done();\n\t * // add a notification\n\t * notification.log(`Some values are invalid, see details in the form`, { addnCls: 'humane-flatty-error' });\n\t * // cancel the default action (default error messages)\n\t * return false;\n\t * }]);\n\t */\n\t }, {\n\t key: 'onSubmitError',\n\t value: function onSubmitError(_onSubmitError) {\n\t if (!arguments.length) return this._onSubmitError;\n\t this._onSubmitError = _onSubmitError;\n\t return this;\n\t }\n\t }]);\n\t\n\t return EditView;\n\t})(_View3['default']);\n\t\n\texports['default'] = EditView;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 47 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _ListView2 = __webpack_require__(6);\n\t\n\tvar _ListView3 = _interopRequireDefault(_ListView2);\n\t\n\tvar ExportView = (function (_ListView) {\n\t _inherits(ExportView, _ListView);\n\t\n\t function ExportView(name) {\n\t _classCallCheck(this, ExportView);\n\t\n\t _get(Object.getPrototypeOf(ExportView.prototype), 'constructor', this).call(this, name);\n\t this._fields = [];\n\t this._type = 'ExportView';\n\t }\n\t\n\t return ExportView;\n\t})(_ListView3['default']);\n\t\n\texports['default'] = ExportView;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 48 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _View2 = __webpack_require__(3);\n\t\n\tvar _View3 = _interopRequireDefault(_View2);\n\t\n\tvar MenuView = (function (_View) {\n\t _inherits(MenuView, _View);\n\t\n\t function MenuView(name) {\n\t _classCallCheck(this, MenuView);\n\t\n\t _get(Object.getPrototypeOf(MenuView.prototype), 'constructor', this).call(this, name);\n\t this._type = 'MenuView';\n\t this._icon = null;\n\t }\n\t\n\t _createClass(MenuView, [{\n\t key: 'icon',\n\t value: function icon() {\n\t if (arguments.length) {\n\t console.warn('entity.menuView() is deprecated. Please use the Menu class instead');\n\t this._icon = arguments[0];\n\t return this;\n\t }\n\t\n\t if (this._icon === null) {\n\t return '';\n\t }\n\t\n\t return this._icon;\n\t }\n\t }, {\n\t key: 'enabled',\n\t get: function get() {\n\t return this._enabled || this.entity.views['ListView'].enabled;\n\t }\n\t }]);\n\t\n\t return MenuView;\n\t})(_View3['default']);\n\t\n\texports['default'] = MenuView;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 49 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar _View2 = __webpack_require__(3);\n\t\n\tvar _View3 = _interopRequireDefault(_View2);\n\t\n\tvar ShowView = (function (_View) {\n\t _inherits(ShowView, _View);\n\t\n\t function ShowView(name) {\n\t _classCallCheck(this, ShowView);\n\t\n\t _get(Object.getPrototypeOf(ShowView.prototype), 'constructor', this).call(this, name);\n\t this._type = 'ShowView';\n\t }\n\t\n\t return ShowView;\n\t})(_View3['default']);\n\t\n\texports['default'] = ShowView;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 50 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _adminConfigLibFactory = __webpack_require__(24);\n\t\n\tvar _adminConfigLibFactory2 = _interopRequireDefault(_adminConfigLibFactory);\n\t\n\t__webpack_require__(176).polyfill(); // for IE\n\t__webpack_require__(143);\n\t__webpack_require__(51);\n\t\n\tvar factory = angular.module('AdminDescriptionModule', []);\n\tfactory.constant('AdminDescription', new _adminConfigLibFactory2['default']());\n\tvar ngadmin = angular.module('ng-admin', ['ui.select', 'main', 'crud', 'AdminDescriptionModule']);\n\tngadmin.config([\"NgAdminConfigurationProvider\", \"AdminDescription\", function (NgAdminConfigurationProvider, AdminDescription) {\n\t NgAdminConfigurationProvider.setAdminDescription(AdminDescription);\n\t}]);\n\tngadmin.config([\"uiSelectConfig\", function (uiSelectConfig) {\n\t uiSelectConfig.theme = 'bootstrap';\n\t}]);\n\n/***/ },\n/* 51 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _angular = __webpack_require__(5);\n\t\n\tvar _angular2 = _interopRequireDefault(_angular);\n\t\n\tvar CrudModule = _angular2['default'].module('crud', ['ui.router', 'ui.bootstrap', 'ngSanitize', 'textAngular', 'ngInflection', 'ui.codemirror', 'ngFileUpload', 'ngNumeraljs']);\n\tCrudModule.controller('ListLayoutController', __webpack_require__(122));\n\tCrudModule.controller('ListController', __webpack_require__(121));\n\tCrudModule.controller('ShowController', __webpack_require__(140));\n\tCrudModule.controller('FormController', __webpack_require__(120));\n\tCrudModule.controller('DeleteController', __webpack_require__(81));\n\tCrudModule.controller('BatchDeleteController', __webpack_require__(80));\n\tCrudModule.service('EntryFormatter', __webpack_require__(132));\n\tCrudModule.service('PromisesResolver', __webpack_require__(133));\n\tCrudModule.service('ReadQueries', __webpack_require__(136));\n\tCrudModule.service('ReferenceRefresher', __webpack_require__(137));\n\tCrudModule.service('WriteQueries', __webpack_require__(138));\n\tCrudModule.service('RestWrapper', __webpack_require__(134));\n\tCrudModule.directive('maJsonValidator', __webpack_require__(142));\n\tCrudModule.directive('maField', __webpack_require__(88));\n\tCrudModule.directive('maButtonField', __webpack_require__(82));\n\tCrudModule.directive('maChoiceField', __webpack_require__(84));\n\tCrudModule.directive('maChoicesField', __webpack_require__(85));\n\tCrudModule.directive('maDateField', __webpack_require__(86));\n\tCrudModule.directive('maEmbeddedListField', __webpack_require__(87));\n\tCrudModule.directive('maInputField', __webpack_require__(90));\n\tCrudModule.directive('maJsonField', __webpack_require__(91));\n\tCrudModule.directive('maFileField', __webpack_require__(89));\n\tCrudModule.directive('maCheckboxField', __webpack_require__(83));\n\tCrudModule.directive('maReferenceField', __webpack_require__(92));\n\tCrudModule.directive('maReferenceManyField', __webpack_require__(93));\n\tCrudModule.directive('maTextField', __webpack_require__(95));\n\tCrudModule.directive('maWysiwygField', __webpack_require__(96));\n\tCrudModule.directive('maTemplateField', __webpack_require__(94));\n\tCrudModule.directive('uiSelectRequired', __webpack_require__(97));\n\tCrudModule.provider('FieldViewConfiguration', __webpack_require__(105));\n\tCrudModule.directive('maListActions', __webpack_require__(130));\n\tCrudModule.directive('maDatagrid', __webpack_require__(123));\n\tCrudModule.directive('maDatagridPagination', __webpack_require__(128));\n\tCrudModule.directive('maDatagridInfinitePagination', __webpack_require__(125));\n\tCrudModule.directive('maDatagridItemSelector', __webpack_require__(126));\n\tCrudModule.directive('maDatagridMultiSelector', __webpack_require__(127));\n\tCrudModule.directive('maFilterForm', __webpack_require__(119));\n\tCrudModule.directive('maFilter', __webpack_require__(118));\n\tCrudModule.directive('maColumn', __webpack_require__(66));\n\tCrudModule.directive('maBooleanColumn', __webpack_require__(64));\n\tCrudModule.directive('maChoicesColumn', __webpack_require__(65));\n\tCrudModule.directive('maDateColumn', __webpack_require__(67));\n\tCrudModule.directive('maEmbeddedListColumn', __webpack_require__(68));\n\tCrudModule.directive('maJsonColumn', __webpack_require__(69));\n\tCrudModule.directive('maNumberColumn', __webpack_require__(70));\n\tCrudModule.directive('maReferenceColumn', __webpack_require__(71));\n\tCrudModule.directive('maReferencedListColumn', __webpack_require__(75));\n\tCrudModule.directive('maReferenceLinkColumn', __webpack_require__(72));\n\tCrudModule.directive('maReferenceManyColumn', __webpack_require__(73));\n\tCrudModule.directive('maReferenceManyLinkColumn', __webpack_require__(74));\n\tCrudModule.directive('maStringColumn', __webpack_require__(76));\n\tCrudModule.directive('maTemplateColumn', __webpack_require__(77));\n\tCrudModule.directive('maWysiwygColumn', __webpack_require__(78));\n\tCrudModule.directive('maBackButton', __webpack_require__(52));\n\tCrudModule.directive('maCreateButton', __webpack_require__(54));\n\tCrudModule.directive('maEditButton', __webpack_require__(56));\n\tCrudModule.directive('maFilterButton', __webpack_require__(58));\n\tCrudModule.directive('maFilteredListButton', __webpack_require__(59));\n\tCrudModule.directive('maShowButton', __webpack_require__(61));\n\tCrudModule.directive('maListButton', __webpack_require__(60));\n\tCrudModule.directive('maDeleteButton', __webpack_require__(55));\n\tCrudModule.directive('maBatchDeleteButton', __webpack_require__(53));\n\tCrudModule.directive('maExportToCsvButton', __webpack_require__(57));\n\tCrudModule.directive('maSubmitButton', __webpack_require__(62));\n\tCrudModule.directive('maViewBatchActions', __webpack_require__(63));\n\tCrudModule.directive('maShowItem', __webpack_require__(141));\n\tCrudModule.directive('maViewActions', __webpack_require__(135));\n\tCrudModule.directive('compile', __webpack_require__(131));\n\tCrudModule.config(__webpack_require__(139));\n\tCrudModule.config(__webpack_require__(79));\n\tCrudModule.factory('Papa', function () {\n\t return __webpack_require__(180);\n\t});\n\tCrudModule.factory('notification', function () {\n\t var humane = __webpack_require__(177);\n\t humane.timeout = 5000;\n\t humane.clickToClose = true;\n\t return humane;\n\t});\n\tCrudModule.factory('progression', function () {\n\t return __webpack_require__(179);\n\t});\n\tCrudModule.run(['Restangular', 'NgAdminConfiguration', function (Restangular, NgAdminConfiguration) {\n\t Restangular.setBaseUrl(NgAdminConfiguration().baseApiUrl());\n\t}]);\n\texports['default'] = CrudModule;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 52 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Link to previous page\n\t *\n\t * Usage:\n\t * \n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maBackButtonDirective;\n\t\n\tfunction maBackButtonDirective($window) {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t size: '@',\n\t label: '@'\n\t },\n\t link: function link(scope) {\n\t scope.label = scope.label || 'BACK';\n\t scope.back = function () {\n\t return $window.history.back();\n\t };\n\t },\n\t template: ' \\n \\n'\n\t };\n\t}\n\t\n\tmaBackButtonDirective.$inject = ['$window'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 53 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maBatchDeleteButtonDirective;\n\t\n\tfunction maBatchDeleteButtonDirective($state) {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t entity: '&',\n\t selection: '&',\n\t label: '@'\n\t },\n\t link: function link($scope) {\n\t $scope.label = $scope.label || 'DELETE';\n\t $scope.gotoBatchDelete = function () {\n\t var ids = $scope.selection().map(function (entry) {\n\t return entry.identifierValue;\n\t });\n\t $state.go('batchDelete', angular.extend({\n\t ids: ids,\n\t entity: $scope.entity().name()\n\t }, $state.params));\n\t };\n\t },\n\t template: '\\n \\n'\n\t };\n\t}\n\t\n\tmaBatchDeleteButtonDirective.$inject = ['$state'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 54 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Link to create\n\t *\n\t * Usage:\n\t * \n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\t\n\texports['default'] = maCreateButtonDirective;\n\t\n\tfunction maCreateButtonDirective($state) {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t entity: '&',\n\t entityName: '@',\n\t defaultValues: '&',\n\t size: '@',\n\t label: '@'\n\t },\n\t link: function link(scope, element, attrs) {\n\t scope.label = scope.label || 'CREATE';\n\t var entityName = scope.entity() ? scope.entity().name() : attrs.entityName;\n\t var stateParams = entityName == $state.params.entity ? _extends({}, $state.params) : {};\n\t stateParams.entity = entityName;\n\t stateParams.defaultValues = scope.defaultValues();\n\t scope.stateParams = stateParams;\n\t },\n\t template: ' \\n \\n'\n\t };\n\t}\n\t\n\tmaCreateButtonDirective.$inject = ['$state'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 55 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Link to delete\n\t *\n\t * Usage:\n\t * \n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\t\n\texports['default'] = maDeleteButtonDirective;\n\t\n\tfunction maDeleteButtonDirective($state) {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t entity: '&',\n\t entityName: '@',\n\t entry: '&',\n\t size: '@',\n\t label: '@'\n\t },\n\t link: function link(scope, element, attrs) {\n\t scope.label = scope.label || 'DELETE';\n\t var entityName = scope.entity() ? scope.entity().name() : attrs.entityName;\n\t var stateParams = entityName == $state.params.entity ? _extends({}, $state.params) : {};\n\t stateParams.entity = entityName;\n\t stateParams.id = scope.entry().identifierValue;\n\t scope.stateParams = stateParams;\n\t },\n\t template: ' \\n \\n'\n\t };\n\t}\n\t\n\tmaDeleteButtonDirective.$inject = ['$state'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 56 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Link to edit\n\t *\n\t * Usage:\n\t * \n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\t\n\texports['default'] = maEditButtonDirective;\n\t\n\tfunction maEditButtonDirective($state) {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t entity: '&',\n\t entityName: '@',\n\t entry: '&',\n\t size: '@',\n\t label: '@'\n\t },\n\t link: function link(scope, element, attrs) {\n\t scope.label = scope.label || 'EDIT';\n\t var entityName = scope.entity() ? scope.entity().name() : attrs.entityName;\n\t var stateParams = entityName == $state.params.entity ? _extends({}, $state.params) : {};\n\t stateParams.entity = entityName;\n\t stateParams.id = scope.entry().identifierValue;\n\t scope.stateParams = stateParams;\n\t },\n\t template: ' \\n \\n'\n\t };\n\t}\n\t\n\tmaEditButtonDirective.$inject = ['$state'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 57 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maExportToCsvButton;\n\t\n\tfunction maExportToCsvButton($stateParams, Papa, notification, AdminDescription, entryFormatter, ReadQueries) {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t entity: '&',\n\t label: '@',\n\t datastore: '&'\n\t },\n\t link: function link(scope) {\n\t scope.label = scope.label || 'EXPORT';\n\t scope.datastore = scope.datastore();\n\t scope.entity = scope.entity();\n\t var exportView = scope.entity.exportView();\n\t var listView = scope.entity.listView();\n\t if (exportView.fields().length === 0) {\n\t var exportFields = listView.exportFields();\n\t if (exportFields === null) {\n\t exportFields = listView.fields();\n\t }\n\t exportView.fields(exportFields);\n\t exportView.filters(listView.filters());\n\t exportView.name(listView.name()); // to enable reuse of sortField\n\t }\n\t scope.has_export = exportView.fields().length > 0;\n\t var formatEntry = entryFormatter.getFormatter(exportView.fields());\n\t scope.exportToCsv = function () {\n\t var rawEntries;\n\t ReadQueries.getAll(exportView, -1, $stateParams.search, $stateParams.sortField, $stateParams.sortDir).then(function (response) {\n\t rawEntries = response.data;\n\t return rawEntries;\n\t }).then(function (rawEntries) {\n\t return ReadQueries.getReferenceData(exportView.fields(), rawEntries);\n\t }).then(function (referenceData) {\n\t var references = exportView.getReferences();\n\t for (var name in referenceData) {\n\t AdminDescription.getEntryConstructor().createArrayFromRest(referenceData[name], [references[name].targetField()], references[name].targetEntity().name(), references[name].targetEntity().identifier().name()).map(function (entry) {\n\t return scope.datastore.addEntry(references[name].targetEntity().uniqueId + '_values', entry);\n\t });\n\t }\n\t }).then(function () {\n\t var entries = exportView.mapEntries(rawEntries);\n\t // shortcut to diplay collection of entry with included referenced values\n\t scope.datastore.fillReferencesValuesFromCollection(entries, exportView.getReferences(), true);\n\t var results = [];\n\t for (var i = entries.length - 1; i >= 0; i--) {\n\t results[i] = formatEntry(entries[i]);\n\t }\n\t var csv = Papa.unparse(results, listView.exportOptions());\n\t var fakeLink = document.createElement('a');\n\t document.body.appendChild(fakeLink);\n\t fakeLink.setAttribute('href', 'data:application/octet-stream;charset=utf-8,' + encodeURIComponent(csv));\n\t fakeLink.setAttribute('download', scope.entity.name() + '.csv');\n\t fakeLink.click();\n\t }, function (error) {\n\t notification.log(error.message, {\n\t addnCls: 'humane-flatty-error'\n\t });\n\t });\n\t };\n\t },\n\t template: '\\n \\n  \\n \\n'\n\t };\n\t}\n\t\n\tmaExportToCsvButton.$inject = ['$stateParams', 'Papa', 'notification', 'AdminDescription', 'EntryFormatter', 'ReadQueries'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 58 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maFilterButton;\n\t\n\tfunction maFilterButton() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t filters: '&',\n\t enabledFilters: '=',\n\t enableFilter: '&',\n\t label: \"@\"\n\t },\n\t link: function link(scope) {\n\t scope.label = scope.label || 'ADD_FILTER';\n\t scope.notYetEnabledFilters = function () {\n\t return scope.filters().filter(function (filter) {\n\t return scope.enabledFilters.indexOf(filter) === -1;\n\t });\n\t };\n\t scope.hasFilters = function () {\n\t return scope.notYetEnabledFilters().length > 0;\n\t };\n\t },\n\t template: '\\n \\n \\n'\n\t };\n\t}\n\t\n\tmaFilterButton.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 59 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Link to filtered list\n\t *\n\t * Usage:\n\t *\n\t * \n\t * \n\t * ')\n\t *\n\t * Usage as a template field:\n\t *\n\t * nga.field('', 'template')\n\t * .label('')\n\t * .template('')\n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maFilteredListButtonDirective;\n\t\n\tfunction maFilteredListButtonDirective() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t entityName: '@',\n\t filter: '&',\n\t label: '@',\n\t size: '@'\n\t },\n\t link: function link(scope) {\n\t scope.label = scope.label || 'SEE_RELATED';\n\t scope.stateParams = {\n\t 'entity': scope.entityName,\n\t 'search': scope.filter()\n\t };\n\t },\n\t template: ' \\n  \\n'\n\t };\n\t}\n\t\n\tmaFilteredListButtonDirective.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 60 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Link to list\n\t *\n\t * Usage:\n\t * \n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\t\n\texports['default'] = maListButtonDirective;\n\t\n\tfunction maListButtonDirective($state) {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t entity: '&',\n\t entityName: '@',\n\t size: '@',\n\t label: '@'\n\t },\n\t link: function link(scope, element, attrs) {\n\t scope.label = scope.label || 'LIST';\n\t var entityName = scope.entity() ? scope.entity().name() : attrs.entityName;\n\t var stateParams = entityName == $state.params.entity ? _extends({}, $state.params) : {};\n\t stateParams.entity = entityName;\n\t scope.stateParams = stateParams;\n\t },\n\t template: ' \\n \\n'\n\t };\n\t}\n\t\n\tmaListButtonDirective.$inject = ['$state'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 61 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Link to show\n\t *\n\t * Usage:\n\t * \n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\t\n\texports['default'] = maShowButtonDirective;\n\t\n\tfunction maShowButtonDirective($state) {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t entity: '&',\n\t entityName: '@',\n\t entry: '&',\n\t size: '@',\n\t label: '@'\n\t },\n\t link: function link(scope, element, attrs) {\n\t scope.label = scope.label || 'SHOW';\n\t var entityName = scope.entity() ? scope.entity().name() : attrs.entityName;\n\t var stateParams = entityName == $state.params.entity ? _extends({}, $state.params) : {};\n\t stateParams.entity = entityName;\n\t stateParams.id = scope.entry().identifierValue;\n\t scope.stateParams = stateParams;\n\t },\n\t template: ' \\n \\n'\n\t };\n\t}\n\t\n\tmaShowButtonDirective.$inject = ['$state'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 62 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Save button\n\t *\n\t * Usage:\n\t * \n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maSubmitButtonDirective;\n\t\n\tfunction maSubmitButtonDirective() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t label: '@'\n\t },\n\t link: function link(scope) {\n\t scope.label = scope.label || 'SAVE';\n\t },\n\t template: ''\n\t };\n\t}\n\t\n\tmaSubmitButtonDirective.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 63 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maViewBatchActionsDirective;\n\t\n\tfunction maViewBatchActionsDirective() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t 'entity': '=',\n\t 'selection': '=',\n\t 'buttons': '&',\n\t 'label': '@'\n\t },\n\t link: function link(scope) {\n\t scope.label = scope.label || 'N_SELECTED';\n\t scope.isopen = false;\n\t scope.toggleDropdown = function ($event) {\n\t $event.preventDefault();\n\t $event.stopPropagation();\n\t scope.isopen = !scope.isopen;\n\t };\n\t scope.buttons = scope.buttons();\n\t if (typeof scope.buttons === 'string') {\n\t scope.customTemplate = scope.buttons;\n\t scope.buttons = null;\n\t }\n\t },\n\t // the ng-class hidden is necessary to hide the inner blank space used for spacing buttons when the selection is not empty\n\t template: ' \\n \\n \\n'\n\t };\n\t}\n\t\n\tmaViewBatchActionsDirective.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 64 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maBooleanColumn;\n\t\n\tfunction maBooleanColumn() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t value: '&'\n\t },\n\t link: function link(scope) {\n\t scope.value = scope.value();\n\t },\n\t template: ''\n\t };\n\t}\n\t\n\tmaBooleanColumn.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 65 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maChoicesColumn;\n\t\n\tfunction maChoicesColumn() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t values: '&'\n\t },\n\t template: '{{ ref }}'\n\t };\n\t}\n\t\n\tmaChoicesColumn.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 66 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\t\n\texports['default'] = maColumn;\n\t\n\tfunction maColumn($state, $anchorScroll, $compile, Configuration, FieldViewConfiguration) {\n\t function getDetailLinkRouteName(field, entity) {\n\t if (entity.isReadOnly) {\n\t return entity.showView().enabled ? 'show' : false;\n\t }\n\t if (field.detailLinkRoute() == 'edit' && entity.editionView().enabled) {\n\t return 'edit';\n\t }\n\t return entity.showView().enabled ? 'show' : false;\n\t }\n\t\n\t function isDetailLink(field, entity) {\n\t if (field.isDetailLink() === false) {\n\t return false;\n\t }\n\t if (field.type() == 'reference' || field.type() == 'reference_many') {\n\t var relatedEntity = Configuration().getEntity(field.targetEntity().name());\n\t if (!relatedEntity) {\n\t return false;\n\t }\n\t return getDetailLinkRouteName(field, relatedEntity) !== false;\n\t }\n\t return getDetailLinkRouteName(field, entity) !== false;\n\t }\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t field: '&',\n\t entry: '&',\n\t entity: '&',\n\t datastore: '&'\n\t },\n\t link: function link(scope, element) {\n\t scope.datastore = scope.datastore();\n\t scope.field = scope.field();\n\t scope.entry = scope.entry();\n\t scope.value = typeof scope.entry === 'undefined' ? '' : scope.entry.values[scope.field.name()];\n\t scope.entity = scope.entity();\n\t var customTemplate = scope.field.getTemplateValue(scope.entry);\n\t if (customTemplate && !scope.field.templateIncludesLabel()) {\n\t element.append(customTemplate);\n\t } else {\n\t var type = scope.field.type();\n\t if (isDetailLink(scope.field, scope.entity)) {\n\t element.append(FieldViewConfiguration[type].getLinkWidget());\n\t } else {\n\t element.append(FieldViewConfiguration[type].getReadWidget());\n\t }\n\t }\n\t scope.detailState = false;\n\t scope.detailStateParams = {};\n\t if (typeof scope.entry !== 'undefined') {\n\t scope.detailState = getDetailLinkRouteName(scope.field, scope.entity);\n\t scope.detailStateParams = _extends({}, $state.params, {\n\t entity: scope.entry.entityName,\n\t id: scope.entry.identifierValue\n\t });\n\t }\n\t $compile(element.contents())(scope);\n\t }\n\t };\n\t}\n\t\n\tmaColumn.$inject = ['$state', '$anchorScroll', '$compile', 'NgAdminConfiguration', 'FieldViewConfiguration'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 67 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maDateColumn;\n\t\n\tfunction maDateColumn() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t value: '&',\n\t field: '&'\n\t },\n\t link: function link(scope) {\n\t var field = scope.field();\n\t scope.format = field.format();\n\t if (!scope.format) {\n\t scope.format = field.type() === 'date' ? 'yyyy-MM-dd' : 'yyyy-MM-dd HH:mm:ss';\n\t }\n\t },\n\t template: '{{ value() | date:format }}'\n\t };\n\t}\n\t\n\tmaDateColumn.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 68 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maEmbeddedListColumn;\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _adminConfigLibEntry = __webpack_require__(2);\n\t\n\tvar _adminConfigLibEntry2 = _interopRequireDefault(_adminConfigLibEntry);\n\t\n\tfunction sorter(sortField, sortDir) {\n\t return function (entry1, entry2) {\n\t // use < and > instead of substraction to sort strings properly\n\t var sortFactor = sortDir === 'DESC' ? -1 : 1;\n\t if (entry1.values[sortField] > entry2.values[sortField]) {\n\t return sortFactor;\n\t }\n\t if (entry1.values[sortField] < entry2.values[sortField]) {\n\t return -1 * sortFactor;\n\t }\n\t return 0;\n\t };\n\t}\n\t\n\tfunction maEmbeddedListColumn(NgAdminConfiguration) {\n\t var application = NgAdminConfiguration(); // jshint ignore:line\n\t return {\n\t scope: {\n\t 'field': '&',\n\t 'value': '&',\n\t 'datastore': '&'\n\t },\n\t restrict: 'E',\n\t link: {\n\t pre: function pre(scope) {\n\t var field = scope.field();\n\t var targetEntity = field.targetEntity();\n\t var targetEntityName = targetEntity.name();\n\t var targetFields = field.targetFields();\n\t var sortField = field.sortField();\n\t var sortDir = field.sortDir();\n\t var filterFunc;\n\t if (field.permanentFilters()) {\n\t (function () {\n\t var filters = field.permanentFilters();\n\t var filterKeys = Object.keys(filters);\n\t filterFunc = function (entry) {\n\t return filterKeys.reduce(function (isFiltered, key) {\n\t return isFiltered && entry.values[key] === filters[key];\n\t }, true);\n\t };\n\t })();\n\t } else {\n\t filterFunc = function () {\n\t return true;\n\t };\n\t }\n\t var entries = _adminConfigLibEntry2['default'].createArrayFromRest(scope.value() || [], targetFields, targetEntityName, targetEntity.identifier().name()).sort(sorter(sortField, sortDir)).filter(filterFunc);\n\t if (!targetEntityName) {\n\t (function () {\n\t var index = 0;\n\t entries = entries.map(function (e) {\n\t e._identifierValue = index++;\n\t return e;\n\t });\n\t })();\n\t }\n\t scope.field = field;\n\t scope.targetFields = targetFields;\n\t scope.entries = entries;\n\t scope.entity = targetEntityName ? application.getEntity(targetEntityName) : targetEntity;\n\t scope.sortField = sortField;\n\t scope.sortDir = sortDir;\n\t scope.sort = function (field) {\n\t var sortDir = 'ASC';\n\t var sortField = field.name();\n\t if (scope.sortField === sortField) {\n\t // inverse sort dir\n\t sortDir = scope.sortDir === 'ASC' ? 'DESC' : 'ASC';\n\t }\n\t scope.entries = scope.entries.sort(sorter(sortField, sortDir));\n\t scope.sortField = sortField;\n\t scope.sortDir = sortDir;\n\t };\n\t }\n\t },\n\t template: '\\n 0\"\\n entries=\"entries\"\\n fields=\"::targetFields\"\\n list-actions=\"::field.listActions()\"\\n entity=\"::entity\"\\n datastore=\"::datastore()\"\\n sort-field=\"{{ sortField }}\"\\n sort-dir=\"{{ sortDir }}\"\\n sort=\"::sort\">\\n'\n\t };\n\t}\n\t\n\tmaEmbeddedListColumn.$inject = ['NgAdminConfiguration'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 69 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maJsonColumn;\n\t\n\tfunction maJsonColumn($compile) {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t value: '&'\n\t },\n\t link: function link(scope, element) {\n\t scope.guessType = function (obj) {\n\t var type = Object.prototype.toString.call(obj);\n\t if (type === \"[object Object]\") {\n\t return \"Object\";\n\t }\n\t if (type === \"[object Array]\") {\n\t return \"Array\";\n\t }\n\t return \"Literal\";\n\t };\n\t var template = '\\n \\n \\n \\n \\n \\n \\n
\\n \\n \\n {{ val }}\\n
\\n \\n \\n \\n \\n \\n \\n \\n
{{ key }}\\n \\n \\n {{ val }}\\n
\\n
';\n\t var newElement = angular.element(template);\n\t $compile(newElement)(scope);\n\t element.replaceWith(newElement);\n\t }\n\t };\n\t}\n\t\n\tmaJsonColumn.$inject = ['$compile'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 70 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maNumberColumn;\n\t\n\tfunction maNumberColumn() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t value: '&',\n\t field: '&'\n\t },\n\t template: '{{ value() | numeraljs:field().format() }}'\n\t };\n\t}\n\t\n\tmaNumberColumn.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 71 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maReferenceColumn;\n\t\n\tfunction maReferenceColumn() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t field: '&',\n\t value: '&',\n\t datastore: '&'\n\t },\n\t link: {\n\t pre: function pre(scope) {\n\t var value = scope.value();\n\t scope.field = scope.field();\n\t scope.targetEntity = scope.field.targetEntity();\n\t scope.targetField = scope.field.targetField();\n\t var identifierName = scope.targetEntity.identifier().name();\n\t scope.referencedEntry = scope.datastore().getFirstEntry(scope.targetEntity.uniqueId + '_values', function (entry) {\n\t return entry.values[identifierName] == value;\n\t });\n\t }\n\t },\n\t template: ''\n\t };\n\t}\n\t\n\tmaReferenceColumn.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 72 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maReferenceLinkColumn;\n\tfunction getDetailLinkRouteName(field, entity) {\n\t if (entity.isReadOnly) {\n\t return entity.showView().enabled ? 'show' : false;\n\t }\n\t if (field.detailLinkRoute() == 'edit' && entity.editionView().enabled) {\n\t return 'edit';\n\t }\n\t return entity.showView().enabled ? 'show' : false;\n\t}\n\t\n\tfunction maReferenceLinkColumn(NgAdminConfiguration) {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t entry: '&',\n\t field: '&',\n\t value: '&',\n\t datastore: '&'\n\t },\n\t link: {\n\t pre: function pre(scope) {\n\t var field = scope.field();\n\t var referenceEntity = field.targetEntity().name();\n\t var relatedEntity = NgAdminConfiguration().getEntity(referenceEntity);\n\t var referenceId = scope.entry().values[field.name()];\n\t scope.route = getDetailLinkRouteName(field, relatedEntity);\n\t scope.stateParams = {\n\t entity: referenceEntity,\n\t id: referenceId\n\t };\n\t scope.field = field;\n\t }\n\t },\n\t template: ''\n\t };\n\t}\n\t\n\tmaReferenceLinkColumn.$inject = ['NgAdminConfiguration'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 73 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maReferenceManyColumn;\n\t\n\tfunction maReferenceManyColumn() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t values: '&'\n\t },\n\t template: '\\n {{ ref }}\\n'\n\t };\n\t}\n\t\n\tmaReferenceManyColumn.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 74 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maReferenceManyLinkColumn;\n\t\n\tfunction maReferenceManyLinkColumn(NgAdminConfiguration) {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t field: '&',\n\t values: '&',\n\t ids: '&'\n\t },\n\t link: function link(scope) {\n\t scope.field = scope.field();\n\t scope.values = scope.values();\n\t scope.ids = scope.ids();\n\t scope.referenceEntity = scope.field.targetEntity().name();\n\t scope.route = NgAdminConfiguration().getEntity(scope.referenceEntity).isReadOnly ? 'show' : 'edit';\n\t },\n\t template: '\\n {{ ref }}\\n'\n\t };\n\t}\n\t\n\tmaReferenceManyLinkColumn.$inject = ['NgAdminConfiguration'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 75 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maReferencedListColumn;\n\t\n\tfunction maReferencedListColumn(NgAdminConfiguration) {\n\t return {\n\t scope: {\n\t 'field': '&',\n\t 'datastore': '&'\n\t },\n\t restrict: 'E',\n\t link: {\n\t pre: function pre(scope) {\n\t scope.field = scope.field();\n\t var targetEntity = scope.field.targetEntity();\n\t scope.entries = scope.datastore().getEntries(targetEntity.uniqueId + '_list');\n\t scope.entity = NgAdminConfiguration().getEntity(targetEntity.name());\n\t }\n\t },\n\t template: '\\n 0\" name=\"{{ field.datagridName() }}\"\\n entries=\"::entries\"\\n fields=\"::field.targetFields()\"\\n list-actions=\"::field.listActions()\"\\n entity=\"::entity\"\\n datastore=\"::datastore()\"\\n entry-css-classes=\"::field.entryCssClasses()\">\\n'\n\t };\n\t}\n\t\n\tmaReferencedListColumn.$inject = ['NgAdminConfiguration'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 76 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maStringColumn;\n\t\n\tfunction maStringColumn() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t value: '&'\n\t },\n\t template: '{{ value() | translate }}'\n\t };\n\t}\n\t\n\tmaStringColumn.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 77 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maTemplateColumn;\n\t\n\tfunction maTemplateColumn() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t field: '&',\n\t entry: '&',\n\t entity: '&'\n\t },\n\t link: function link(scope) {\n\t scope.field = scope.field();\n\t scope.entry = scope.entry();\n\t scope.entity = scope.entity();\n\t },\n\t template: ''\n\t };\n\t}\n\t\n\tmaTemplateColumn.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 78 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maWysiwygColumn;\n\t\n\tfunction maWysiwygColumn($filter) {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t value: '&',\n\t field: '&'\n\t },\n\t link: function link(scope) {\n\t var value = scope.value();\n\t if (scope.field().stripTags()) {\n\t value = $filter('stripTags')(value);\n\t }\n\t scope.htmlValue = value;\n\t },\n\t template: ''\n\t };\n\t}\n\t\n\tmaWysiwygColumn.$inject = ['$filter'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 79 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = factories;\n\t\n\tfunction factories(fvp) {\n\t fvp.registerFieldView('boolean', __webpack_require__(98));\n\t fvp.registerFieldView('choice', __webpack_require__(99));\n\t fvp.registerFieldView('choices', __webpack_require__(100));\n\t fvp.registerFieldView('date', __webpack_require__(101));\n\t fvp.registerFieldView('datetime', __webpack_require__(102));\n\t fvp.registerFieldView('email', __webpack_require__(103));\n\t fvp.registerFieldView('embedded_list', __webpack_require__(104));\n\t fvp.registerFieldView('file', __webpack_require__(106));\n\t fvp.registerFieldView('float', __webpack_require__(107));\n\t fvp.registerFieldView('json', __webpack_require__(108));\n\t fvp.registerFieldView('number', __webpack_require__(109));\n\t fvp.registerFieldView('password', __webpack_require__(110));\n\t fvp.registerFieldView('referenced_list', __webpack_require__(113));\n\t fvp.registerFieldView('reference', __webpack_require__(111));\n\t fvp.registerFieldView('reference_many', __webpack_require__(112));\n\t fvp.registerFieldView('string', __webpack_require__(114));\n\t fvp.registerFieldView('template', __webpack_require__(115));\n\t fvp.registerFieldView('text', __webpack_require__(116));\n\t fvp.registerFieldView('wysiwyg', __webpack_require__(117));\n\t}\n\t\n\tfactories.$inject = ['FieldViewConfigurationProvider'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 80 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar BatchDeleteController = (function () {\n\t function BatchDeleteController($scope, $state, $translate, WriteQueries, notification, view) {\n\t _classCallCheck(this, BatchDeleteController);\n\t\n\t this.$scope = $scope;\n\t this.$state = $state;\n\t this.$translate = $translate;\n\t this.WriteQueries = WriteQueries;\n\t this.notification = notification;\n\t this.view = view;\n\t this.entity = view.getEntity();\n\t this.entityIds = $state.params.ids;\n\t this.selection = []; // fixme: query db to get selection\n\t this.title = view.title();\n\t this.description = view.description();\n\t this.actions = view.actions();\n\t this.loadingPage = false;\n\t this.fields = view.fields();\n\t $scope.$on('$destroy', this.destroy.bind(this));\n\t }\n\t\n\t _createClass(BatchDeleteController, [{\n\t key: 'batchDelete',\n\t value: function batchDelete() {\n\t var _this = this;\n\t\n\t var entityName = this.entity.name();\n\t var $translate = this.$translate;\n\t var $state = this.$state;\n\t var notification = this.notification;\n\t\n\t this.WriteQueries.batchDelete(this.view, this.entityIds).then(function () {\n\t $state.go($state.get('list'), angular.extend({\n\t entity: entityName\n\t }, $state.params));\n\t $translate('BATCH_DELETE_SUCCESS').then(function (text) {\n\t return notification.log(text, {\n\t addnCls: 'humane-flatty-success'\n\t });\n\t });\n\t })['catch'](function (error) {\n\t var errorMessage = _this.config.getErrorMessageFor(_this.view, error) | 'ERROR_MESSAGE';\n\t $translate(errorMessage, {\n\t status: error && error.status,\n\t details: error && error.data && typeof error.data === 'object' ? JSON.stringify(error.data) : {}\n\t }).then(function (text) {\n\t return notification.log(text, {\n\t addnCls: 'humane-flatty-error'\n\t });\n\t });\n\t });\n\t }\n\t }, {\n\t key: 'back',\n\t value: function back() {\n\t this.$state.go(this.$state.get('list'), angular.extend({\n\t entity: this.entity.name()\n\t }, this.$state.params));\n\t }\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t this.$scope = undefined;\n\t this.$state = undefined;\n\t this.$translate = undefined;\n\t this.WriteQueries = undefined;\n\t }\n\t }]);\n\t\n\t return BatchDeleteController;\n\t})();\n\t\n\texports['default'] = BatchDeleteController;\n\t\n\tBatchDeleteController.$inject = ['$scope', '$state', '$translate', 'WriteQueries', 'notification', 'view'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 81 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar DeleteController = (function () {\n\t function DeleteController($scope, $window, $state, $q, $translate, WriteQueries, Configuration, notification, params, view, entry) {\n\t var _this = this;\n\t\n\t _classCallCheck(this, DeleteController);\n\t\n\t this.$scope = $scope;\n\t this.$window = $window;\n\t this.$state = $state;\n\t this.$translate = $translate;\n\t this.WriteQueries = WriteQueries;\n\t this.config = Configuration();\n\t this.entityLabel = params.entity;\n\t this.entityId = params.id;\n\t this.view = view;\n\t this.title = view.title();\n\t this.description = view.description();\n\t this.actions = view.actions();\n\t this.entity = view.getEntity();\n\t this.notification = notification;\n\t this.$scope.entry = entry;\n\t this.$scope.view = view;\n\t $scope.$on('$destroy', this.destroy.bind(this));\n\t this.previousStateParametersDeferred = $q.defer();\n\t $scope.$on('$stateChangeSuccess', function (event, to, toParams, from, fromParams) {\n\t _this.previousStateParametersDeferred.resolve(fromParams);\n\t });\n\t }\n\t\n\t _createClass(DeleteController, [{\n\t key: 'deleteOne',\n\t value: function deleteOne() {\n\t var _this2 = this;\n\t\n\t var entityName = this.entity.name();\n\t var $translate = this.$translate;\n\t var notification = this.notification;\n\t\n\t return this.WriteQueries.deleteOne(this.view, this.entityId).then(function () {\n\t return _this2.previousStateParametersDeferred.promise;\n\t }).then(function (previousStateParameters) {\n\t // if previous page was related to deleted entity, redirect to list\n\t if (previousStateParameters.entity === entityName && previousStateParameters.id === _this2.entityId) {\n\t _this2.$state.go(_this2.$state.get('list'), angular.extend({\n\t entity: entityName\n\t }, _this2.$state.params));\n\t } else {\n\t _this2.back();\n\t }\n\t $translate('DELETE_SUCCESS').then(function (text) {\n\t return notification.log(text, {\n\t addnCls: 'humane-flatty-success'\n\t });\n\t });\n\t })['catch'](function (error) {\n\t var errorMessage = _this2.config.getErrorMessageFor(_this2.view, error) | 'ERROR_MESSAGE';\n\t $translate(errorMessage, {\n\t status: error && error.status,\n\t details: error && error.data && typeof error.data === 'object' ? JSON.stringify(error.data) : {}\n\t }).then(function (text) {\n\t return notification.log(text, {\n\t addnCls: 'humane-flatty-error'\n\t });\n\t });\n\t });\n\t }\n\t }, {\n\t key: 'back',\n\t value: function back() {\n\t this.$window.history.back();\n\t }\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t this.$scope = undefined;\n\t this.$window = undefined;\n\t this.$state = undefined;\n\t this.$translate = undefined;\n\t this.WriteQueries = undefined;\n\t this.view = undefined;\n\t this.entity = undefined;\n\t }\n\t }]);\n\t\n\t return DeleteController;\n\t})();\n\t\n\texports['default'] = DeleteController;\n\t\n\tDeleteController.$inject = ['$scope', '$window', '$state', '$q', '$translate', 'WriteQueries', 'NgAdminConfiguration', 'notification', 'params', 'view', 'entry'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 82 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Toggle input\n\t *\n\t * @example \n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maButtonField;\n\t\n\tfunction maButtonField() {\n\t return {\n\t scope: {\n\t 'field': '&',\n\t 'value': '='\n\t },\n\t restrict: 'E',\n\t link: function link(scope, element) {\n\t var field = scope.field();\n\t scope.name = field.name();\n\t scope.label = field.label();\n\t scope.value = !!scope.value;\n\t var a = element.children()[0];\n\t var attributes = field.attributes();\n\t for (var name in attributes) {\n\t a.setAttribute(name, attributes[name]);\n\t }\n\t scope.toggle = function () {\n\t this.value = !this.value;\n\t };\n\t scope.isActive = function () {\n\t return !!this.value;\n\t };\n\t },\n\t template: '{{ label | translate }}'\n\t };\n\t}\n\t\n\tmaButtonField.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 83 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Generic edition field\n\t *\n\t * @example \n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maCheckboxField;\n\t\n\tfunction maCheckboxField() {\n\t return {\n\t scope: {\n\t 'field': '&',\n\t 'value': '='\n\t },\n\t restrict: 'E',\n\t link: function link(scope, element) {\n\t var field = scope.field();\n\t scope.name = field.name();\n\t scope.v = field.validation();\n\t scope.value = !!scope.value;\n\t var input = element.children()[0];\n\t var attributes = field.attributes();\n\t for (var name in attributes) {\n\t input.setAttribute(name, attributes[name]);\n\t }\n\t },\n\t template: ''\n\t };\n\t}\n\t\n\tmaCheckboxField.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 84 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maChoiceField;\n\tfunction updateChoices(scope, choices) {\n\t scope.choices = choices;\n\t scope.$root.$$phase || scope.$digest();\n\t}\n\t\n\tfunction maChoiceField($compile) {\n\t return {\n\t scope: {\n\t 'field': '&',\n\t 'value': '=',\n\t 'entry': '=?',\n\t 'datastore': '&?',\n\t 'refresh': '&',\n\t 'choices': '&?'\n\t },\n\t restrict: 'E',\n\t compile: function compile() {\n\t return {\n\t pre: function pre(scope, element) {\n\t var field = scope.field();\n\t var attributes = field.attributes();\n\t scope.placeholder = attributes && attributes.placeholder || 'FILTER_VALUES';\n\t scope.name = field.name();\n\t scope.v = field.validation();\n\t scope.$watch('value', function (newValue, oldValue) {\n\t if (newValue !== oldValue && newValue === undefined) {\n\t // fix for https://github.com/angular-ui/ui-select/issues/863\n\t scope.value = null;\n\t }\n\t });\n\t var refreshAttributes = '';\n\t var itemsFilter = '| filter: {label: $select.search}';\n\t if (field.type().indexOf('reference') === 0 && field.remoteComplete()) {\n\t // FIXME wrong place to do that\n\t scope.refreshDelay = field.remoteCompleteOptions().refreshDelay;\n\t refreshAttributes = 'refresh-delay=\"refreshDelay\" refresh=\"refresh({ $search: $select.search })\"';\n\t itemsFilter = '';\n\t }\n\t var choices = typeof scope.choices == 'function' && scope.choices() ? scope.choices() : field.choices ? field.choices() : [];\n\t var template = '\\n \\n {{ $select.selected.label | translate }}\\n \\n {{ item.label | translate }}\\n \\n ';\n\t scope.choices = typeof choices === 'function' ? choices(scope.entry) : choices;\n\t element.html(template);\n\t var select = element.children()[0];\n\t for (var name in attributes) {\n\t select.setAttribute(name, attributes[name]);\n\t }\n\t $compile(element.contents())(scope);\n\t },\n\t post: function post(scope) {\n\t scope.$on('choices:update', function (e, data) {\n\t updateChoices(scope, data.choices);\n\t });\n\t }\n\t };\n\t }\n\t };\n\t}\n\t\n\tmaChoiceField.$inject = ['$compile'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 85 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Edition field for a selection of elements in a list - a multiple select.\n\t *\n\t * @example \n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maChoicesField;\n\t\n\tfunction maChoicesField($compile) {\n\t 'use strict';\n\t return {\n\t scope: {\n\t 'field': '&',\n\t 'value': '=',\n\t 'entry': '=?',\n\t 'datastore': '&?',\n\t 'refresh': '&'\n\t },\n\t restrict: 'E',\n\t compile: function compile() {\n\t return {\n\t pre: function pre(scope, element) {\n\t var field = scope.field();\n\t var attributes = field.attributes();\n\t scope.placeholder = attributes && attributes.placeholder || 'FILTER_VALUES';\n\t scope.name = field.name();\n\t scope.v = field.validation();\n\t var refreshAttributes = '';\n\t var itemsFilter = '| filter: {label: $select.search}';\n\t if (field.type().indexOf('reference') === 0 && field.remoteComplete()) {\n\t scope.refreshDelay = field.remoteCompleteOptions().refreshDelay;\n\t refreshAttributes = 'refresh-delay=\"refreshDelay\" refresh=\"refresh({ $search: $select.search })\"';\n\t itemsFilter = '';\n\t }\n\t var choices = field.choices ? field.choices() : [];\n\t scope.onRemove = function () {\n\t scope.refresh({\n\t $search: this.$select.search\n\t });\n\t };\n\t var template = '\\n \\n {{ $item.label | translate }}\\n \\n {{ item.label | translate }}\\n \\n ';\n\t scope.choices = typeof choices === 'function' ? choices(scope.entry) : choices;\n\t element.html(template);\n\t var select = element.children()[0];\n\t for (var name in attributes) {\n\t select.setAttribute(name, attributes[name]);\n\t }\n\t $compile(element.contents())(scope);\n\t },\n\t post: function post(scope) {\n\t scope.$on('choices:update', function (e, data) {\n\t scope.choices = data.choices;\n\t scope.$root.$$phase || scope.$digest();\n\t });\n\t }\n\t };\n\t }\n\t };\n\t}\n\t\n\tmaChoicesField.$inject = ['$compile'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 86 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Edition field for a date - a text input with a datepicker.\n\t *\n\t * @example \n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maDateField;\n\t\n\tfunction maDateField() {\n\t return {\n\t scope: {\n\t 'field': '&',\n\t 'value': '='\n\t },\n\t restrict: 'E',\n\t link: function link(scope, element) {\n\t var field = scope.field();\n\t scope.name = field.name();\n\t scope.rawValue = scope.value == null ? null : scope.value instanceof Date ? scope.value : new Date(scope.value);\n\t scope.$watch('rawValue', function (rawValue) {\n\t scope.value = field.parse()(rawValue);\n\t });\n\t scope.format = field.format();\n\t if (!scope.format) {\n\t scope.format = field.type() === 'date' ? 'yyyy-MM-dd' : 'yyyy-MM-dd HH:mm:ss';\n\t }\n\t scope.v = field.validation();\n\t scope.isOpen = false;\n\t var input = element.find('input').eq(0);\n\t var attributes = field.attributes();\n\t for (var name in attributes) {\n\t input.attr(name, attributes[name]);\n\t }\n\t scope.toggleDatePicker = function ($event) {\n\t $event.preventDefault();\n\t $event.stopPropagation();\n\t scope.isOpen = !scope.isOpen;\n\t };\n\t },\n\t template: '
\\n \\n \\n \\n \\n
'\n\t };\n\t}\n\t\n\tmaDateField.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 87 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maEmbeddedListField;\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _adminConfigLibEntry = __webpack_require__(2);\n\t\n\tvar _adminConfigLibEntry2 = _interopRequireDefault(_adminConfigLibEntry);\n\t\n\tfunction maEmbeddedListField() {\n\t return {\n\t scope: {\n\t 'field': '&',\n\t 'value': '=',\n\t 'datastore': '&'\n\t },\n\t restrict: 'E',\n\t link: {\n\t pre: function pre(scope) {\n\t var field = scope.field();\n\t var targetEntity = field.targetEntity();\n\t var targetEntityName = targetEntity.name();\n\t var targetFields = field.targetFields();\n\t var sortField = field.sortField();\n\t var sortDir = field.sortDir() === 'DESC' ? -1 : 1;\n\t var filterFunc;\n\t if (field.permanentFilters()) {\n\t (function () {\n\t var filters = field.permanentFilters();\n\t var filterKeys = Object.keys(filters);\n\t filterFunc = function (entry) {\n\t return filterKeys.reduce(function (isFiltered, key) {\n\t return isFiltered && entry.values[key] === filters[key];\n\t }, true);\n\t };\n\t })();\n\t } else {\n\t filterFunc = function () {\n\t return true;\n\t };\n\t }\n\t scope.fields = targetFields;\n\t scope.targetEntity = targetEntity;\n\t scope.entries = _adminConfigLibEntry2['default'].createArrayFromRest(scope.value || [], targetFields, targetEntityName, targetEntity.identifier().name()).sort(function (entry1, entry2) {\n\t // use < and > instead of substraction to sort strings properly\n\t if (entry1.values[sortField] > entry2.values[sortField]) {\n\t return sortDir;\n\t }\n\t if (entry1.values[sortField] < entry2.values[sortField]) {\n\t return -1 * sortDir;\n\t }\n\t return 0;\n\t }).filter(filterFunc);\n\t scope.addNew = function () {\n\t return scope.entries.push(_adminConfigLibEntry2['default'].createForFields(targetFields));\n\t };\n\t scope.remove = function (entry) {\n\t scope.entries = scope.entries.filter(function (e) {\n\t return e !== entry;\n\t });\n\t };\n\t scope.$watch('entries', function (newEntries, oldEntries) {\n\t if (newEntries === oldEntries) {\n\t return;\n\t }\n\t scope.value = newEntries.map(function (e) {\n\t return e.transformToRest(targetFields);\n\t });\n\t }, true);\n\t }\n\t },\n\t template: '\\n
\\n \\n
\\n  \\n
\\n
\\n \\n
\\n
\\n
\\n
\\n
\\n  \\n
\\n
\\n
'\n\t };\n\t}\n\t\n\tmaEmbeddedListField.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 88 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maField;\n\t\n\tfunction maField(FieldViewConfiguration, $compile) {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t field: '&',\n\t entry: '=',\n\t value: '=',\n\t entity: '&',\n\t form: '&',\n\t datastore: '&'\n\t },\n\t link: function link(scope, element) {\n\t var field = scope.field();\n\t var type = field.type();\n\t scope.field = field;\n\t scope.type = type;\n\t scope.entity = scope.entity();\n\t scope.form = scope.form();\n\t scope.datastore = scope.datastore();\n\t scope.getCssClasses = function (entry) {\n\t return 'ng-admin-field-' + field.name().replace('.', '_') + ' ng-admin-type-' + type + ' ' + (field.getCssClasses(entry) || 'col-sm-10 col-md-8 col-lg-7');\n\t };\n\t scope.getInput = function () {\n\t return scope.form[field.name()];\n\t };\n\t /**\n\t * Should validation status be displayed for a given field?\n\t *\n\t * - No for non-editable fields, or template fields which not have a corresponding input\n\t * - No for non-altered input\n\t * - Yes otherwise\n\t */\n\t scope.fieldHasValidation = function () {\n\t var input = this.getInput();\n\t return input && input.$dirty;\n\t };\n\t scope.fieldIsValid = function () {\n\t var input = this.getInput();\n\t return input && input.$valid;\n\t };\n\t scope.getFieldValidationClass = function () {\n\t if (this.fieldHasValidation()) {\n\t return this.fieldIsValid() ? 'has-success' : 'has-error';\n\t }\n\t };\n\t var fieldTemplate;\n\t if (scope.field.editable()) {\n\t fieldTemplate = '
\\n ' + (!field.templateIncludesLabel() && field.getTemplateValue(scope.entry) || FieldViewConfiguration[type].getWriteWidget()) + '\\n \\n
';\n\t } else {\n\t fieldTemplate = '
\\n

\\n \\n

\\n
';\n\t }\n\t var template = '
\\n \\n ' + fieldTemplate + '\\n
';\n\t element.append(template);\n\t $compile(element.contents())(scope);\n\t }\n\t };\n\t}\n\t\n\tmaField.$inject = ['FieldViewConfiguration', '$compile'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 89 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Edition field for a file - a file uploader.\n\t *\n\t * @example \n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maFileField;\n\t\n\tfunction maFileField(Upload) {\n\t return {\n\t scope: {\n\t 'field': '&',\n\t 'value': '='\n\t },\n\t restrict: 'E',\n\t link: {\n\t pre: function pre(scope) {\n\t var uploadInformation = scope.field().uploadInformation();\n\t if (!uploadInformation.hasOwnProperty('url')) {\n\t throw new Error('You must provide a URL property to allow the upload of files.');\n\t }\n\t scope.multiple = uploadInformation.hasOwnProperty('multiple') ? uploadInformation.multiple : false;\n\t scope.accept = \"*\";\n\t if (uploadInformation.hasOwnProperty('accept')) {\n\t scope.accept = uploadInformation.accept;\n\t }\n\t scope.apifilename = uploadInformation.hasOwnProperty('apifilename') ? uploadInformation.apifilename : false;\n\t var files = scope.value ? scope.value.split(',') : [];\n\t scope.files = {};\n\t for (var file in files) {\n\t scope.files[files[file]] = {\n\t \"name\": files[file],\n\t \"progress\": 0\n\t };\n\t }\n\t },\n\t post: function post(scope, element) {\n\t var field = scope.field();\n\t scope.name = field.name();\n\t scope.v = field.validation();\n\t if (scope.value) {\n\t scope.v.required = false;\n\t }\n\t var input = element.find('input')[0];\n\t var attributes = field.attributes();\n\t for (var name in attributes) {\n\t input.setAttribute(name, attributes[name]);\n\t }\n\t scope.fileSelected = function (selectedFiles) {\n\t if (!selectedFiles || !selectedFiles.length) {\n\t return;\n\t }\n\t var uploadParams;\n\t scope.files = {};\n\t for (var file in selectedFiles) {\n\t uploadParams = angular.copy(scope.field().uploadInformation());\n\t uploadParams.file = selectedFiles[file];\n\t Upload.upload(uploadParams).progress(function (evt) {\n\t scope.files[evt.config.file.name] = {\n\t \"name\": evt.config.file.name,\n\t \"progress\": Math.min(100, parseInt(100.0 * evt.loaded / evt.total))\n\t };\n\t }).success(function (data, status, headers, config) {\n\t scope.files[config.file.name] = {\n\t \"name\": scope.apifilename ? data[scope.apifilename] : config.file.name,\n\t \"progress\": 0\n\t };\n\t if (scope.apifilename) {\n\t var apiNames = Object.keys(scope.files).map(function (fileindex) {\n\t return scope.files[fileindex].name;\n\t });\n\t scope.value = apiNames.join(',');\n\t } else {\n\t scope.value = Object.keys(scope.files).join(',');\n\t }\n\t }).error(function (data, status, headers, config) {\n\t delete scope.files[config.file.name];\n\t scope.value = Object.keys(scope.files).join(',');\n\t });\n\t }\n\t };\n\t scope.selectFile = function () {\n\t input.click();\n\t };\n\t }\n\t },\n\t template: '
\\n
\\n \\n \\n \\n
\\n
\\n
\\n
\\n
\\n
\\n \\n
\\n
\\n
\\n
{{ file.name }}
\\n
\\n
\\n
\\n'\n\t };\n\t}\n\t\n\tmaFileField.$inject = ['Upload'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 90 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Generic edition field\n\t *\n\t * @example \n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maInputField;\n\t\n\tfunction maInputField() {\n\t return {\n\t scope: {\n\t 'type': '@',\n\t 'step': '@?',\n\t 'field': '&',\n\t 'value': '='\n\t },\n\t restrict: 'E',\n\t link: function link(scope, element) {\n\t var field = scope.field();\n\t scope.name = field.name();\n\t scope.v = field.validation();\n\t var input = element.children()[0];\n\t var attributes = field.attributes();\n\t for (var name in attributes) {\n\t if (name === 'step') {\n\t // allow to use `step` attribute instead of `scope.step`\n\t scope.step = attributes[name];\n\t continue;\n\t }\n\t input.setAttribute(name, attributes[name]);\n\t }\n\t },\n\t template: ''\n\t };\n\t}\n\t\n\tmaInputField.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 91 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maJsonField;\n\tvar codemirror = __webpack_require__(4);\n\tglobal.jsonlint = __webpack_require__(178);\n\t__webpack_require__(170);\n\t__webpack_require__(171);\n\t__webpack_require__(173);\n\t__webpack_require__(172);\n\t__webpack_require__(174);\n\t__webpack_require__(175);\n\tcodemirror.defineOption(\"matchBrackets\", true);\n\tcodemirror.defineOption(\"autoCloseBrackets\", true);\n\tcodemirror.defineOption(\"lineWrapping\", true);\n\tcodemirror.defineOption(\"tabSize\", 2);\n\tcodemirror.defineOption(\"mode\", \"application/json\");\n\tcodemirror.defineOption(\"gutters\", [\"CodeMirror-lint-markers\"]);\n\tcodemirror.defineOption(\"lint\", true);\n\tcodemirror.defineOption(\"styleActiveLine\", true);\n\tglobal.CodeMirror = codemirror;\n\t/**\n\t * Edition field for a JSON string in a textarea.\n\t *\n\t * @example \n\t */\n\t\n\tfunction maJsonField() {\n\t return {\n\t scope: {\n\t 'field': '&',\n\t 'value': '='\n\t },\n\t restrict: 'E',\n\t link: function link(scope, element) {\n\t var field = scope.field();\n\t scope.name = field.name();\n\t scope.v = field.validation();\n\t scope.jsonValue = scope.value === null ? '' : angular.toJson(scope.value, true);\n\t var input = element.children()[0];\n\t var attributes = field.attributes();\n\t for (var name in attributes) {\n\t input.setAttribute(name, attributes[name]);\n\t }\n\t scope.$watch('jsonValue', function (jsonValue) {\n\t if (jsonValue == '' || typeof jsonValue === 'undefined') {\n\t scope.value = null;\n\t return;\n\t }\n\t try {\n\t var value = angular.fromJson(jsonValue);\n\t scope.value = value;\n\t } catch (e) {\n\t // incorrect JSON, do not convert back to value\n\t }\n\t });\n\t },\n\t template: ''\n\t };\n\t}\n\t\n\tmaJsonField.$inject = [];\n\tmodule.exports = exports['default'];\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 92 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maReferenceField;\n\t\n\tfunction maReferenceField(ReferenceRefresher) {\n\t return {\n\t scope: {\n\t 'field': '&',\n\t 'value': '=',\n\t 'entry': '=?',\n\t 'datastore': '&?'\n\t },\n\t restrict: 'E',\n\t link: function link(scope) {\n\t var field = scope.field();\n\t var identifierName = field.targetEntity().identifier().name();\n\t scope.name = field.name();\n\t scope.v = field.validation();\n\t if (!field.remoteComplete()) {\n\t // fetch choices from the datastore, populated during routing resolve\n\t var initialEntries = scope.datastore().getEntries(field.targetEntity().uniqueId + '_choices');\n\t if (scope.value) {\n\t var isCurrentValueInInitialEntries = initialEntries.filter(function (e) {\n\t return e.identifierValue === scope.value;\n\t }).length > 0;\n\t if (!isCurrentValueInInitialEntries) {\n\t initialEntries.unshift(scope.datastore().getEntries(field.targetEntity().uniqueId + '_values').find(function (entry) {\n\t return entry.values[identifierName] == scope.value;\n\t }));\n\t }\n\t }\n\t var initialChoices = initialEntries.map(function (entry) {\n\t return {\n\t value: entry.values[identifierName],\n\t label: entry.values[field.targetField().name()]\n\t };\n\t });\n\t scope.$broadcast('choices:update', {\n\t choices: initialChoices\n\t });\n\t } else {\n\t // ui-select doesn't allow to prepopulate autocomplete selects, see https://github.com/angular-ui/ui-select/issues/1197\n\t // let ui-select fetch the options using the ReferenceRefresher\n\t scope.refresh = function refresh(search) {\n\t return ReferenceRefresher.refresh(field, scope.value, search).then(function addCurrentChoice(results) {\n\t if (!search && scope.value) {\n\t var isCurrentValueInEntries = results.filter(function (e) {\n\t return e.value === scope.value;\n\t }).length > 0;\n\t if (!isCurrentValueInEntries) {\n\t var currentEntry = scope.datastore().getEntries(field.targetEntity().uniqueId + '_values').find(function (entry) {\n\t return entry.values[identifierName] == scope.value;\n\t });\n\t results.unshift({\n\t value: currentEntry.values[identifierName],\n\t label: currentEntry.values[field.targetField().name()]\n\t });\n\t }\n\t }\n\t return results;\n\t }).then(function (formattedResults) {\n\t scope.$broadcast('choices:update', {\n\t choices: formattedResults\n\t });\n\t });\n\t };\n\t }\n\t },\n\t template: '\\n '\n\t };\n\t}\n\t\n\tmaReferenceField.$inject = ['ReferenceRefresher'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 93 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maReferenceManyField;\n\t\n\tfunction maReferenceManyField(ReferenceRefresher) {\n\t return {\n\t scope: {\n\t 'field': '&',\n\t 'value': '=',\n\t 'entry': '=?',\n\t 'datastore': '&?'\n\t },\n\t restrict: 'E',\n\t link: function link(scope) {\n\t var field = scope.field();\n\t var identifierName = field.targetEntity().identifier().name();\n\t scope.name = field.name();\n\t scope.v = field.validation();\n\t scope.choices = [];\n\t var setInitialChoices = function setInitialChoices(initialEntries) {\n\t if (scope.value && scope.value.length) {\n\t scope.value.map(function (value) {\n\t var isCurrentValueInInitialEntries = initialEntries.filter(function (e) {\n\t return e.identifierValue === value;\n\t }).length > 0;\n\t if (value && !isCurrentValueInInitialEntries) {\n\t initialEntries.push(scope.datastore().getEntries(field.targetEntity().uniqueId + '_values').filter(function (entry) {\n\t return entry.values[identifierName] == value;\n\t }).pop());\n\t }\n\t });\n\t }\n\t var initialChoices = initialEntries.map(function (entry) {\n\t return {\n\t value: entry.values[identifierName],\n\t label: entry.values[field.targetField().name()]\n\t };\n\t });\n\t scope.$broadcast('choices:update', {\n\t choices: initialChoices\n\t });\n\t };\n\t if (!field.remoteComplete()) {\n\t // fetch choices from the datastore\n\t var initialEntries = scope.datastore().getEntries(field.targetEntity().uniqueId + '_choices');\n\t setInitialChoices(initialEntries);\n\t } else {\n\t var initialEntries = [];\n\t setInitialChoices(initialEntries);\n\t // ui-select doesn't allow to prepopulate autocomplete selects, see https://github.com/angular-ui/ui-select/issues/1197\n\t // let ui-select fetch the options using the ReferenceRefresher\n\t scope.refresh = function (search) {\n\t return ReferenceRefresher.refresh(field, scope.value, search).then(function (formattedResults) {\n\t scope.$broadcast('choices:update', {\n\t choices: formattedResults\n\t });\n\t });\n\t };\n\t }\n\t },\n\t template: '\\n '\n\t };\n\t}\n\t\n\tmaReferenceManyField.$inject = ['ReferenceRefresher'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 94 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maTemplateField;\n\t\n\tfunction maTemplateField() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t field: '&',\n\t entry: '&',\n\t entity: '&',\n\t value: '=',\n\t values: '='\n\t },\n\t link: function link(scope) {\n\t scope.field = scope.field();\n\t scope.entry = scope.entry();\n\t scope.entity = scope.entity();\n\t },\n\t template: ''\n\t };\n\t}\n\t\n\tmaTemplateField.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 95 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Edition field for a multiline string - a textarea.\n\t *\n\t * @example \n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maTextField;\n\t\n\tfunction maTextField() {\n\t return {\n\t scope: {\n\t 'field': '&',\n\t 'value': '='\n\t },\n\t restrict: 'E',\n\t link: function link(scope, element) {\n\t var field = scope.field();\n\t scope.name = field.name();\n\t scope.v = field.validation();\n\t var input = element.children()[0];\n\t var attributes = field.attributes();\n\t for (var name in attributes) {\n\t input.setAttribute(name, attributes[name]);\n\t }\n\t },\n\t template: ''\n\t };\n\t}\n\t\n\tmaTextField.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 96 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Edition field for a multiline HTML string - a rich text editor.\n\t *\n\t * @example \n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maWysiwygField;\n\t\n\tfunction maWysiwygField() {\n\t return {\n\t scope: {\n\t 'field': '&',\n\t 'value': '='\n\t },\n\t restrict: 'E',\n\t link: function link(scope, element) {\n\t var field = scope.field();\n\t scope.name = field.name();\n\t },\n\t template: '
' + '
'\n\t };\n\t}\n\t\n\tmaWysiwygField.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 97 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Directive created to fix a bug with ui-select and multiple required values.\n\t * @see https://github.com/angular-ui/ui-select/issues/258\n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = uiSelectRequired;\n\t\n\tfunction uiSelectRequired() {\n\t return {\n\t restrict: 'A',\n\t require: 'ngModel',\n\t link: function link(scope, elm, attrs, ctrl) {\n\t ctrl.$validators.uiSelectRequired = function (modelValue, viewValue) {\n\t var determineVal;\n\t if (angular.isArray(modelValue)) {\n\t determineVal = modelValue;\n\t } else if (angular.isArray(viewValue)) {\n\t determineVal = viewValue;\n\t } else {\n\t return false;\n\t }\n\t return determineVal.length > 0;\n\t };\n\t }\n\t };\n\t}\n\t\n\tuiSelectRequired.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 98 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return '';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return '' + module.exports.getReadWidget() + '';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return '';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '
\\n \\n \\n
';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 99 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return '';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return '' + module.exports.getReadWidget() + '';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return '';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 100 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return '';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return '' + module.exports.getReadWidget() + '';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return '';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 101 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return '';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return '' + module.exports.getReadWidget() + '';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return '';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '
';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 102 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return '';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return '' + module.exports.getReadWidget() + '';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return '';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '
';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 103 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return '';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return '' + module.exports.getReadWidget() + '';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return '';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 104 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return '';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return 'error: cannot display referenced_list field as linkable';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return 'error: cannot display referenced_list field as filter';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 105 */\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar FieldViewConfiguration = (function () {\n\t function FieldViewConfiguration() {\n\t _classCallCheck(this, FieldViewConfiguration);\n\t\n\t this.fieldViews = {};\n\t }\n\t\n\t _createClass(FieldViewConfiguration, [{\n\t key: \"registerFieldView\",\n\t value: function registerFieldView(type, FieldView) {\n\t this.fieldViews[type] = FieldView;\n\t }\n\t }, {\n\t key: \"$get\",\n\t value: function $get() {\n\t return this.fieldViews;\n\t }\n\t }]);\n\t\n\t return FieldViewConfiguration;\n\t})();\n\t\n\texports[\"default\"] = FieldViewConfiguration;\n\t\n\tFieldViewConfiguration.$inject = [];\n\tmodule.exports = exports[\"default\"];\n\n/***/ },\n/* 106 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return 'error: cannot display file field as readable';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return 'error: cannot display file field as linkable';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return 'error: cannot display file field as filter';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 107 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return '';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return '' + module.exports.getReadWidget() + '';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return '';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 108 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return '';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return 'error: cannot display a json field as linkable';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return '';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 109 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return '';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return '' + module.exports.getReadWidget() + '';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return '';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 110 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return 'error: cannot display password field as readable';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return 'error: cannot display password field as linkable';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return 'error: cannot display password field as filter';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 111 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return '';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return '';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return '';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 112 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return '';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return '';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return '';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 113 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return '';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return 'error: cannot display referenced_list field as linkable';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return 'error: cannot display referenced_list field as filter';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 114 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return '';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return '' + module.exports.getReadWidget() + '';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return '';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 115 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return '';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return '' + module.exports.getReadWidget() + '';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return '';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 116 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return '';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return '' + module.exports.getReadWidget() + '';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return '';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 117 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = {\n\t getReadWidget: function getReadWidget() {\n\t return '';\n\t },\n\t getLinkWidget: function getLinkWidget() {\n\t return '' + module.exports.getReadWidget() + '';\n\t },\n\t getFilterWidget: function getFilterWidget() {\n\t return '';\n\t },\n\t getWriteWidget: function getWriteWidget() {\n\t return '';\n\t }\n\t};\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 118 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maFilter;\n\t\n\tfunction maFilter(FieldViewConfiguration, $compile) {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t field: '=',\n\t datastore: '&',\n\t values: '=',\n\t value: '='\n\t },\n\t link: function link(scope, element) {\n\t scope.datastore = scope.datastore();\n\t element.append(scope.field.getTemplateValue(scope.values) || FieldViewConfiguration[scope.field.type()].getFilterWidget());\n\t $compile(element.contents())(scope);\n\t }\n\t };\n\t}\n\t\n\tmaFilter.$inject = ['FieldViewConfiguration', '$compile'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 119 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maFilterForm;\n\t\n\tfunction maFilterForm() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t filters: '=',\n\t datastore: '&',\n\t values: '=',\n\t removeFilter: '&'\n\t },\n\t link: function link(scope) {\n\t scope.datastore = scope.datastore();\n\t scope.removeFilter = scope.removeFilter();\n\t scope.shouldFilter = function () {\n\t return Object.keys(scope.filters).length;\n\t };\n\t },\n\t template: '
\\n
\\n
\\n
\\n \\n
\\n \\n
\\n \\n
\\n
\\n
\\n
'\n\t };\n\t}\n\t\n\tmaFilterForm.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 120 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar FormController = (function () {\n\t function FormController($scope, $state, $injector, $translate, previousState, WriteQueries, Configuration, progression, notification, view, dataStore) {\n\t _classCallCheck(this, FormController);\n\t\n\t this.$scope = $scope;\n\t this.$state = $state;\n\t this.$injector = $injector;\n\t this.$translate = $translate;\n\t this.previousState = previousState;\n\t this.WriteQueries = WriteQueries;\n\t this.dataStore = dataStore;\n\t this.progression = progression;\n\t this.notification = notification;\n\t this.title = view.title();\n\t this.description = view.description();\n\t this.actions = view.actions();\n\t this.fields = view.fields();\n\t this.config = Configuration();\n\t this.view = view;\n\t this.entity = this.view.getEntity();\n\t this.$scope.entry = dataStore.getFirstEntry(this.entity.uniqueId);\n\t this.$scope.view = view;\n\t this.$scope.entity = this.entity;\n\t // in case of entity identifier being modified\n\t this.originEntityId = this.$scope.entry.values[this.entity.identifier().name()];\n\t $scope.$on('$destroy', this.destroy.bind(this));\n\t }\n\t\n\t _createClass(FormController, [{\n\t key: 'validateEntry',\n\t value: function validateEntry() {\n\t if (!this.form.$valid) {\n\t this.$translate('INVALID_FORM').then(function (text) {\n\t return notification.log(text, {\n\t addnCls: 'humane-flatty-error'\n\t });\n\t });\n\t return false;\n\t }\n\t try {\n\t this.view.validate(this.$scope.entry);\n\t } catch (error) {\n\t this.notification.log(error, {\n\t addnCls: 'humane-flatty-error'\n\t });\n\t return false;\n\t }\n\t return true;\n\t }\n\t }, {\n\t key: 'submitCreation',\n\t value: function submitCreation($event) {\n\t var _this = this;\n\t\n\t $event.preventDefault();\n\t if (!this.validateEntry()) {\n\t return;\n\t }\n\t var entity = this.entity;\n\t var view = this.view;\n\t var $state = this.$state;\n\t var progression = this.progression;\n\t var notification = this.notification;\n\t var $translate = this.$translate;\n\t\n\t var route = entity.showView().enabled ? 'show' : 'list';\n\t var restEntry = this.$scope.entry.transformToRest(view.fields());\n\t var entry = null;\n\t progression.start();\n\t this.WriteQueries.createOne(view, restEntry).then(function (rawEntry) {\n\t entry = view.mapEntry(rawEntry);\n\t return entry;\n\t }).then(function (entry) {\n\t return view.onSubmitSuccess() && _this.$injector.invoke(view.onSubmitSuccess(), view, {\n\t $event: $event,\n\t entity: entity,\n\t entry: entry,\n\t route: route,\n\t controller: _this,\n\t form: _this.form,\n\t progression: progression,\n\t notification: notification\n\t });\n\t }).then(function (customHandlerReturnValue) {\n\t if (customHandlerReturnValue === false) return;\n\t $state.go(_this.$state.get(route), {\n\t entity: entity.name(),\n\t id: entry.identifierValue\n\t }).then(function () {\n\t return progression.done();\n\t }).then(function () {\n\t return $translate('CREATION_SUCCESS');\n\t }).then(function (text) {\n\t return notification.log(text, {\n\t addnCls: 'humane-flatty-success'\n\t });\n\t });\n\t })['catch'](function (error) {\n\t var errorMessage = _this.config.getErrorMessageFor(_this.view, error) | 'ERROR_MESSAGE';\n\t var customHandlerReturnValue = view.onSubmitError() && _this.$injector.invoke(view.onSubmitError(), view, {\n\t $event: $event,\n\t error: error,\n\t errorMessage: errorMessage,\n\t entity: entity,\n\t entry: entry,\n\t route: route,\n\t controller: _this,\n\t form: _this.form,\n\t progression: progression,\n\t notification: notification\n\t });\n\t if (customHandlerReturnValue === false) return;\n\t progression.done();\n\t $translate(errorMessage, {\n\t status: error && error.status,\n\t details: error && error.data && typeof error.data === 'object' ? JSON.stringify(error.data) : {}\n\t }).then(function (text) {\n\t return notification.log(text, {\n\t addnCls: 'humane-flatty-error'\n\t });\n\t });\n\t });\n\t }\n\t }, {\n\t key: 'submitEdition',\n\t value: function submitEdition($event) {\n\t var _this2 = this;\n\t\n\t $event.preventDefault();\n\t if (!this.validateEntry()) {\n\t return;\n\t }\n\t var view = this.view;\n\t var $state = this.$state;\n\t var previousState = this.previousState;\n\t var progression = this.progression;\n\t var notification = this.notification;\n\t var $translate = this.$translate;\n\t\n\t var restEntry = this.$scope.entry.transformToRest(view.fields());\n\t var entry = null;\n\t progression.start();\n\t this.WriteQueries.updateOne(view, restEntry, this.originEntityId).then(function (rawEntry) {\n\t entry = view.mapEntry(rawEntry);\n\t return entry;\n\t }).then(function (entry) {\n\t return view.onSubmitSuccess() && _this2.$injector.invoke(view.onSubmitSuccess(), view, {\n\t $event: $event,\n\t entity: _this2.entity,\n\t entry: entry,\n\t controller: _this2,\n\t form: _this2.form,\n\t progression: progression,\n\t notification: notification\n\t });\n\t }).then(function (customHandlerReturnValue) {\n\t if (customHandlerReturnValue === false) return;\n\t $state.go(previousState.name, previousState.params).then(function () {\n\t return progression.done();\n\t }).then(function () {\n\t return $translate('EDITION_SUCCESS');\n\t }).then(function (text) {\n\t return notification.log(text, {\n\t addnCls: 'humane-flatty-success'\n\t });\n\t });\n\t })['catch'](function (error) {\n\t var errorMessage = _this2.config.getErrorMessageFor(_this2.view, error) | 'ERROR_MESSAGE';\n\t var customHandlerReturnValue = view.onSubmitError() && _this2.$injector.invoke(view.onSubmitError(), view, {\n\t $event: $event,\n\t error: error,\n\t errorMessage: errorMessage,\n\t entity: _this2.entity,\n\t entry: entry,\n\t controller: _this2,\n\t form: _this2.form,\n\t progression: progression,\n\t notification: notification\n\t });\n\t if (customHandlerReturnValue === false) return;\n\t progression.done();\n\t $translate(errorMessage, {\n\t status: error && error.status,\n\t details: error && error.data && typeof error.data === 'object' ? JSON.stringify(error.data) : {}\n\t }).then(function (text) {\n\t return notification.log(text, {\n\t addnCls: 'humane-flatty-error'\n\t });\n\t });\n\t });\n\t }\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t this.$scope = undefined;\n\t this.$state = undefined;\n\t this.$injector = undefined;\n\t this.$translate = undefined;\n\t this.previousState = undefined;\n\t this.WriteQueries = undefined;\n\t this.dataStore = undefined;\n\t this.view = undefined;\n\t this.entity = undefined;\n\t }\n\t }]);\n\t\n\t return FormController;\n\t})();\n\t\n\texports['default'] = FormController;\n\t\n\tFormController.$inject = ['$scope', '$state', '$injector', '$translate', 'previousState', 'WriteQueries', 'NgAdminConfiguration', 'progression', 'notification', 'view', 'dataStore'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 121 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar _adminConfigLibEntry = __webpack_require__(2);\n\t\n\tvar _adminConfigLibEntry2 = _interopRequireDefault(_adminConfigLibEntry);\n\t\n\tvar ListController = (function () {\n\t function ListController($scope, $stateParams, $location, $anchorScroll, ReadQueries, progression, view, dataStore, totalItems) {\n\t _classCallCheck(this, ListController);\n\t\n\t this.$scope = $scope;\n\t this.$stateParams = $stateParams;\n\t this.$location = $location;\n\t this.$anchorScroll = $anchorScroll;\n\t this.ReadQueries = ReadQueries;\n\t this.progression = progression;\n\t this.view = view;\n\t this.entity = view.getEntity();\n\t this.loadingPage = false;\n\t this.search = $stateParams.search;\n\t this.dataStore = dataStore;\n\t this.fields = view.fields();\n\t this.listActions = view.listActions();\n\t this.totalItems = totalItems;\n\t this.page = $stateParams.page || 1;\n\t this.infinitePagination = this.view.infinitePagination();\n\t this.entryCssClasses = this.view.getEntryCssClasses.bind(this.view);\n\t this.nextPageCallback = this.nextPage.bind(this);\n\t this.setPageCallback = this.setPage.bind(this);\n\t this.sortField = this.$stateParams.sortField || this.view.getSortFieldName();\n\t this.sortDir = this.$stateParams.sortDir || this.view.sortDir();\n\t if ($scope.selectionUpdater) {\n\t $scope.selection = $scope.selection || [];\n\t $scope.$watch('selection', $scope.selectionUpdater);\n\t } else {\n\t $scope.selection = null;\n\t }\n\t $scope.$on('$destroy', this.destroy.bind(this));\n\t }\n\t\n\t _createClass(ListController, [{\n\t key: 'nextPage',\n\t value: function nextPage(page) {\n\t var _this = this;\n\t\n\t if (this.loadingPage) {\n\t return;\n\t }\n\t var view = this.view,\n\t dataStore = this.dataStore;\n\t this.progression.start();\n\t var references = view.getReferences();\n\t var data = undefined;\n\t this.ReadQueries.getAll(view, page, this.search, this.sortField, this.sortDir).then(function (response) {\n\t data = response.data;\n\t return _this.ReadQueries.getReferenceData(view.fields(), data);\n\t }).then(function (referenceData) {\n\t _this.progression.done();\n\t for (var name in referenceData) {\n\t _adminConfigLibEntry2['default'].createArrayFromRest(referenceData[name], [references[name].targetField()], references[name].targetEntity().name(), references[name].targetEntity().identifier().name()).map(function (entry) {\n\t return dataStore.addEntry(references[name].targetEntity().uniqueId + '_values', entry);\n\t });\n\t }\n\t }).then(function () {\n\t view.mapEntries(data).map(function (entry) {\n\t dataStore.fillReferencesValuesFromEntry(entry, references, true);\n\t dataStore.addEntry(_this.entity.uniqueId, entry);\n\t });\n\t _this.loadingPage = false;\n\t });\n\t }\n\t }, {\n\t key: 'setPage',\n\t value: function setPage(number) {\n\t this.$location.search('page', number);\n\t this.$anchorScroll(0);\n\t }\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t this.$scope = undefined;\n\t this.$stateParams = undefined;\n\t this.$location = undefined;\n\t this.$anchorScroll = undefined;\n\t this.dataStore = undefined;\n\t }\n\t }]);\n\t\n\t return ListController;\n\t})();\n\t\n\texports['default'] = ListController;\n\t\n\tListController.$inject = ['$scope', '$stateParams', '$location', '$anchorScroll', 'ReadQueries', 'progression', 'view', 'dataStore', 'totalItems'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 122 */\n/***/ function(module, exports) {\n\n\t/* globals _ */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tfunction getCurrentSearchParam(location, filters) {\n\t var search = location.search().search ? JSON.parse(location.search().search) : {};\n\t filters.map(function (filter) {\n\t if (search[filter.name()]) {\n\t search[filter.name()] = filter.getMappedValue(search[filter.name()]);\n\t }\n\t });\n\t return search;\n\t}\n\t\n\tvar ListLayoutController = (function () {\n\t function ListLayoutController($scope, $stateParams, $state, $location, $timeout, view, dataStore) {\n\t var _this = this;\n\t\n\t _classCallCheck(this, ListLayoutController);\n\t\n\t this.$scope = $scope;\n\t this.$state = $state;\n\t this.$stateParams = $stateParams;\n\t this.$timeout = $timeout;\n\t this.view = view;\n\t this.dataStore = dataStore;\n\t this.entity = view.getEntity();\n\t this.actions = view.actions();\n\t this.batchActions = view.batchActions();\n\t this.loadingPage = false;\n\t this.filters = view.filters();\n\t this.search = getCurrentSearchParam($location, this.filters);\n\t this.path = $location.path();\n\t // since search isn't a $stateParam of the listLayout state,\n\t // the controller doesn't change when the search changes\n\t // so we must update filter values manually when the location changes\n\t $scope.$watch(function () {\n\t return $location.search() && $location.search().search;\n\t }, function (newval, oldval) {\n\t if (newval === oldval) {\n\t return;\n\t }\n\t if ($location.path() !== _this.path) {\n\t return; // already transitioned to another page\n\t }\n\t _this.search = getCurrentSearchParam($location, _this.filters);\n\t _this.enabledFilters = _this.getEnabledFilters();\n\t });\n\t // apply filters when filter values change\n\t $scope.$watch(function () {\n\t return _this.search;\n\t }, _.debounce(function (newValues, oldValues) {\n\t if (newValues != oldValues) {\n\t _this.updateFilters();\n\t }\n\t }, 500), true);\n\t this.filters = view.filters();\n\t this.enabledFilters = this.getEnabledFilters();\n\t this.hasFilters = Object.keys(this.filters).length > 0;\n\t this.focusedFilterId = null;\n\t this.enableFilter = this.enableFilter.bind(this);\n\t this.removeFilter = this.removeFilter.bind(this);\n\t if (this.batchActions.length) {\n\t // required in scope to communicate with listView\n\t $scope.selectionUpdater = function (selection) {\n\t return $scope.selection = selection;\n\t };\n\t $scope.selection = [];\n\t }\n\t $scope.$on('$destroy', this.destroy.bind(this));\n\t }\n\t\n\t _createClass(ListLayoutController, [{\n\t key: 'enableFilter',\n\t value: function enableFilter(filter) {\n\t var _this2 = this;\n\t\n\t var defaultValue = filter.defaultValue();\n\t if (defaultValue !== null) {\n\t this.search[filter.name()] = defaultValue;\n\t }\n\t this.enabledFilters.push(filter);\n\t this.focusedFilterId = filter.name();\n\t this.$timeout(function () {\n\t var el = window.document.getElementById(_this2.focusedFilterId);\n\t if (el && el.focus) {\n\t el.focus();\n\t }\n\t }, 200, false);\n\t }\n\t }, {\n\t key: 'getEnabledFilters',\n\t value: function getEnabledFilters() {\n\t var _this3 = this;\n\t\n\t return this.filters.filter(function (filter) {\n\t if (filter.pinned()) {\n\t return true;\n\t }\n\t return _this3.search && filter.name() in _this3.search;\n\t });\n\t }\n\t }, {\n\t key: 'updateFilters',\n\t value: function updateFilters() {\n\t var values = {},\n\t filters = this.enabledFilters,\n\t fieldName,\n\t field,\n\t i;\n\t for (i in filters) {\n\t field = filters[i];\n\t fieldName = field.name();\n\t if (this.search[fieldName] === '') {\n\t delete this.search[fieldName];\n\t continue;\n\t }\n\t if (field.type() === 'boolean' && fieldName in this.search || // for boolean false is the same as null\n\t field.type() !== 'boolean' && this.search[fieldName] !== null) {\n\t values[fieldName] = field.getTransformedValue(this.search[fieldName]);\n\t }\n\t }\n\t this.$stateParams.search = values;\n\t this.$stateParams.page = 1;\n\t this.$state.go('list', this.$stateParams);\n\t }\n\t }, {\n\t key: 'removeFilter',\n\t value: function removeFilter(filter) {\n\t delete this.search[filter.name()];\n\t this.enabledFilters = this.enabledFilters.filter(function (f) {\n\t return f !== filter;\n\t });\n\t }\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t this.$scope = undefined;\n\t this.$state = undefined;\n\t this.$stateParams = undefined;\n\t this.$timeout = undefined;\n\t this.dataStore = undefined;\n\t }\n\t }]);\n\t\n\t return ListLayoutController;\n\t})();\n\t\n\texports['default'] = ListLayoutController;\n\t\n\tListLayoutController.$inject = ['$scope', '$stateParams', '$state', '$location', '$timeout', 'view', 'dataStore'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 123 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maDatagrid;\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _maDatagridController = __webpack_require__(124);\n\t\n\tvar _maDatagridController2 = _interopRequireDefault(_maDatagridController);\n\t\n\tfunction maDatagrid() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t name: '@',\n\t entries: '=',\n\t selection: '=',\n\t fields: '&',\n\t listActions: '&',\n\t entity: '&',\n\t entryCssClasses: '&?',\n\t datastore: '&',\n\t sortField: '@',\n\t sortDir: '@',\n\t sort: '&'\n\t },\n\t controllerAs: 'datagrid',\n\t controller: _maDatagridController2['default'],\n\t template: '
\\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n
\\n \\n \\n \\n \\n {{ field.label() | translate }}\\n \\n
\\n \\n \\n \\n \\n \\n
\\n
'\n\t };\n\t}\n\t\n\tmaDatagrid.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 124 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar DatagridController = (function () {\n\t function DatagridController($scope, $location, $stateParams, $anchorScroll, $attrs) {\n\t var _this = this;\n\t\n\t _classCallCheck(this, DatagridController);\n\t\n\t $scope.entity = $scope.entity();\n\t this.$scope = $scope;\n\t this.$location = $location;\n\t this.$anchorScroll = $anchorScroll;\n\t this.datastore = this.$scope.datastore();\n\t this.filters = {};\n\t this.shouldDisplayActions = this.$scope.listActions() && this.$scope.listActions().length > 0;\n\t $scope.getEntryCssClasses = this.getEntryCssClasses.bind(this);\n\t $scope.toggleSelect = this.toggleSelect.bind(this);\n\t $scope.toggleSelectAll = this.toggleSelectAll.bind(this);\n\t $scope.sortField = $attrs.sortField;\n\t $scope.sortDir = $attrs.sortDir;\n\t this.sortField = 'sortField' in $stateParams ? $stateParams.sortField : $attrs.sortField;\n\t this.sortDir = 'sortDir' in $stateParams ? $stateParams.sortDir : $attrs.sortDir;\n\t $attrs.$observe('sortDir', function (sortDir) {\n\t return _this.sortDir = sortDir;\n\t });\n\t $attrs.$observe('sortField', function (sortField) {\n\t return _this.sortField = sortField;\n\t });\n\t this.sortCallback = $scope.sort() ? $scope.sort() : this.sort.bind(this);\n\t }\n\t\n\t /**\n\t * Return true if a column is being sorted\n\t *\n\t * @param {Field} field\n\t *\n\t * @returns {Boolean}\n\t */\n\t\n\t _createClass(DatagridController, [{\n\t key: 'isSorting',\n\t value: function isSorting(field) {\n\t return this.sortField === this.getSortName(field);\n\t }\n\t\n\t /**\n\t * Return 'even'|'odd' based on the index parameter\n\t *\n\t * @param {Number} index\n\t * @returns {string}\n\t */\n\t }, {\n\t key: 'itemClass',\n\t value: function itemClass(index) {\n\t return index % 2 === 0 ? 'even' : 'odd';\n\t }\n\t\n\t /**\n\t *\n\t * @param {Field} field\n\t */\n\t }, {\n\t key: 'sort',\n\t value: function sort(field) {\n\t var dir = 'ASC',\n\t fieldName = this.getSortName(field);\n\t if (this.sortField === fieldName) {\n\t dir = this.sortDir === 'ASC' ? 'DESC' : 'ASC';\n\t }\n\t this.$location.search('sortField', fieldName);\n\t this.$location.search('sortDir', dir);\n\t }\n\t\n\t /**\n\t * Return fieldName like (view.fieldName) to sort\n\t *\n\t * @param {Field} field\n\t *\n\t * @returns {String}\n\t */\n\t }, {\n\t key: 'getSortName',\n\t value: function getSortName(field) {\n\t return this.$scope.name ? this.$scope.name + '.' + field.name() : field.name();\n\t }\n\t }, {\n\t key: 'getEntryCssClasses',\n\t value: function getEntryCssClasses(entry) {\n\t var entryCssClasses = this.$scope.entryCssClasses;\n\t if (typeof entryCssClasses !== 'function') {\n\t return;\n\t }\n\t var getEntryCssClasses = entryCssClasses();\n\t if (typeof getEntryCssClasses !== 'function') {\n\t return;\n\t }\n\t return getEntryCssClasses(entry.values);\n\t }\n\t }, {\n\t key: 'toggleSelect',\n\t value: function toggleSelect(entry) {\n\t var selection = this.$scope.selection.slice();\n\t var index = selection.indexOf(entry);\n\t if (index === -1) {\n\t this.$scope.selection = selection.concat(entry);\n\t return;\n\t }\n\t selection.splice(index, 1);\n\t this.$scope.selection = selection;\n\t }\n\t }, {\n\t key: 'toggleSelectAll',\n\t value: function toggleSelectAll() {\n\t if (this.$scope.selection.length < this.$scope.entries.length) {\n\t this.$scope.selection = this.$scope.entries;\n\t return;\n\t }\n\t this.$scope.selection = [];\n\t }\n\t }]);\n\t\n\t return DatagridController;\n\t})();\n\t\n\texports['default'] = DatagridController;\n\t\n\tDatagridController.$inject = ['$scope', '$location', '$stateParams', '$anchorScroll', '$attrs'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 125 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maDatagridInfinitePagination;\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _angular = __webpack_require__(5);\n\t\n\tvar _angular2 = _interopRequireDefault(_angular);\n\t\n\tfunction maDatagridInfinitePagination($window, $document) {\n\t var windowElement = _angular2['default'].element($window);\n\t var offset = 100,\n\t body = $document[0].body;\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t perPage: '@',\n\t totalItems: '@',\n\t nextPage: '&'\n\t },\n\t link: function link(scope) {\n\t var perPage = parseInt(scope.perPage, 10) || 1,\n\t totalItems = parseInt(scope.totalItems, 10),\n\t nbPages = Math.ceil(totalItems / perPage) || 1,\n\t page = 1;\n\t\n\t function handler() {\n\t if (body.offsetHeight - $window.innerHeight - $window.scrollY < offset) {\n\t if (page >= nbPages) {\n\t return;\n\t }\n\t page++;\n\t scope.nextPage()(page);\n\t }\n\t }\n\t windowElement.bind('scroll', handler);\n\t scope.$on('$destroy', function destroy() {\n\t windowElement.unbind('scroll', handler);\n\t });\n\t }\n\t };\n\t}\n\t\n\tmaDatagridInfinitePagination.$inject = ['$window', '$document'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 126 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maDatagridItemSelector;\n\t\n\tfunction maDatagridItemSelector() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t entry: '=',\n\t selection: '=',\n\t toggleSelect: '&'\n\t },\n\t template: '',\n\t link: function link(scope) {\n\t scope.toggle = function (entry) {\n\t return scope.toggleSelect({\n\t entry: entry\n\t });\n\t };\n\t var e = scope.entry;\n\t scope.isInSelection = function () {\n\t return scope.selection.filter(function (s) {\n\t return s._entityName == e._entityName && s._identifierValue == e._identifierValue;\n\t }).length > 0;\n\t };\n\t }\n\t };\n\t}\n\t\n\tmaDatagridItemSelector.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 127 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maDatagridMultiSelector;\n\t\n\tfunction maDatagridMultiSelector() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t entries: '=',\n\t selection: '=',\n\t toggleSelectAll: '&'\n\t },\n\t template: '',\n\t link: function link(scope, element) {\n\t scope.$watch('selection', function (selection) {\n\t element.children()[0].indeterminate = selection.length > 0 && selection.length != scope.entries.length;\n\t });\n\t scope.$watch('entries', function (entries) {\n\t element.children()[0].indeterminate = scope.selection.length > 0 && scope.selection.length != entries.length;\n\t });\n\t }\n\t };\n\t}\n\t\n\tmaDatagridMultiSelector.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 128 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maDatagridPagination;\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _maDatagridPaginationHtml = __webpack_require__(163);\n\t\n\tvar _maDatagridPaginationHtml2 = _interopRequireDefault(_maDatagridPaginationHtml);\n\t\n\tvar _maDatagridPaginationController = __webpack_require__(129);\n\t\n\tvar _maDatagridPaginationController2 = _interopRequireDefault(_maDatagridPaginationController);\n\t\n\tfunction maDatagridPagination() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t page: '@',\n\t perPage: '@',\n\t totalItems: '@',\n\t setPage: '&'\n\t },\n\t template: _maDatagridPaginationHtml2['default'],\n\t controllerAs: 'paginationCtrl',\n\t controller: _maDatagridPaginationController2['default']\n\t };\n\t}\n\t\n\tmaDatagridPagination.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 129 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar _angular = __webpack_require__(5);\n\t\n\tvar _angular2 = _interopRequireDefault(_angular);\n\t\n\tvar DatagridPaginationController = (function () {\n\t function DatagridPaginationController($scope) {\n\t _classCallCheck(this, DatagridPaginationController);\n\t\n\t this.$scope = $scope;\n\t var perPage = parseInt(this.$scope.perPage, 10) || 1,\n\t totalItems = parseInt(this.$scope.totalItems, 10),\n\t page = Math.max(parseInt(this.$scope.page, 10), 1);\n\t this.nbPages = Math.ceil(totalItems / perPage) || 1;\n\t this.page = Math.min(this.nbPages, page);\n\t this.offsetEnd = Math.min(this.page * perPage, totalItems);\n\t this.offsetBegin = Math.min((this.page - 1) * perPage + 1, this.offsetEnd);\n\t this.totalItems = totalItems;\n\t this.displayPagination = perPage < totalItems;\n\t $scope.$on('$destroy', this.destroy.bind(this));\n\t }\n\t\n\t /**\n\t * Return an array with the range between min & max, useful for pagination\n\t *\n\t * @param {int} min\n\t * @param {int} max\n\t * @returns {Array}\n\t */\n\t\n\t _createClass(DatagridPaginationController, [{\n\t key: 'range',\n\t value: function range(page) {\n\t var input = [],\n\t nbPages = this.nbPages;\n\t // display page links around the current page\n\t if (page > 2) {\n\t input.push('1');\n\t }\n\t if (page == 4) {\n\t input.push('2');\n\t }\n\t if (page > 4) {\n\t input.push('.');\n\t }\n\t if (page > 1) {\n\t input.push(page - 1);\n\t }\n\t input.push(page);\n\t if (page < nbPages) {\n\t input.push(page + 1);\n\t }\n\t if (page == nbPages - 3) {\n\t input.push(nbPages - 1);\n\t }\n\t if (page < nbPages - 3) {\n\t input.push('.');\n\t }\n\t if (page < nbPages - 1) {\n\t input.push(nbPages);\n\t }\n\t return input;\n\t }\n\t\n\t /**\n\t * Link to page number of the list\n\t *\n\t * @param {int} number\n\t */\n\t }, {\n\t key: 'setPage',\n\t value: function setPage(number) {\n\t if (number <= 0 || number > this.nbPages) {\n\t return;\n\t }\n\t this.$scope.setPage()(number);\n\t }\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t this.$scope = undefined;\n\t }\n\t }]);\n\t\n\t return DatagridPaginationController;\n\t})();\n\t\n\texports['default'] = DatagridPaginationController;\n\t\n\tDatagridPaginationController.$inject = ['$scope'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 130 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maListActions;\n\t\n\tfunction maListActions() {\n\t return {\n\t restrict: 'E',\n\t transclude: true,\n\t scope: {\n\t 'buttons': '&',\n\t 'entry': '&',\n\t 'entity': '&'\n\t },\n\t link: function link($scope) {\n\t $scope.buttons = $scope.buttons();\n\t $scope.entry = $scope.entry();\n\t $scope.entity = $scope.entity();\n\t $scope.customTemplate = false;\n\t if (typeof $scope.buttons === 'string') {\n\t $scope.customTemplate = $scope.buttons;\n\t $scope.buttons = null;\n\t }\n\t },\n\t template: '\\n \\n \\n \\n \\n \\n \\n'\n\t };\n\t}\n\t\n\tmaListActions.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 131 */\n/***/ function(module, exports) {\n\n\t// @see https://docs.angularjs.org/api/ng/service/$compile\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = Compile;\n\t\n\tfunction Compile($injector) {\n\t var $compile = $injector.get('$compile');\n\t return {\n\t transclude: true,\n\t link: function link(scope, element, attrs, controller, transcludeFn) {\n\t var unbindWatcher = scope.$watch(function (scope) {\n\t // watch the 'compile' expression for changes\n\t return scope.$eval(attrs.compile);\n\t }, function (value) {\n\t if (false === value) {\n\t // use the default tag content\n\t transcludeFn(scope, function (clone) {\n\t element.append(clone);\n\t });\n\t return;\n\t }\n\t // when the 'compile' expression changes assign it into the current DOM\n\t element.html(value);\n\t // compile the new DOM and link it to the current scope.\n\t $compile(element.contents())(scope);\n\t if (attrs.compileOnce == 'true') {\n\t unbindWatcher();\n\t }\n\t });\n\t }\n\t };\n\t}\n\t\n\tCompile.$inject = ['$injector'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 132 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar EntryFormatter = (function () {\n\t function EntryFormatter($filter) {\n\t _classCallCheck(this, EntryFormatter);\n\t\n\t this.formatDate = function (format) {\n\t return function (date) {\n\t return $filter('date')(date, format);\n\t };\n\t };\n\t this.formatNumber = function (format) {\n\t return function (number) {\n\t return $filter('numeraljs')(number, format);\n\t };\n\t };\n\t }\n\t\n\t _createClass(EntryFormatter, [{\n\t key: 'formatField',\n\t value: function formatField(field) {\n\t var label = field.label() || field.name();\n\t var type = field.type();\n\t switch (type) {\n\t case 'boolean':\n\t case 'choice':\n\t case 'choices':\n\t case 'string':\n\t case 'text':\n\t case 'wysiwyg':\n\t case 'email':\n\t case 'json':\n\t case 'file':\n\t return function (entry) {\n\t return {\n\t name: label,\n\t value: entry.values[field.name()]\n\t };\n\t };\n\t case 'template':\n\t return function (entry) {\n\t return {\n\t name: label,\n\t value: field.getTemplateValue(entry)\n\t };\n\t };\n\t case 'number':\n\t case 'float':\n\t var formatNumber = this.formatNumber(field.format());\n\t return function (entry) {\n\t return {\n\t name: label,\n\t value: formatNumber(entry.values[field.name()])\n\t };\n\t };\n\t case 'date':\n\t case 'datetime':\n\t var format = field.format();\n\t if (!format) {\n\t format = type === 'date' ? 'yyyy-MM-dd' : 'yyyy-MM-dd HH:mm:ss';\n\t }\n\t var formatDate = this.formatDate(format);\n\t return function (entry) {\n\t return {\n\t name: label,\n\t value: formatDate(entry.values[field.name()])\n\t };\n\t };\n\t case 'reference':\n\t return function (entry) {\n\t return {\n\t name: label,\n\t value: entry.listValues[field.name()]\n\t };\n\t };\n\t case 'referenced_many':\n\t case 'referenced_list':\n\t return; //ignored\n\t }\n\t }\n\t }, {\n\t key: 'getFormatter',\n\t value: function getFormatter(fields) {\n\t var fieldsFormatters = fields.map(this.formatField.bind(this));\n\t return function formatEntry(entry) {\n\t var result = {};\n\t fieldsFormatters.map(function (formatter) {\n\t if (!formatter) {\n\t return;\n\t }\n\t return formatter(entry);\n\t }).forEach(function (field) {\n\t if (!field) {\n\t return;\n\t }\n\t result[field.name] = field.value;\n\t });\n\t return result;\n\t };\n\t }\n\t }]);\n\t\n\t return EntryFormatter;\n\t})();\n\t\n\texports['default'] = EntryFormatter;\n\t\n\tEntryFormatter.$inject = ['$filter'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 133 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = PromisesResolver;\n\t\n\tfunction PromisesResolver(AdminDescription) {\n\t return AdminDescription.getPromisesResolver();\n\t}\n\t\n\tPromisesResolver.$inject = ['AdminDescription'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 134 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar RestWrapper = (function () {\n\t function RestWrapper(Restangular) {\n\t _classCallCheck(this, RestWrapper);\n\t\n\t this.Restangular = Restangular;\n\t Restangular.setFullResponse(true);\n\t }\n\t\n\t /**\n\t * Returns the promise of one resource by URL\n\t *\n\t * @param {String} entityName\n\t * @param {String} url\n\t *\n\t * @returns {promise}\n\t */\n\t\n\t _createClass(RestWrapper, [{\n\t key: 'getOne',\n\t value: function getOne(entityName, url) {\n\t return this.Restangular.oneUrl(entityName, url).get().then(function (response) {\n\t return response.data;\n\t });\n\t }\n\t\n\t /**\n\t * Returns the promise of a list of resources\n\t *\n\t * @param {Object} params\n\t * @param {String} entityName\n\t * @param {String} url\n\t *\n\t * @returns {promise}\n\t */\n\t }, {\n\t key: 'getList',\n\t value: function getList(params, entityName, url) {\n\t return this.Restangular.allUrl(entityName, url).getList(params);\n\t }\n\t }, {\n\t key: 'createOne',\n\t value: function createOne(rawEntity, entityName, url, method) {\n\t var resource = this.Restangular.oneUrl(entityName, url),\n\t operation = method ? resource.customOperation(method, null, {}, {}, rawEntity) : resource.customPOST(rawEntity);\n\t return operation.then(function (response) {\n\t return response.data;\n\t });\n\t }\n\t }, {\n\t key: 'updateOne',\n\t value: function updateOne(rawEntity, entityName, url, method) {\n\t var resource = this.Restangular.oneUrl(entityName, url),\n\t operation = method ? resource.customOperation(method, null, {}, {}, rawEntity) : resource.customPUT(rawEntity);\n\t return operation.then(function (response) {\n\t return response.data;\n\t });\n\t }\n\t }, {\n\t key: 'deleteOne',\n\t value: function deleteOne(entityName, url) {\n\t return this.Restangular.oneUrl(entityName, url).customDELETE();\n\t }\n\t }]);\n\t\n\t return RestWrapper;\n\t})();\n\t\n\texports['default'] = RestWrapper;\n\t\n\tRestWrapper.$inject = ['Restangular'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 135 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = ViewActions;\n\t\n\tfunction ViewActions($injector) {\n\t var $compile = $injector.get('$compile');\n\t return {\n\t restrict: 'E',\n\t transclude: true,\n\t scope: {\n\t override: '&',\n\t entry: '=',\n\t entity: '=',\n\t selection: '=',\n\t batchButtons: '&',\n\t datastore: '=',\n\t search: '=',\n\t filters: '&',\n\t enabledFilters: '=',\n\t enableFilter: '&'\n\t },\n\t link: function link($scope, element, attrs, controller, transcludeFn) {\n\t var override = $scope.override();\n\t if (!override) {\n\t // use the default tag content\n\t transcludeFn($scope, function (clone) {\n\t element.append(clone);\n\t });\n\t return;\n\t }\n\t if (typeof override === 'string') {\n\t // custom template, use it instead of default template\n\t element.html(override);\n\t $compile(element.contents())($scope);\n\t return;\n\t }\n\t // list of buttons - default template\n\t $scope.buttons = override;\n\t },\n\t template: '\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n'\n\t };\n\t}\n\t\n\tViewActions.$inject = ['$injector'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 136 */\n/***/ function(module, exports) {\n\n\t/**\n\t * @param {RestWrapper} RestWrapper\n\t * @param {Configuration} Configuration\n\t * @param {AdminDescription} AdminDescription\n\t * @param {PromisesResolver} PromisesResolver\n\t *\n\t * @returns {ReadQueries}\n\t * @constructor\n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = ReadQueries;\n\t\n\tfunction ReadQueries(RestWrapper, Configuration, AdminDescription, PromisesResolver) {\n\t return AdminDescription.getReadQueries(RestWrapper, PromisesResolver, Configuration());\n\t}\n\t\n\tReadQueries.$inject = ['RestWrapper', 'NgAdminConfiguration', 'AdminDescription', 'PromisesResolver'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 137 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar _adminConfigLibEntry = __webpack_require__(2);\n\t\n\tvar _adminConfigLibEntry2 = _interopRequireDefault(_adminConfigLibEntry);\n\t\n\tvar ReferenceRefresher = (function () {\n\t function ReferenceRefresher(ReadQueries) {\n\t _classCallCheck(this, ReferenceRefresher);\n\t\n\t this.ReadQueries = ReadQueries;\n\t }\n\t\n\t _createClass(ReferenceRefresher, [{\n\t key: 'refresh',\n\t value: function refresh(field, currentValue, search) {\n\t var _this = this;\n\t\n\t var referenceFields = {};\n\t referenceFields[field.name()] = field;\n\t var promise = this.ReadQueries.getAllReferencedData(referenceFields, search).then(function (r) {\n\t return r[field.name()];\n\t }).then(function (results) {\n\t return _this._transformRecords(field, results);\n\t });\n\t if (field.type() === 'reference_many' || field.type() === 'choices') {\n\t promise = promise.then(function (formattedResults) {\n\t return _this._removeDuplicates(formattedResults, currentValue);\n\t });\n\t }\n\t return promise;\n\t }\n\t }, {\n\t key: '_removeDuplicates',\n\t value: function _removeDuplicates(results, currentValue) {\n\t // remove already assigned values: ui-select still return them if multiple\n\t if (!currentValue) {\n\t return results;\n\t }\n\t if (!Array.isArray(currentValue)) {\n\t currentValue = [currentValue];\n\t }\n\t return results.filter(function (fr) {\n\t return currentValue.indexOf(fr.value) === -1;\n\t });\n\t }\n\t }, {\n\t key: '_transformRecords',\n\t value: function _transformRecords(field, records) {\n\t var targetEntity = field.targetEntity();\n\t var targetField = field.targetField();\n\t var valueFieldName = targetEntity.identifier().name();\n\t var labelFieldName = targetField.name();\n\t return _adminConfigLibEntry2['default'].createArrayFromRest(records, [targetField], targetEntity.name(), valueFieldName).map(function (r) {\n\t return {\n\t value: r.values[valueFieldName],\n\t label: r.values[labelFieldName]\n\t };\n\t });\n\t }\n\t }]);\n\t\n\t return ReferenceRefresher;\n\t})();\n\t\n\texports['default'] = ReferenceRefresher;\n\t\n\tReferenceRefresher.$inject = ['ReadQueries'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 138 */\n/***/ function(module, exports) {\n\n\t/**\n\t * @param {RestWrapper} RestWrapper\n\t * @param {Configuration} Configuration\n\t * @param {AdminDescription} AdminDescription\n\t * @param {PromisesResolver} PromisesResolver\n\t *\n\t * @returns {ReadQueries}\n\t * @constructor\n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = WriteQueries;\n\t\n\tfunction WriteQueries(RestWrapper, Configuration, AdminDescription, PromisesResolver) {\n\t return AdminDescription.getWriteQueries(RestWrapper, PromisesResolver, Configuration());\n\t}\n\t\n\tWriteQueries.$inject = ['RestWrapper', 'NgAdminConfiguration', 'AdminDescription', 'PromisesResolver'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 139 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _adminConfigLibDataStoreDataStore = __webpack_require__(14);\n\t\n\tvar _adminConfigLibDataStoreDataStore2 = _interopRequireDefault(_adminConfigLibDataStoreDataStore);\n\t\n\tvar _adminConfigLibEntry = __webpack_require__(2);\n\t\n\tvar _adminConfigLibEntry2 = _interopRequireDefault(_adminConfigLibEntry);\n\t\n\tvar _deleteBatchDeleteHtml = __webpack_require__(157);\n\t\n\tvar _deleteBatchDeleteHtml2 = _interopRequireDefault(_deleteBatchDeleteHtml);\n\t\n\tvar _deleteDeleteHtml = __webpack_require__(158);\n\t\n\tvar _deleteDeleteHtml2 = _interopRequireDefault(_deleteDeleteHtml);\n\t\n\tvar _formCreateHtml = __webpack_require__(159);\n\t\n\tvar _formCreateHtml2 = _interopRequireDefault(_formCreateHtml);\n\t\n\tvar _formEditHtml = __webpack_require__(160);\n\t\n\tvar _formEditHtml2 = _interopRequireDefault(_formEditHtml);\n\t\n\tvar _listListHtml = __webpack_require__(161);\n\t\n\tvar _listListHtml2 = _interopRequireDefault(_listListHtml);\n\t\n\tvar _listListLayoutHtml = __webpack_require__(162);\n\t\n\tvar _listListLayoutHtml2 = _interopRequireDefault(_listListLayoutHtml);\n\t\n\tvar _showShowHtml = __webpack_require__(164);\n\t\n\tvar _showShowHtml2 = _interopRequireDefault(_showShowHtml);\n\t\n\tfunction templateProvider(viewName, defaultView) {\n\t return ['$stateParams', 'NgAdminConfiguration', function ($stateParams, Configuration) {\n\t var customTemplate;\n\t var view = Configuration().getViewByEntityAndType($stateParams.entity, viewName);\n\t customTemplate = view.template();\n\t if (customTemplate) {\n\t return customTemplate;\n\t }\n\t customTemplate = Configuration().customTemplate()(viewName);\n\t if (customTemplate) {\n\t return customTemplate;\n\t }\n\t return defaultView;\n\t }];\n\t}\n\t\n\tfunction viewProvider(viewName) {\n\t return ['$stateParams', 'NgAdminConfiguration', function ($stateParams, Configuration) {\n\t var view;\n\t try {\n\t view = Configuration().getViewByEntityAndType($stateParams.entity, viewName);\n\t } catch (e) {\n\t var error404 = new Error('Unknown view or entity name');\n\t error404.status = 404; // trigger the 404 error\n\t throw error404;\n\t }\n\t if (!view.enabled) {\n\t throw new Error('The ' + viewName + ' is disabled for this entity');\n\t }\n\t return view;\n\t }];\n\t}\n\t\n\tfunction routing($stateProvider) {\n\t $stateProvider.state('listLayout', {\n\t abstract: true,\n\t url: '/:entity/list',\n\t params: {\n\t entity: null\n\t },\n\t parent: 'main',\n\t controller: 'ListLayoutController',\n\t controllerAs: 'llCtrl',\n\t templateProvider: templateProvider('ListView', _listListLayoutHtml2['default']),\n\t resolve: {\n\t dataStore: function dataStore() {\n\t return new _adminConfigLibDataStoreDataStore2['default']();\n\t },\n\t view: viewProvider('ListView'),\n\t filterData: ['ReadQueries', 'view', function (ReadQueries, view) {\n\t return ReadQueries.getAllReferencedData(view.getFilterReferences(false));\n\t }],\n\t filterEntries: ['dataStore', 'view', 'filterData', function (dataStore, view, filterData) {\n\t var filters = view.getFilterReferences(false);\n\t for (var name in filterData) {\n\t _adminConfigLibEntry2['default'].createArrayFromRest(filterData[name], [filters[name].targetField()], filters[name].targetEntity().name(), filters[name].targetEntity().identifier().name()).map(function (entry) {\n\t return dataStore.addEntry(filters[name].targetEntity().uniqueId + '_choices', entry);\n\t });\n\t }\n\t }]\n\t }\n\t }).state('list', {\n\t url: '?{search:json}&{page:int}&sortField&sortDir',\n\t params: {\n\t page: {\n\t value: 1,\n\t squash: true\n\t },\n\t search: {\n\t value: {},\n\t squash: true\n\t },\n\t sortField: null,\n\t sortDir: null\n\t },\n\t parent: 'listLayout',\n\t views: {\n\t grid: {\n\t controller: 'ListController',\n\t controllerAs: 'listController',\n\t template: _listListHtml2['default'],\n\t resolve: {\n\t dataStore: function dataStore() {\n\t return new _adminConfigLibDataStoreDataStore2['default']();\n\t },\n\t view: viewProvider('ListView'),\n\t response: ['$stateParams', 'ReadQueries', 'view', function ($stateParams, ReadQueries, view) {\n\t var page = $stateParams.page,\n\t filters = $stateParams.search,\n\t sortField = $stateParams.sortField,\n\t sortDir = $stateParams.sortDir;\n\t return ReadQueries.getAll(view, page, filters, sortField, sortDir);\n\t }],\n\t totalItems: ['response', function (response) {\n\t return response.totalItems;\n\t }],\n\t referenceData: ['ReadQueries', 'view', 'response', function (ReadQueries, view, response) {\n\t return ReadQueries.getReferenceData(view.fields(), response.data);\n\t }],\n\t referenceEntries: ['dataStore', 'view', 'referenceData', function (dataStore, view, referenceData) {\n\t var references = view.getReferences();\n\t for (var name in referenceData) {\n\t _adminConfigLibEntry2['default'].createArrayFromRest(referenceData[name], [references[name].targetField()], references[name].targetEntity().name(), references[name].targetEntity().identifier().name()).map(function (entry) {\n\t return dataStore.addEntry(references[name].targetEntity().uniqueId + '_values', entry);\n\t });\n\t }\n\t }],\n\t entries: ['dataStore', 'view', 'response', 'referenceEntries', function (dataStore, view, response, referenceEntries) {\n\t var entries = view.mapEntries(response.data);\n\t // shortcut to diplay collection of entry with included referenced values\n\t dataStore.fillReferencesValuesFromCollection(entries, view.getReferences(), true);\n\t // set entries here ???\n\t dataStore.setEntries(view.getEntity().uniqueId, entries);\n\t return entries;\n\t }],\n\t prepare: ['view', '$stateParams', 'dataStore', 'entries', '$window', '$injector', function (view, $stateParams, dataStore, entries, $window, $injector) {\n\t return view.prepare() && $injector.invoke(view.prepare(), view, {\n\t query: $stateParams,\n\t datastore: dataStore,\n\t view: view,\n\t Entry: _adminConfigLibEntry2['default'],\n\t entries: entries,\n\t window: $window\n\t });\n\t }]\n\t }\n\t }\n\t }\n\t });\n\t $stateProvider.state('show', {\n\t parent: 'main',\n\t url: '/:entity/show/:id?sortField&sortDir',\n\t controller: 'ShowController',\n\t controllerAs: 'showController',\n\t templateProvider: templateProvider('ShowView', _showShowHtml2['default']),\n\t params: {\n\t entity: null,\n\t id: null,\n\t page: {\n\t value: 1,\n\t squash: true\n\t },\n\t search: {\n\t value: {},\n\t squash: true\n\t },\n\t sortField: null,\n\t sortDir: null\n\t },\n\t resolve: {\n\t dataStore: function dataStore() {\n\t return new _adminConfigLibDataStoreDataStore2['default']();\n\t },\n\t view: viewProvider('ShowView'),\n\t rawEntry: ['$stateParams', 'ReadQueries', 'view', function ($stateParams, ReadQueries, view) {\n\t return ReadQueries.getOne(view.getEntity(), view.type, $stateParams.id, view.identifier(), view.getUrl());\n\t }],\n\t entry: ['view', 'rawEntry', function (view, rawEntry) {\n\t return view.mapEntry(rawEntry);\n\t }],\n\t referenceData: ['ReadQueries', 'view', 'entry', function (ReadQueries, view, entry) {\n\t return ReadQueries.getReferenceData(view.fields(), [entry.values]);\n\t }],\n\t referenceEntries: ['dataStore', 'view', 'referenceData', function (dataStore, view, referenceData) {\n\t var references = view.getReferences();\n\t for (var name in referenceData) {\n\t _adminConfigLibEntry2['default'].createArrayFromRest(referenceData[name], [references[name].targetField()], references[name].targetEntity().name(), references[name].targetEntity().identifier().name()).map(function (entry) {\n\t return dataStore.addEntry(references[name].targetEntity().uniqueId + '_values', entry);\n\t });\n\t }\n\t }],\n\t referencedListData: ['$stateParams', 'ReadQueries', 'view', 'entry', function ($stateParams, ReadQueries, view, entry) {\n\t return ReadQueries.getReferencedListData(view.getReferencedLists(), $stateParams.sortField, $stateParams.sortDir, entry.identifierValue);\n\t }],\n\t referencedListEntries: ['dataStore', 'view', 'referencedListData', function (dataStore, view, referencedListData) {\n\t var referencedLists = view.getReferencedLists();\n\t for (var name in referencedLists) {\n\t _adminConfigLibEntry2['default'].createArrayFromRest(referencedListData[name], referencedLists[name].targetFields(), referencedLists[name].targetEntity().name(), referencedLists[name].targetEntity().identifier().name()).map(function (entry) {\n\t return dataStore.addEntry(referencedLists[name].targetEntity().uniqueId + '_list', entry);\n\t });\n\t }\n\t }],\n\t entryWithReferences: ['dataStore', 'view', 'entry', 'referenceEntries', function (dataStore, view, entry, referenceEntries) {\n\t dataStore.fillReferencesValuesFromEntry(entry, view.getReferences(), true);\n\t dataStore.addEntry(view.getEntity().uniqueId, entry);\n\t }],\n\t referenceDataForReferencedLists: ['$q', 'ReadQueries', 'view', 'referencedListData', function ($q, ReadQueries, view, referencedListData) {\n\t var referencedLists = view.getReferencedLists();\n\t var promises = {};\n\t Object.keys(referencedLists).map(function (name) {\n\t promises[name] = ReadQueries.getReferenceData(referencedLists[name].targetFields(), referencedListData[name]);\n\t });\n\t return $q.all(promises);\n\t }],\n\t referenceEntriesForReferencedLists: ['dataStore', 'view', 'referenceDataForReferencedLists', function (dataStore, view, referenceDataForReferencedLists) {\n\t var referencedLists = view.getReferencedLists();\n\t Object.keys(referencedLists).map(function (referencedListName) {\n\t var references = referencedLists[referencedListName].getReferences();\n\t for (var name in references) {\n\t if (!referenceDataForReferencedLists[referencedListName][name]) {\n\t continue;\n\t }\n\t _adminConfigLibEntry2['default'].createArrayFromRest(referenceDataForReferencedLists[referencedListName][name], [references[name].targetField()], references[name].targetEntity().name(), references[name].targetEntity().identifier().name()).map(function (entry) {\n\t return dataStore.addEntry(references[name].targetEntity().uniqueId + '_values', entry);\n\t });\n\t }\n\t });\n\t return true;\n\t }],\n\t prepare: ['view', '$stateParams', 'dataStore', 'entry', 'entryWithReferences', 'referencedListEntries', 'referenceEntriesForReferencedLists', '$window', '$injector', function (view, $stateParams, dataStore, entry, entryWithReferences, referencedListEntries, referenceEntriesForReferencedLists, $window, $injector) {\n\t return view.prepare() && $injector.invoke(view.prepare(), view, {\n\t query: $stateParams,\n\t datastore: dataStore,\n\t view: view,\n\t Entry: _adminConfigLibEntry2['default'],\n\t entry: entry,\n\t window: $window\n\t });\n\t }]\n\t }\n\t });\n\t $stateProvider.state('create', {\n\t parent: 'main',\n\t url: '/:entity/create?{defaultValues:json}',\n\t controller: 'FormController',\n\t controllerAs: 'formController',\n\t templateProvider: templateProvider('CreateView', _formCreateHtml2['default']),\n\t params: {\n\t page: {\n\t value: 1,\n\t squash: true\n\t },\n\t search: {\n\t value: {},\n\t squash: true\n\t },\n\t defaultValues: {\n\t value: {},\n\t squash: true\n\t },\n\t sortField: null,\n\t sortDir: null\n\t },\n\t resolve: {\n\t dataStore: function dataStore() {\n\t return new _adminConfigLibDataStoreDataStore2['default']();\n\t },\n\t previousState: ['$state', '$stateParams', function ($state, $stateParams) {\n\t return {\n\t name: $state.current.name || 'edit',\n\t params: Object.keys($state.params).length > 0 ? $state.params : $stateParams\n\t };\n\t }],\n\t view: viewProvider('CreateView'),\n\t entry: ['$stateParams', 'dataStore', 'view', function ($stateParams, dataStore, view) {\n\t var entry = _adminConfigLibEntry2['default'].createForFields(view.getFields(), view.entity.name());\n\t Object.keys($stateParams.defaultValues).forEach(function (key) {\n\t return entry.values[key] = $stateParams.defaultValues[key];\n\t });\n\t dataStore.addEntry(view.getEntity().uniqueId, entry);\n\t return entry;\n\t }],\n\t choiceData: ['ReadQueries', 'view', function (ReadQueries, view) {\n\t return ReadQueries.getAllReferencedData(view.getReferences(false));\n\t }],\n\t choiceEntries: ['dataStore', 'view', 'choiceData', function (dataStore, view, filterData) {\n\t var choices = view.getReferences(false);\n\t for (var name in filterData) {\n\t _adminConfigLibEntry2['default'].createArrayFromRest(filterData[name], [choices[name].targetField()], choices[name].targetEntity().name(), choices[name].targetEntity().identifier().name()).map(function (entry) {\n\t return dataStore.addEntry(choices[name].targetEntity().uniqueId + '_choices', entry);\n\t });\n\t }\n\t }],\n\t prepare: ['view', '$stateParams', 'dataStore', 'entry', 'choiceEntries', '$window', '$injector', function (view, $stateParams, dataStore, entry, choiceEntries, $window, $injector) {\n\t return view.prepare() && $injector.invoke(view.prepare(), view, {\n\t query: $stateParams,\n\t datastore: dataStore,\n\t view: view,\n\t Entry: _adminConfigLibEntry2['default'],\n\t entry: entry,\n\t window: $window\n\t });\n\t }]\n\t }\n\t });\n\t $stateProvider.state('edit', {\n\t parent: 'main',\n\t url: '/:entity/edit/:id?sortField&sortDir',\n\t controller: 'FormController',\n\t controllerAs: 'formController',\n\t templateProvider: templateProvider('EditView', _formEditHtml2['default']),\n\t params: {\n\t entity: null,\n\t id: null,\n\t page: {\n\t value: 1,\n\t squash: true\n\t },\n\t search: {\n\t value: {},\n\t squash: true\n\t },\n\t sortField: null,\n\t sortDir: null\n\t },\n\t resolve: {\n\t dataStore: function dataStore() {\n\t return new _adminConfigLibDataStoreDataStore2['default']();\n\t },\n\t previousState: ['$state', '$stateParams', function ($state, $stateParams) {\n\t return {\n\t name: $state.current.name || 'edit',\n\t params: Object.keys($state.params).length > 0 ? $state.params : $stateParams\n\t };\n\t }],\n\t view: viewProvider('EditView'),\n\t rawEntry: ['$stateParams', 'ReadQueries', 'view', function ($stateParams, ReadQueries, view) {\n\t return ReadQueries.getOne(view.getEntity(), view.type, $stateParams.id, view.identifier(), view.getUrl($stateParams.id));\n\t }],\n\t entry: ['view', 'rawEntry', function (view, rawEntry) {\n\t return view.mapEntry(rawEntry);\n\t }],\n\t referenceData: ['ReadQueries', 'view', 'entry', function (ReadQueries, view, entry) {\n\t return ReadQueries.getReferenceData(view.fields(), [entry.values]);\n\t }],\n\t referenceEntries: ['dataStore', 'view', 'referenceData', function (dataStore, view, referenceData) {\n\t var references = view.getReferences();\n\t for (var name in referenceData) {\n\t _adminConfigLibEntry2['default'].createArrayFromRest(referenceData[name], [references[name].targetField()], references[name].targetEntity().name(), references[name].targetEntity().identifier().name()).map(function (entry) {\n\t return dataStore.addEntry(references[name].targetEntity().uniqueId + '_values', entry);\n\t });\n\t }\n\t }],\n\t referencedListData: ['$stateParams', 'ReadQueries', 'view', 'entry', function ($stateParams, ReadQueries, view, entry) {\n\t return ReadQueries.getReferencedListData(view.getReferencedLists(), $stateParams.sortField, $stateParams.sortDir, entry.identifierValue);\n\t }],\n\t referencedListEntries: ['dataStore', 'view', 'referencedListData', function (dataStore, view, referencedListData) {\n\t var referencedLists = view.getReferencedLists();\n\t for (var name in referencedLists) {\n\t _adminConfigLibEntry2['default'].createArrayFromRest(referencedListData[name], referencedLists[name].targetFields(), referencedLists[name].targetEntity().name(), referencedLists[name].targetEntity().identifier().name()).map(function (entry) {\n\t return dataStore.addEntry(referencedLists[name].targetEntity().uniqueId + '_list', entry);\n\t });\n\t }\n\t }],\n\t entryWithReferences: ['dataStore', 'view', 'entry', 'referenceEntries', function (dataStore, view, entry, referenceEntries) {\n\t dataStore.fillReferencesValuesFromEntry(entry, view.getReferences(), true);\n\t dataStore.addEntry(view.getEntity().uniqueId, entry);\n\t }],\n\t choiceData: ['ReadQueries', 'view', function (ReadQueries, view) {\n\t return ReadQueries.getAllReferencedData(view.getReferences(false));\n\t }],\n\t choiceEntries: ['dataStore', 'view', 'choiceData', function (dataStore, view, filterData) {\n\t var choices = view.getReferences(false);\n\t for (var name in filterData) {\n\t _adminConfigLibEntry2['default'].createArrayFromRest(filterData[name], [choices[name].targetField()], choices[name].targetEntity().name(), choices[name].targetEntity().identifier().name()).map(function (entry) {\n\t return dataStore.addEntry(choices[name].targetEntity().uniqueId + '_choices', entry);\n\t });\n\t }\n\t }],\n\t referenceDataForReferencedLists: ['$q', 'ReadQueries', 'view', 'referencedListData', function ($q, ReadQueries, view, referencedListData) {\n\t var referencedLists = view.getReferencedLists();\n\t var promises = {};\n\t Object.keys(referencedLists).map(function (name) {\n\t promises[name] = ReadQueries.getReferenceData(referencedLists[name].targetFields(), referencedListData[name]);\n\t });\n\t return $q.all(promises);\n\t }],\n\t referenceEntriesForReferencedLists: ['dataStore', 'view', 'referenceDataForReferencedLists', function (dataStore, view, referenceDataForReferencedLists) {\n\t var referencedLists = view.getReferencedLists();\n\t Object.keys(referencedLists).map(function (referencedListName) {\n\t var references = referencedLists[referencedListName].getReferences();\n\t for (var name in references) {\n\t if (!referenceDataForReferencedLists[referencedListName][name]) {\n\t continue;\n\t }\n\t _adminConfigLibEntry2['default'].createArrayFromRest(referenceDataForReferencedLists[referencedListName][name], [references[name].targetField()], references[name].targetEntity().name(), references[name].targetEntity().identifier().name()).map(function (entry) {\n\t return dataStore.addEntry(references[name].targetEntity().uniqueId + '_values', entry);\n\t });\n\t }\n\t });\n\t return true;\n\t }],\n\t prepare: ['view', '$stateParams', 'dataStore', 'entry', 'referenceEntriesForReferencedLists', 'choiceEntries', 'entryWithReferences', '$window', '$injector', function (view, $stateParams, dataStore, entry, referenceEntriesForReferencedLists, choiceEntries, entryWithReferences, $window, $injector) {\n\t return view.prepare() && $injector.invoke(view.prepare(), view, {\n\t query: $stateParams,\n\t datastore: dataStore,\n\t view: view,\n\t Entry: _adminConfigLibEntry2['default'],\n\t entry: entry,\n\t window: $window\n\t });\n\t }]\n\t }\n\t });\n\t $stateProvider.state('delete', {\n\t parent: 'main',\n\t url: '/:entity/delete/:id',\n\t controller: 'DeleteController',\n\t controllerAs: 'deleteController',\n\t templateProvider: templateProvider('DeleteView', _deleteDeleteHtml2['default']),\n\t params: {\n\t page: {\n\t value: 1,\n\t squash: true\n\t },\n\t search: {\n\t value: {},\n\t squash: true\n\t },\n\t sortField: null,\n\t sortDir: null\n\t },\n\t resolve: {\n\t dataStore: function dataStore() {\n\t return new _adminConfigLibDataStoreDataStore2['default']();\n\t },\n\t view: viewProvider('DeleteView'),\n\t params: ['$stateParams', function ($stateParams) {\n\t return $stateParams;\n\t }],\n\t rawEntry: ['$stateParams', 'ReadQueries', 'view', function ($stateParams, ReadQueries, view) {\n\t return ReadQueries.getOne(view.getEntity(), view.type, $stateParams.id, view.identifier(), view.getUrl());\n\t }],\n\t entry: ['view', 'rawEntry', function (view, rawEntry) {\n\t return view.mapEntry(rawEntry);\n\t }],\n\t prepare: ['view', '$stateParams', 'dataStore', 'entry', '$window', '$injector', function (view, $stateParams, dataStore, entry, $window, $injector) {\n\t return view.prepare() && $injector.invoke(view.prepare(), view, {\n\t query: $stateParams,\n\t datastore: dataStore,\n\t view: view,\n\t Entry: _adminConfigLibEntry2['default'],\n\t entry: entry,\n\t window: $window\n\t });\n\t }]\n\t }\n\t });\n\t $stateProvider.state('batchDelete', {\n\t parent: 'main',\n\t url: '/:entity/batch-delete/{ids:json}',\n\t controller: 'BatchDeleteController',\n\t controllerAs: 'batchDeleteController',\n\t templateProvider: templateProvider('BatchDeleteView', _deleteBatchDeleteHtml2['default']),\n\t params: {\n\t entity: null,\n\t ids: [],\n\t page: {\n\t value: 1,\n\t squash: true\n\t },\n\t search: {\n\t value: {},\n\t squash: true\n\t },\n\t sortField: null,\n\t sortDir: null\n\t },\n\t resolve: {\n\t view: viewProvider('BatchDeleteView'),\n\t params: ['$stateParams', function ($stateParams) {\n\t return $stateParams;\n\t }]\n\t }\n\t });\n\t}\n\trouting.$inject = ['$stateProvider'];\n\texports['default'] = routing;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 140 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar ShowController = (function () {\n\t function ShowController($scope, $location, view, dataStore) {\n\t _classCallCheck(this, ShowController);\n\t\n\t this.$scope = $scope;\n\t this.$location = $location;\n\t this.title = view.title();\n\t this.description = view.description();\n\t this.actions = view.actions();\n\t this.fields = view.fields();\n\t this.$scope.entry = dataStore.getFirstEntry(view.getEntity().uniqueId);\n\t this.$scope.view = view;\n\t this.view = view;\n\t this.entity = this.view.getEntity();\n\t this.dataStore = dataStore;\n\t $scope.$on('$destroy', this.destroy.bind(this));\n\t }\n\t\n\t _createClass(ShowController, [{\n\t key: 'destroy',\n\t value: function destroy() {\n\t this.$scope = undefined;\n\t this.$location = undefined;\n\t this.view = undefined;\n\t this.entity = undefined;\n\t this.dataStore = undefined;\n\t }\n\t }]);\n\t\n\t return ShowController;\n\t})();\n\t\n\texports['default'] = ShowController;\n\t\n\tShowController.$inject = ['$scope', '$location', 'view', 'dataStore'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 141 */\n/***/ function(module, exports) {\n\n\t/**\n\t * A directive containing a label and a column\n\t *\n\t * To be used in the showView\n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maShowItem;\n\t\n\tfunction maShowItem() {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t field: '&',\n\t entry: '&',\n\t entity: '&',\n\t datastore: '&'\n\t },\n\t link: {\n\t pre: function pre(scope) {\n\t scope.field = scope.field();\n\t scope.entry = scope.entry();\n\t scope.entity = scope.entity();\n\t scope.datastore = scope.datastore();\n\t }\n\t },\n\t template: '
\\n \\n
\\n
\\n \\n
\\n
\\n
'\n\t };\n\t}\n\t\n\tmaShowItem.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 142 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maJsonValidator;\n\t\n\tfunction maJsonValidator() {\n\t return {\n\t require: 'ngModel',\n\t link: function link(scope, elm, attr, ctrl) {\n\t ctrl.$validators.json = function (value) {\n\t if (ctrl.$isEmpty(value)) {\n\t return true;\n\t }\n\t try {\n\t angular.fromJson(value);\n\t return true;\n\t } catch (e) {\n\t return false;\n\t }\n\t };\n\t }\n\t };\n\t}\n\t\n\tmaJsonValidator.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 143 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _angular = __webpack_require__(5);\n\t\n\tvar _angular2 = _interopRequireDefault(_angular);\n\t\n\t__webpack_require__(22);\n\t__webpack_require__(181);\n\tvar MainModule = _angular2['default'].module('main', ['ui.router', 'restangular', 'pascalprecht.translate']);\n\tMainModule.controller('AppController', __webpack_require__(144));\n\tMainModule.controller('DashboardController', __webpack_require__(145));\n\tMainModule.provider('NgAdminConfiguration', __webpack_require__(150));\n\tMainModule.filter('orderElement', __webpack_require__(148));\n\tMainModule.filter('stripTags', __webpack_require__(149));\n\tMainModule.directive('maDashboardPanel', __webpack_require__(146));\n\tMainModule.directive('maMenuBar', __webpack_require__(147));\n\tMainModule.config(__webpack_require__(151));\n\tMainModule.config(__webpack_require__(152));\n\tMainModule.config(__webpack_require__(153));\n\tMainModule.run(__webpack_require__(154));\n\tMainModule.run(__webpack_require__(155));\n\n/***/ },\n/* 144 */\n/***/ function(module, exports) {\n\n\t/**\n\t * @param {$scope} $scope\n\t * @param {$state} $state\n\t * @param {NgAdmin} Configuration\n\t * @constructor\n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar AppController = (function () {\n\t function AppController($scope, $state, Configuration) {\n\t _classCallCheck(this, AppController);\n\t\n\t var application = Configuration();\n\t this.$scope = $scope;\n\t this.$state = $state;\n\t this.$scope.isCollapsed = true;\n\t this.menu = application.menu();\n\t this.applicationName = application.title();\n\t this.header = application.header();\n\t $scope.$on('$destroy', this.destroy.bind(this));\n\t }\n\t\n\t _createClass(AppController, [{\n\t key: 'displayHome',\n\t value: function displayHome() {\n\t this.$state.go(this.$state.get('dashboard'));\n\t }\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t this.$scope = undefined;\n\t this.$state = undefined;\n\t }\n\t }]);\n\t\n\t return AppController;\n\t})();\n\t\n\texports['default'] = AppController;\n\t\n\tAppController.$inject = ['$scope', '$state', 'NgAdminConfiguration'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 145 */\n/***/ function(module, exports) {\n\n\t/**\n\t * @param {$scope} $scope\n\t * @param {$state} $state\n\t * @param {PanelBuilder} PanelBuilder\n\t * @constructor\n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar DashboardController = (function () {\n\t function DashboardController($scope, $state, collections, entries, hasEntities, dataStore) {\n\t _classCallCheck(this, DashboardController);\n\t\n\t this.$state = $state;\n\t this.collections = collections;\n\t this.entries = entries;\n\t this.hasEntities = hasEntities;\n\t this.datastore = dataStore;\n\t $scope.$on('$destroy', this.destroy.bind(this));\n\t }\n\t\n\t _createClass(DashboardController, [{\n\t key: 'gotoList',\n\t value: function gotoList(entityName) {\n\t this.$state.go(this.$state.get('list'), {\n\t entity: entityName\n\t });\n\t }\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t this.$state = undefined;\n\t }\n\t }]);\n\t\n\t return DashboardController;\n\t})();\n\t\n\texports['default'] = DashboardController;\n\t\n\tDashboardController.$inject = ['$scope', '$state', 'collections', 'entries', 'hasEntities', 'dataStore'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 146 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maDashboardPanel;\n\t\n\tfunction maDashboardPanel($state) {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t collection: '&',\n\t entries: '&',\n\t datastore: '&'\n\t },\n\t link: function link(scope) {\n\t scope.gotoList = function () {\n\t $state.go($state.get('list'), {\n\t entity: scope.collection().entity.name()\n\t });\n\t };\n\t },\n\t template: '\\n\\n'\n\t };\n\t}\n\t\n\tmaDashboardPanel.$inject = ['$state'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 147 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = maMenuBar;\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _viewMenuBarHtml = __webpack_require__(168);\n\t\n\tvar _viewMenuBarHtml2 = _interopRequireDefault(_viewMenuBarHtml);\n\t\n\tvar _angular = __webpack_require__(5);\n\t\n\tvar _angular2 = _interopRequireDefault(_angular);\n\t\n\tfunction maMenuBar($location, $rootScope, $compile) {\n\t return {\n\t restrict: 'E',\n\t scope: {\n\t 'menu': '&'\n\t },\n\t link: function link(scope, element) {\n\t scope.menu = scope.menu();\n\t scope.path = $location.path();\n\t var jqWindow = $(window);\n\t // initialize openMenus\n\t var openMenus = scope.menu.children().filter(function (menu) {\n\t return menu.isChildActive(scope.path);\n\t });\n\t // manually render on change to avoid checking menu.isActive at each dirty check\n\t var listener = $rootScope.$on('$locationChangeSuccess', function () {\n\t scope.path = $location.path();\n\t render();\n\t });\n\t $rootScope.$on('$destroy', listener);\n\t scope.toggleMenu = function (menu) {\n\t // handle click on parent menu manually\n\t // because we chose bindOnce in the template for performance reasons\n\t if (openMenus.indexOf(menu) !== -1) {\n\t // menu is already open, the click closes it\n\t // except if a submenu is open\n\t if (menu.isChildActive(scope.path)) {\n\t return;\n\t }\n\t openMenus.splice(openMenus.indexOf(menu), 1);\n\t closeMenu(menu);\n\t } else {\n\t // menu is closed, the click opens it\n\t openMenus.push(menu);\n\t openMenu(menu);\n\t }\n\t // we don't render() in that case because it would cut the animation\n\t return;\n\t };\n\t scope.activateLink = function (menu) {\n\t if (!menu.link()) {\n\t return;\n\t }\n\t // close all open menus\n\t // no need to close the menus with animation using closeMenu(),\n\t // the menu will rerender anyway because of the listener on $locationChangeSuccess\n\t // so the animation don't work in that case\n\t if (menu.autoClose()) {\n\t openMenus = [];\n\t }\n\t };\n\t scope.hoverItem = function ($event) {\n\t scope.showHoverElem = true;\n\t scope.hoverElemHeight = $event.currentTarget.clientHeight;\n\t var menuTopValue = 66;\n\t scope.hoverElemTop = $event.currentTarget.getBoundingClientRect().top - menuTopValue;\n\t };\n\t scope.isOpen = function (menu) {\n\t return menu.isChildActive(scope.path) || openMenus.indexOf(menu) !== -1;\n\t };\n\t render();\n\t scope.shouldMenuBeCollapsed = shouldMenuBeCollapsed;\n\t scope.canSidebarBeHidden = canSidebarBeHidden;\n\t\n\t function setMenuCollapsed(isCollapsed) {\n\t console.log(isCollapsed);\n\t isMenuCollapsed = isCollapsed;\n\t }\n\t\n\t function isMenuCollapsed() {\n\t return isMenuCollapsed;\n\t }\n\t\n\t function toggleMenuCollapsed() {\n\t isMenuCollapsed = !isMenuCollapsed;\n\t }\n\t scope.$on('$stateChangeSuccess', function () {\n\t if (canSidebarBeHidden()) {\n\t setMenuCollapsed(true);\n\t }\n\t });\n\t\n\t function shouldMenuBeCollapsed() {\n\t return window.innerWidth <= 1200;\n\t }\n\t\n\t function canSidebarBeHidden() {\n\t return window.innerWidth <= 500;\n\t }\n\t\n\t function render() {\n\t element.html(_viewMenuBarHtml2['default']);\n\t $compile(element.contents())(scope);\n\t }\n\t\n\t function closeMenu(menu) {\n\t var elements = getElementsForMenu(menu);\n\t elements.ul.addClass('collapsed');\n\t elements.arrow.removeClass('glyphicon-menu-down');\n\t elements.arrow.addClass('glyphicon-menu-right');\n\t var elements_sidebar = elements.ul.parents('.al-sidebar-list-item');\n\t elements_sidebar.removeClass('ba-sidebar-item-expanded');\n\t }\n\t\n\t function openMenu(menu) {\n\t var elements = getElementsForMenu(menu);\n\t elements.ul.removeClass('collapsed');\n\t elements.arrow.removeClass('glyphicon-menu-right');\n\t elements.arrow.addClass('glyphicon-menu-down');\n\t var elements_sidebar = elements.ul.parents('.al-sidebar-list-item');\n\t elements_sidebar.addClass('ba-sidebar-item-expanded');\n\t }\n\t\n\t function getElementsForMenu(menu) {\n\t var parentLi;\n\t _angular2['default'].forEach(element.find('li'), function (li) {\n\t var liElement = _angular2['default'].element(li);\n\t if (liElement.attr('data-menu-id') == menu.uuid) {\n\t parentLi = liElement;\n\t }\n\t });\n\t return {\n\t arrow: _angular2['default'].element(parentLi.find('a')[0].getElementsByClassName('arrow')[0]),\n\t ul: parentLi.find('ul').eq(0)\n\t };\n\t }\n\t scope.menuHeight = element[0].childNodes[0].clientHeight - 84;\n\t jqWindow.on('click', _onWindowClick);\n\t jqWindow.on('resize', _onWindowResize);\n\t scope.$on('$destroy', function () {\n\t jqWindow.off('click', _onWindowClick);\n\t jqWindow.off('resize', _onWindowResize);\n\t });\n\t\n\t function _onWindowClick($evt) {\n\t if (isDescendant(element[0], $evt.target) && !$evt.originalEvent.$sidebarEventProcessed && !isMenuCollapsed() && canSidebarBeHidden()) {\n\t $evt.originalEvent.$sidebarEventProcessed = true;\n\t $timeout(function () {\n\t setMenuCollapsed(true);\n\t }, 10);\n\t }\n\t }\n\t\n\t function isDescendant(parent, child) {\n\t var node = child.parentNode;\n\t while (node != null) {\n\t if (node == parent) {\n\t return true;\n\t }\n\t node = node.parentNode;\n\t }\n\t return false;\n\t }\n\t // watch window resize to change menu collapsed state if needed\n\t function _onWindowResize() {\n\t var newMenuCollapsed = shouldMenuBeCollapsed();\n\t var newMenuHeight = _calculateMenuHeight();\n\t if (newMenuCollapsed != isMenuCollapsed() || scope.menuHeight != newMenuHeight) {\n\t scope.$apply(function () {\n\t scope.menuHeight = newMenuHeight;\n\t setMenuCollapsed(newMenuCollapsed);\n\t });\n\t }\n\t }\n\t\n\t function _calculateMenuHeight() {\n\t return element[0].childNodes[0].clientHeight - 84;\n\t }\n\t }\n\t };\n\t}\n\t\n\tmaMenuBar.$inject = ['$location', '$rootScope', '$compile'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 148 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = OrderElement;\n\t\n\tfunction OrderElement() {\n\t return function (input) {\n\t var results = [],\n\t objectKey;\n\t for (objectKey in input) {\n\t results.push(input[objectKey]);\n\t }\n\t results.sort(function (field1, field2) {\n\t return typeof field1.order === 'function' ? field1.order() - field2.order() : field1.order - field2.order;\n\t });\n\t return results;\n\t };\n\t}\n\t\n\tOrderElement.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 149 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = stripTags;\n\t\n\tfunction stripTags() {\n\t return function (input) {\n\t return input.replace(/(<([^>]+)>)/ig, '');\n\t };\n\t}\n\t\n\tstripTags.$inject = [];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 150 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\t\n\tvar NgAdminConfiguration = (function () {\n\t function NgAdminConfiguration($compileProvider) {\n\t _classCallCheck(this, NgAdminConfiguration);\n\t\n\t this.config = null;\n\t this.adminDescription = null;\n\t this.$compileProvider = $compileProvider;\n\t }\n\t\n\t _createClass(NgAdminConfiguration, [{\n\t key: 'setAdminDescription',\n\t value: function setAdminDescription(adminDescription) {\n\t this.adminDescription = adminDescription;\n\t }\n\t }, {\n\t key: 'configure',\n\t value: function configure(config) {\n\t this.config = config;\n\t this.$compileProvider.debugInfoEnabled(this.config.debug());\n\t }\n\t }, {\n\t key: '$get',\n\t value: function $get() {\n\t var config = this.config;\n\t return function () {\n\t return config;\n\t };\n\t }\n\t }, {\n\t key: 'application',\n\t value: function application(name, debug) {\n\t return this.adminDescription.application(name, debug);\n\t }\n\t }, {\n\t key: 'entity',\n\t value: function entity(name) {\n\t return this.adminDescription.entity(name);\n\t }\n\t }, {\n\t key: 'field',\n\t value: function field(name, type) {\n\t return this.adminDescription.field(name, type);\n\t }\n\t }, {\n\t key: 'registerFieldType',\n\t value: function registerFieldType(name, type) {\n\t return this.adminDescription.registerFieldType(name, type);\n\t }\n\t }, {\n\t key: 'getFieldConstructor',\n\t value: function getFieldConstructor(name) {\n\t return this.adminDescription.getFieldConstructor(name);\n\t }\n\t }, {\n\t key: 'menu',\n\t value: function menu(entity) {\n\t return this.adminDescription.menu(entity);\n\t }\n\t }, {\n\t key: 'collection',\n\t value: function collection(_collection) {\n\t return this.adminDescription.collection(_collection);\n\t }\n\t }, {\n\t key: 'dashboard',\n\t value: function dashboard(_dashboard) {\n\t return this.adminDescription.dashboard(_dashboard);\n\t }\n\t }]);\n\t\n\t return NgAdminConfiguration;\n\t})();\n\t\n\texports['default'] = NgAdminConfiguration;\n\t\n\tNgAdminConfiguration.$inject = ['$compileProvider'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 151 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = http;\n\t\n\tfunction http($httpProvider) {\n\t $httpProvider.useApplyAsync(true);\n\t}\n\t\n\thttp.$inject = ['$httpProvider'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 152 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _viewLayoutHtml = __webpack_require__(167);\n\t\n\tvar _viewLayoutHtml2 = _interopRequireDefault(_viewLayoutHtml);\n\t\n\tvar _viewDashboardHtml = __webpack_require__(166);\n\t\n\tvar _viewDashboardHtml2 = _interopRequireDefault(_viewDashboardHtml);\n\t\n\tvar _view404Html = __webpack_require__(165);\n\t\n\tvar _view404Html2 = _interopRequireDefault(_view404Html);\n\t\n\tfunction dataStoreProvider() {\n\t return ['AdminDescription', function (AdminDescription) {\n\t return AdminDescription.getDataStore();\n\t }];\n\t}\n\t\n\tfunction entryConstructorProvider() {\n\t return ['AdminDescription', function (AdminDescription) {\n\t return AdminDescription.getEntryConstructor();\n\t }];\n\t}\n\t\n\tfunction routing($stateProvider, $urlRouterProvider) {\n\t $stateProvider.state('main', {\n\t abstract: true,\n\t controller: 'AppController',\n\t controllerAs: 'appController',\n\t templateProvider: ['NgAdminConfiguration', function (Configuration) {\n\t return Configuration().layout() || _viewLayoutHtml2['default'];\n\t }]\n\t });\n\t $stateProvider.state('dashboard', {\n\t parent: 'main',\n\t url: '/dashboard?sortField&sortDir',\n\t params: {\n\t sortField: null,\n\t sortDir: null\n\t },\n\t controller: 'DashboardController',\n\t controllerAs: 'dashboardController',\n\t templateProvider: ['NgAdminConfiguration', function (Configuration) {\n\t return Configuration().dashboard().template() || _viewDashboardHtml2['default'];\n\t }],\n\t resolve: {\n\t dataStore: dataStoreProvider(),\n\t Entry: entryConstructorProvider(),\n\t hasEntities: ['NgAdminConfiguration', function (Configuration) {\n\t return Configuration().entities.length > 0;\n\t }],\n\t collections: ['NgAdminConfiguration', function (Configuration) {\n\t return Configuration().dashboard().collections();\n\t }],\n\t responses: ['$stateParams', '$q', 'collections', 'dataStore', 'Entry', 'ReadQueries', function ($stateParams, $q, collections, dataStore, Entry, ReadQueries) {\n\t var sortField = 'sortField' in $stateParams ? $stateParams.sortField : null;\n\t var sortDir = 'sortDir' in $stateParams ? $stateParams.sortDir : null;\n\t var promises = {},\n\t collection,\n\t collectionSortField,\n\t collectionSortDir,\n\t collectionName;\n\t for (collectionName in collections) {\n\t collection = collections[collectionName];\n\t collectionSortField = collection.getSortFieldName();\n\t collectionSortDir = collection.sortDir();\n\t if (sortField && sortField.split('.')[0] === collection.name()) {\n\t collectionSortField = sortField;\n\t collectionSortDir = sortDir;\n\t }\n\t promises[collectionName] = (function (collection, collectionSortField, collectionSortDir) {\n\t var rawEntries;\n\t return ReadQueries.getAll(collection, 1, {}, collectionSortField, collectionSortDir).then(function (response) {\n\t rawEntries = response.data;\n\t return rawEntries;\n\t }).then(function (rawEntries) {\n\t return ReadQueries.getReferenceData(collection.fields(), rawEntries);\n\t }).then(function (referenceData) {\n\t var references = collection.getReferences();\n\t for (var name in referenceData) {\n\t Entry.createArrayFromRest(referenceData[name], [references[name].targetField()], references[name].targetEntity().name(), references[name].targetEntity().identifier().name()).map(function (entry) {\n\t return dataStore.addEntry(references[name].targetEntity().uniqueId + '_values', entry);\n\t });\n\t }\n\t }).then(function () {\n\t var entries = collection.mapEntries(rawEntries);\n\t // shortcut to display collection of entry with included referenced values\n\t dataStore.fillReferencesValuesFromCollection(entries, collection.getReferences(), true);\n\t return entries;\n\t });\n\t })(collection, collectionSortField, collectionSortDir);\n\t }\n\t return $q.all(promises);\n\t }],\n\t entries: ['responses', 'collections', function (responses, collections) {\n\t var collectionName,\n\t entries = {};\n\t for (collectionName in responses) {\n\t entries[collections[collectionName].name()] = responses[collectionName];\n\t }\n\t return entries;\n\t }]\n\t }\n\t });\n\t $stateProvider.state('ma-404', {\n\t parent: 'main',\n\t template: _view404Html2['default']\n\t });\n\t $urlRouterProvider.when('', '/dashboard');\n\t $urlRouterProvider.otherwise(function ($injector, $location) {\n\t var state = $injector.get('$state');\n\t state.go('ma-404');\n\t return $location.path();\n\t });\n\t}\n\trouting.$inject = ['$stateProvider', '$urlRouterProvider'];\n\texports['default'] = routing;\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 153 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = translate;\n\t\n\tfunction translate($translateProvider) {\n\t $translateProvider.translations('en', {\n\t 'BACK': 'Back',\n\t 'DELETE': 'Delete',\n\t 'CREATE': 'Create',\n\t 'EDIT': 'Edit',\n\t 'EXPORT': 'Export',\n\t 'ADD_FILTER': 'Add filter',\n\t 'SEE_RELATED': 'See all related {{ entityName }}',\n\t 'LIST': 'List',\n\t 'SHOW': 'Show',\n\t 'SAVE': 'Save',\n\t 'N_SELECTED': '{{ length }} Selected',\n\t 'ARE_YOU_SURE': 'Are you sure?',\n\t 'YES': 'Yes',\n\t 'NO': 'No',\n\t 'FILTER_VALUES': 'Filter values',\n\t 'CLOSE': 'Close',\n\t 'CLEAR': 'Clear',\n\t 'CURRENT': 'Current',\n\t 'REMOVE': 'Remove',\n\t 'ADD_NEW': 'Add new {{ name }}',\n\t 'BROWSE': 'Browse',\n\t 'N_COMPLETE': '{{ progress }}% Complete',\n\t 'CREATE_NEW': 'Create new',\n\t 'SUBMIT': 'Submit',\n\t 'SAVE_CHANGES': 'Save changes',\n\t 'BATCH_DELETE_SUCCESS': 'Elements successfully deleted',\n\t 'DELETE_SUCCESS': 'Element successfully deleted',\n\t 'ERROR_MESSAGE': 'Oops, an error occurred (code: {{ status }})',\n\t 'INVALID_FORM': 'Invalid form',\n\t 'CREATION_SUCCESS': 'Element successfully created',\n\t 'EDITION_SUCCESS': 'Changes successfully saved',\n\t 'ACTIONS': 'Actions',\n\t 'PAGINATION': '{{ begin }} - {{ end }} of {{ total }}',\n\t 'NO_PAGINATION': 'No record found',\n\t 'PREVIOUS': '« Prev',\n\t 'NEXT': 'Next »',\n\t 'DETAIL': 'Detail',\n\t 'STATE_CHANGE_ERROR': 'State change error: {{ message }}',\n\t 'NOT_FOUND': 'Not Found',\n\t 'NOT_FOUND_DETAILS': 'The page you are looking for cannot be found. Take a break before trying again.'\n\t });\n\t $translateProvider.preferredLanguage('en');\n\t $translateProvider.useSanitizeValueStrategy('sanitize');\n\t}\n\t\n\ttranslate.$inject = ['$translateProvider'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 154 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = errorHandler;\n\t\n\tfunction errorHandler($rootScope, $state, $translate, notification) {\n\t $rootScope.$on(\"$stateChangeError\", function handleError(event, toState, toParams, fromState, fromParams, error) {\n\t if (error.status == 404) {\n\t $state.go('ma-404');\n\t event.preventDefault();\n\t } else {\n\t $translate('STATE_CHANGE_ERROR', {\n\t message: error.message\n\t }).then(function (text) {\n\t return notification.log(text, {\n\t addnCls: 'humane-flatty-error'\n\t });\n\t });\n\t throw error;\n\t }\n\t });\n\t}\n\t\n\terrorHandler.$inject = ['$rootScope', '$state', '$translate', 'notification'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 155 */\n/***/ function(module, exports) {\n\n\t/**\n\t * Display loader on each route change\n\t *\n\t * @param {$rootScope} $rootScope\n\t * @param {$window} $window\n\t * @param {progression} progression\n\t */\n\t'use strict';\n\t\n\tObject.defineProperty(exports, '__esModule', {\n\t value: true\n\t});\n\texports['default'] = loader;\n\t\n\tfunction loader($rootScope, $window, progression) {\n\t $rootScope.$on('$stateChangeStart', function () {\n\t progression.start();\n\t });\n\t $rootScope.$on('$stateChangeSuccess', function () {\n\t progression.done();\n\t $window.scrollTo(0, 0);\n\t });\n\t $rootScope.$on(\"$stateChangeError\", function () {\n\t progression.done();\n\t });\n\t}\n\t\n\tloader.$inject = ['$rootScope', '$window', 'progression'];\n\tmodule.exports = exports['default'];\n\n/***/ },\n/* 156 */\n/***/ function(module, exports) {\n\n\t// removed by extract-text-webpack-plugin\n\n/***/ },\n/* 157 */\n/***/ function(module, exports) {\n\n\tmodule.exports = \"

\";\n\n/***/ },\n/* 158 */\n/***/ function(module, exports) {\n\n\tmodule.exports = \"

\";\n\n/***/ },\n/* 159 */\n/***/ function(module, exports) {\n\n\tmodule.exports = \"

{{ 'CREATE_NEW' | translate }} {{ ::formController.view.entity.label() | humanize:true | singularize | translate }}

{{ ::formController.description }}

\";\n\n/***/ },\n/* 160 */\n/***/ function(module, exports) {\n\n\tmodule.exports = \"

{{ 'EDIT' | translate }} {{ ::formController.entity.label() | humanize:true | singularize | translate }} #{{ ::entry.identifierValue }}

{{ ::formController.description }}

\";\n\n/***/ },\n/* 161 */\n/***/ function(module, exports) {\n\n\tmodule.exports = \"

{{ ::llCtrl.view.entity.label() | humanize | pluralize | translate }} {{ 'LIST' | translate }}




\";\n\n/***/ },\n/* 162 */\n/***/ function(module, exports) {\n\n\tmodule.exports = \"

{{ ::llCtrl.view.entity.label() | humanize | pluralize | translate }} {{ 'LIST' | translate }}

  • Home
  • {{ ::llCtrl.view.entity.label() | humanize | pluralize | translate }} {{ 'LIST' | translate }}

{{ ::llCtrl.view.description() }}

\";\n\n/***/ },\n/* 163 */\n/***/ function(module, exports) {\n\n\tmodule.exports = \"\";\n\n/***/ },\n/* 164 */\n/***/ function(module, exports) {\n\n\tmodule.exports = \"

{{ ::showController.view.entity.label() | humanize | singularize | translate }} #{{ ::entry.identifierValue }} {{ 'DETAIL' | translate }}

{{ ::showController.description }}

\";\n\n/***/ },\n/* 165 */\n/***/ function(module, exports) {\n\n\tmodule.exports = \"
{{ 'NOT_FOUND_DETAILS' | translate }}



\\n\\n       |\\\\      _,,,---,,_\\n       /,`.-'`'    -.  ;-;;,_\\n      |,4-  ) )-,_..;\\\\ (  `'-'\\n     '---''(_/--'  `-'\\\\_)\\n\\n    
\";\n\n/***/ },\n/* 166 */\n/***/ function(module, exports) {\n\n\tmodule.exports = \"

All dependencies are set, ng-admin is ready to run!

Now you can update the configuration: add entities to the admin, then refresh.

\";\n\n/***/ },\n/* 167 */\n/***/ function(module, exports) {\n\n\tmodule.exports = \"\";\n\n/***/ },\n/* 168 */\n/***/ function(module, exports) {\n\n\tmodule.exports = \"\";\n\n/***/ },\n/* 169 */\n/***/ function(module, exports) {\n\n\t/**\n\t * @license AngularJS v1.4.14\n\t * (c) 2010-2015 Google, Inc. http://angularjs.org\n\t * License: MIT\n\t */\n\t(function(window, document, undefined) {'use strict';\n\t\n\t/**\n\t * @description\n\t *\n\t * This object provides a utility for producing rich Error messages within\n\t * Angular. It can be called as follows:\n\t *\n\t * var exampleMinErr = minErr('example');\n\t * throw exampleMinErr('one', 'This {0} is {1}', foo, bar);\n\t *\n\t * The above creates an instance of minErr in the example namespace. The\n\t * resulting error will have a namespaced error code of example.one. The\n\t * resulting error will replace {0} with the value of foo, and {1} with the\n\t * value of bar. The object is not restricted in the number of arguments it can\n\t * take.\n\t *\n\t * If fewer arguments are specified than necessary for interpolation, the extra\n\t * interpolation markers will be preserved in the final string.\n\t *\n\t * Since data will be parsed statically during a build step, some restrictions\n\t * are applied with respect to how minErr instances are created and called.\n\t * Instances should have names of the form namespaceMinErr for a minErr created\n\t * using minErr('namespace') . Error codes, namespaces and template strings\n\t * should all be static strings, not variables or general expressions.\n\t *\n\t * @param {string} module The namespace to use for the new minErr instance.\n\t * @param {function} ErrorConstructor Custom error constructor to be instantiated when returning\n\t * error from returned function, for cases when a particular type of error is useful.\n\t * @returns {function(code:string, template:string, ...templateArgs): Error} minErr instance\n\t */\n\t\n\tfunction minErr(module, ErrorConstructor) {\n\t ErrorConstructor = ErrorConstructor || Error;\n\t return function() {\n\t var SKIP_INDEXES = 2;\n\t\n\t var templateArgs = arguments,\n\t code = templateArgs[0],\n\t message = '[' + (module ? module + ':' : '') + code + '] ',\n\t template = templateArgs[1],\n\t paramPrefix, i;\n\t\n\t message += template.replace(/\\{\\d+\\}/g, function(match) {\n\t var index = +match.slice(1, -1),\n\t shiftedIndex = index + SKIP_INDEXES;\n\t\n\t if (shiftedIndex < templateArgs.length) {\n\t return toDebugString(templateArgs[shiftedIndex]);\n\t }\n\t\n\t return match;\n\t });\n\t\n\t message += '\\nhttp://errors.angularjs.org/1.4.14/' +\n\t (module ? module + '/' : '') + code;\n\t\n\t for (i = SKIP_INDEXES, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') {\n\t message += paramPrefix + 'p' + (i - SKIP_INDEXES) + '=' +\n\t encodeURIComponent(toDebugString(templateArgs[i]));\n\t }\n\t\n\t return new ErrorConstructor(message);\n\t };\n\t}\n\t\n\t/* We need to tell jshint what variables are being exported */\n\t/* global angular: true,\n\t msie: true,\n\t jqLite: true,\n\t jQuery: true,\n\t slice: true,\n\t splice: true,\n\t push: true,\n\t toString: true,\n\t ngMinErr: true,\n\t angularModule: true,\n\t uid: true,\n\t REGEX_STRING_REGEXP: true,\n\t VALIDITY_STATE_PROPERTY: true,\n\t\n\t lowercase: true,\n\t uppercase: true,\n\t manualLowercase: true,\n\t manualUppercase: true,\n\t nodeName_: true,\n\t isArrayLike: true,\n\t forEach: true,\n\t forEachSorted: true,\n\t reverseParams: true,\n\t nextUid: true,\n\t setHashKey: true,\n\t extend: true,\n\t toInt: true,\n\t inherit: true,\n\t merge: true,\n\t noop: true,\n\t identity: true,\n\t valueFn: true,\n\t isUndefined: true,\n\t isDefined: true,\n\t isObject: true,\n\t isBlankObject: true,\n\t isString: true,\n\t isNumber: true,\n\t isDate: true,\n\t isArray: true,\n\t isFunction: true,\n\t isRegExp: true,\n\t isWindow: true,\n\t isScope: true,\n\t isFile: true,\n\t isFormData: true,\n\t isBlob: true,\n\t isBoolean: true,\n\t isPromiseLike: true,\n\t trim: true,\n\t escapeForRegexp: true,\n\t isElement: true,\n\t makeMap: true,\n\t includes: true,\n\t arrayRemove: true,\n\t copy: true,\n\t shallowCopy: true,\n\t equals: true,\n\t csp: true,\n\t jq: true,\n\t concat: true,\n\t sliceArgs: true,\n\t bind: true,\n\t toJsonReplacer: true,\n\t toJson: true,\n\t fromJson: true,\n\t convertTimezoneToLocal: true,\n\t timezoneToOffset: true,\n\t startingTag: true,\n\t tryDecodeURIComponent: true,\n\t parseKeyValue: true,\n\t toKeyValue: true,\n\t encodeUriSegment: true,\n\t encodeUriQuery: true,\n\t angularInit: true,\n\t bootstrap: true,\n\t getTestability: true,\n\t snake_case: true,\n\t bindJQuery: true,\n\t assertArg: true,\n\t assertArgFn: true,\n\t assertNotHasOwnProperty: true,\n\t getter: true,\n\t getBlockNodes: true,\n\t hasOwnProperty: true,\n\t createMap: true,\n\t\n\t NODE_TYPE_ELEMENT: true,\n\t NODE_TYPE_ATTRIBUTE: true,\n\t NODE_TYPE_TEXT: true,\n\t NODE_TYPE_COMMENT: true,\n\t NODE_TYPE_DOCUMENT: true,\n\t NODE_TYPE_DOCUMENT_FRAGMENT: true,\n\t*/\n\t\n\t////////////////////////////////////\n\t\n\t/**\n\t * @ngdoc module\n\t * @name ng\n\t * @module ng\n\t * @description\n\t *\n\t * # ng (core module)\n\t * The ng module is loaded by default when an AngularJS application is started. The module itself\n\t * contains the essential components for an AngularJS application to function. The table below\n\t * lists a high level breakdown of each of the services/factories, filters, directives and testing\n\t * components available within this core module.\n\t *\n\t *
\n\t */\n\t\n\tvar REGEX_STRING_REGEXP = /^\\/(.+)\\/([a-z]*)$/;\n\t\n\t// The name of a form control's ValidityState property.\n\t// This is used so that it's possible for internal tests to create mock ValidityStates.\n\tvar VALIDITY_STATE_PROPERTY = 'validity';\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.lowercase\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description Converts the specified string to lowercase.\n\t * @param {string} string String to be converted to lowercase.\n\t * @returns {string} Lowercased string.\n\t */\n\tvar lowercase = function(string) {return isString(string) ? string.toLowerCase() : string;};\n\tvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.uppercase\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description Converts the specified string to uppercase.\n\t * @param {string} string String to be converted to uppercase.\n\t * @returns {string} Uppercased string.\n\t */\n\tvar uppercase = function(string) {return isString(string) ? string.toUpperCase() : string;};\n\t\n\t\n\tvar manualLowercase = function(s) {\n\t /* jshint bitwise: false */\n\t return isString(s)\n\t ? s.replace(/[A-Z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) | 32);})\n\t : s;\n\t};\n\tvar manualUppercase = function(s) {\n\t /* jshint bitwise: false */\n\t return isString(s)\n\t ? s.replace(/[a-z]/g, function(ch) {return String.fromCharCode(ch.charCodeAt(0) & ~32);})\n\t : s;\n\t};\n\t\n\t\n\t// String#toLowerCase and String#toUpperCase don't produce correct results in browsers with Turkish\n\t// locale, for this reason we need to detect this case and redefine lowercase/uppercase methods\n\t// with correct but slower alternatives.\n\tif ('i' !== 'I'.toLowerCase()) {\n\t lowercase = manualLowercase;\n\t uppercase = manualUppercase;\n\t}\n\t\n\t\n\tvar\n\t msie, // holds major version number for IE, or NaN if UA is not IE.\n\t jqLite, // delay binding since jQuery could be loaded after us.\n\t jQuery, // delay binding\n\t slice = [].slice,\n\t splice = [].splice,\n\t push = [].push,\n\t toString = Object.prototype.toString,\n\t getPrototypeOf = Object.getPrototypeOf,\n\t ngMinErr = minErr('ng'),\n\t\n\t /** @name angular */\n\t angular = window.angular || (window.angular = {}),\n\t angularModule,\n\t uid = 0;\n\t\n\t/**\n\t * documentMode is an IE-only property\n\t * http://msdn.microsoft.com/en-us/library/ie/cc196988(v=vs.85).aspx\n\t */\n\tmsie = document.documentMode;\n\t\n\t\n\t/**\n\t * @private\n\t * @param {*} obj\n\t * @return {boolean} Returns true if `obj` is an array or array-like object (NodeList, Arguments,\n\t * String ...)\n\t */\n\tfunction isArrayLike(obj) {\n\t\n\t // `null`, `undefined` and `window` are not array-like\n\t if (obj == null || isWindow(obj)) return false;\n\t\n\t // arrays, strings and jQuery/jqLite objects are array like\n\t // * jqLite is either the jQuery or jqLite constructor function\n\t // * we have to check the existance of jqLite first as this method is called\n\t // via the forEach method when constructing the jqLite object in the first place\n\t if (isArray(obj) || isString(obj) || (jqLite && obj instanceof jqLite)) return true;\n\t\n\t // Support: iOS 8.2 (not reproducible in simulator)\n\t // \"length\" in obj used to prevent JIT error (gh-11508)\n\t var length = \"length\" in Object(obj) && obj.length;\n\t\n\t // NodeList objects (with `item` method) and\n\t // other objects with suitable length characteristics are array-like\n\t return isNumber(length) &&\n\t (length >= 0 && ((length - 1) in obj || obj instanceof Array) || typeof obj.item == 'function');\n\t\n\t}\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.forEach\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Invokes the `iterator` function once for each item in `obj` collection, which can be either an\n\t * object or an array. The `iterator` function is invoked with `iterator(value, key, obj)`, where `value`\n\t * is the value of an object property or an array element, `key` is the object property key or\n\t * array element index and obj is the `obj` itself. Specifying a `context` for the function is optional.\n\t *\n\t * It is worth noting that `.forEach` does not iterate over inherited properties because it filters\n\t * using the `hasOwnProperty` method.\n\t *\n\t * Unlike ES262's\n\t * [Array.prototype.forEach](http://www.ecma-international.org/ecma-262/5.1/#sec-15.4.4.18),\n\t * providing 'undefined' or 'null' values for `obj` will not throw a TypeError, but rather just\n\t * return the value provided.\n\t *\n\t ```js\n\t var values = {name: 'misko', gender: 'male'};\n\t var log = [];\n\t angular.forEach(values, function(value, key) {\n\t this.push(key + ': ' + value);\n\t }, log);\n\t expect(log).toEqual(['name: misko', 'gender: male']);\n\t ```\n\t *\n\t * @param {Object|Array} obj Object to iterate over.\n\t * @param {Function} iterator Iterator function.\n\t * @param {Object=} context Object to become context (`this`) for the iterator function.\n\t * @returns {Object|Array} Reference to `obj`.\n\t */\n\t\n\tfunction forEach(obj, iterator, context) {\n\t var key, length;\n\t if (obj) {\n\t if (isFunction(obj)) {\n\t for (key in obj) {\n\t // Need to check if hasOwnProperty exists,\n\t // as on IE8 the result of querySelectorAll is an object without a hasOwnProperty function\n\t if (key != 'prototype' && key != 'length' && key != 'name' && (!obj.hasOwnProperty || obj.hasOwnProperty(key))) {\n\t iterator.call(context, obj[key], key, obj);\n\t }\n\t }\n\t } else if (isArray(obj) || isArrayLike(obj)) {\n\t var isPrimitive = typeof obj !== 'object';\n\t for (key = 0, length = obj.length; key < length; key++) {\n\t if (isPrimitive || key in obj) {\n\t iterator.call(context, obj[key], key, obj);\n\t }\n\t }\n\t } else if (obj.forEach && obj.forEach !== forEach) {\n\t obj.forEach(iterator, context, obj);\n\t } else if (isBlankObject(obj)) {\n\t // createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty\n\t for (key in obj) {\n\t iterator.call(context, obj[key], key, obj);\n\t }\n\t } else if (typeof obj.hasOwnProperty === 'function') {\n\t // Slow path for objects inheriting Object.prototype, hasOwnProperty check needed\n\t for (key in obj) {\n\t if (obj.hasOwnProperty(key)) {\n\t iterator.call(context, obj[key], key, obj);\n\t }\n\t }\n\t } else {\n\t // Slow path for objects which do not have a method `hasOwnProperty`\n\t for (key in obj) {\n\t if (hasOwnProperty.call(obj, key)) {\n\t iterator.call(context, obj[key], key, obj);\n\t }\n\t }\n\t }\n\t }\n\t return obj;\n\t}\n\t\n\tfunction forEachSorted(obj, iterator, context) {\n\t var keys = Object.keys(obj).sort();\n\t for (var i = 0; i < keys.length; i++) {\n\t iterator.call(context, obj[keys[i]], keys[i]);\n\t }\n\t return keys;\n\t}\n\t\n\t\n\t/**\n\t * when using forEach the params are value, key, but it is often useful to have key, value.\n\t * @param {function(string, *)} iteratorFn\n\t * @returns {function(*, string)}\n\t */\n\tfunction reverseParams(iteratorFn) {\n\t return function(value, key) {iteratorFn(key, value);};\n\t}\n\t\n\t/**\n\t * A consistent way of creating unique IDs in angular.\n\t *\n\t * Using simple numbers allows us to generate 28.6 million unique ids per second for 10 years before\n\t * we hit number precision issues in JavaScript.\n\t *\n\t * Math.pow(2,53) / 60 / 60 / 24 / 365 / 10 = 28.6M\n\t *\n\t * @returns {number} an unique alpha-numeric string\n\t */\n\tfunction nextUid() {\n\t return ++uid;\n\t}\n\t\n\t\n\t/**\n\t * Set or clear the hashkey for an object.\n\t * @param obj object\n\t * @param h the hashkey (!truthy to delete the hashkey)\n\t */\n\tfunction setHashKey(obj, h) {\n\t if (h) {\n\t obj.$$hashKey = h;\n\t } else {\n\t delete obj.$$hashKey;\n\t }\n\t}\n\t\n\t\n\tfunction baseExtend(dst, objs, deep) {\n\t var h = dst.$$hashKey;\n\t\n\t for (var i = 0, ii = objs.length; i < ii; ++i) {\n\t var obj = objs[i];\n\t if (!isObject(obj) && !isFunction(obj)) continue;\n\t var keys = Object.keys(obj);\n\t for (var j = 0, jj = keys.length; j < jj; j++) {\n\t var key = keys[j];\n\t var src = obj[key];\n\t\n\t if (deep && isObject(src)) {\n\t if (isDate(src)) {\n\t dst[key] = new Date(src.valueOf());\n\t } else if (isRegExp(src)) {\n\t dst[key] = new RegExp(src);\n\t } else if (src.nodeName) {\n\t dst[key] = src.cloneNode(true);\n\t } else if (isElement(src)) {\n\t dst[key] = src.clone();\n\t } else {\n\t if (!isObject(dst[key])) dst[key] = isArray(src) ? [] : {};\n\t baseExtend(dst[key], [src], true);\n\t }\n\t } else {\n\t dst[key] = src;\n\t }\n\t }\n\t }\n\t\n\t setHashKey(dst, h);\n\t return dst;\n\t}\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.extend\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Extends the destination object `dst` by copying own enumerable properties from the `src` object(s)\n\t * to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so\n\t * by passing an empty object as the target: `var object = angular.extend({}, object1, object2)`.\n\t *\n\t * **Note:** Keep in mind that `angular.extend` does not support recursive merge (deep copy). Use\n\t * {@link angular.merge} for this.\n\t *\n\t * @param {Object} dst Destination object.\n\t * @param {...Object} src Source object(s).\n\t * @returns {Object} Reference to `dst`.\n\t */\n\tfunction extend(dst) {\n\t return baseExtend(dst, slice.call(arguments, 1), false);\n\t}\n\t\n\t\n\t/**\n\t* @ngdoc function\n\t* @name angular.merge\n\t* @module ng\n\t* @kind function\n\t*\n\t* @description\n\t* Deeply extends the destination object `dst` by copying own enumerable properties from the `src` object(s)\n\t* to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so\n\t* by passing an empty object as the target: `var object = angular.merge({}, object1, object2)`.\n\t*\n\t* Unlike {@link angular.extend extend()}, `merge()` recursively descends into object properties of source\n\t* objects, performing a deep copy.\n\t*\n\t* @param {Object} dst Destination object.\n\t* @param {...Object} src Source object(s).\n\t* @returns {Object} Reference to `dst`.\n\t*/\n\tfunction merge(dst) {\n\t return baseExtend(dst, slice.call(arguments, 1), true);\n\t}\n\t\n\t\n\t\n\tfunction toInt(str) {\n\t return parseInt(str, 10);\n\t}\n\t\n\t\n\tfunction inherit(parent, extra) {\n\t return extend(Object.create(parent), extra);\n\t}\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.noop\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * A function that performs no operations. This function can be useful when writing code in the\n\t * functional style.\n\t ```js\n\t function foo(callback) {\n\t var result = calculateResult();\n\t (callback || angular.noop)(result);\n\t }\n\t ```\n\t */\n\tfunction noop() {}\n\tnoop.$inject = [];\n\t\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.identity\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * A function that returns its first argument. This function is useful when writing code in the\n\t * functional style.\n\t *\n\t ```js\n\t function transformer(transformationFn, value) {\n\t return (transformationFn || angular.identity)(value);\n\t };\n\t\n\t // E.g.\n\t function getResult(fn, input) {\n\t return (fn || angular.identity)(input);\n\t };\n\t\n\t getResult(function(n) { return n * 2; }, 21); // returns 42\n\t getResult(null, 21); // returns 21\n\t getResult(undefined, 21); // returns 21\n\t ```\n\t *\n\t * @param {*} value to be returned.\n\t * @returns {*} the value passed in.\n\t */\n\tfunction identity($) {return $;}\n\tidentity.$inject = [];\n\t\n\t\n\tfunction valueFn(value) {return function() {return value;};}\n\t\n\tfunction hasCustomToString(obj) {\n\t return isFunction(obj.toString) && obj.toString !== toString;\n\t}\n\t\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.isUndefined\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is undefined.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is undefined.\n\t */\n\tfunction isUndefined(value) {return typeof value === 'undefined';}\n\t\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.isDefined\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is defined.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is defined.\n\t */\n\tfunction isDefined(value) {return typeof value !== 'undefined';}\n\t\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.isObject\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is an `Object`. Unlike `typeof` in JavaScript, `null`s are not\n\t * considered to be objects. Note that JavaScript arrays are objects.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is an `Object` but not `null`.\n\t */\n\tfunction isObject(value) {\n\t // http://jsperf.com/isobject4\n\t return value !== null && typeof value === 'object';\n\t}\n\t\n\t\n\t/**\n\t * Determine if a value is an object with a null prototype\n\t *\n\t * @returns {boolean} True if `value` is an `Object` with a null prototype\n\t */\n\tfunction isBlankObject(value) {\n\t return value !== null && typeof value === 'object' && !getPrototypeOf(value);\n\t}\n\t\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.isString\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is a `String`.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `String`.\n\t */\n\tfunction isString(value) {return typeof value === 'string';}\n\t\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.isNumber\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is a `Number`.\n\t *\n\t * This includes the \"special\" numbers `NaN`, `+Infinity` and `-Infinity`.\n\t *\n\t * If you wish to exclude these then you can use the native\n\t * [`isFinite'](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isFinite)\n\t * method.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `Number`.\n\t */\n\tfunction isNumber(value) {return typeof value === 'number';}\n\t\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.isDate\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a value is a date.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `Date`.\n\t */\n\tfunction isDate(value) {\n\t return toString.call(value) === '[object Date]';\n\t}\n\t\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.isArray\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is an `Array`.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is an `Array`.\n\t */\n\tvar isArray = Array.isArray;\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.isFunction\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if a reference is a `Function`.\n\t *\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `Function`.\n\t */\n\tfunction isFunction(value) {return typeof value === 'function';}\n\t\n\t\n\t/**\n\t * Determines if a value is a regular expression object.\n\t *\n\t * @private\n\t * @param {*} value Reference to check.\n\t * @returns {boolean} True if `value` is a `RegExp`.\n\t */\n\tfunction isRegExp(value) {\n\t return toString.call(value) === '[object RegExp]';\n\t}\n\t\n\t\n\t/**\n\t * Checks if `obj` is a window object.\n\t *\n\t * @private\n\t * @param {*} obj Object to check\n\t * @returns {boolean} True if `obj` is a window obj.\n\t */\n\tfunction isWindow(obj) {\n\t return obj && obj.window === obj;\n\t}\n\t\n\t\n\tfunction isScope(obj) {\n\t return obj && obj.$evalAsync && obj.$watch;\n\t}\n\t\n\t\n\tfunction isFile(obj) {\n\t return toString.call(obj) === '[object File]';\n\t}\n\t\n\t\n\tfunction isFormData(obj) {\n\t return toString.call(obj) === '[object FormData]';\n\t}\n\t\n\t\n\tfunction isBlob(obj) {\n\t return toString.call(obj) === '[object Blob]';\n\t}\n\t\n\t\n\tfunction isBoolean(value) {\n\t return typeof value === 'boolean';\n\t}\n\t\n\t\n\tfunction isPromiseLike(obj) {\n\t return obj && isFunction(obj.then);\n\t}\n\t\n\t\n\tvar TYPED_ARRAY_REGEXP = /^\\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\\]$/;\n\tfunction isTypedArray(value) {\n\t return value && isNumber(value.length) && TYPED_ARRAY_REGEXP.test(toString.call(value));\n\t}\n\t\n\t\n\tvar trim = function(value) {\n\t return isString(value) ? value.trim() : value;\n\t};\n\t\n\t// Copied from:\n\t// http://docs.closure-library.googlecode.com/git/local_closure_goog_string_string.js.source.html#line1021\n\t// Prereq: s is a string.\n\tvar escapeForRegexp = function(s) {\n\t return s.replace(/([-()\\[\\]{}+?*.$\\^|,:#= 0) {\n\t array.splice(index, 1);\n\t }\n\t return index;\n\t}\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.copy\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Creates a deep copy of `source`, which should be an object or an array.\n\t *\n\t * * If no destination is supplied, a copy of the object or array is created.\n\t * * If a destination is provided, all of its elements (for arrays) or properties (for objects)\n\t * are deleted and then all elements/properties from the source are copied to it.\n\t * * If `source` is not an object or array (inc. `null` and `undefined`), `source` is returned.\n\t * * If `source` is identical to 'destination' an exception will be thrown.\n\t *\n\t * @param {*} source The source that will be used to make a copy.\n\t * Can be any type, including primitives, `null`, and `undefined`.\n\t * @param {(Object|Array)=} destination Destination into which the source is copied. If\n\t * provided, must be of the same type as `source`.\n\t * @returns {*} The copy or updated `destination`, if `destination` was specified.\n\t *\n\t * @example\n\t \n\t \n\t
\n\t
\n\t Name:
\n\t E-mail:
\n\t Gender: male\n\t female
\n\t \n\t \n\t
\n\t
form = {{user | json}}
\n\t
master = {{master | json}}
\n\t
\n\t\n\t \n\t
\n\t
\n\t */\n\tfunction copy(source, destination) {\n\t var stackSource = [];\n\t var stackDest = [];\n\t\n\t if (destination) {\n\t if (isTypedArray(destination)) {\n\t throw ngMinErr('cpta', \"Can't copy! TypedArray destination cannot be mutated.\");\n\t }\n\t if (source === destination) {\n\t throw ngMinErr('cpi', \"Can't copy! Source and destination are identical.\");\n\t }\n\t\n\t // Empty the destination object\n\t if (isArray(destination)) {\n\t destination.length = 0;\n\t } else {\n\t forEach(destination, function(value, key) {\n\t if (key !== '$$hashKey') {\n\t delete destination[key];\n\t }\n\t });\n\t }\n\t\n\t stackSource.push(source);\n\t stackDest.push(destination);\n\t return copyRecurse(source, destination);\n\t }\n\t\n\t return copyElement(source);\n\t\n\t function copyRecurse(source, destination) {\n\t var h = destination.$$hashKey;\n\t var result, key;\n\t if (isArray(source)) {\n\t for (var i = 0, ii = source.length; i < ii; i++) {\n\t destination.push(copyElement(source[i]));\n\t }\n\t } else if (isBlankObject(source)) {\n\t // createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty\n\t for (key in source) {\n\t destination[key] = copyElement(source[key]);\n\t }\n\t } else if (source && typeof source.hasOwnProperty === 'function') {\n\t // Slow path, which must rely on hasOwnProperty\n\t for (key in source) {\n\t if (source.hasOwnProperty(key)) {\n\t destination[key] = copyElement(source[key]);\n\t }\n\t }\n\t } else {\n\t // Slowest path --- hasOwnProperty can't be called as a method\n\t for (key in source) {\n\t if (hasOwnProperty.call(source, key)) {\n\t destination[key] = copyElement(source[key]);\n\t }\n\t }\n\t }\n\t setHashKey(destination, h);\n\t return destination;\n\t }\n\t\n\t function copyElement(source) {\n\t // Simple values\n\t if (!isObject(source)) {\n\t return source;\n\t }\n\t\n\t // Already copied values\n\t var index = stackSource.indexOf(source);\n\t if (index !== -1) {\n\t return stackDest[index];\n\t }\n\t\n\t if (isWindow(source) || isScope(source)) {\n\t throw ngMinErr('cpws',\n\t \"Can't copy! Making copies of Window or Scope instances is not supported.\");\n\t }\n\t\n\t var needsRecurse = false;\n\t var destination;\n\t\n\t if (isArray(source)) {\n\t destination = [];\n\t needsRecurse = true;\n\t } else if (isTypedArray(source)) {\n\t destination = new source.constructor(source);\n\t } else if (isDate(source)) {\n\t destination = new Date(source.getTime());\n\t } else if (isRegExp(source)) {\n\t destination = new RegExp(source.source, source.toString().match(/[^\\/]*$/)[0]);\n\t destination.lastIndex = source.lastIndex;\n\t } else if (isBlob(source)) {\n\t destination = new source.constructor([source], {type: source.type});\n\t } else if (isFunction(source.cloneNode)) {\n\t destination = source.cloneNode(true);\n\t } else {\n\t destination = Object.create(getPrototypeOf(source));\n\t needsRecurse = true;\n\t }\n\t\n\t stackSource.push(source);\n\t stackDest.push(destination);\n\t\n\t return needsRecurse\n\t ? copyRecurse(source, destination)\n\t : destination;\n\t }\n\t}\n\t\n\t/**\n\t * Creates a shallow copy of an object, an array or a primitive.\n\t *\n\t * Assumes that there are no proto properties for objects.\n\t */\n\tfunction shallowCopy(src, dst) {\n\t if (isArray(src)) {\n\t dst = dst || [];\n\t\n\t for (var i = 0, ii = src.length; i < ii; i++) {\n\t dst[i] = src[i];\n\t }\n\t } else if (isObject(src)) {\n\t dst = dst || {};\n\t\n\t for (var key in src) {\n\t if (!(key.charAt(0) === '$' && key.charAt(1) === '$')) {\n\t dst[key] = src[key];\n\t }\n\t }\n\t }\n\t\n\t return dst || src;\n\t}\n\t\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.equals\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Determines if two objects or two values are equivalent. Supports value types, regular\n\t * expressions, arrays and objects.\n\t *\n\t * Two objects or values are considered equivalent if at least one of the following is true:\n\t *\n\t * * Both objects or values pass `===` comparison.\n\t * * Both objects or values are of the same type and all of their properties are equal by\n\t * comparing them with `angular.equals`.\n\t * * Both values are NaN. (In JavaScript, NaN == NaN => false. But we consider two NaN as equal)\n\t * * Both values represent the same regular expression (In JavaScript,\n\t * /abc/ == /abc/ => false. But we consider two regular expressions as equal when their textual\n\t * representation matches).\n\t *\n\t * During a property comparison, properties of `function` type and properties with names\n\t * that begin with `$` are ignored.\n\t *\n\t * Scope and DOMWindow objects are being compared only by identify (`===`).\n\t *\n\t * @param {*} o1 Object or value to compare.\n\t * @param {*} o2 Object or value to compare.\n\t * @returns {boolean} True if arguments are equal.\n\t */\n\tfunction equals(o1, o2) {\n\t if (o1 === o2) return true;\n\t if (o1 === null || o2 === null) return false;\n\t if (o1 !== o1 && o2 !== o2) return true; // NaN === NaN\n\t var t1 = typeof o1, t2 = typeof o2, length, key, keySet;\n\t if (t1 == t2) {\n\t if (t1 == 'object') {\n\t if (isArray(o1)) {\n\t if (!isArray(o2)) return false;\n\t if ((length = o1.length) == o2.length) {\n\t for (key = 0; key < length; key++) {\n\t if (!equals(o1[key], o2[key])) return false;\n\t }\n\t return true;\n\t }\n\t } else if (isDate(o1)) {\n\t if (!isDate(o2)) return false;\n\t return equals(o1.getTime(), o2.getTime());\n\t } else if (isRegExp(o1)) {\n\t return isRegExp(o2) ? o1.toString() == o2.toString() : false;\n\t } else {\n\t if (isScope(o1) || isScope(o2) || isWindow(o1) || isWindow(o2) ||\n\t isArray(o2) || isDate(o2) || isRegExp(o2)) return false;\n\t keySet = createMap();\n\t for (key in o1) {\n\t if (key.charAt(0) === '$' || isFunction(o1[key])) continue;\n\t if (!equals(o1[key], o2[key])) return false;\n\t keySet[key] = true;\n\t }\n\t for (key in o2) {\n\t if (!(key in keySet) &&\n\t key.charAt(0) !== '$' &&\n\t isDefined(o2[key]) &&\n\t !isFunction(o2[key])) return false;\n\t }\n\t return true;\n\t }\n\t }\n\t }\n\t return false;\n\t}\n\t\n\tvar csp = function() {\n\t if (!isDefined(csp.rules)) {\n\t\n\t\n\t var ngCspElement = (document.querySelector('[ng-csp]') ||\n\t document.querySelector('[data-ng-csp]'));\n\t\n\t if (ngCspElement) {\n\t var ngCspAttribute = ngCspElement.getAttribute('ng-csp') ||\n\t ngCspElement.getAttribute('data-ng-csp');\n\t csp.rules = {\n\t noUnsafeEval: !ngCspAttribute || (ngCspAttribute.indexOf('no-unsafe-eval') !== -1),\n\t noInlineStyle: !ngCspAttribute || (ngCspAttribute.indexOf('no-inline-style') !== -1)\n\t };\n\t } else {\n\t csp.rules = {\n\t noUnsafeEval: noUnsafeEval(),\n\t noInlineStyle: false\n\t };\n\t }\n\t }\n\t\n\t return csp.rules;\n\t\n\t function noUnsafeEval() {\n\t try {\n\t /* jshint -W031, -W054 */\n\t new Function('');\n\t /* jshint +W031, +W054 */\n\t return false;\n\t } catch (e) {\n\t return true;\n\t }\n\t }\n\t};\n\t\n\t/**\n\t * @ngdoc directive\n\t * @module ng\n\t * @name ngJq\n\t *\n\t * @element ANY\n\t * @param {string=} ngJq the name of the library available under `window`\n\t * to be used for angular.element\n\t * @description\n\t * Use this directive to force the angular.element library. This should be\n\t * used to force either jqLite by leaving ng-jq blank or setting the name of\n\t * the jquery variable under window (eg. jQuery).\n\t *\n\t * Since angular looks for this directive when it is loaded (doesn't wait for the\n\t * DOMContentLoaded event), it must be placed on an element that comes before the script\n\t * which loads angular. Also, only the first instance of `ng-jq` will be used and all\n\t * others ignored.\n\t *\n\t * @example\n\t * This example shows how to force jqLite using the `ngJq` directive to the `html` tag.\n\t ```html\n\t \n\t \n\t ...\n\t ...\n\t \n\t ```\n\t * @example\n\t * This example shows how to use a jQuery based library of a different name.\n\t * The library name must be available at the top most 'window'.\n\t ```html\n\t \n\t \n\t ...\n\t ...\n\t \n\t ```\n\t */\n\tvar jq = function() {\n\t if (isDefined(jq.name_)) return jq.name_;\n\t var el;\n\t var i, ii = ngAttrPrefixes.length, prefix, name;\n\t for (i = 0; i < ii; ++i) {\n\t prefix = ngAttrPrefixes[i];\n\t if (el = document.querySelector('[' + prefix.replace(':', '\\\\:') + 'jq]')) {\n\t name = el.getAttribute(prefix + 'jq');\n\t break;\n\t }\n\t }\n\t\n\t return (jq.name_ = name);\n\t};\n\t\n\tfunction concat(array1, array2, index) {\n\t return array1.concat(slice.call(array2, index));\n\t}\n\t\n\tfunction sliceArgs(args, startIndex) {\n\t return slice.call(args, startIndex || 0);\n\t}\n\t\n\t\n\t/* jshint -W101 */\n\t/**\n\t * @ngdoc function\n\t * @name angular.bind\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Returns a function which calls function `fn` bound to `self` (`self` becomes the `this` for\n\t * `fn`). You can supply optional `args` that are prebound to the function. This feature is also\n\t * known as [partial application](http://en.wikipedia.org/wiki/Partial_application), as\n\t * distinguished from [function currying](http://en.wikipedia.org/wiki/Currying#Contrast_with_partial_function_application).\n\t *\n\t * @param {Object} self Context which `fn` should be evaluated in.\n\t * @param {function()} fn Function to be bound.\n\t * @param {...*} args Optional arguments to be prebound to the `fn` function call.\n\t * @returns {function()} Function that wraps the `fn` with all the specified bindings.\n\t */\n\t/* jshint +W101 */\n\tfunction bind(self, fn) {\n\t var curryArgs = arguments.length > 2 ? sliceArgs(arguments, 2) : [];\n\t if (isFunction(fn) && !(fn instanceof RegExp)) {\n\t return curryArgs.length\n\t ? function() {\n\t return arguments.length\n\t ? fn.apply(self, concat(curryArgs, arguments, 0))\n\t : fn.apply(self, curryArgs);\n\t }\n\t : function() {\n\t return arguments.length\n\t ? fn.apply(self, arguments)\n\t : fn.call(self);\n\t };\n\t } else {\n\t // in IE, native methods are not functions so they cannot be bound (note: they don't need to be)\n\t return fn;\n\t }\n\t}\n\t\n\t\n\tfunction toJsonReplacer(key, value) {\n\t var val = value;\n\t\n\t if (typeof key === 'string' && key.charAt(0) === '$' && key.charAt(1) === '$') {\n\t val = undefined;\n\t } else if (isWindow(value)) {\n\t val = '$WINDOW';\n\t } else if (value && document === value) {\n\t val = '$DOCUMENT';\n\t } else if (isScope(value)) {\n\t val = '$SCOPE';\n\t }\n\t\n\t return val;\n\t}\n\t\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.toJson\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Serializes input into a JSON-formatted string. Properties with leading $$ characters will be\n\t * stripped since angular uses this notation internally.\n\t *\n\t * @param {Object|Array|Date|string|number} obj Input to be serialized into JSON.\n\t * @param {boolean|number} [pretty=2] If set to true, the JSON output will contain newlines and whitespace.\n\t * If set to an integer, the JSON output will contain that many spaces per indentation.\n\t * @returns {string|undefined} JSON-ified string representing `obj`.\n\t */\n\tfunction toJson(obj, pretty) {\n\t if (isUndefined(obj)) return undefined;\n\t if (!isNumber(pretty)) {\n\t pretty = pretty ? 2 : null;\n\t }\n\t return JSON.stringify(obj, toJsonReplacer, pretty);\n\t}\n\t\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.fromJson\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Deserializes a JSON string.\n\t *\n\t * @param {string} json JSON string to deserialize.\n\t * @returns {Object|Array|string|number} Deserialized JSON string.\n\t */\n\tfunction fromJson(json) {\n\t return isString(json)\n\t ? JSON.parse(json)\n\t : json;\n\t}\n\t\n\t\n\tvar ALL_COLONS = /:/g;\n\tfunction timezoneToOffset(timezone, fallback) {\n\t // IE/Edge do not \"understand\" colon (`:`) in timezone\n\t timezone = timezone.replace(ALL_COLONS, '');\n\t var requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;\n\t return isNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset;\n\t}\n\t\n\t\n\tfunction addDateMinutes(date, minutes) {\n\t date = new Date(date.getTime());\n\t date.setMinutes(date.getMinutes() + minutes);\n\t return date;\n\t}\n\t\n\t\n\tfunction convertTimezoneToLocal(date, timezone, reverse) {\n\t reverse = reverse ? -1 : 1;\n\t var dateTimezoneOffset = date.getTimezoneOffset();\n\t var timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);\n\t return addDateMinutes(date, reverse * (timezoneOffset - dateTimezoneOffset));\n\t}\n\t\n\t\n\t/**\n\t * @returns {string} Returns the string representation of the element.\n\t */\n\tfunction startingTag(element) {\n\t element = jqLite(element).clone();\n\t try {\n\t // turns out IE does not let you set .html() on elements which\n\t // are not allowed to have children. So we just ignore it.\n\t element.empty();\n\t } catch (e) {}\n\t var elemHtml = jqLite('
').append(element).html();\n\t try {\n\t return element[0].nodeType === NODE_TYPE_TEXT ? lowercase(elemHtml) :\n\t elemHtml.\n\t match(/^(<[^>]+>)/)[1].\n\t replace(/^<([\\w\\-]+)/, function(match, nodeName) {return '<' + lowercase(nodeName);});\n\t } catch (e) {\n\t return lowercase(elemHtml);\n\t }\n\t\n\t}\n\t\n\t\n\t/////////////////////////////////////////////////\n\t\n\t/**\n\t * Tries to decode the URI component without throwing an exception.\n\t *\n\t * @private\n\t * @param str value potential URI component to check.\n\t * @returns {boolean} True if `value` can be decoded\n\t * with the decodeURIComponent function.\n\t */\n\tfunction tryDecodeURIComponent(value) {\n\t try {\n\t return decodeURIComponent(value);\n\t } catch (e) {\n\t // Ignore any invalid uri component\n\t }\n\t}\n\t\n\t\n\t/**\n\t * Parses an escaped url query string into key-value pairs.\n\t * @returns {Object.}\n\t */\n\tfunction parseKeyValue(/**string*/keyValue) {\n\t var obj = {};\n\t forEach((keyValue || \"\").split('&'), function(keyValue) {\n\t var splitPoint, key, val;\n\t if (keyValue) {\n\t key = keyValue = keyValue.replace(/\\+/g,'%20');\n\t splitPoint = keyValue.indexOf('=');\n\t if (splitPoint !== -1) {\n\t key = keyValue.substring(0, splitPoint);\n\t val = keyValue.substring(splitPoint + 1);\n\t }\n\t key = tryDecodeURIComponent(key);\n\t if (isDefined(key)) {\n\t val = isDefined(val) ? tryDecodeURIComponent(val) : true;\n\t if (!hasOwnProperty.call(obj, key)) {\n\t obj[key] = val;\n\t } else if (isArray(obj[key])) {\n\t obj[key].push(val);\n\t } else {\n\t obj[key] = [obj[key],val];\n\t }\n\t }\n\t }\n\t });\n\t return obj;\n\t}\n\t\n\tfunction toKeyValue(obj) {\n\t var parts = [];\n\t forEach(obj, function(value, key) {\n\t if (isArray(value)) {\n\t forEach(value, function(arrayValue) {\n\t parts.push(encodeUriQuery(key, true) +\n\t (arrayValue === true ? '' : '=' + encodeUriQuery(arrayValue, true)));\n\t });\n\t } else {\n\t parts.push(encodeUriQuery(key, true) +\n\t (value === true ? '' : '=' + encodeUriQuery(value, true)));\n\t }\n\t });\n\t return parts.length ? parts.join('&') : '';\n\t}\n\t\n\t\n\t/**\n\t * We need our custom method because encodeURIComponent is too aggressive and doesn't follow\n\t * http://www.ietf.org/rfc/rfc3986.txt with regards to the character set (pchar) allowed in path\n\t * segments:\n\t * segment = *pchar\n\t * pchar = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\n\t * pct-encoded = \"%\" HEXDIG HEXDIG\n\t * unreserved = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n\t * sub-delims = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"\n\t * / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n\t */\n\tfunction encodeUriSegment(val) {\n\t return encodeUriQuery(val, true).\n\t replace(/%26/gi, '&').\n\t replace(/%3D/gi, '=').\n\t replace(/%2B/gi, '+');\n\t}\n\t\n\t\n\t/**\n\t * This method is intended for encoding *key* or *value* parts of query component. We need a custom\n\t * method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be\n\t * encoded per http://tools.ietf.org/html/rfc3986:\n\t * query = *( pchar / \"/\" / \"?\" )\n\t * pchar = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\n\t * unreserved = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n\t * pct-encoded = \"%\" HEXDIG HEXDIG\n\t * sub-delims = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"\n\t * / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n\t */\n\tfunction encodeUriQuery(val, pctEncodeSpaces) {\n\t return encodeURIComponent(val).\n\t replace(/%40/gi, '@').\n\t replace(/%3A/gi, ':').\n\t replace(/%24/g, '$').\n\t replace(/%2C/gi, ',').\n\t replace(/%3B/gi, ';').\n\t replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n\t}\n\t\n\tvar ngAttrPrefixes = ['ng-', 'data-ng-', 'ng:', 'x-ng-'];\n\t\n\tfunction getNgAttribute(element, ngAttr) {\n\t var attr, i, ii = ngAttrPrefixes.length;\n\t for (i = 0; i < ii; ++i) {\n\t attr = ngAttrPrefixes[i] + ngAttr;\n\t if (isString(attr = element.getAttribute(attr))) {\n\t return attr;\n\t }\n\t }\n\t return null;\n\t}\n\t\n\t/**\n\t * @ngdoc directive\n\t * @name ngApp\n\t * @module ng\n\t *\n\t * @element ANY\n\t * @param {angular.Module} ngApp an optional application\n\t * {@link angular.module module} name to load.\n\t * @param {boolean=} ngStrictDi if this attribute is present on the app element, the injector will be\n\t * created in \"strict-di\" mode. This means that the application will fail to invoke functions which\n\t * do not use explicit function annotation (and are thus unsuitable for minification), as described\n\t * in {@link guide/di the Dependency Injection guide}, and useful debugging info will assist in\n\t * tracking down the root of these bugs.\n\t *\n\t * @description\n\t *\n\t * Use this directive to **auto-bootstrap** an AngularJS application. The `ngApp` directive\n\t * designates the **root element** of the application and is typically placed near the root element\n\t * of the page - e.g. on the `` or `` tags.\n\t *\n\t * Only one AngularJS application can be auto-bootstrapped per HTML document. The first `ngApp`\n\t * found in the document will be used to define the root element to auto-bootstrap as an\n\t * application. To run multiple applications in an HTML document you must manually bootstrap them using\n\t * {@link angular.bootstrap} instead. AngularJS applications cannot be nested within each other.\n\t *\n\t * You can specify an **AngularJS module** to be used as the root module for the application. This\n\t * module will be loaded into the {@link auto.$injector} when the application is bootstrapped. It\n\t * should contain the application code needed or have dependencies on other modules that will\n\t * contain the code. See {@link angular.module} for more information.\n\t *\n\t * In the example below if the `ngApp` directive were not placed on the `html` element then the\n\t * document would not be compiled, the `AppController` would not be instantiated and the `{{ a+b }}`\n\t * would not be resolved to `3`.\n\t *\n\t * `ngApp` is the easiest, and most common way to bootstrap an application.\n\t *\n\t \n\t \n\t
\n\t I can add: {{a}} + {{b}} = {{ a+b }}\n\t
\n\t
\n\t \n\t angular.module('ngAppDemo', []).controller('ngAppDemoController', function($scope) {\n\t $scope.a = 1;\n\t $scope.b = 2;\n\t });\n\t \n\t
\n\t *\n\t * Using `ngStrictDi`, you would see something like this:\n\t *\n\t \n\t \n\t
\n\t
\n\t I can add: {{a}} + {{b}} = {{ a+b }}\n\t\n\t

This renders because the controller does not fail to\n\t instantiate, by using explicit annotation style (see\n\t script.js for details)\n\t

\n\t
\n\t\n\t
\n\t Name:
\n\t Hello, {{name}}!\n\t\n\t

This renders because the controller does not fail to\n\t instantiate, by using explicit annotation style\n\t (see script.js for details)\n\t

\n\t
\n\t\n\t
\n\t I can add: {{a}} + {{b}} = {{ a+b }}\n\t\n\t

The controller could not be instantiated, due to relying\n\t on automatic function annotations (which are disabled in\n\t strict mode). As such, the content of this section is not\n\t interpolated, and there should be an error in your web console.\n\t

\n\t
\n\t
\n\t
\n\t \n\t angular.module('ngAppStrictDemo', [])\n\t // BadController will fail to instantiate, due to relying on automatic function annotation,\n\t // rather than an explicit annotation\n\t .controller('BadController', function($scope) {\n\t $scope.a = 1;\n\t $scope.b = 2;\n\t })\n\t // Unlike BadController, GoodController1 and GoodController2 will not fail to be instantiated,\n\t // due to using explicit annotations using the array style and $inject property, respectively.\n\t .controller('GoodController1', ['$scope', function($scope) {\n\t $scope.a = 1;\n\t $scope.b = 2;\n\t }])\n\t .controller('GoodController2', GoodController2);\n\t function GoodController2($scope) {\n\t $scope.name = \"World\";\n\t }\n\t GoodController2.$inject = ['$scope'];\n\t \n\t \n\t div[ng-controller] {\n\t margin-bottom: 1em;\n\t -webkit-border-radius: 4px;\n\t border-radius: 4px;\n\t border: 1px solid;\n\t padding: .5em;\n\t }\n\t div[ng-controller^=Good] {\n\t border-color: #d6e9c6;\n\t background-color: #dff0d8;\n\t color: #3c763d;\n\t }\n\t div[ng-controller^=Bad] {\n\t border-color: #ebccd1;\n\t background-color: #f2dede;\n\t color: #a94442;\n\t margin-bottom: 0;\n\t }\n\t \n\t
\n\t */\n\tfunction angularInit(element, bootstrap) {\n\t var appElement,\n\t module,\n\t config = {};\n\t\n\t // The element `element` has priority over any other element\n\t forEach(ngAttrPrefixes, function(prefix) {\n\t var name = prefix + 'app';\n\t\n\t if (!appElement && element.hasAttribute && element.hasAttribute(name)) {\n\t appElement = element;\n\t module = element.getAttribute(name);\n\t }\n\t });\n\t forEach(ngAttrPrefixes, function(prefix) {\n\t var name = prefix + 'app';\n\t var candidate;\n\t\n\t if (!appElement && (candidate = element.querySelector('[' + name.replace(':', '\\\\:') + ']'))) {\n\t appElement = candidate;\n\t module = candidate.getAttribute(name);\n\t }\n\t });\n\t if (appElement) {\n\t config.strictDi = getNgAttribute(appElement, \"strict-di\") !== null;\n\t bootstrap(appElement, module ? [module] : [], config);\n\t }\n\t}\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.bootstrap\n\t * @module ng\n\t * @description\n\t * Use this function to manually start up angular application.\n\t *\n\t * See: {@link guide/bootstrap Bootstrap}\n\t *\n\t * Note that Protractor based end-to-end tests cannot use this function to bootstrap manually.\n\t * They must use {@link ng.directive:ngApp ngApp}.\n\t *\n\t * Angular will detect if it has been loaded into the browser more than once and only allow the\n\t * first loaded script to be bootstrapped and will report a warning to the browser console for\n\t * each of the subsequent scripts. This prevents strange results in applications, where otherwise\n\t * multiple instances of Angular try to work on the DOM.\n\t *\n\t * ```html\n\t * \n\t * \n\t * \n\t *
\n\t * {{greeting}}\n\t *
\n\t *\n\t * \n\t * \n\t * \n\t * \n\t * ```\n\t *\n\t * @param {DOMElement} element DOM element which is the root of angular application.\n\t * @param {Array=} modules an array of modules to load into the application.\n\t * Each item in the array should be the name of a predefined module or a (DI annotated)\n\t * function that will be invoked by the injector as a `config` block.\n\t * See: {@link angular.module modules}\n\t * @param {Object=} config an object for defining configuration options for the application. The\n\t * following keys are supported:\n\t *\n\t * * `strictDi` - disable automatic function annotation for the application. This is meant to\n\t * assist in finding bugs which break minified code. Defaults to `false`.\n\t *\n\t * @returns {auto.$injector} Returns the newly created injector for this app.\n\t */\n\tfunction bootstrap(element, modules, config) {\n\t if (!isObject(config)) config = {};\n\t var defaultConfig = {\n\t strictDi: false\n\t };\n\t config = extend(defaultConfig, config);\n\t var doBootstrap = function() {\n\t element = jqLite(element);\n\t\n\t if (element.injector()) {\n\t var tag = (element[0] === document) ? 'document' : startingTag(element);\n\t //Encode angle brackets to prevent input from being sanitized to empty string #8683\n\t throw ngMinErr(\n\t 'btstrpd',\n\t \"App already bootstrapped with this element '{0}'\",\n\t tag.replace(//,'>'));\n\t }\n\t\n\t modules = modules || [];\n\t modules.unshift(['$provide', function($provide) {\n\t $provide.value('$rootElement', element);\n\t }]);\n\t\n\t if (config.debugInfoEnabled) {\n\t // Pushing so that this overrides `debugInfoEnabled` setting defined in user's `modules`.\n\t modules.push(['$compileProvider', function($compileProvider) {\n\t $compileProvider.debugInfoEnabled(true);\n\t }]);\n\t }\n\t\n\t modules.unshift('ng');\n\t var injector = createInjector(modules, config.strictDi);\n\t injector.invoke(['$rootScope', '$rootElement', '$compile', '$injector',\n\t function bootstrapApply(scope, element, compile, injector) {\n\t scope.$apply(function() {\n\t element.data('$injector', injector);\n\t compile(element)(scope);\n\t });\n\t }]\n\t );\n\t return injector;\n\t };\n\t\n\t var NG_ENABLE_DEBUG_INFO = /^NG_ENABLE_DEBUG_INFO!/;\n\t var NG_DEFER_BOOTSTRAP = /^NG_DEFER_BOOTSTRAP!/;\n\t\n\t if (window && NG_ENABLE_DEBUG_INFO.test(window.name)) {\n\t config.debugInfoEnabled = true;\n\t window.name = window.name.replace(NG_ENABLE_DEBUG_INFO, '');\n\t }\n\t\n\t if (window && !NG_DEFER_BOOTSTRAP.test(window.name)) {\n\t return doBootstrap();\n\t }\n\t\n\t window.name = window.name.replace(NG_DEFER_BOOTSTRAP, '');\n\t angular.resumeBootstrap = function(extraModules) {\n\t forEach(extraModules, function(module) {\n\t modules.push(module);\n\t });\n\t return doBootstrap();\n\t };\n\t\n\t if (isFunction(angular.resumeDeferredBootstrap)) {\n\t angular.resumeDeferredBootstrap();\n\t }\n\t}\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.reloadWithDebugInfo\n\t * @module ng\n\t * @description\n\t * Use this function to reload the current application with debug information turned on.\n\t * This takes precedence over a call to `$compileProvider.debugInfoEnabled(false)`.\n\t *\n\t * See {@link ng.$compileProvider#debugInfoEnabled} for more.\n\t */\n\tfunction reloadWithDebugInfo() {\n\t window.name = 'NG_ENABLE_DEBUG_INFO!' + window.name;\n\t window.location.reload();\n\t}\n\t\n\t/**\n\t * @name angular.getTestability\n\t * @module ng\n\t * @description\n\t * Get the testability service for the instance of Angular on the given\n\t * element.\n\t * @param {DOMElement} element DOM element which is the root of angular application.\n\t */\n\tfunction getTestability(rootElement) {\n\t var injector = angular.element(rootElement).injector();\n\t if (!injector) {\n\t throw ngMinErr('test',\n\t 'no injector found for element argument to getTestability');\n\t }\n\t return injector.get('$$testability');\n\t}\n\t\n\tvar SNAKE_CASE_REGEXP = /[A-Z]/g;\n\tfunction snake_case(name, separator) {\n\t separator = separator || '_';\n\t return name.replace(SNAKE_CASE_REGEXP, function(letter, pos) {\n\t return (pos ? separator : '') + letter.toLowerCase();\n\t });\n\t}\n\t\n\tvar bindJQueryFired = false;\n\tvar skipDestroyOnNextJQueryCleanData;\n\tfunction bindJQuery() {\n\t var originalCleanData;\n\t\n\t if (bindJQueryFired) {\n\t return;\n\t }\n\t\n\t // bind to jQuery if present;\n\t var jqName = jq();\n\t jQuery = isUndefined(jqName) ? window.jQuery : // use jQuery (if present)\n\t !jqName ? undefined : // use jqLite\n\t window[jqName]; // use jQuery specified by `ngJq`\n\t\n\t // Use jQuery if it exists with proper functionality, otherwise default to us.\n\t // Angular 1.2+ requires jQuery 1.7+ for on()/off() support.\n\t // Angular 1.3+ technically requires at least jQuery 2.1+ but it may work with older\n\t // versions. It will not work for sure with jQuery <1.7, though.\n\t if (jQuery && jQuery.fn.on) {\n\t jqLite = jQuery;\n\t extend(jQuery.fn, {\n\t scope: JQLitePrototype.scope,\n\t isolateScope: JQLitePrototype.isolateScope,\n\t controller: JQLitePrototype.controller,\n\t injector: JQLitePrototype.injector,\n\t inheritedData: JQLitePrototype.inheritedData\n\t });\n\t\n\t // All nodes removed from the DOM via various jQuery APIs like .remove()\n\t // are passed through jQuery.cleanData. Monkey-patch this method to fire\n\t // the $destroy event on all removed nodes.\n\t originalCleanData = jQuery.cleanData;\n\t jQuery.cleanData = function(elems) {\n\t var events;\n\t if (!skipDestroyOnNextJQueryCleanData) {\n\t for (var i = 0, elem; (elem = elems[i]) != null; i++) {\n\t events = jQuery._data(elem, \"events\");\n\t if (events && events.$destroy) {\n\t jQuery(elem).triggerHandler('$destroy');\n\t }\n\t }\n\t } else {\n\t skipDestroyOnNextJQueryCleanData = false;\n\t }\n\t originalCleanData(elems);\n\t };\n\t } else {\n\t jqLite = JQLite;\n\t }\n\t\n\t angular.element = jqLite;\n\t\n\t // Prevent double-proxying.\n\t bindJQueryFired = true;\n\t}\n\t\n\t/**\n\t * throw error if the argument is falsy.\n\t */\n\tfunction assertArg(arg, name, reason) {\n\t if (!arg) {\n\t throw ngMinErr('areq', \"Argument '{0}' is {1}\", (name || '?'), (reason || \"required\"));\n\t }\n\t return arg;\n\t}\n\t\n\tfunction assertArgFn(arg, name, acceptArrayAnnotation) {\n\t if (acceptArrayAnnotation && isArray(arg)) {\n\t arg = arg[arg.length - 1];\n\t }\n\t\n\t assertArg(isFunction(arg), name, 'not a function, got ' +\n\t (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg));\n\t return arg;\n\t}\n\t\n\t/**\n\t * throw error if the name given is hasOwnProperty\n\t * @param {String} name the name to test\n\t * @param {String} context the context in which the name is used, such as module or directive\n\t */\n\tfunction assertNotHasOwnProperty(name, context) {\n\t if (name === 'hasOwnProperty') {\n\t throw ngMinErr('badname', \"hasOwnProperty is not a valid {0} name\", context);\n\t }\n\t}\n\t\n\t/**\n\t * Return the value accessible from the object by path. Any undefined traversals are ignored\n\t * @param {Object} obj starting object\n\t * @param {String} path path to traverse\n\t * @param {boolean} [bindFnToScope=true]\n\t * @returns {Object} value as accessible by path\n\t */\n\t//TODO(misko): this function needs to be removed\n\tfunction getter(obj, path, bindFnToScope) {\n\t if (!path) return obj;\n\t var keys = path.split('.');\n\t var key;\n\t var lastInstance = obj;\n\t var len = keys.length;\n\t\n\t for (var i = 0; i < len; i++) {\n\t key = keys[i];\n\t if (obj) {\n\t obj = (lastInstance = obj)[key];\n\t }\n\t }\n\t if (!bindFnToScope && isFunction(obj)) {\n\t return bind(lastInstance, obj);\n\t }\n\t return obj;\n\t}\n\t\n\t/**\n\t * Return the DOM siblings between the first and last node in the given array.\n\t * @param {Array} array like object\n\t * @returns {Array} the inputted object or a jqLite collection containing the nodes\n\t */\n\tfunction getBlockNodes(nodes) {\n\t // TODO(perf): update `nodes` instead of creating a new object?\n\t var node = nodes[0];\n\t var endNode = nodes[nodes.length - 1];\n\t var blockNodes;\n\t\n\t for (var i = 1; node !== endNode && (node = node.nextSibling); i++) {\n\t if (blockNodes || nodes[i] !== node) {\n\t if (!blockNodes) {\n\t blockNodes = jqLite(slice.call(nodes, 0, i));\n\t }\n\t blockNodes.push(node);\n\t }\n\t }\n\t\n\t return blockNodes || nodes;\n\t}\n\t\n\t\n\t/**\n\t * Creates a new object without a prototype. This object is useful for lookup without having to\n\t * guard against prototypically inherited properties via hasOwnProperty.\n\t *\n\t * Related micro-benchmarks:\n\t * - http://jsperf.com/object-create2\n\t * - http://jsperf.com/proto-map-lookup/2\n\t * - http://jsperf.com/for-in-vs-object-keys2\n\t *\n\t * @returns {Object}\n\t */\n\tfunction createMap() {\n\t return Object.create(null);\n\t}\n\t\n\tvar NODE_TYPE_ELEMENT = 1;\n\tvar NODE_TYPE_ATTRIBUTE = 2;\n\tvar NODE_TYPE_TEXT = 3;\n\tvar NODE_TYPE_COMMENT = 8;\n\tvar NODE_TYPE_DOCUMENT = 9;\n\tvar NODE_TYPE_DOCUMENT_FRAGMENT = 11;\n\t\n\t/**\n\t * @ngdoc type\n\t * @name angular.Module\n\t * @module ng\n\t * @description\n\t *\n\t * Interface for configuring angular {@link angular.module modules}.\n\t */\n\t\n\tfunction setupModuleLoader(window) {\n\t\n\t var $injectorMinErr = minErr('$injector');\n\t var ngMinErr = minErr('ng');\n\t\n\t function ensure(obj, name, factory) {\n\t return obj[name] || (obj[name] = factory());\n\t }\n\t\n\t var angular = ensure(window, 'angular', Object);\n\t\n\t // We need to expose `angular.$$minErr` to modules such as `ngResource` that reference it during bootstrap\n\t angular.$$minErr = angular.$$minErr || minErr;\n\t\n\t return ensure(angular, 'module', function() {\n\t /** @type {Object.} */\n\t var modules = {};\n\t\n\t /**\n\t * @ngdoc function\n\t * @name angular.module\n\t * @module ng\n\t * @description\n\t *\n\t * The `angular.module` is a global place for creating, registering and retrieving Angular\n\t * modules.\n\t * All modules (angular core or 3rd party) that should be available to an application must be\n\t * registered using this mechanism.\n\t *\n\t * Passing one argument retrieves an existing {@link angular.Module},\n\t * whereas passing more than one argument creates a new {@link angular.Module}\n\t *\n\t *\n\t * # Module\n\t *\n\t * A module is a collection of services, directives, controllers, filters, and configuration information.\n\t * `angular.module` is used to configure the {@link auto.$injector $injector}.\n\t *\n\t * ```js\n\t * // Create a new module\n\t * var myModule = angular.module('myModule', []);\n\t *\n\t * // register a new service\n\t * myModule.value('appName', 'MyCoolApp');\n\t *\n\t * // configure existing services inside initialization blocks.\n\t * myModule.config(['$locationProvider', function($locationProvider) {\n\t * // Configure existing providers\n\t * $locationProvider.hashPrefix('!');\n\t * }]);\n\t * ```\n\t *\n\t * Then you can create an injector and load your modules like this:\n\t *\n\t * ```js\n\t * var injector = angular.injector(['ng', 'myModule'])\n\t * ```\n\t *\n\t * However it's more likely that you'll just use\n\t * {@link ng.directive:ngApp ngApp} or\n\t * {@link angular.bootstrap} to simplify this process for you.\n\t *\n\t * @param {!string} name The name of the module to create or retrieve.\n\t * @param {!Array.=} requires If specified then new module is being created. If\n\t * unspecified then the module is being retrieved for further configuration.\n\t * @param {Function=} configFn Optional configuration function for the module. Same as\n\t * {@link angular.Module#config Module#config()}.\n\t * @returns {angular.Module} new module with the {@link angular.Module} api.\n\t */\n\t return function module(name, requires, configFn) {\n\t var assertNotHasOwnProperty = function(name, context) {\n\t if (name === 'hasOwnProperty') {\n\t throw ngMinErr('badname', 'hasOwnProperty is not a valid {0} name', context);\n\t }\n\t };\n\t\n\t assertNotHasOwnProperty(name, 'module');\n\t if (requires && modules.hasOwnProperty(name)) {\n\t modules[name] = null;\n\t }\n\t return ensure(modules, name, function() {\n\t if (!requires) {\n\t throw $injectorMinErr('nomod', \"Module '{0}' is not available! You either misspelled \" +\n\t \"the module name or forgot to load it. If registering a module ensure that you \" +\n\t \"specify the dependencies as the second argument.\", name);\n\t }\n\t\n\t /** @type {!Array.>} */\n\t var invokeQueue = [];\n\t\n\t /** @type {!Array.} */\n\t var configBlocks = [];\n\t\n\t /** @type {!Array.} */\n\t var runBlocks = [];\n\t\n\t var config = invokeLater('$injector', 'invoke', 'push', configBlocks);\n\t\n\t /** @type {angular.Module} */\n\t var moduleInstance = {\n\t // Private state\n\t _invokeQueue: invokeQueue,\n\t _configBlocks: configBlocks,\n\t _runBlocks: runBlocks,\n\t\n\t /**\n\t * @ngdoc property\n\t * @name angular.Module#requires\n\t * @module ng\n\t *\n\t * @description\n\t * Holds the list of modules which the injector will load before the current module is\n\t * loaded.\n\t */\n\t requires: requires,\n\t\n\t /**\n\t * @ngdoc property\n\t * @name angular.Module#name\n\t * @module ng\n\t *\n\t * @description\n\t * Name of the module.\n\t */\n\t name: name,\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name angular.Module#provider\n\t * @module ng\n\t * @param {string} name service name\n\t * @param {Function} providerType Construction function for creating new instance of the\n\t * service.\n\t * @description\n\t * See {@link auto.$provide#provider $provide.provider()}.\n\t */\n\t provider: invokeLaterAndSetModuleName('$provide', 'provider'),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name angular.Module#factory\n\t * @module ng\n\t * @param {string} name service name\n\t * @param {Function} providerFunction Function for creating new instance of the service.\n\t * @description\n\t * See {@link auto.$provide#factory $provide.factory()}.\n\t */\n\t factory: invokeLaterAndSetModuleName('$provide', 'factory'),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name angular.Module#service\n\t * @module ng\n\t * @param {string} name service name\n\t * @param {Function} constructor A constructor function that will be instantiated.\n\t * @description\n\t * See {@link auto.$provide#service $provide.service()}.\n\t */\n\t service: invokeLaterAndSetModuleName('$provide', 'service'),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name angular.Module#value\n\t * @module ng\n\t * @param {string} name service name\n\t * @param {*} object Service instance object.\n\t * @description\n\t * See {@link auto.$provide#value $provide.value()}.\n\t */\n\t value: invokeLater('$provide', 'value'),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name angular.Module#constant\n\t * @module ng\n\t * @param {string} name constant name\n\t * @param {*} object Constant value.\n\t * @description\n\t * Because the constants are fixed, they get applied before other provide methods.\n\t * See {@link auto.$provide#constant $provide.constant()}.\n\t */\n\t constant: invokeLater('$provide', 'constant', 'unshift'),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name angular.Module#decorator\n\t * @module ng\n\t * @param {string} name The name of the service to decorate.\n\t * @param {Function} decorFn This function will be invoked when the service needs to be\n\t * instantiated and should return the decorated service instance.\n\t * @description\n\t * See {@link auto.$provide#decorator $provide.decorator()}.\n\t */\n\t decorator: invokeLaterAndSetModuleName('$provide', 'decorator'),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name angular.Module#animation\n\t * @module ng\n\t * @param {string} name animation name\n\t * @param {Function} animationFactory Factory function for creating new instance of an\n\t * animation.\n\t * @description\n\t *\n\t * **NOTE**: animations take effect only if the **ngAnimate** module is loaded.\n\t *\n\t *\n\t * Defines an animation hook that can be later used with\n\t * {@link $animate $animate} service and directives that use this service.\n\t *\n\t * ```js\n\t * module.animation('.animation-name', function($inject1, $inject2) {\n\t * return {\n\t * eventName : function(element, done) {\n\t * //code to run the animation\n\t * //once complete, then run done()\n\t * return function cancellationFunction(element) {\n\t * //code to cancel the animation\n\t * }\n\t * }\n\t * }\n\t * })\n\t * ```\n\t *\n\t * See {@link ng.$animateProvider#register $animateProvider.register()} and\n\t * {@link ngAnimate ngAnimate module} for more information.\n\t */\n\t animation: invokeLaterAndSetModuleName('$animateProvider', 'register'),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name angular.Module#filter\n\t * @module ng\n\t * @param {string} name Filter name - this must be a valid angular expression identifier\n\t * @param {Function} filterFactory Factory function for creating new instance of filter.\n\t * @description\n\t * See {@link ng.$filterProvider#register $filterProvider.register()}.\n\t *\n\t *
\n\t * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.\n\t * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace\n\t * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores\n\t * (`myapp_subsection_filterx`).\n\t *
\n\t */\n\t filter: invokeLaterAndSetModuleName('$filterProvider', 'register'),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name angular.Module#controller\n\t * @module ng\n\t * @param {string|Object} name Controller name, or an object map of controllers where the\n\t * keys are the names and the values are the constructors.\n\t * @param {Function} constructor Controller constructor function.\n\t * @description\n\t * See {@link ng.$controllerProvider#register $controllerProvider.register()}.\n\t */\n\t controller: invokeLaterAndSetModuleName('$controllerProvider', 'register'),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name angular.Module#directive\n\t * @module ng\n\t * @param {string|Object} name Directive name, or an object map of directives where the\n\t * keys are the names and the values are the factories.\n\t * @param {Function} directiveFactory Factory function for creating new instance of\n\t * directives.\n\t * @description\n\t * See {@link ng.$compileProvider#directive $compileProvider.directive()}.\n\t */\n\t directive: invokeLaterAndSetModuleName('$compileProvider', 'directive'),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name angular.Module#config\n\t * @module ng\n\t * @param {Function} configFn Execute this function on module load. Useful for service\n\t * configuration.\n\t * @description\n\t * Use this method to register work which needs to be performed on module loading.\n\t * For more about how to configure services, see\n\t * {@link providers#provider-recipe Provider Recipe}.\n\t */\n\t config: config,\n\t\n\t /**\n\t * @ngdoc method\n\t * @name angular.Module#run\n\t * @module ng\n\t * @param {Function} initializationFn Execute this function after injector creation.\n\t * Useful for application initialization.\n\t * @description\n\t * Use this method to register work which should be performed when the injector is done\n\t * loading all modules.\n\t */\n\t run: function(block) {\n\t runBlocks.push(block);\n\t return this;\n\t }\n\t };\n\t\n\t if (configFn) {\n\t config(configFn);\n\t }\n\t\n\t return moduleInstance;\n\t\n\t /**\n\t * @param {string} provider\n\t * @param {string} method\n\t * @param {String=} insertMethod\n\t * @returns {angular.Module}\n\t */\n\t function invokeLater(provider, method, insertMethod, queue) {\n\t if (!queue) queue = invokeQueue;\n\t return function() {\n\t queue[insertMethod || 'push']([provider, method, arguments]);\n\t return moduleInstance;\n\t };\n\t }\n\t\n\t /**\n\t * @param {string} provider\n\t * @param {string} method\n\t * @returns {angular.Module}\n\t */\n\t function invokeLaterAndSetModuleName(provider, method) {\n\t return function(recipeName, factoryFunction) {\n\t if (factoryFunction && isFunction(factoryFunction)) factoryFunction.$$moduleName = name;\n\t invokeQueue.push([provider, method, arguments]);\n\t return moduleInstance;\n\t };\n\t }\n\t });\n\t };\n\t });\n\t\n\t}\n\t\n\t/* global: toDebugString: true */\n\t\n\tfunction serializeObject(obj) {\n\t var seen = [];\n\t\n\t return JSON.stringify(obj, function(key, val) {\n\t val = toJsonReplacer(key, val);\n\t if (isObject(val)) {\n\t\n\t if (seen.indexOf(val) >= 0) return '...';\n\t\n\t seen.push(val);\n\t }\n\t return val;\n\t });\n\t}\n\t\n\tfunction toDebugString(obj) {\n\t if (typeof obj === 'function') {\n\t return obj.toString().replace(/ \\{[\\s\\S]*$/, '');\n\t } else if (isUndefined(obj)) {\n\t return 'undefined';\n\t } else if (typeof obj !== 'string') {\n\t return serializeObject(obj);\n\t }\n\t return obj;\n\t}\n\t\n\t/* global angularModule: true,\n\t version: true,\n\t\n\t $CompileProvider,\n\t\n\t htmlAnchorDirective,\n\t inputDirective,\n\t inputDirective,\n\t formDirective,\n\t scriptDirective,\n\t selectDirective,\n\t styleDirective,\n\t optionDirective,\n\t ngBindDirective,\n\t ngBindHtmlDirective,\n\t ngBindTemplateDirective,\n\t ngClassDirective,\n\t ngClassEvenDirective,\n\t ngClassOddDirective,\n\t ngCloakDirective,\n\t ngControllerDirective,\n\t ngFormDirective,\n\t ngHideDirective,\n\t ngIfDirective,\n\t ngIncludeDirective,\n\t ngIncludeFillContentDirective,\n\t ngInitDirective,\n\t ngNonBindableDirective,\n\t ngPluralizeDirective,\n\t ngRepeatDirective,\n\t ngShowDirective,\n\t ngStyleDirective,\n\t ngSwitchDirective,\n\t ngSwitchWhenDirective,\n\t ngSwitchDefaultDirective,\n\t ngOptionsDirective,\n\t ngTranscludeDirective,\n\t ngModelDirective,\n\t ngListDirective,\n\t ngChangeDirective,\n\t patternDirective,\n\t patternDirective,\n\t requiredDirective,\n\t requiredDirective,\n\t minlengthDirective,\n\t minlengthDirective,\n\t maxlengthDirective,\n\t maxlengthDirective,\n\t ngValueDirective,\n\t ngModelOptionsDirective,\n\t ngAttributeAliasDirectives,\n\t ngEventDirectives,\n\t\n\t $AnchorScrollProvider,\n\t $AnimateProvider,\n\t $CoreAnimateCssProvider,\n\t $$CoreAnimateJsProvider,\n\t $$CoreAnimateQueueProvider,\n\t $$AnimateRunnerFactoryProvider,\n\t $$AnimateAsyncRunFactoryProvider,\n\t $BrowserProvider,\n\t $CacheFactoryProvider,\n\t $ControllerProvider,\n\t $DocumentProvider,\n\t $ExceptionHandlerProvider,\n\t $FilterProvider,\n\t $$ForceReflowProvider,\n\t $InterpolateProvider,\n\t $IntervalProvider,\n\t $$HashMapProvider,\n\t $HttpProvider,\n\t $HttpParamSerializerProvider,\n\t $HttpParamSerializerJQLikeProvider,\n\t $HttpBackendProvider,\n\t $xhrFactoryProvider,\n\t $LocationProvider,\n\t $LogProvider,\n\t $ParseProvider,\n\t $RootScopeProvider,\n\t $QProvider,\n\t $$QProvider,\n\t $$SanitizeUriProvider,\n\t $SceProvider,\n\t $SceDelegateProvider,\n\t $SnifferProvider,\n\t $TemplateCacheProvider,\n\t $TemplateRequestProvider,\n\t $$TestabilityProvider,\n\t $TimeoutProvider,\n\t $$RAFProvider,\n\t $WindowProvider,\n\t $$jqLiteProvider,\n\t $$CookieReaderProvider\n\t*/\n\t\n\t\n\t/**\n\t * @ngdoc object\n\t * @name angular.version\n\t * @module ng\n\t * @description\n\t * An object that contains information about the current AngularJS version.\n\t *\n\t * This object has the following properties:\n\t *\n\t * - `full` – `{string}` – Full version string, such as \"0.9.18\".\n\t * - `major` – `{number}` – Major version number, such as \"0\".\n\t * - `minor` – `{number}` – Minor version number, such as \"9\".\n\t * - `dot` – `{number}` – Dot version number, such as \"18\".\n\t * - `codeName` – `{string}` – Code name of the release, such as \"jiggling-armfat\".\n\t */\n\tvar version = {\n\t full: '1.4.14', // all of these placeholder strings will be replaced by grunt's\n\t major: 1, // package task\n\t minor: 4,\n\t dot: 14,\n\t codeName: 'material-distinction'\n\t};\n\t\n\t\n\tfunction publishExternalAPI(angular) {\n\t extend(angular, {\n\t 'bootstrap': bootstrap,\n\t 'copy': copy,\n\t 'extend': extend,\n\t 'merge': merge,\n\t 'equals': equals,\n\t 'element': jqLite,\n\t 'forEach': forEach,\n\t 'injector': createInjector,\n\t 'noop': noop,\n\t 'bind': bind,\n\t 'toJson': toJson,\n\t 'fromJson': fromJson,\n\t 'identity': identity,\n\t 'isUndefined': isUndefined,\n\t 'isDefined': isDefined,\n\t 'isString': isString,\n\t 'isFunction': isFunction,\n\t 'isObject': isObject,\n\t 'isNumber': isNumber,\n\t 'isElement': isElement,\n\t 'isArray': isArray,\n\t 'version': version,\n\t 'isDate': isDate,\n\t 'lowercase': lowercase,\n\t 'uppercase': uppercase,\n\t 'callbacks': {counter: 0},\n\t 'getTestability': getTestability,\n\t '$$minErr': minErr,\n\t '$$csp': csp,\n\t 'reloadWithDebugInfo': reloadWithDebugInfo\n\t });\n\t\n\t angularModule = setupModuleLoader(window);\n\t\n\t angularModule('ng', ['ngLocale'], ['$provide',\n\t function ngModule($provide) {\n\t // $$sanitizeUriProvider needs to be before $compileProvider as it is used by it.\n\t $provide.provider({\n\t $$sanitizeUri: $$SanitizeUriProvider\n\t });\n\t $provide.provider('$compile', $CompileProvider).\n\t directive({\n\t a: htmlAnchorDirective,\n\t input: inputDirective,\n\t textarea: inputDirective,\n\t form: formDirective,\n\t script: scriptDirective,\n\t select: selectDirective,\n\t style: styleDirective,\n\t option: optionDirective,\n\t ngBind: ngBindDirective,\n\t ngBindHtml: ngBindHtmlDirective,\n\t ngBindTemplate: ngBindTemplateDirective,\n\t ngClass: ngClassDirective,\n\t ngClassEven: ngClassEvenDirective,\n\t ngClassOdd: ngClassOddDirective,\n\t ngCloak: ngCloakDirective,\n\t ngController: ngControllerDirective,\n\t ngForm: ngFormDirective,\n\t ngHide: ngHideDirective,\n\t ngIf: ngIfDirective,\n\t ngInclude: ngIncludeDirective,\n\t ngInit: ngInitDirective,\n\t ngNonBindable: ngNonBindableDirective,\n\t ngPluralize: ngPluralizeDirective,\n\t ngRepeat: ngRepeatDirective,\n\t ngShow: ngShowDirective,\n\t ngStyle: ngStyleDirective,\n\t ngSwitch: ngSwitchDirective,\n\t ngSwitchWhen: ngSwitchWhenDirective,\n\t ngSwitchDefault: ngSwitchDefaultDirective,\n\t ngOptions: ngOptionsDirective,\n\t ngTransclude: ngTranscludeDirective,\n\t ngModel: ngModelDirective,\n\t ngList: ngListDirective,\n\t ngChange: ngChangeDirective,\n\t pattern: patternDirective,\n\t ngPattern: patternDirective,\n\t required: requiredDirective,\n\t ngRequired: requiredDirective,\n\t minlength: minlengthDirective,\n\t ngMinlength: minlengthDirective,\n\t maxlength: maxlengthDirective,\n\t ngMaxlength: maxlengthDirective,\n\t ngValue: ngValueDirective,\n\t ngModelOptions: ngModelOptionsDirective\n\t }).\n\t directive({\n\t ngInclude: ngIncludeFillContentDirective\n\t }).\n\t directive(ngAttributeAliasDirectives).\n\t directive(ngEventDirectives);\n\t $provide.provider({\n\t $anchorScroll: $AnchorScrollProvider,\n\t $animate: $AnimateProvider,\n\t $animateCss: $CoreAnimateCssProvider,\n\t $$animateJs: $$CoreAnimateJsProvider,\n\t $$animateQueue: $$CoreAnimateQueueProvider,\n\t $$AnimateRunner: $$AnimateRunnerFactoryProvider,\n\t $$animateAsyncRun: $$AnimateAsyncRunFactoryProvider,\n\t $browser: $BrowserProvider,\n\t $cacheFactory: $CacheFactoryProvider,\n\t $controller: $ControllerProvider,\n\t $document: $DocumentProvider,\n\t $exceptionHandler: $ExceptionHandlerProvider,\n\t $filter: $FilterProvider,\n\t $$forceReflow: $$ForceReflowProvider,\n\t $interpolate: $InterpolateProvider,\n\t $interval: $IntervalProvider,\n\t $http: $HttpProvider,\n\t $httpParamSerializer: $HttpParamSerializerProvider,\n\t $httpParamSerializerJQLike: $HttpParamSerializerJQLikeProvider,\n\t $httpBackend: $HttpBackendProvider,\n\t $xhrFactory: $xhrFactoryProvider,\n\t $location: $LocationProvider,\n\t $log: $LogProvider,\n\t $parse: $ParseProvider,\n\t $rootScope: $RootScopeProvider,\n\t $q: $QProvider,\n\t $$q: $$QProvider,\n\t $sce: $SceProvider,\n\t $sceDelegate: $SceDelegateProvider,\n\t $sniffer: $SnifferProvider,\n\t $templateCache: $TemplateCacheProvider,\n\t $templateRequest: $TemplateRequestProvider,\n\t $$testability: $$TestabilityProvider,\n\t $timeout: $TimeoutProvider,\n\t $window: $WindowProvider,\n\t $$rAF: $$RAFProvider,\n\t $$jqLite: $$jqLiteProvider,\n\t $$HashMap: $$HashMapProvider,\n\t $$cookieReader: $$CookieReaderProvider\n\t });\n\t }\n\t ]);\n\t}\n\t\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t * Any commits to this file should be reviewed with security in mind. *\n\t * Changes to this file can potentially create security vulnerabilities. *\n\t * An approval from 2 Core members with history of modifying *\n\t * this file is required. *\n\t * *\n\t * Does the change somehow allow for arbitrary javascript to be executed? *\n\t * Or allows for someone to change the prototype of built-in objects? *\n\t * Or gives undesired access to variables likes document or window? *\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\t\n\t/* global JQLitePrototype: true,\n\t addEventListenerFn: true,\n\t removeEventListenerFn: true,\n\t BOOLEAN_ATTR: true,\n\t ALIASED_ATTR: true,\n\t*/\n\t\n\t//////////////////////////////////\n\t//JQLite\n\t//////////////////////////////////\n\t\n\t/**\n\t * @ngdoc function\n\t * @name angular.element\n\t * @module ng\n\t * @kind function\n\t *\n\t * @description\n\t * Wraps a raw DOM element or HTML string as a [jQuery](http://jquery.com) element.\n\t *\n\t * If jQuery is available, `angular.element` is an alias for the\n\t * [jQuery](http://api.jquery.com/jQuery/) function. If jQuery is not available, `angular.element`\n\t * delegates to Angular's built-in subset of jQuery, called \"jQuery lite\" or **jqLite**.\n\t *\n\t * jqLite is a tiny, API-compatible subset of jQuery that allows\n\t * Angular to manipulate the DOM in a cross-browser compatible way. jqLite implements only the most\n\t * commonly needed functionality with the goal of having a very small footprint.\n\t *\n\t * To use `jQuery`, simply ensure it is loaded before the `angular.js` file. You can also use the\n\t * {@link ngJq `ngJq`} directive to specify that jqlite should be used over jQuery, or to use a\n\t * specific version of jQuery if multiple versions exist on the page.\n\t *\n\t *
**Note:** All element references in Angular are always wrapped with jQuery or\n\t * jqLite (such as the element argument in a directive's compile / link function). They are never raw DOM references.
\n\t *\n\t *
**Note:** Keep in mind that this function will not find elements\n\t * by tag name / CSS selector. For lookups by tag name, try instead `angular.element(document).find(...)`\n\t * or `$document.find()`, or use the standard DOM APIs, e.g. `document.querySelectorAll()`.
\n\t *\n\t * ## Angular's jqLite\n\t * jqLite provides only the following jQuery methods:\n\t *\n\t * - [`addClass()`](http://api.jquery.com/addClass/)\n\t * - [`after()`](http://api.jquery.com/after/)\n\t * - [`append()`](http://api.jquery.com/append/)\n\t * - [`attr()`](http://api.jquery.com/attr/) - Does not support functions as parameters\n\t * - [`bind()`](http://api.jquery.com/bind/) - Does not support namespaces, selectors or eventData\n\t * - [`children()`](http://api.jquery.com/children/) - Does not support selectors\n\t * - [`clone()`](http://api.jquery.com/clone/)\n\t * - [`contents()`](http://api.jquery.com/contents/)\n\t * - [`css()`](http://api.jquery.com/css/) - Only retrieves inline-styles, does not call `getComputedStyle()`.\n\t * As a setter, does not convert numbers to strings or append 'px', and also does not have automatic property prefixing.\n\t * - [`data()`](http://api.jquery.com/data/)\n\t * - [`detach()`](http://api.jquery.com/detach/)\n\t * - [`empty()`](http://api.jquery.com/empty/)\n\t * - [`eq()`](http://api.jquery.com/eq/)\n\t * - [`find()`](http://api.jquery.com/find/) - Limited to lookups by tag name\n\t * - [`hasClass()`](http://api.jquery.com/hasClass/)\n\t * - [`html()`](http://api.jquery.com/html/)\n\t * - [`next()`](http://api.jquery.com/next/) - Does not support selectors\n\t * - [`on()`](http://api.jquery.com/on/) - Does not support namespaces, selectors or eventData\n\t * - [`off()`](http://api.jquery.com/off/) - Does not support namespaces, selectors or event object as parameter\n\t * - [`one()`](http://api.jquery.com/one/) - Does not support namespaces or selectors\n\t * - [`parent()`](http://api.jquery.com/parent/) - Does not support selectors\n\t * - [`prepend()`](http://api.jquery.com/prepend/)\n\t * - [`prop()`](http://api.jquery.com/prop/)\n\t * - [`ready()`](http://api.jquery.com/ready/)\n\t * - [`remove()`](http://api.jquery.com/remove/)\n\t * - [`removeAttr()`](http://api.jquery.com/removeAttr/)\n\t * - [`removeClass()`](http://api.jquery.com/removeClass/)\n\t * - [`removeData()`](http://api.jquery.com/removeData/)\n\t * - [`replaceWith()`](http://api.jquery.com/replaceWith/)\n\t * - [`text()`](http://api.jquery.com/text/)\n\t * - [`toggleClass()`](http://api.jquery.com/toggleClass/)\n\t * - [`triggerHandler()`](http://api.jquery.com/triggerHandler/) - Passes a dummy event object to handlers.\n\t * - [`unbind()`](http://api.jquery.com/unbind/) - Does not support namespaces or event object as parameter\n\t * - [`val()`](http://api.jquery.com/val/)\n\t * - [`wrap()`](http://api.jquery.com/wrap/)\n\t *\n\t * ## jQuery/jqLite Extras\n\t * Angular also provides the following additional methods and events to both jQuery and jqLite:\n\t *\n\t * ### Events\n\t * - `$destroy` - AngularJS intercepts all jqLite/jQuery's DOM destruction apis and fires this event\n\t * on all DOM nodes being removed. This can be used to clean up any 3rd party bindings to the DOM\n\t * element before it is removed.\n\t *\n\t * ### Methods\n\t * - `controller(name)` - retrieves the controller of the current element or its parent. By default\n\t * retrieves controller associated with the `ngController` directive. If `name` is provided as\n\t * camelCase directive name, then the controller for this directive will be retrieved (e.g.\n\t * `'ngModel'`).\n\t * - `injector()` - retrieves the injector of the current element or its parent.\n\t * - `scope()` - retrieves the {@link ng.$rootScope.Scope scope} of the current\n\t * element or its parent. Requires {@link guide/production#disabling-debug-data Debug Data} to\n\t * be enabled.\n\t * - `isolateScope()` - retrieves an isolate {@link ng.$rootScope.Scope scope} if one is attached directly to the\n\t * current element. This getter should be used only on elements that contain a directive which starts a new isolate\n\t * scope. Calling `scope()` on this element always returns the original non-isolate scope.\n\t * Requires {@link guide/production#disabling-debug-data Debug Data} to be enabled.\n\t * - `inheritedData()` - same as `data()`, but walks up the DOM until a value is found or the top\n\t * parent element is reached.\n\t *\n\t * @param {string|DOMElement} element HTML string or DOMElement to be wrapped into jQuery.\n\t * @returns {Object} jQuery object.\n\t */\n\t\n\tJQLite.expando = 'ng339';\n\t\n\tvar jqCache = JQLite.cache = {},\n\t jqId = 1,\n\t addEventListenerFn = function(element, type, fn) {\n\t element.addEventListener(type, fn, false);\n\t },\n\t removeEventListenerFn = function(element, type, fn) {\n\t element.removeEventListener(type, fn, false);\n\t };\n\t\n\t/*\n\t * !!! This is an undocumented \"private\" function !!!\n\t */\n\tJQLite._data = function(node) {\n\t //jQuery always returns an object on cache miss\n\t return this.cache[node[this.expando]] || {};\n\t};\n\t\n\tfunction jqNextId() { return ++jqId; }\n\t\n\t\n\tvar SPECIAL_CHARS_REGEXP = /([\\:\\-\\_]+(.))/g;\n\tvar MOZ_HACK_REGEXP = /^moz([A-Z])/;\n\tvar MOUSE_EVENT_MAP= { mouseleave: \"mouseout\", mouseenter: \"mouseover\"};\n\tvar jqLiteMinErr = minErr('jqLite');\n\t\n\t/**\n\t * Converts snake_case to camelCase.\n\t * Also there is special case for Moz prefix starting with upper case letter.\n\t * @param name Name to normalize\n\t */\n\tfunction camelCase(name) {\n\t return name.\n\t replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {\n\t return offset ? letter.toUpperCase() : letter;\n\t }).\n\t replace(MOZ_HACK_REGEXP, 'Moz$1');\n\t}\n\t\n\tvar SINGLE_TAG_REGEXP = /^<([\\w-]+)\\s*\\/?>(?:<\\/\\1>|)$/;\n\tvar HTML_REGEXP = /<|&#?\\w+;/;\n\tvar TAG_NAME_REGEXP = /<([\\w:-]+)/;\n\tvar XHTML_TAG_REGEXP = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:-]+)[^>]*)\\/>/gi;\n\t\n\tvar wrapMap = {\n\t 'option': [1, ''],\n\t\n\t 'thead': [1, '', '
'],\n\t 'col': [2, '', '
'],\n\t 'tr': [2, '', '
'],\n\t 'td': [3, '', '
'],\n\t '_default': [0, \"\", \"\"]\n\t};\n\t\n\twrapMap.optgroup = wrapMap.option;\n\twrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\n\twrapMap.th = wrapMap.td;\n\t\n\t\n\tfunction jqLiteIsTextNode(html) {\n\t return !HTML_REGEXP.test(html);\n\t}\n\t\n\tfunction jqLiteAcceptsData(node) {\n\t // The window object can accept data but has no nodeType\n\t // Otherwise we are only interested in elements (1) and documents (9)\n\t var nodeType = node.nodeType;\n\t return nodeType === NODE_TYPE_ELEMENT || !nodeType || nodeType === NODE_TYPE_DOCUMENT;\n\t}\n\t\n\tfunction jqLiteHasData(node) {\n\t for (var key in jqCache[node.ng339]) {\n\t return true;\n\t }\n\t return false;\n\t}\n\t\n\tfunction jqLiteBuildFragment(html, context) {\n\t var tmp, tag, wrap,\n\t fragment = context.createDocumentFragment(),\n\t nodes = [], i;\n\t\n\t if (jqLiteIsTextNode(html)) {\n\t // Convert non-html into a text node\n\t nodes.push(context.createTextNode(html));\n\t } else {\n\t // Convert html into DOM nodes\n\t tmp = tmp || fragment.appendChild(context.createElement(\"div\"));\n\t tag = (TAG_NAME_REGEXP.exec(html) || [\"\", \"\"])[1].toLowerCase();\n\t wrap = wrapMap[tag] || wrapMap._default;\n\t tmp.innerHTML = wrap[1] + html.replace(XHTML_TAG_REGEXP, \"<$1>\") + wrap[2];\n\t\n\t // Descend through wrappers to the right content\n\t i = wrap[0];\n\t while (i--) {\n\t tmp = tmp.lastChild;\n\t }\n\t\n\t nodes = concat(nodes, tmp.childNodes);\n\t\n\t tmp = fragment.firstChild;\n\t tmp.textContent = \"\";\n\t }\n\t\n\t // Remove wrapper from fragment\n\t fragment.textContent = \"\";\n\t fragment.innerHTML = \"\"; // Clear inner HTML\n\t forEach(nodes, function(node) {\n\t fragment.appendChild(node);\n\t });\n\t\n\t return fragment;\n\t}\n\t\n\tfunction jqLiteParseHTML(html, context) {\n\t context = context || document;\n\t var parsed;\n\t\n\t if ((parsed = SINGLE_TAG_REGEXP.exec(html))) {\n\t return [context.createElement(parsed[1])];\n\t }\n\t\n\t if ((parsed = jqLiteBuildFragment(html, context))) {\n\t return parsed.childNodes;\n\t }\n\t\n\t return [];\n\t}\n\t\n\tfunction jqLiteWrapNode(node, wrapper) {\n\t var parent = node.parentNode;\n\t\n\t if (parent) {\n\t parent.replaceChild(wrapper, node);\n\t }\n\t\n\t wrapper.appendChild(node);\n\t}\n\t\n\t\n\t// IE9-11 has no method \"contains\" in SVG element and in Node.prototype. Bug #10259.\n\tvar jqLiteContains = Node.prototype.contains || function(arg) {\n\t // jshint bitwise: false\n\t return !!(this.compareDocumentPosition(arg) & 16);\n\t // jshint bitwise: true\n\t};\n\t\n\t/////////////////////////////////////////////\n\tfunction JQLite(element) {\n\t if (element instanceof JQLite) {\n\t return element;\n\t }\n\t\n\t var argIsString;\n\t\n\t if (isString(element)) {\n\t element = trim(element);\n\t argIsString = true;\n\t }\n\t if (!(this instanceof JQLite)) {\n\t if (argIsString && element.charAt(0) != '<') {\n\t throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element');\n\t }\n\t return new JQLite(element);\n\t }\n\t\n\t if (argIsString) {\n\t jqLiteAddNodes(this, jqLiteParseHTML(element));\n\t } else {\n\t jqLiteAddNodes(this, element);\n\t }\n\t}\n\t\n\tfunction jqLiteClone(element) {\n\t return element.cloneNode(true);\n\t}\n\t\n\tfunction jqLiteDealoc(element, onlyDescendants) {\n\t if (!onlyDescendants) jqLiteRemoveData(element);\n\t\n\t if (element.querySelectorAll) {\n\t var descendants = element.querySelectorAll('*');\n\t for (var i = 0, l = descendants.length; i < l; i++) {\n\t jqLiteRemoveData(descendants[i]);\n\t }\n\t }\n\t}\n\t\n\tfunction jqLiteOff(element, type, fn, unsupported) {\n\t if (isDefined(unsupported)) throw jqLiteMinErr('offargs', 'jqLite#off() does not support the `selector` argument');\n\t\n\t var expandoStore = jqLiteExpandoStore(element);\n\t var events = expandoStore && expandoStore.events;\n\t var handle = expandoStore && expandoStore.handle;\n\t\n\t if (!handle) return; //no listeners registered\n\t\n\t if (!type) {\n\t for (type in events) {\n\t if (type !== '$destroy') {\n\t removeEventListenerFn(element, type, handle);\n\t }\n\t delete events[type];\n\t }\n\t } else {\n\t\n\t var removeHandler = function(type) {\n\t var listenerFns = events[type];\n\t if (isDefined(fn)) {\n\t arrayRemove(listenerFns || [], fn);\n\t }\n\t if (!(isDefined(fn) && listenerFns && listenerFns.length > 0)) {\n\t removeEventListenerFn(element, type, handle);\n\t delete events[type];\n\t }\n\t };\n\t\n\t forEach(type.split(' '), function(type) {\n\t removeHandler(type);\n\t if (MOUSE_EVENT_MAP[type]) {\n\t removeHandler(MOUSE_EVENT_MAP[type]);\n\t }\n\t });\n\t }\n\t}\n\t\n\tfunction jqLiteRemoveData(element, name) {\n\t var expandoId = element.ng339;\n\t var expandoStore = expandoId && jqCache[expandoId];\n\t\n\t if (expandoStore) {\n\t if (name) {\n\t delete expandoStore.data[name];\n\t return;\n\t }\n\t\n\t if (expandoStore.handle) {\n\t if (expandoStore.events.$destroy) {\n\t expandoStore.handle({}, '$destroy');\n\t }\n\t jqLiteOff(element);\n\t }\n\t delete jqCache[expandoId];\n\t element.ng339 = undefined; // don't delete DOM expandos. IE and Chrome don't like it\n\t }\n\t}\n\t\n\t\n\tfunction jqLiteExpandoStore(element, createIfNecessary) {\n\t var expandoId = element.ng339,\n\t expandoStore = expandoId && jqCache[expandoId];\n\t\n\t if (createIfNecessary && !expandoStore) {\n\t element.ng339 = expandoId = jqNextId();\n\t expandoStore = jqCache[expandoId] = {events: {}, data: {}, handle: undefined};\n\t }\n\t\n\t return expandoStore;\n\t}\n\t\n\t\n\tfunction jqLiteData(element, key, value) {\n\t if (jqLiteAcceptsData(element)) {\n\t\n\t var isSimpleSetter = isDefined(value);\n\t var isSimpleGetter = !isSimpleSetter && key && !isObject(key);\n\t var massGetter = !key;\n\t var expandoStore = jqLiteExpandoStore(element, !isSimpleGetter);\n\t var data = expandoStore && expandoStore.data;\n\t\n\t if (isSimpleSetter) { // data('key', value)\n\t data[key] = value;\n\t } else {\n\t if (massGetter) { // data()\n\t return data;\n\t } else {\n\t if (isSimpleGetter) { // data('key')\n\t // don't force creation of expandoStore if it doesn't exist yet\n\t return data && data[key];\n\t } else { // mass-setter: data({key1: val1, key2: val2})\n\t extend(data, key);\n\t }\n\t }\n\t }\n\t }\n\t}\n\t\n\tfunction jqLiteHasClass(element, selector) {\n\t if (!element.getAttribute) return false;\n\t return ((\" \" + (element.getAttribute('class') || '') + \" \").replace(/[\\n\\t]/g, \" \").\n\t indexOf(\" \" + selector + \" \") > -1);\n\t}\n\t\n\tfunction jqLiteRemoveClass(element, cssClasses) {\n\t if (cssClasses && element.setAttribute) {\n\t forEach(cssClasses.split(' '), function(cssClass) {\n\t element.setAttribute('class', trim(\n\t (\" \" + (element.getAttribute('class') || '') + \" \")\n\t .replace(/[\\n\\t]/g, \" \")\n\t .replace(\" \" + trim(cssClass) + \" \", \" \"))\n\t );\n\t });\n\t }\n\t}\n\t\n\tfunction jqLiteAddClass(element, cssClasses) {\n\t if (cssClasses && element.setAttribute) {\n\t var existingClasses = (' ' + (element.getAttribute('class') || '') + ' ')\n\t .replace(/[\\n\\t]/g, \" \");\n\t\n\t forEach(cssClasses.split(' '), function(cssClass) {\n\t cssClass = trim(cssClass);\n\t if (existingClasses.indexOf(' ' + cssClass + ' ') === -1) {\n\t existingClasses += cssClass + ' ';\n\t }\n\t });\n\t\n\t element.setAttribute('class', trim(existingClasses));\n\t }\n\t}\n\t\n\t\n\tfunction jqLiteAddNodes(root, elements) {\n\t // THIS CODE IS VERY HOT. Don't make changes without benchmarking.\n\t\n\t if (elements) {\n\t\n\t // if a Node (the most common case)\n\t if (elements.nodeType) {\n\t root[root.length++] = elements;\n\t } else {\n\t var length = elements.length;\n\t\n\t // if an Array or NodeList and not a Window\n\t if (typeof length === 'number' && elements.window !== elements) {\n\t if (length) {\n\t for (var i = 0; i < length; i++) {\n\t root[root.length++] = elements[i];\n\t }\n\t }\n\t } else {\n\t root[root.length++] = elements;\n\t }\n\t }\n\t }\n\t}\n\t\n\t\n\tfunction jqLiteController(element, name) {\n\t return jqLiteInheritedData(element, '$' + (name || 'ngController') + 'Controller');\n\t}\n\t\n\tfunction jqLiteInheritedData(element, name, value) {\n\t // if element is the document object work with the html element instead\n\t // this makes $(document).scope() possible\n\t if (element.nodeType == NODE_TYPE_DOCUMENT) {\n\t element = element.documentElement;\n\t }\n\t var names = isArray(name) ? name : [name];\n\t\n\t while (element) {\n\t for (var i = 0, ii = names.length; i < ii; i++) {\n\t if (isDefined(value = jqLite.data(element, names[i]))) return value;\n\t }\n\t\n\t // If dealing with a document fragment node with a host element, and no parent, use the host\n\t // element as the parent. This enables directives within a Shadow DOM or polyfilled Shadow DOM\n\t // to lookup parent controllers.\n\t element = element.parentNode || (element.nodeType === NODE_TYPE_DOCUMENT_FRAGMENT && element.host);\n\t }\n\t}\n\t\n\tfunction jqLiteEmpty(element) {\n\t jqLiteDealoc(element, true);\n\t while (element.firstChild) {\n\t element.removeChild(element.firstChild);\n\t }\n\t}\n\t\n\tfunction jqLiteRemove(element, keepData) {\n\t if (!keepData) jqLiteDealoc(element);\n\t var parent = element.parentNode;\n\t if (parent) parent.removeChild(element);\n\t}\n\t\n\t\n\tfunction jqLiteDocumentLoaded(action, win) {\n\t win = win || window;\n\t if (win.document.readyState === 'complete') {\n\t // Force the action to be run async for consistent behaviour\n\t // from the action's point of view\n\t // i.e. it will definitely not be in a $apply\n\t win.setTimeout(action);\n\t } else {\n\t // No need to unbind this handler as load is only ever called once\n\t jqLite(win).on('load', action);\n\t }\n\t}\n\t\n\t//////////////////////////////////////////\n\t// Functions which are declared directly.\n\t//////////////////////////////////////////\n\tvar JQLitePrototype = JQLite.prototype = {\n\t ready: function(fn) {\n\t var fired = false;\n\t\n\t function trigger() {\n\t if (fired) return;\n\t fired = true;\n\t fn();\n\t }\n\t\n\t // check if document is already loaded\n\t if (document.readyState === 'complete') {\n\t setTimeout(trigger);\n\t } else {\n\t this.on('DOMContentLoaded', trigger); // works for modern browsers and IE9\n\t // we can not use jqLite since we are not done loading and jQuery could be loaded later.\n\t // jshint -W064\n\t JQLite(window).on('load', trigger); // fallback to window.onload for others\n\t // jshint +W064\n\t }\n\t },\n\t toString: function() {\n\t var value = [];\n\t forEach(this, function(e) { value.push('' + e);});\n\t return '[' + value.join(', ') + ']';\n\t },\n\t\n\t eq: function(index) {\n\t return (index >= 0) ? jqLite(this[index]) : jqLite(this[this.length + index]);\n\t },\n\t\n\t length: 0,\n\t push: push,\n\t sort: [].sort,\n\t splice: [].splice\n\t};\n\t\n\t//////////////////////////////////////////\n\t// Functions iterating getter/setters.\n\t// these functions return self on setter and\n\t// value on get.\n\t//////////////////////////////////////////\n\tvar BOOLEAN_ATTR = {};\n\tforEach('multiple,selected,checked,disabled,readOnly,required,open'.split(','), function(value) {\n\t BOOLEAN_ATTR[lowercase(value)] = value;\n\t});\n\tvar BOOLEAN_ELEMENTS = {};\n\tforEach('input,select,option,textarea,button,form,details'.split(','), function(value) {\n\t BOOLEAN_ELEMENTS[value] = true;\n\t});\n\tvar ALIASED_ATTR = {\n\t 'ngMinlength': 'minlength',\n\t 'ngMaxlength': 'maxlength',\n\t 'ngMin': 'min',\n\t 'ngMax': 'max',\n\t 'ngPattern': 'pattern'\n\t};\n\t\n\tfunction getBooleanAttrName(element, name) {\n\t // check dom last since we will most likely fail on name\n\t var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()];\n\t\n\t // booleanAttr is here twice to minimize DOM access\n\t return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr;\n\t}\n\t\n\tfunction getAliasedAttrName(name) {\n\t return ALIASED_ATTR[name];\n\t}\n\t\n\tforEach({\n\t data: jqLiteData,\n\t removeData: jqLiteRemoveData,\n\t hasData: jqLiteHasData\n\t}, function(fn, name) {\n\t JQLite[name] = fn;\n\t});\n\t\n\tforEach({\n\t data: jqLiteData,\n\t inheritedData: jqLiteInheritedData,\n\t\n\t scope: function(element) {\n\t // Can't use jqLiteData here directly so we stay compatible with jQuery!\n\t return jqLite.data(element, '$scope') || jqLiteInheritedData(element.parentNode || element, ['$isolateScope', '$scope']);\n\t },\n\t\n\t isolateScope: function(element) {\n\t // Can't use jqLiteData here directly so we stay compatible with jQuery!\n\t return jqLite.data(element, '$isolateScope') || jqLite.data(element, '$isolateScopeNoTemplate');\n\t },\n\t\n\t controller: jqLiteController,\n\t\n\t injector: function(element) {\n\t return jqLiteInheritedData(element, '$injector');\n\t },\n\t\n\t removeAttr: function(element, name) {\n\t element.removeAttribute(name);\n\t },\n\t\n\t hasClass: jqLiteHasClass,\n\t\n\t css: function(element, name, value) {\n\t name = camelCase(name);\n\t\n\t if (isDefined(value)) {\n\t element.style[name] = value;\n\t } else {\n\t return element.style[name];\n\t }\n\t },\n\t\n\t attr: function(element, name, value) {\n\t var nodeType = element.nodeType;\n\t if (nodeType === NODE_TYPE_TEXT || nodeType === NODE_TYPE_ATTRIBUTE || nodeType === NODE_TYPE_COMMENT) {\n\t return;\n\t }\n\t var lowercasedName = lowercase(name);\n\t if (BOOLEAN_ATTR[lowercasedName]) {\n\t if (isDefined(value)) {\n\t if (!!value) {\n\t element[name] = true;\n\t element.setAttribute(name, lowercasedName);\n\t } else {\n\t element[name] = false;\n\t element.removeAttribute(lowercasedName);\n\t }\n\t } else {\n\t return (element[name] ||\n\t (element.attributes.getNamedItem(name) || noop).specified)\n\t ? lowercasedName\n\t : undefined;\n\t }\n\t } else if (isDefined(value)) {\n\t element.setAttribute(name, value);\n\t } else if (element.getAttribute) {\n\t // the extra argument \"2\" is to get the right thing for a.href in IE, see jQuery code\n\t // some elements (e.g. Document) don't have get attribute, so return undefined\n\t var ret = element.getAttribute(name, 2);\n\t // normalize non-existing attributes to undefined (as jQuery)\n\t return ret === null ? undefined : ret;\n\t }\n\t },\n\t\n\t prop: function(element, name, value) {\n\t if (isDefined(value)) {\n\t element[name] = value;\n\t } else {\n\t return element[name];\n\t }\n\t },\n\t\n\t text: (function() {\n\t getText.$dv = '';\n\t return getText;\n\t\n\t function getText(element, value) {\n\t if (isUndefined(value)) {\n\t var nodeType = element.nodeType;\n\t return (nodeType === NODE_TYPE_ELEMENT || nodeType === NODE_TYPE_TEXT) ? element.textContent : '';\n\t }\n\t element.textContent = value;\n\t }\n\t })(),\n\t\n\t val: function(element, value) {\n\t if (isUndefined(value)) {\n\t if (element.multiple && nodeName_(element) === 'select') {\n\t var result = [];\n\t forEach(element.options, function(option) {\n\t if (option.selected) {\n\t result.push(option.value || option.text);\n\t }\n\t });\n\t return result.length === 0 ? null : result;\n\t }\n\t return element.value;\n\t }\n\t element.value = value;\n\t },\n\t\n\t html: function(element, value) {\n\t if (isUndefined(value)) {\n\t return element.innerHTML;\n\t }\n\t jqLiteDealoc(element, true);\n\t element.innerHTML = value;\n\t },\n\t\n\t empty: jqLiteEmpty\n\t}, function(fn, name) {\n\t /**\n\t * Properties: writes return selection, reads return first value\n\t */\n\t JQLite.prototype[name] = function(arg1, arg2) {\n\t var i, key;\n\t var nodeCount = this.length;\n\t\n\t // jqLiteHasClass has only two arguments, but is a getter-only fn, so we need to special-case it\n\t // in a way that survives minification.\n\t // jqLiteEmpty takes no arguments but is a setter.\n\t if (fn !== jqLiteEmpty &&\n\t (isUndefined((fn.length == 2 && (fn !== jqLiteHasClass && fn !== jqLiteController)) ? arg1 : arg2))) {\n\t if (isObject(arg1)) {\n\t\n\t // we are a write, but the object properties are the key/values\n\t for (i = 0; i < nodeCount; i++) {\n\t if (fn === jqLiteData) {\n\t // data() takes the whole object in jQuery\n\t fn(this[i], arg1);\n\t } else {\n\t for (key in arg1) {\n\t fn(this[i], key, arg1[key]);\n\t }\n\t }\n\t }\n\t // return self for chaining\n\t return this;\n\t } else {\n\t // we are a read, so read the first child.\n\t // TODO: do we still need this?\n\t var value = fn.$dv;\n\t // Only if we have $dv do we iterate over all, otherwise it is just the first element.\n\t var jj = (isUndefined(value)) ? Math.min(nodeCount, 1) : nodeCount;\n\t for (var j = 0; j < jj; j++) {\n\t var nodeValue = fn(this[j], arg1, arg2);\n\t value = value ? value + nodeValue : nodeValue;\n\t }\n\t return value;\n\t }\n\t } else {\n\t // we are a write, so apply to all children\n\t for (i = 0; i < nodeCount; i++) {\n\t fn(this[i], arg1, arg2);\n\t }\n\t // return self for chaining\n\t return this;\n\t }\n\t };\n\t});\n\t\n\tfunction createEventHandler(element, events) {\n\t var eventHandler = function(event, type) {\n\t // jQuery specific api\n\t event.isDefaultPrevented = function() {\n\t return event.defaultPrevented;\n\t };\n\t\n\t var eventFns = events[type || event.type];\n\t var eventFnsLength = eventFns ? eventFns.length : 0;\n\t\n\t if (!eventFnsLength) return;\n\t\n\t if (isUndefined(event.immediatePropagationStopped)) {\n\t var originalStopImmediatePropagation = event.stopImmediatePropagation;\n\t event.stopImmediatePropagation = function() {\n\t event.immediatePropagationStopped = true;\n\t\n\t if (event.stopPropagation) {\n\t event.stopPropagation();\n\t }\n\t\n\t if (originalStopImmediatePropagation) {\n\t originalStopImmediatePropagation.call(event);\n\t }\n\t };\n\t }\n\t\n\t event.isImmediatePropagationStopped = function() {\n\t return event.immediatePropagationStopped === true;\n\t };\n\t\n\t // Some events have special handlers that wrap the real handler\n\t var handlerWrapper = eventFns.specialHandlerWrapper || defaultHandlerWrapper;\n\t\n\t // Copy event handlers in case event handlers array is modified during execution.\n\t if ((eventFnsLength > 1)) {\n\t eventFns = shallowCopy(eventFns);\n\t }\n\t\n\t for (var i = 0; i < eventFnsLength; i++) {\n\t if (!event.isImmediatePropagationStopped()) {\n\t handlerWrapper(element, event, eventFns[i]);\n\t }\n\t }\n\t };\n\t\n\t // TODO: this is a hack for angularMocks/clearDataCache that makes it possible to deregister all\n\t // events on `element`\n\t eventHandler.elem = element;\n\t return eventHandler;\n\t}\n\t\n\tfunction defaultHandlerWrapper(element, event, handler) {\n\t handler.call(element, event);\n\t}\n\t\n\tfunction specialMouseHandlerWrapper(target, event, handler) {\n\t // Refer to jQuery's implementation of mouseenter & mouseleave\n\t // Read about mouseenter and mouseleave:\n\t // http://www.quirksmode.org/js/events_mouse.html#link8\n\t var related = event.relatedTarget;\n\t // For mousenter/leave call the handler if related is outside the target.\n\t // NB: No relatedTarget if the mouse left/entered the browser window\n\t if (!related || (related !== target && !jqLiteContains.call(target, related))) {\n\t handler.call(target, event);\n\t }\n\t}\n\t\n\t//////////////////////////////////////////\n\t// Functions iterating traversal.\n\t// These functions chain results into a single\n\t// selector.\n\t//////////////////////////////////////////\n\tforEach({\n\t removeData: jqLiteRemoveData,\n\t\n\t on: function jqLiteOn(element, type, fn, unsupported) {\n\t if (isDefined(unsupported)) throw jqLiteMinErr('onargs', 'jqLite#on() does not support the `selector` or `eventData` parameters');\n\t\n\t // Do not add event handlers to non-elements because they will not be cleaned up.\n\t if (!jqLiteAcceptsData(element)) {\n\t return;\n\t }\n\t\n\t var expandoStore = jqLiteExpandoStore(element, true);\n\t var events = expandoStore.events;\n\t var handle = expandoStore.handle;\n\t\n\t if (!handle) {\n\t handle = expandoStore.handle = createEventHandler(element, events);\n\t }\n\t\n\t // http://jsperf.com/string-indexof-vs-split\n\t var types = type.indexOf(' ') >= 0 ? type.split(' ') : [type];\n\t var i = types.length;\n\t\n\t var addHandler = function(type, specialHandlerWrapper, noEventListener) {\n\t var eventFns = events[type];\n\t\n\t if (!eventFns) {\n\t eventFns = events[type] = [];\n\t eventFns.specialHandlerWrapper = specialHandlerWrapper;\n\t if (type !== '$destroy' && !noEventListener) {\n\t addEventListenerFn(element, type, handle);\n\t }\n\t }\n\t\n\t eventFns.push(fn);\n\t };\n\t\n\t while (i--) {\n\t type = types[i];\n\t if (MOUSE_EVENT_MAP[type]) {\n\t addHandler(MOUSE_EVENT_MAP[type], specialMouseHandlerWrapper);\n\t addHandler(type, undefined, true);\n\t } else {\n\t addHandler(type);\n\t }\n\t }\n\t },\n\t\n\t off: jqLiteOff,\n\t\n\t one: function(element, type, fn) {\n\t element = jqLite(element);\n\t\n\t //add the listener twice so that when it is called\n\t //you can remove the original function and still be\n\t //able to call element.off(ev, fn) normally\n\t element.on(type, function onFn() {\n\t element.off(type, fn);\n\t element.off(type, onFn);\n\t });\n\t element.on(type, fn);\n\t },\n\t\n\t replaceWith: function(element, replaceNode) {\n\t var index, parent = element.parentNode;\n\t jqLiteDealoc(element);\n\t forEach(new JQLite(replaceNode), function(node) {\n\t if (index) {\n\t parent.insertBefore(node, index.nextSibling);\n\t } else {\n\t parent.replaceChild(node, element);\n\t }\n\t index = node;\n\t });\n\t },\n\t\n\t children: function(element) {\n\t var children = [];\n\t forEach(element.childNodes, function(element) {\n\t if (element.nodeType === NODE_TYPE_ELEMENT) {\n\t children.push(element);\n\t }\n\t });\n\t return children;\n\t },\n\t\n\t contents: function(element) {\n\t return element.contentDocument || element.childNodes || [];\n\t },\n\t\n\t append: function(element, node) {\n\t var nodeType = element.nodeType;\n\t if (nodeType !== NODE_TYPE_ELEMENT && nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT) return;\n\t\n\t node = new JQLite(node);\n\t\n\t for (var i = 0, ii = node.length; i < ii; i++) {\n\t var child = node[i];\n\t element.appendChild(child);\n\t }\n\t },\n\t\n\t prepend: function(element, node) {\n\t if (element.nodeType === NODE_TYPE_ELEMENT) {\n\t var index = element.firstChild;\n\t forEach(new JQLite(node), function(child) {\n\t element.insertBefore(child, index);\n\t });\n\t }\n\t },\n\t\n\t wrap: function(element, wrapNode) {\n\t jqLiteWrapNode(element, jqLite(wrapNode).eq(0).clone()[0]);\n\t },\n\t\n\t remove: jqLiteRemove,\n\t\n\t detach: function(element) {\n\t jqLiteRemove(element, true);\n\t },\n\t\n\t after: function(element, newElement) {\n\t var index = element, parent = element.parentNode;\n\t newElement = new JQLite(newElement);\n\t\n\t for (var i = 0, ii = newElement.length; i < ii; i++) {\n\t var node = newElement[i];\n\t parent.insertBefore(node, index.nextSibling);\n\t index = node;\n\t }\n\t },\n\t\n\t addClass: jqLiteAddClass,\n\t removeClass: jqLiteRemoveClass,\n\t\n\t toggleClass: function(element, selector, condition) {\n\t if (selector) {\n\t forEach(selector.split(' '), function(className) {\n\t var classCondition = condition;\n\t if (isUndefined(classCondition)) {\n\t classCondition = !jqLiteHasClass(element, className);\n\t }\n\t (classCondition ? jqLiteAddClass : jqLiteRemoveClass)(element, className);\n\t });\n\t }\n\t },\n\t\n\t parent: function(element) {\n\t var parent = element.parentNode;\n\t return parent && parent.nodeType !== NODE_TYPE_DOCUMENT_FRAGMENT ? parent : null;\n\t },\n\t\n\t next: function(element) {\n\t return element.nextElementSibling;\n\t },\n\t\n\t find: function(element, selector) {\n\t if (element.getElementsByTagName) {\n\t return element.getElementsByTagName(selector);\n\t } else {\n\t return [];\n\t }\n\t },\n\t\n\t clone: jqLiteClone,\n\t\n\t triggerHandler: function(element, event, extraParameters) {\n\t\n\t var dummyEvent, eventFnsCopy, handlerArgs;\n\t var eventName = event.type || event;\n\t var expandoStore = jqLiteExpandoStore(element);\n\t var events = expandoStore && expandoStore.events;\n\t var eventFns = events && events[eventName];\n\t\n\t if (eventFns) {\n\t // Create a dummy event to pass to the handlers\n\t dummyEvent = {\n\t preventDefault: function() { this.defaultPrevented = true; },\n\t isDefaultPrevented: function() { return this.defaultPrevented === true; },\n\t stopImmediatePropagation: function() { this.immediatePropagationStopped = true; },\n\t isImmediatePropagationStopped: function() { return this.immediatePropagationStopped === true; },\n\t stopPropagation: noop,\n\t type: eventName,\n\t target: element\n\t };\n\t\n\t // If a custom event was provided then extend our dummy event with it\n\t if (event.type) {\n\t dummyEvent = extend(dummyEvent, event);\n\t }\n\t\n\t // Copy event handlers in case event handlers array is modified during execution.\n\t eventFnsCopy = shallowCopy(eventFns);\n\t handlerArgs = extraParameters ? [dummyEvent].concat(extraParameters) : [dummyEvent];\n\t\n\t forEach(eventFnsCopy, function(fn) {\n\t if (!dummyEvent.isImmediatePropagationStopped()) {\n\t fn.apply(element, handlerArgs);\n\t }\n\t });\n\t }\n\t }\n\t}, function(fn, name) {\n\t /**\n\t * chaining functions\n\t */\n\t JQLite.prototype[name] = function(arg1, arg2, arg3) {\n\t var value;\n\t\n\t for (var i = 0, ii = this.length; i < ii; i++) {\n\t if (isUndefined(value)) {\n\t value = fn(this[i], arg1, arg2, arg3);\n\t if (isDefined(value)) {\n\t // any function which returns a value needs to be wrapped\n\t value = jqLite(value);\n\t }\n\t } else {\n\t jqLiteAddNodes(value, fn(this[i], arg1, arg2, arg3));\n\t }\n\t }\n\t return isDefined(value) ? value : this;\n\t };\n\t\n\t // bind legacy bind/unbind to on/off\n\t JQLite.prototype.bind = JQLite.prototype.on;\n\t JQLite.prototype.unbind = JQLite.prototype.off;\n\t});\n\t\n\t\n\t// Provider for private $$jqLite service\n\tfunction $$jqLiteProvider() {\n\t this.$get = function $$jqLite() {\n\t return extend(JQLite, {\n\t hasClass: function(node, classes) {\n\t if (node.attr) node = node[0];\n\t return jqLiteHasClass(node, classes);\n\t },\n\t addClass: function(node, classes) {\n\t if (node.attr) node = node[0];\n\t return jqLiteAddClass(node, classes);\n\t },\n\t removeClass: function(node, classes) {\n\t if (node.attr) node = node[0];\n\t return jqLiteRemoveClass(node, classes);\n\t }\n\t });\n\t };\n\t}\n\t\n\t/**\n\t * Computes a hash of an 'obj'.\n\t * Hash of a:\n\t * string is string\n\t * number is number as string\n\t * object is either result of calling $$hashKey function on the object or uniquely generated id,\n\t * that is also assigned to the $$hashKey property of the object.\n\t *\n\t * @param obj\n\t * @returns {string} hash string such that the same input will have the same hash string.\n\t * The resulting string key is in 'type:hashKey' format.\n\t */\n\tfunction hashKey(obj, nextUidFn) {\n\t var key = obj && obj.$$hashKey;\n\t\n\t if (key) {\n\t if (typeof key === 'function') {\n\t key = obj.$$hashKey();\n\t }\n\t return key;\n\t }\n\t\n\t var objType = typeof obj;\n\t if (objType == 'function' || (objType == 'object' && obj !== null)) {\n\t key = obj.$$hashKey = objType + ':' + (nextUidFn || nextUid)();\n\t } else {\n\t key = objType + ':' + obj;\n\t }\n\t\n\t return key;\n\t}\n\t\n\t/**\n\t * HashMap which can use objects as keys\n\t */\n\tfunction HashMap(array, isolatedUid) {\n\t if (isolatedUid) {\n\t var uid = 0;\n\t this.nextUid = function() {\n\t return ++uid;\n\t };\n\t }\n\t forEach(array, this.put, this);\n\t}\n\tHashMap.prototype = {\n\t /**\n\t * Store key value pair\n\t * @param key key to store can be any type\n\t * @param value value to store can be any type\n\t */\n\t put: function(key, value) {\n\t this[hashKey(key, this.nextUid)] = value;\n\t },\n\t\n\t /**\n\t * @param key\n\t * @returns {Object} the value for the key\n\t */\n\t get: function(key) {\n\t return this[hashKey(key, this.nextUid)];\n\t },\n\t\n\t /**\n\t * Remove the key/value pair\n\t * @param key\n\t */\n\t remove: function(key) {\n\t var value = this[key = hashKey(key, this.nextUid)];\n\t delete this[key];\n\t return value;\n\t }\n\t};\n\t\n\tvar $$HashMapProvider = [function() {\n\t this.$get = [function() {\n\t return HashMap;\n\t }];\n\t}];\n\t\n\t/**\n\t * @ngdoc function\n\t * @module ng\n\t * @name angular.injector\n\t * @kind function\n\t *\n\t * @description\n\t * Creates an injector object that can be used for retrieving services as well as for\n\t * dependency injection (see {@link guide/di dependency injection}).\n\t *\n\t * @param {Array.} modules A list of module functions or their aliases. See\n\t * {@link angular.module}. The `ng` module must be explicitly added.\n\t * @param {boolean=} [strictDi=false] Whether the injector should be in strict mode, which\n\t * disallows argument name annotation inference.\n\t * @returns {injector} Injector object. See {@link auto.$injector $injector}.\n\t *\n\t * @example\n\t * Typical usage\n\t * ```js\n\t * // create an injector\n\t * var $injector = angular.injector(['ng']);\n\t *\n\t * // use the injector to kick off your application\n\t * // use the type inference to auto inject arguments, or use implicit injection\n\t * $injector.invoke(function($rootScope, $compile, $document) {\n\t * $compile($document)($rootScope);\n\t * $rootScope.$digest();\n\t * });\n\t * ```\n\t *\n\t * Sometimes you want to get access to the injector of a currently running Angular app\n\t * from outside Angular. Perhaps, you want to inject and compile some markup after the\n\t * application has been bootstrapped. You can do this using the extra `injector()` added\n\t * to JQuery/jqLite elements. See {@link angular.element}.\n\t *\n\t * *This is fairly rare but could be the case if a third party library is injecting the\n\t * markup.*\n\t *\n\t * In the following example a new block of HTML containing a `ng-controller`\n\t * directive is added to the end of the document body by JQuery. We then compile and link\n\t * it into the current AngularJS scope.\n\t *\n\t * ```js\n\t * var $div = $('
{{content.label}}
');\n\t * $(document.body).append($div);\n\t *\n\t * angular.element(document).injector().invoke(function($compile) {\n\t * var scope = angular.element($div).scope();\n\t * $compile($div)(scope);\n\t * });\n\t * ```\n\t */\n\t\n\t\n\t/**\n\t * @ngdoc module\n\t * @name auto\n\t * @description\n\t *\n\t * Implicit module which gets automatically added to each {@link auto.$injector $injector}.\n\t */\n\t\n\tvar FN_ARGS = /^[^\\(]*\\(\\s*([^\\)]*)\\)/m;\n\tvar FN_ARG_SPLIT = /,/;\n\tvar FN_ARG = /^\\s*(_?)(\\S+?)\\1\\s*$/;\n\tvar STRIP_COMMENTS = /((\\/\\/.*$)|(\\/\\*[\\s\\S]*?\\*\\/))/mg;\n\tvar $injectorMinErr = minErr('$injector');\n\t\n\tfunction anonFn(fn) {\n\t // For anonymous functions, showing at the very least the function signature can help in\n\t // debugging.\n\t var fnText = fn.toString().replace(STRIP_COMMENTS, ''),\n\t args = fnText.match(FN_ARGS);\n\t if (args) {\n\t return 'function(' + (args[1] || '').replace(/[\\s\\r\\n]+/, ' ') + ')';\n\t }\n\t return 'fn';\n\t}\n\t\n\tfunction annotate(fn, strictDi, name) {\n\t var $inject,\n\t fnText,\n\t argDecl,\n\t last;\n\t\n\t if (typeof fn === 'function') {\n\t if (!($inject = fn.$inject)) {\n\t $inject = [];\n\t if (fn.length) {\n\t if (strictDi) {\n\t if (!isString(name) || !name) {\n\t name = fn.name || anonFn(fn);\n\t }\n\t throw $injectorMinErr('strictdi',\n\t '{0} is not using explicit annotation and cannot be invoked in strict mode', name);\n\t }\n\t fnText = fn.toString().replace(STRIP_COMMENTS, '');\n\t argDecl = fnText.match(FN_ARGS);\n\t forEach(argDecl[1].split(FN_ARG_SPLIT), function(arg) {\n\t arg.replace(FN_ARG, function(all, underscore, name) {\n\t $inject.push(name);\n\t });\n\t });\n\t }\n\t fn.$inject = $inject;\n\t }\n\t } else if (isArray(fn)) {\n\t last = fn.length - 1;\n\t assertArgFn(fn[last], 'fn');\n\t $inject = fn.slice(0, last);\n\t } else {\n\t assertArgFn(fn, 'fn', true);\n\t }\n\t return $inject;\n\t}\n\t\n\t///////////////////////////////////////\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $injector\n\t *\n\t * @description\n\t *\n\t * `$injector` is used to retrieve object instances as defined by\n\t * {@link auto.$provide provider}, instantiate types, invoke methods,\n\t * and load modules.\n\t *\n\t * The following always holds true:\n\t *\n\t * ```js\n\t * var $injector = angular.injector();\n\t * expect($injector.get('$injector')).toBe($injector);\n\t * expect($injector.invoke(function($injector) {\n\t * return $injector;\n\t * })).toBe($injector);\n\t * ```\n\t *\n\t * # Injection Function Annotation\n\t *\n\t * JavaScript does not have annotations, and annotations are needed for dependency injection. The\n\t * following are all valid ways of annotating function with injection arguments and are equivalent.\n\t *\n\t * ```js\n\t * // inferred (only works if code not minified/obfuscated)\n\t * $injector.invoke(function(serviceA){});\n\t *\n\t * // annotated\n\t * function explicit(serviceA) {};\n\t * explicit.$inject = ['serviceA'];\n\t * $injector.invoke(explicit);\n\t *\n\t * // inline\n\t * $injector.invoke(['serviceA', function(serviceA){}]);\n\t * ```\n\t *\n\t * ## Inference\n\t *\n\t * In JavaScript calling `toString()` on a function returns the function definition. The definition\n\t * can then be parsed and the function arguments can be extracted. This method of discovering\n\t * annotations is disallowed when the injector is in strict mode.\n\t * *NOTE:* This does not work with minification, and obfuscation tools since these tools change the\n\t * argument names.\n\t *\n\t * ## `$inject` Annotation\n\t * By adding an `$inject` property onto a function the injection parameters can be specified.\n\t *\n\t * ## Inline\n\t * As an array of injection names, where the last item in the array is the function to call.\n\t */\n\t\n\t/**\n\t * @ngdoc method\n\t * @name $injector#get\n\t *\n\t * @description\n\t * Return an instance of the service.\n\t *\n\t * @param {string} name The name of the instance to retrieve.\n\t * @param {string=} caller An optional string to provide the origin of the function call for error messages.\n\t * @return {*} The instance.\n\t */\n\t\n\t/**\n\t * @ngdoc method\n\t * @name $injector#invoke\n\t *\n\t * @description\n\t * Invoke the method and supply the method arguments from the `$injector`.\n\t *\n\t * @param {Function|Array.} fn The injectable function to invoke. Function parameters are\n\t * injected according to the {@link guide/di $inject Annotation} rules.\n\t * @param {Object=} self The `this` for the invoked method.\n\t * @param {Object=} locals Optional object. If preset then any argument names are read from this\n\t * object first, before the `$injector` is consulted.\n\t * @returns {*} the value returned by the invoked `fn` function.\n\t */\n\t\n\t/**\n\t * @ngdoc method\n\t * @name $injector#has\n\t *\n\t * @description\n\t * Allows the user to query if the particular service exists.\n\t *\n\t * @param {string} name Name of the service to query.\n\t * @returns {boolean} `true` if injector has given service.\n\t */\n\t\n\t/**\n\t * @ngdoc method\n\t * @name $injector#instantiate\n\t * @description\n\t * Create a new instance of JS type. The method takes a constructor function, invokes the new\n\t * operator, and supplies all of the arguments to the constructor function as specified by the\n\t * constructor annotation.\n\t *\n\t * @param {Function} Type Annotated constructor function.\n\t * @param {Object=} locals Optional object. If preset then any argument names are read from this\n\t * object first, before the `$injector` is consulted.\n\t * @returns {Object} new instance of `Type`.\n\t */\n\t\n\t/**\n\t * @ngdoc method\n\t * @name $injector#annotate\n\t *\n\t * @description\n\t * Returns an array of service names which the function is requesting for injection. This API is\n\t * used by the injector to determine which services need to be injected into the function when the\n\t * function is invoked. There are three ways in which the function can be annotated with the needed\n\t * dependencies.\n\t *\n\t * # Argument names\n\t *\n\t * The simplest form is to extract the dependencies from the arguments of the function. This is done\n\t * by converting the function into a string using `toString()` method and extracting the argument\n\t * names.\n\t * ```js\n\t * // Given\n\t * function MyController($scope, $route) {\n\t * // ...\n\t * }\n\t *\n\t * // Then\n\t * expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);\n\t * ```\n\t *\n\t * You can disallow this method by using strict injection mode.\n\t *\n\t * This method does not work with code minification / obfuscation. For this reason the following\n\t * annotation strategies are supported.\n\t *\n\t * # The `$inject` property\n\t *\n\t * If a function has an `$inject` property and its value is an array of strings, then the strings\n\t * represent names of services to be injected into the function.\n\t * ```js\n\t * // Given\n\t * var MyController = function(obfuscatedScope, obfuscatedRoute) {\n\t * // ...\n\t * }\n\t * // Define function dependencies\n\t * MyController['$inject'] = ['$scope', '$route'];\n\t *\n\t * // Then\n\t * expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);\n\t * ```\n\t *\n\t * # The array notation\n\t *\n\t * It is often desirable to inline Injected functions and that's when setting the `$inject` property\n\t * is very inconvenient. In these situations using the array notation to specify the dependencies in\n\t * a way that survives minification is a better choice:\n\t *\n\t * ```js\n\t * // We wish to write this (not minification / obfuscation safe)\n\t * injector.invoke(function($compile, $rootScope) {\n\t * // ...\n\t * });\n\t *\n\t * // We are forced to write break inlining\n\t * var tmpFn = function(obfuscatedCompile, obfuscatedRootScope) {\n\t * // ...\n\t * };\n\t * tmpFn.$inject = ['$compile', '$rootScope'];\n\t * injector.invoke(tmpFn);\n\t *\n\t * // To better support inline function the inline annotation is supported\n\t * injector.invoke(['$compile', '$rootScope', function(obfCompile, obfRootScope) {\n\t * // ...\n\t * }]);\n\t *\n\t * // Therefore\n\t * expect(injector.annotate(\n\t * ['$compile', '$rootScope', function(obfus_$compile, obfus_$rootScope) {}])\n\t * ).toEqual(['$compile', '$rootScope']);\n\t * ```\n\t *\n\t * @param {Function|Array.} fn Function for which dependent service names need to\n\t * be retrieved as described above.\n\t *\n\t * @param {boolean=} [strictDi=false] Disallow argument name annotation inference.\n\t *\n\t * @returns {Array.} The names of the services which the function requires.\n\t */\n\t\n\t\n\t\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $provide\n\t *\n\t * @description\n\t *\n\t * The {@link auto.$provide $provide} service has a number of methods for registering components\n\t * with the {@link auto.$injector $injector}. Many of these functions are also exposed on\n\t * {@link angular.Module}.\n\t *\n\t * An Angular **service** is a singleton object created by a **service factory**. These **service\n\t * factories** are functions which, in turn, are created by a **service provider**.\n\t * The **service providers** are constructor functions. When instantiated they must contain a\n\t * property called `$get`, which holds the **service factory** function.\n\t *\n\t * When you request a service, the {@link auto.$injector $injector} is responsible for finding the\n\t * correct **service provider**, instantiating it and then calling its `$get` **service factory**\n\t * function to get the instance of the **service**.\n\t *\n\t * Often services have no configuration options and there is no need to add methods to the service\n\t * provider. The provider will be no more than a constructor function with a `$get` property. For\n\t * these cases the {@link auto.$provide $provide} service has additional helper methods to register\n\t * services without specifying a provider.\n\t *\n\t * * {@link auto.$provide#provider provider(provider)} - registers a **service provider** with the\n\t * {@link auto.$injector $injector}\n\t * * {@link auto.$provide#constant constant(obj)} - registers a value/object that can be accessed by\n\t * providers and services.\n\t * * {@link auto.$provide#value value(obj)} - registers a value/object that can only be accessed by\n\t * services, not providers.\n\t * * {@link auto.$provide#factory factory(fn)} - registers a service **factory function**, `fn`,\n\t * that will be wrapped in a **service provider** object, whose `$get` property will contain the\n\t * given factory function.\n\t * * {@link auto.$provide#service service(class)} - registers a **constructor function**, `class`\n\t * that will be wrapped in a **service provider** object, whose `$get` property will instantiate\n\t * a new object using the given constructor function.\n\t *\n\t * See the individual methods for more information and examples.\n\t */\n\t\n\t/**\n\t * @ngdoc method\n\t * @name $provide#provider\n\t * @description\n\t *\n\t * Register a **provider function** with the {@link auto.$injector $injector}. Provider functions\n\t * are constructor functions, whose instances are responsible for \"providing\" a factory for a\n\t * service.\n\t *\n\t * Service provider names start with the name of the service they provide followed by `Provider`.\n\t * For example, the {@link ng.$log $log} service has a provider called\n\t * {@link ng.$logProvider $logProvider}.\n\t *\n\t * Service provider objects can have additional methods which allow configuration of the provider\n\t * and its service. Importantly, you can configure what kind of service is created by the `$get`\n\t * method, or how that service will act. For example, the {@link ng.$logProvider $logProvider} has a\n\t * method {@link ng.$logProvider#debugEnabled debugEnabled}\n\t * which lets you specify whether the {@link ng.$log $log} service will log debug messages to the\n\t * console or not.\n\t *\n\t * @param {string} name The name of the instance. NOTE: the provider will be available under `name +\n\t 'Provider'` key.\n\t * @param {(Object|function())} provider If the provider is:\n\t *\n\t * - `Object`: then it should have a `$get` method. The `$get` method will be invoked using\n\t * {@link auto.$injector#invoke $injector.invoke()} when an instance needs to be created.\n\t * - `Constructor`: a new instance of the provider will be created using\n\t * {@link auto.$injector#instantiate $injector.instantiate()}, then treated as `object`.\n\t *\n\t * @returns {Object} registered provider instance\n\t\n\t * @example\n\t *\n\t * The following example shows how to create a simple event tracking service and register it using\n\t * {@link auto.$provide#provider $provide.provider()}.\n\t *\n\t * ```js\n\t * // Define the eventTracker provider\n\t * function EventTrackerProvider() {\n\t * var trackingUrl = '/track';\n\t *\n\t * // A provider method for configuring where the tracked events should been saved\n\t * this.setTrackingUrl = function(url) {\n\t * trackingUrl = url;\n\t * };\n\t *\n\t * // The service factory function\n\t * this.$get = ['$http', function($http) {\n\t * var trackedEvents = {};\n\t * return {\n\t * // Call this to track an event\n\t * event: function(event) {\n\t * var count = trackedEvents[event] || 0;\n\t * count += 1;\n\t * trackedEvents[event] = count;\n\t * return count;\n\t * },\n\t * // Call this to save the tracked events to the trackingUrl\n\t * save: function() {\n\t * $http.post(trackingUrl, trackedEvents);\n\t * }\n\t * };\n\t * }];\n\t * }\n\t *\n\t * describe('eventTracker', function() {\n\t * var postSpy;\n\t *\n\t * beforeEach(module(function($provide) {\n\t * // Register the eventTracker provider\n\t * $provide.provider('eventTracker', EventTrackerProvider);\n\t * }));\n\t *\n\t * beforeEach(module(function(eventTrackerProvider) {\n\t * // Configure eventTracker provider\n\t * eventTrackerProvider.setTrackingUrl('/custom-track');\n\t * }));\n\t *\n\t * it('tracks events', inject(function(eventTracker) {\n\t * expect(eventTracker.event('login')).toEqual(1);\n\t * expect(eventTracker.event('login')).toEqual(2);\n\t * }));\n\t *\n\t * it('saves to the tracking url', inject(function(eventTracker, $http) {\n\t * postSpy = spyOn($http, 'post');\n\t * eventTracker.event('login');\n\t * eventTracker.save();\n\t * expect(postSpy).toHaveBeenCalled();\n\t * expect(postSpy.mostRecentCall.args[0]).not.toEqual('/track');\n\t * expect(postSpy.mostRecentCall.args[0]).toEqual('/custom-track');\n\t * expect(postSpy.mostRecentCall.args[1]).toEqual({ 'login': 1 });\n\t * }));\n\t * });\n\t * ```\n\t */\n\t\n\t/**\n\t * @ngdoc method\n\t * @name $provide#factory\n\t * @description\n\t *\n\t * Register a **service factory**, which will be called to return the service instance.\n\t * This is short for registering a service where its provider consists of only a `$get` property,\n\t * which is the given service factory function.\n\t * You should use {@link auto.$provide#factory $provide.factory(getFn)} if you do not need to\n\t * configure your service in a provider.\n\t *\n\t * @param {string} name The name of the instance.\n\t * @param {Function|Array.} $getFn The injectable $getFn for the instance creation.\n\t * Internally this is a short hand for `$provide.provider(name, {$get: $getFn})`.\n\t * @returns {Object} registered provider instance\n\t *\n\t * @example\n\t * Here is an example of registering a service\n\t * ```js\n\t * $provide.factory('ping', ['$http', function($http) {\n\t * return function ping() {\n\t * return $http.send('/ping');\n\t * };\n\t * }]);\n\t * ```\n\t * You would then inject and use this service like this:\n\t * ```js\n\t * someModule.controller('Ctrl', ['ping', function(ping) {\n\t * ping();\n\t * }]);\n\t * ```\n\t */\n\t\n\t\n\t/**\n\t * @ngdoc method\n\t * @name $provide#service\n\t * @description\n\t *\n\t * Register a **service constructor**, which will be invoked with `new` to create the service\n\t * instance.\n\t * This is short for registering a service where its provider's `$get` property is a factory\n\t * function that returns an instance instantiated by the injector from the service constructor\n\t * function.\n\t *\n\t * Internally it looks a bit like this:\n\t *\n\t * ```\n\t * {\n\t * $get: function() {\n\t * return $injector.instantiate(constructor);\n\t * }\n\t * }\n\t * ```\n\t *\n\t *\n\t * You should use {@link auto.$provide#service $provide.service(class)} if you define your service\n\t * as a type/class.\n\t *\n\t * @param {string} name The name of the instance.\n\t * @param {Function|Array.} constructor An injectable class (constructor function)\n\t * that will be instantiated.\n\t * @returns {Object} registered provider instance\n\t *\n\t * @example\n\t * Here is an example of registering a service using\n\t * {@link auto.$provide#service $provide.service(class)}.\n\t * ```js\n\t * var Ping = function($http) {\n\t * this.$http = $http;\n\t * };\n\t *\n\t * Ping.$inject = ['$http'];\n\t *\n\t * Ping.prototype.send = function() {\n\t * return this.$http.get('/ping');\n\t * };\n\t * $provide.service('ping', Ping);\n\t * ```\n\t * You would then inject and use this service like this:\n\t * ```js\n\t * someModule.controller('Ctrl', ['ping', function(ping) {\n\t * ping.send();\n\t * }]);\n\t * ```\n\t */\n\t\n\t\n\t/**\n\t * @ngdoc method\n\t * @name $provide#value\n\t * @description\n\t *\n\t * Register a **value service** with the {@link auto.$injector $injector}, such as a string, a\n\t * number, an array, an object or a function. This is short for registering a service where its\n\t * provider's `$get` property is a factory function that takes no arguments and returns the **value\n\t * service**. That also means it is not possible to inject other services into a value service.\n\t *\n\t * Value services are similar to constant services, except that they cannot be injected into a\n\t * module configuration function (see {@link angular.Module#config}) but they can be overridden by\n\t * an Angular {@link auto.$provide#decorator decorator}.\n\t *\n\t * @param {string} name The name of the instance.\n\t * @param {*} value The value.\n\t * @returns {Object} registered provider instance\n\t *\n\t * @example\n\t * Here are some examples of creating value services.\n\t * ```js\n\t * $provide.value('ADMIN_USER', 'admin');\n\t *\n\t * $provide.value('RoleLookup', { admin: 0, writer: 1, reader: 2 });\n\t *\n\t * $provide.value('halfOf', function(value) {\n\t * return value / 2;\n\t * });\n\t * ```\n\t */\n\t\n\t\n\t/**\n\t * @ngdoc method\n\t * @name $provide#constant\n\t * @description\n\t *\n\t * Register a **constant service** with the {@link auto.$injector $injector}, such as a string,\n\t * a number, an array, an object or a function. Like the {@link auto.$provide#value value}, it is not\n\t * possible to inject other services into a constant.\n\t *\n\t * But unlike {@link auto.$provide#value value}, a constant can be\n\t * injected into a module configuration function (see {@link angular.Module#config}) and it cannot\n\t * be overridden by an Angular {@link auto.$provide#decorator decorator}.\n\t *\n\t * @param {string} name The name of the constant.\n\t * @param {*} value The constant value.\n\t * @returns {Object} registered instance\n\t *\n\t * @example\n\t * Here a some examples of creating constants:\n\t * ```js\n\t * $provide.constant('SHARD_HEIGHT', 306);\n\t *\n\t * $provide.constant('MY_COLOURS', ['red', 'blue', 'grey']);\n\t *\n\t * $provide.constant('double', function(value) {\n\t * return value * 2;\n\t * });\n\t * ```\n\t */\n\t\n\t\n\t/**\n\t * @ngdoc method\n\t * @name $provide#decorator\n\t * @description\n\t *\n\t * Register a **service decorator** with the {@link auto.$injector $injector}. A service decorator\n\t * intercepts the creation of a service, allowing it to override or modify the behavior of the\n\t * service. The object returned by the decorator may be the original service, or a new service\n\t * object which replaces or wraps and delegates to the original service.\n\t *\n\t * @param {string} name The name of the service to decorate.\n\t * @param {Function|Array.} decorator This function will be invoked when the service needs to be\n\t * instantiated and should return the decorated service instance. The function is called using\n\t * the {@link auto.$injector#invoke injector.invoke} method and is therefore fully injectable.\n\t * Local injection arguments:\n\t *\n\t * * `$delegate` - The original service instance, which can be monkey patched, configured,\n\t * decorated or delegated to.\n\t *\n\t * @example\n\t * Here we decorate the {@link ng.$log $log} service to convert warnings to errors by intercepting\n\t * calls to {@link ng.$log#error $log.warn()}.\n\t * ```js\n\t * $provide.decorator('$log', ['$delegate', function($delegate) {\n\t * $delegate.warn = $delegate.error;\n\t * return $delegate;\n\t * }]);\n\t * ```\n\t */\n\t\n\t\n\tfunction createInjector(modulesToLoad, strictDi) {\n\t strictDi = (strictDi === true);\n\t var INSTANTIATING = {},\n\t providerSuffix = 'Provider',\n\t path = [],\n\t loadedModules = new HashMap([], true),\n\t providerCache = {\n\t $provide: {\n\t provider: supportObject(provider),\n\t factory: supportObject(factory),\n\t service: supportObject(service),\n\t value: supportObject(value),\n\t constant: supportObject(constant),\n\t decorator: decorator\n\t }\n\t },\n\t providerInjector = (providerCache.$injector =\n\t createInternalInjector(providerCache, function(serviceName, caller) {\n\t if (angular.isString(caller)) {\n\t path.push(caller);\n\t }\n\t throw $injectorMinErr('unpr', \"Unknown provider: {0}\", path.join(' <- '));\n\t })),\n\t instanceCache = {},\n\t instanceInjector = (instanceCache.$injector =\n\t createInternalInjector(instanceCache, function(serviceName, caller) {\n\t var provider = providerInjector.get(serviceName + providerSuffix, caller);\n\t return instanceInjector.invoke(provider.$get, provider, undefined, serviceName);\n\t }));\n\t\n\t\n\t forEach(loadModules(modulesToLoad), function(fn) { if (fn) instanceInjector.invoke(fn); });\n\t\n\t return instanceInjector;\n\t\n\t ////////////////////////////////////\n\t // $provider\n\t ////////////////////////////////////\n\t\n\t function supportObject(delegate) {\n\t return function(key, value) {\n\t if (isObject(key)) {\n\t forEach(key, reverseParams(delegate));\n\t } else {\n\t return delegate(key, value);\n\t }\n\t };\n\t }\n\t\n\t function provider(name, provider_) {\n\t assertNotHasOwnProperty(name, 'service');\n\t if (isFunction(provider_) || isArray(provider_)) {\n\t provider_ = providerInjector.instantiate(provider_);\n\t }\n\t if (!provider_.$get) {\n\t throw $injectorMinErr('pget', \"Provider '{0}' must define $get factory method.\", name);\n\t }\n\t return providerCache[name + providerSuffix] = provider_;\n\t }\n\t\n\t function enforceReturnValue(name, factory) {\n\t return function enforcedReturnValue() {\n\t var result = instanceInjector.invoke(factory, this);\n\t if (isUndefined(result)) {\n\t throw $injectorMinErr('undef', \"Provider '{0}' must return a value from $get factory method.\", name);\n\t }\n\t return result;\n\t };\n\t }\n\t\n\t function factory(name, factoryFn, enforce) {\n\t return provider(name, {\n\t $get: enforce !== false ? enforceReturnValue(name, factoryFn) : factoryFn\n\t });\n\t }\n\t\n\t function service(name, constructor) {\n\t return factory(name, ['$injector', function($injector) {\n\t return $injector.instantiate(constructor);\n\t }]);\n\t }\n\t\n\t function value(name, val) { return factory(name, valueFn(val), false); }\n\t\n\t function constant(name, value) {\n\t assertNotHasOwnProperty(name, 'constant');\n\t providerCache[name] = value;\n\t instanceCache[name] = value;\n\t }\n\t\n\t function decorator(serviceName, decorFn) {\n\t var origProvider = providerInjector.get(serviceName + providerSuffix),\n\t orig$get = origProvider.$get;\n\t\n\t origProvider.$get = function() {\n\t var origInstance = instanceInjector.invoke(orig$get, origProvider);\n\t return instanceInjector.invoke(decorFn, null, {$delegate: origInstance});\n\t };\n\t }\n\t\n\t ////////////////////////////////////\n\t // Module Loading\n\t ////////////////////////////////////\n\t function loadModules(modulesToLoad) {\n\t assertArg(isUndefined(modulesToLoad) || isArray(modulesToLoad), 'modulesToLoad', 'not an array');\n\t var runBlocks = [], moduleFn;\n\t forEach(modulesToLoad, function(module) {\n\t if (loadedModules.get(module)) return;\n\t loadedModules.put(module, true);\n\t\n\t function runInvokeQueue(queue) {\n\t var i, ii;\n\t for (i = 0, ii = queue.length; i < ii; i++) {\n\t var invokeArgs = queue[i],\n\t provider = providerInjector.get(invokeArgs[0]);\n\t\n\t provider[invokeArgs[1]].apply(provider, invokeArgs[2]);\n\t }\n\t }\n\t\n\t try {\n\t if (isString(module)) {\n\t moduleFn = angularModule(module);\n\t runBlocks = runBlocks.concat(loadModules(moduleFn.requires)).concat(moduleFn._runBlocks);\n\t runInvokeQueue(moduleFn._invokeQueue);\n\t runInvokeQueue(moduleFn._configBlocks);\n\t } else if (isFunction(module)) {\n\t runBlocks.push(providerInjector.invoke(module));\n\t } else if (isArray(module)) {\n\t runBlocks.push(providerInjector.invoke(module));\n\t } else {\n\t assertArgFn(module, 'module');\n\t }\n\t } catch (e) {\n\t if (isArray(module)) {\n\t module = module[module.length - 1];\n\t }\n\t if (e.message && e.stack && e.stack.indexOf(e.message) == -1) {\n\t // Safari & FF's stack traces don't contain error.message content\n\t // unlike those of Chrome and IE\n\t // So if stack doesn't contain message, we create a new string that contains both.\n\t // Since error.stack is read-only in Safari, I'm overriding e and not e.stack here.\n\t /* jshint -W022 */\n\t e = e.message + '\\n' + e.stack;\n\t }\n\t throw $injectorMinErr('modulerr', \"Failed to instantiate module {0} due to:\\n{1}\",\n\t module, e.stack || e.message || e);\n\t }\n\t });\n\t return runBlocks;\n\t }\n\t\n\t ////////////////////////////////////\n\t // internal Injector\n\t ////////////////////////////////////\n\t\n\t function createInternalInjector(cache, factory) {\n\t\n\t function getService(serviceName, caller) {\n\t if (cache.hasOwnProperty(serviceName)) {\n\t if (cache[serviceName] === INSTANTIATING) {\n\t throw $injectorMinErr('cdep', 'Circular dependency found: {0}',\n\t serviceName + ' <- ' + path.join(' <- '));\n\t }\n\t return cache[serviceName];\n\t } else {\n\t try {\n\t path.unshift(serviceName);\n\t cache[serviceName] = INSTANTIATING;\n\t return cache[serviceName] = factory(serviceName, caller);\n\t } catch (err) {\n\t if (cache[serviceName] === INSTANTIATING) {\n\t delete cache[serviceName];\n\t }\n\t throw err;\n\t } finally {\n\t path.shift();\n\t }\n\t }\n\t }\n\t\n\t function invoke(fn, self, locals, serviceName) {\n\t if (typeof locals === 'string') {\n\t serviceName = locals;\n\t locals = null;\n\t }\n\t\n\t var args = [],\n\t $inject = createInjector.$$annotate(fn, strictDi, serviceName),\n\t length, i,\n\t key;\n\t\n\t for (i = 0, length = $inject.length; i < length; i++) {\n\t key = $inject[i];\n\t if (typeof key !== 'string') {\n\t throw $injectorMinErr('itkn',\n\t 'Incorrect injection token! Expected service name as string, got {0}', key);\n\t }\n\t args.push(\n\t locals && locals.hasOwnProperty(key)\n\t ? locals[key]\n\t : getService(key, serviceName)\n\t );\n\t }\n\t if (isArray(fn)) {\n\t fn = fn[length];\n\t }\n\t\n\t // http://jsperf.com/angularjs-invoke-apply-vs-switch\n\t // #5388\n\t return fn.apply(self, args);\n\t }\n\t\n\t function instantiate(Type, locals, serviceName) {\n\t // Check if Type is annotated and use just the given function at n-1 as parameter\n\t // e.g. someModule.factory('greeter', ['$window', function(renamed$window) {}]);\n\t // Object creation: http://jsperf.com/create-constructor/2\n\t var instance = Object.create((isArray(Type) ? Type[Type.length - 1] : Type).prototype || null);\n\t var returnedValue = invoke(Type, instance, locals, serviceName);\n\t\n\t return isObject(returnedValue) || isFunction(returnedValue) ? returnedValue : instance;\n\t }\n\t\n\t return {\n\t invoke: invoke,\n\t instantiate: instantiate,\n\t get: getService,\n\t annotate: createInjector.$$annotate,\n\t has: function(name) {\n\t return providerCache.hasOwnProperty(name + providerSuffix) || cache.hasOwnProperty(name);\n\t }\n\t };\n\t }\n\t}\n\t\n\tcreateInjector.$$annotate = annotate;\n\t\n\t/**\n\t * @ngdoc provider\n\t * @name $anchorScrollProvider\n\t *\n\t * @description\n\t * Use `$anchorScrollProvider` to disable automatic scrolling whenever\n\t * {@link ng.$location#hash $location.hash()} changes.\n\t */\n\tfunction $AnchorScrollProvider() {\n\t\n\t var autoScrollingEnabled = true;\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $anchorScrollProvider#disableAutoScrolling\n\t *\n\t * @description\n\t * By default, {@link ng.$anchorScroll $anchorScroll()} will automatically detect changes to\n\t * {@link ng.$location#hash $location.hash()} and scroll to the element matching the new hash.
\n\t * Use this method to disable automatic scrolling.\n\t *\n\t * If automatic scrolling is disabled, one must explicitly call\n\t * {@link ng.$anchorScroll $anchorScroll()} in order to scroll to the element related to the\n\t * current hash.\n\t */\n\t this.disableAutoScrolling = function() {\n\t autoScrollingEnabled = false;\n\t };\n\t\n\t /**\n\t * @ngdoc service\n\t * @name $anchorScroll\n\t * @kind function\n\t * @requires $window\n\t * @requires $location\n\t * @requires $rootScope\n\t *\n\t * @description\n\t * When called, it scrolls to the element related to the specified `hash` or (if omitted) to the\n\t * current value of {@link ng.$location#hash $location.hash()}, according to the rules specified\n\t * in the\n\t * [HTML5 spec](http://www.w3.org/html/wg/drafts/html/master/browsers.html#an-indicated-part-of-the-document).\n\t *\n\t * It also watches the {@link ng.$location#hash $location.hash()} and automatically scrolls to\n\t * match any anchor whenever it changes. This can be disabled by calling\n\t * {@link ng.$anchorScrollProvider#disableAutoScrolling $anchorScrollProvider.disableAutoScrolling()}.\n\t *\n\t * Additionally, you can use its {@link ng.$anchorScroll#yOffset yOffset} property to specify a\n\t * vertical scroll-offset (either fixed or dynamic).\n\t *\n\t * @param {string=} hash The hash specifying the element to scroll to. If omitted, the value of\n\t * {@link ng.$location#hash $location.hash()} will be used.\n\t *\n\t * @property {(number|function|jqLite)} yOffset\n\t * If set, specifies a vertical scroll-offset. This is often useful when there are fixed\n\t * positioned elements at the top of the page, such as navbars, headers etc.\n\t *\n\t * `yOffset` can be specified in various ways:\n\t * - **number**: A fixed number of pixels to be used as offset.

\n\t * - **function**: A getter function called everytime `$anchorScroll()` is executed. Must return\n\t * a number representing the offset (in pixels).

\n\t * - **jqLite**: A jqLite/jQuery element to be used for specifying the offset. The distance from\n\t * the top of the page to the element's bottom will be used as offset.
\n\t * **Note**: The element will be taken into account only as long as its `position` is set to\n\t * `fixed`. This option is useful, when dealing with responsive navbars/headers that adjust\n\t * their height and/or positioning according to the viewport's size.\n\t *\n\t *
\n\t *
\n\t * In order for `yOffset` to work properly, scrolling should take place on the document's root and\n\t * not some child element.\n\t *
\n\t *\n\t * @example\n\t \n\t \n\t
\n\t Go to bottom\n\t You're at the bottom!\n\t
\n\t
\n\t \n\t angular.module('anchorScrollExample', [])\n\t .controller('ScrollController', ['$scope', '$location', '$anchorScroll',\n\t function ($scope, $location, $anchorScroll) {\n\t $scope.gotoBottom = function() {\n\t // set the location.hash to the id of\n\t // the element you wish to scroll to.\n\t $location.hash('bottom');\n\t\n\t // call $anchorScroll()\n\t $anchorScroll();\n\t };\n\t }]);\n\t \n\t \n\t #scrollArea {\n\t height: 280px;\n\t overflow: auto;\n\t }\n\t\n\t #bottom {\n\t display: block;\n\t margin-top: 2000px;\n\t }\n\t \n\t
\n\t *\n\t *
\n\t * The example below illustrates the use of a vertical scroll-offset (specified as a fixed value).\n\t * See {@link ng.$anchorScroll#yOffset $anchorScroll.yOffset} for more details.\n\t *\n\t * @example\n\t \n\t \n\t \n\t
\n\t Anchor {{x}} of 5\n\t
\n\t
\n\t \n\t angular.module('anchorScrollOffsetExample', [])\n\t .run(['$anchorScroll', function($anchorScroll) {\n\t $anchorScroll.yOffset = 50; // always scroll by 50 extra pixels\n\t }])\n\t .controller('headerCtrl', ['$anchorScroll', '$location', '$scope',\n\t function ($anchorScroll, $location, $scope) {\n\t $scope.gotoAnchor = function(x) {\n\t var newHash = 'anchor' + x;\n\t if ($location.hash() !== newHash) {\n\t // set the $location.hash to `newHash` and\n\t // $anchorScroll will automatically scroll to it\n\t $location.hash('anchor' + x);\n\t } else {\n\t // call $anchorScroll() explicitly,\n\t // since $location.hash hasn't changed\n\t $anchorScroll();\n\t }\n\t };\n\t }\n\t ]);\n\t \n\t \n\t body {\n\t padding-top: 50px;\n\t }\n\t\n\t .anchor {\n\t border: 2px dashed DarkOrchid;\n\t padding: 10px 10px 200px 10px;\n\t }\n\t\n\t .fixed-header {\n\t background-color: rgba(0, 0, 0, 0.2);\n\t height: 50px;\n\t position: fixed;\n\t top: 0; left: 0; right: 0;\n\t }\n\t\n\t .fixed-header > a {\n\t display: inline-block;\n\t margin: 5px 15px;\n\t }\n\t \n\t
\n\t */\n\t this.$get = ['$window', '$location', '$rootScope', function($window, $location, $rootScope) {\n\t var document = $window.document;\n\t\n\t // Helper function to get first anchor from a NodeList\n\t // (using `Array#some()` instead of `angular#forEach()` since it's more performant\n\t // and working in all supported browsers.)\n\t function getFirstAnchor(list) {\n\t var result = null;\n\t Array.prototype.some.call(list, function(element) {\n\t if (nodeName_(element) === 'a') {\n\t result = element;\n\t return true;\n\t }\n\t });\n\t return result;\n\t }\n\t\n\t function getYOffset() {\n\t\n\t var offset = scroll.yOffset;\n\t\n\t if (isFunction(offset)) {\n\t offset = offset();\n\t } else if (isElement(offset)) {\n\t var elem = offset[0];\n\t var style = $window.getComputedStyle(elem);\n\t if (style.position !== 'fixed') {\n\t offset = 0;\n\t } else {\n\t offset = elem.getBoundingClientRect().bottom;\n\t }\n\t } else if (!isNumber(offset)) {\n\t offset = 0;\n\t }\n\t\n\t return offset;\n\t }\n\t\n\t function scrollTo(elem) {\n\t if (elem) {\n\t elem.scrollIntoView();\n\t\n\t var offset = getYOffset();\n\t\n\t if (offset) {\n\t // `offset` is the number of pixels we should scroll UP in order to align `elem` properly.\n\t // This is true ONLY if the call to `elem.scrollIntoView()` initially aligns `elem` at the\n\t // top of the viewport.\n\t //\n\t // IF the number of pixels from the top of `elem` to the end of the page's content is less\n\t // than the height of the viewport, then `elem.scrollIntoView()` will align the `elem` some\n\t // way down the page.\n\t //\n\t // This is often the case for elements near the bottom of the page.\n\t //\n\t // In such cases we do not need to scroll the whole `offset` up, just the difference between\n\t // the top of the element and the offset, which is enough to align the top of `elem` at the\n\t // desired position.\n\t var elemTop = elem.getBoundingClientRect().top;\n\t $window.scrollBy(0, elemTop - offset);\n\t }\n\t } else {\n\t $window.scrollTo(0, 0);\n\t }\n\t }\n\t\n\t function scroll(hash) {\n\t hash = isString(hash) ? hash : $location.hash();\n\t var elm;\n\t\n\t // empty hash, scroll to the top of the page\n\t if (!hash) scrollTo(null);\n\t\n\t // element with given id\n\t else if ((elm = document.getElementById(hash))) scrollTo(elm);\n\t\n\t // first anchor with given name :-D\n\t else if ((elm = getFirstAnchor(document.getElementsByName(hash)))) scrollTo(elm);\n\t\n\t // no element and hash == 'top', scroll to the top of the page\n\t else if (hash === 'top') scrollTo(null);\n\t }\n\t\n\t // does not scroll when user clicks on anchor link that is currently on\n\t // (no url change, no $location.hash() change), browser native does scroll\n\t if (autoScrollingEnabled) {\n\t $rootScope.$watch(function autoScrollWatch() {return $location.hash();},\n\t function autoScrollWatchAction(newVal, oldVal) {\n\t // skip the initial scroll if $location.hash is empty\n\t if (newVal === oldVal && newVal === '') return;\n\t\n\t jqLiteDocumentLoaded(function() {\n\t $rootScope.$evalAsync(scroll);\n\t });\n\t });\n\t }\n\t\n\t return scroll;\n\t }];\n\t}\n\t\n\tvar $animateMinErr = minErr('$animate');\n\tvar ELEMENT_NODE = 1;\n\tvar NG_ANIMATE_CLASSNAME = 'ng-animate';\n\t\n\tfunction mergeClasses(a,b) {\n\t if (!a && !b) return '';\n\t if (!a) return b;\n\t if (!b) return a;\n\t if (isArray(a)) a = a.join(' ');\n\t if (isArray(b)) b = b.join(' ');\n\t return a + ' ' + b;\n\t}\n\t\n\tfunction extractElementNode(element) {\n\t for (var i = 0; i < element.length; i++) {\n\t var elm = element[i];\n\t if (elm.nodeType === ELEMENT_NODE) {\n\t return elm;\n\t }\n\t }\n\t}\n\t\n\tfunction splitClasses(classes) {\n\t if (isString(classes)) {\n\t classes = classes.split(' ');\n\t }\n\t\n\t // Use createMap() to prevent class assumptions involving property names in\n\t // Object.prototype\n\t var obj = createMap();\n\t forEach(classes, function(klass) {\n\t // sometimes the split leaves empty string values\n\t // incase extra spaces were applied to the options\n\t if (klass.length) {\n\t obj[klass] = true;\n\t }\n\t });\n\t return obj;\n\t}\n\t\n\t// if any other type of options value besides an Object value is\n\t// passed into the $animate.method() animation then this helper code\n\t// will be run which will ignore it. While this patch is not the\n\t// greatest solution to this, a lot of existing plugins depend on\n\t// $animate to either call the callback (< 1.2) or return a promise\n\t// that can be changed. This helper function ensures that the options\n\t// are wiped clean incase a callback function is provided.\n\tfunction prepareAnimateOptions(options) {\n\t return isObject(options)\n\t ? options\n\t : {};\n\t}\n\t\n\tvar $$CoreAnimateJsProvider = function() {\n\t this.$get = function() {};\n\t};\n\t\n\t// this is prefixed with Core since it conflicts with\n\t// the animateQueueProvider defined in ngAnimate/animateQueue.js\n\tvar $$CoreAnimateQueueProvider = function() {\n\t var postDigestQueue = new HashMap();\n\t var postDigestElements = [];\n\t\n\t this.$get = ['$$AnimateRunner', '$rootScope',\n\t function($$AnimateRunner, $rootScope) {\n\t return {\n\t enabled: noop,\n\t on: noop,\n\t off: noop,\n\t pin: noop,\n\t\n\t push: function(element, event, options, domOperation) {\n\t domOperation && domOperation();\n\t\n\t options = options || {};\n\t options.from && element.css(options.from);\n\t options.to && element.css(options.to);\n\t\n\t if (options.addClass || options.removeClass) {\n\t addRemoveClassesPostDigest(element, options.addClass, options.removeClass);\n\t }\n\t\n\t var runner = new $$AnimateRunner(); // jshint ignore:line\n\t\n\t // since there are no animations to run the runner needs to be\n\t // notified that the animation call is complete.\n\t runner.complete();\n\t return runner;\n\t }\n\t };\n\t\n\t\n\t function updateData(data, classes, value) {\n\t var changed = false;\n\t if (classes) {\n\t classes = isString(classes) ? classes.split(' ') :\n\t isArray(classes) ? classes : [];\n\t forEach(classes, function(className) {\n\t if (className) {\n\t changed = true;\n\t data[className] = value;\n\t }\n\t });\n\t }\n\t return changed;\n\t }\n\t\n\t function handleCSSClassChanges() {\n\t forEach(postDigestElements, function(element) {\n\t var data = postDigestQueue.get(element);\n\t if (data) {\n\t var existing = splitClasses(element.attr('class'));\n\t var toAdd = '';\n\t var toRemove = '';\n\t forEach(data, function(status, className) {\n\t var hasClass = !!existing[className];\n\t if (status !== hasClass) {\n\t if (status) {\n\t toAdd += (toAdd.length ? ' ' : '') + className;\n\t } else {\n\t toRemove += (toRemove.length ? ' ' : '') + className;\n\t }\n\t }\n\t });\n\t\n\t forEach(element, function(elm) {\n\t toAdd && jqLiteAddClass(elm, toAdd);\n\t toRemove && jqLiteRemoveClass(elm, toRemove);\n\t });\n\t postDigestQueue.remove(element);\n\t }\n\t });\n\t postDigestElements.length = 0;\n\t }\n\t\n\t\n\t function addRemoveClassesPostDigest(element, add, remove) {\n\t var data = postDigestQueue.get(element) || {};\n\t\n\t var classesAdded = updateData(data, add, true);\n\t var classesRemoved = updateData(data, remove, false);\n\t\n\t if (classesAdded || classesRemoved) {\n\t\n\t postDigestQueue.put(element, data);\n\t postDigestElements.push(element);\n\t\n\t if (postDigestElements.length === 1) {\n\t $rootScope.$$postDigest(handleCSSClassChanges);\n\t }\n\t }\n\t }\n\t }];\n\t};\n\t\n\t/**\n\t * @ngdoc provider\n\t * @name $animateProvider\n\t *\n\t * @description\n\t * Default implementation of $animate that doesn't perform any animations, instead just\n\t * synchronously performs DOM updates and resolves the returned runner promise.\n\t *\n\t * In order to enable animations the `ngAnimate` module has to be loaded.\n\t *\n\t * To see the functional implementation check out `src/ngAnimate/animate.js`.\n\t */\n\tvar $AnimateProvider = ['$provide', function($provide) {\n\t var provider = this;\n\t\n\t this.$$registeredAnimations = Object.create(null);\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $animateProvider#register\n\t *\n\t * @description\n\t * Registers a new injectable animation factory function. The factory function produces the\n\t * animation object which contains callback functions for each event that is expected to be\n\t * animated.\n\t *\n\t * * `eventFn`: `function(element, ... , doneFunction, options)`\n\t * The element to animate, the `doneFunction` and the options fed into the animation. Depending\n\t * on the type of animation additional arguments will be injected into the animation function. The\n\t * list below explains the function signatures for the different animation methods:\n\t *\n\t * - setClass: function(element, addedClasses, removedClasses, doneFunction, options)\n\t * - addClass: function(element, addedClasses, doneFunction, options)\n\t * - removeClass: function(element, removedClasses, doneFunction, options)\n\t * - enter, leave, move: function(element, doneFunction, options)\n\t * - animate: function(element, fromStyles, toStyles, doneFunction, options)\n\t *\n\t * Make sure to trigger the `doneFunction` once the animation is fully complete.\n\t *\n\t * ```js\n\t * return {\n\t * //enter, leave, move signature\n\t * eventFn : function(element, done, options) {\n\t * //code to run the animation\n\t * //once complete, then run done()\n\t * return function endFunction(wasCancelled) {\n\t * //code to cancel the animation\n\t * }\n\t * }\n\t * }\n\t * ```\n\t *\n\t * @param {string} name The name of the animation (this is what the class-based CSS value will be compared to).\n\t * @param {Function} factory The factory function that will be executed to return the animation\n\t * object.\n\t */\n\t this.register = function(name, factory) {\n\t if (name && name.charAt(0) !== '.') {\n\t throw $animateMinErr('notcsel', \"Expecting class selector starting with '.' got '{0}'.\", name);\n\t }\n\t\n\t var key = name + '-animation';\n\t provider.$$registeredAnimations[name.substr(1)] = key;\n\t $provide.factory(key, factory);\n\t };\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $animateProvider#classNameFilter\n\t *\n\t * @description\n\t * Sets and/or returns the CSS class regular expression that is checked when performing\n\t * an animation. Upon bootstrap the classNameFilter value is not set at all and will\n\t * therefore enable $animate to attempt to perform an animation on any element that is triggered.\n\t * When setting the `classNameFilter` value, animations will only be performed on elements\n\t * that successfully match the filter expression. This in turn can boost performance\n\t * for low-powered devices as well as applications containing a lot of structural operations.\n\t * @param {RegExp=} expression The className expression which will be checked against all animations\n\t * @return {RegExp} The current CSS className expression value. If null then there is no expression value\n\t */\n\t this.classNameFilter = function(expression) {\n\t if (arguments.length === 1) {\n\t this.$$classNameFilter = (expression instanceof RegExp) ? expression : null;\n\t if (this.$$classNameFilter) {\n\t var reservedRegex = new RegExp(\"(\\\\s+|\\\\/)\" + NG_ANIMATE_CLASSNAME + \"(\\\\s+|\\\\/)\");\n\t if (reservedRegex.test(this.$$classNameFilter.toString())) {\n\t throw $animateMinErr('nongcls','$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the \"{0}\" CSS class.', NG_ANIMATE_CLASSNAME);\n\t\n\t }\n\t }\n\t }\n\t return this.$$classNameFilter;\n\t };\n\t\n\t this.$get = ['$$animateQueue', function($$animateQueue) {\n\t function domInsert(element, parentElement, afterElement) {\n\t // if for some reason the previous element was removed\n\t // from the dom sometime before this code runs then let's\n\t // just stick to using the parent element as the anchor\n\t if (afterElement) {\n\t var afterNode = extractElementNode(afterElement);\n\t if (afterNode && !afterNode.parentNode && !afterNode.previousElementSibling) {\n\t afterElement = null;\n\t }\n\t }\n\t afterElement ? afterElement.after(element) : parentElement.prepend(element);\n\t }\n\t\n\t /**\n\t * @ngdoc service\n\t * @name $animate\n\t * @description The $animate service exposes a series of DOM utility methods that provide support\n\t * for animation hooks. The default behavior is the application of DOM operations, however,\n\t * when an animation is detected (and animations are enabled), $animate will do the heavy lifting\n\t * to ensure that animation runs with the triggered DOM operation.\n\t *\n\t * By default $animate doesn't trigger any animations. This is because the `ngAnimate` module isn't\n\t * included and only when it is active then the animation hooks that `$animate` triggers will be\n\t * functional. Once active then all structural `ng-` directives will trigger animations as they perform\n\t * their DOM-related operations (enter, leave and move). Other directives such as `ngClass`,\n\t * `ngShow`, `ngHide` and `ngMessages` also provide support for animations.\n\t *\n\t * It is recommended that the`$animate` service is always used when executing DOM-related procedures within directives.\n\t *\n\t * To learn more about enabling animation support, click here to visit the\n\t * {@link ngAnimate ngAnimate module page}.\n\t */\n\t return {\n\t // we don't call it directly since non-existant arguments may\n\t // be interpreted as null within the sub enabled function\n\t\n\t /**\n\t *\n\t * @ngdoc method\n\t * @name $animate#on\n\t * @kind function\n\t * @description Sets up an event listener to fire whenever the animation event (enter, leave, move, etc...)\n\t * has fired on the given element or among any of its children. Once the listener is fired, the provided callback\n\t * is fired with the following params:\n\t *\n\t * ```js\n\t * $animate.on('enter', container,\n\t * function callback(element, phase) {\n\t * // cool we detected an enter animation within the container\n\t * }\n\t * );\n\t * ```\n\t *\n\t * @param {string} event the animation event that will be captured (e.g. enter, leave, move, addClass, removeClass, etc...)\n\t * @param {DOMElement} container the container element that will capture each of the animation events that are fired on itself\n\t * as well as among its children\n\t * @param {Function} callback the callback function that will be fired when the listener is triggered\n\t *\n\t * The arguments present in the callback function are:\n\t * * `element` - The captured DOM element that the animation was fired on.\n\t * * `phase` - The phase of the animation. The two possible phases are **start** (when the animation starts) and **close** (when it ends).\n\t */\n\t on: $$animateQueue.on,\n\t\n\t /**\n\t *\n\t * @ngdoc method\n\t * @name $animate#off\n\t * @kind function\n\t * @description Deregisters an event listener based on the event which has been associated with the provided element. This method\n\t * can be used in three different ways depending on the arguments:\n\t *\n\t * ```js\n\t * // remove all the animation event listeners listening for `enter`\n\t * $animate.off('enter');\n\t *\n\t * // remove all the animation event listeners listening for `enter` on the given element and its children\n\t * $animate.off('enter', container);\n\t *\n\t * // remove the event listener function provided by `listenerFn` that is set\n\t * // to listen for `enter` on the given `element` as well as its children\n\t * $animate.off('enter', container, callback);\n\t * ```\n\t *\n\t * @param {string} event the animation event (e.g. enter, leave, move, addClass, removeClass, etc...)\n\t * @param {DOMElement=} container the container element the event listener was placed on\n\t * @param {Function=} callback the callback function that was registered as the listener\n\t */\n\t off: $$animateQueue.off,\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $animate#pin\n\t * @kind function\n\t * @description Associates the provided element with a host parent element to allow the element to be animated even if it exists\n\t * outside of the DOM structure of the Angular application. By doing so, any animation triggered via `$animate` can be issued on the\n\t * element despite being outside the realm of the application or within another application. Say for example if the application\n\t * was bootstrapped on an element that is somewhere inside of the `` tag, but we wanted to allow for an element to be situated\n\t * as a direct child of `document.body`, then this can be achieved by pinning the element via `$animate.pin(element)`. Keep in mind\n\t * that calling `$animate.pin(element, parentElement)` will not actually insert into the DOM anywhere; it will just create the association.\n\t *\n\t * Note that this feature is only active when the `ngAnimate` module is used.\n\t *\n\t * @param {DOMElement} element the external element that will be pinned\n\t * @param {DOMElement} parentElement the host parent element that will be associated with the external element\n\t */\n\t pin: $$animateQueue.pin,\n\t\n\t /**\n\t *\n\t * @ngdoc method\n\t * @name $animate#enabled\n\t * @kind function\n\t * @description Used to get and set whether animations are enabled or not on the entire application or on an element and its children. This\n\t * function can be called in four ways:\n\t *\n\t * ```js\n\t * // returns true or false\n\t * $animate.enabled();\n\t *\n\t * // changes the enabled state for all animations\n\t * $animate.enabled(false);\n\t * $animate.enabled(true);\n\t *\n\t * // returns true or false if animations are enabled for an element\n\t * $animate.enabled(element);\n\t *\n\t * // changes the enabled state for an element and its children\n\t * $animate.enabled(element, true);\n\t * $animate.enabled(element, false);\n\t * ```\n\t *\n\t * @param {DOMElement=} element the element that will be considered for checking/setting the enabled state\n\t * @param {boolean=} enabled whether or not the animations will be enabled for the element\n\t *\n\t * @return {boolean} whether or not animations are enabled\n\t */\n\t enabled: $$animateQueue.enabled,\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $animate#cancel\n\t * @kind function\n\t * @description Cancels the provided animation.\n\t *\n\t * @param {Promise} animationPromise The animation promise that is returned when an animation is started.\n\t */\n\t cancel: function(runner) {\n\t runner.end && runner.end();\n\t },\n\t\n\t /**\n\t *\n\t * @ngdoc method\n\t * @name $animate#enter\n\t * @kind function\n\t * @description Inserts the element into the DOM either after the `after` element (if provided) or\n\t * as the first child within the `parent` element and then triggers an animation.\n\t * A promise is returned that will be resolved during the next digest once the animation\n\t * has completed.\n\t *\n\t * @param {DOMElement} element the element which will be inserted into the DOM\n\t * @param {DOMElement} parent the parent element which will append the element as\n\t * a child (so long as the after element is not present)\n\t * @param {DOMElement=} after the sibling element after which the element will be appended\n\t * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t *\n\t * @return {Promise} the animation callback promise\n\t */\n\t enter: function(element, parent, after, options) {\n\t parent = parent && jqLite(parent);\n\t after = after && jqLite(after);\n\t parent = parent || after.parent();\n\t domInsert(element, parent, after);\n\t return $$animateQueue.push(element, 'enter', prepareAnimateOptions(options));\n\t },\n\t\n\t /**\n\t *\n\t * @ngdoc method\n\t * @name $animate#move\n\t * @kind function\n\t * @description Inserts (moves) the element into its new position in the DOM either after\n\t * the `after` element (if provided) or as the first child within the `parent` element\n\t * and then triggers an animation. A promise is returned that will be resolved\n\t * during the next digest once the animation has completed.\n\t *\n\t * @param {DOMElement} element the element which will be moved into the new DOM position\n\t * @param {DOMElement} parent the parent element which will append the element as\n\t * a child (so long as the after element is not present)\n\t * @param {DOMElement=} after the sibling element after which the element will be appended\n\t * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t *\n\t * @return {Promise} the animation callback promise\n\t */\n\t move: function(element, parent, after, options) {\n\t parent = parent && jqLite(parent);\n\t after = after && jqLite(after);\n\t parent = parent || after.parent();\n\t domInsert(element, parent, after);\n\t return $$animateQueue.push(element, 'move', prepareAnimateOptions(options));\n\t },\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $animate#leave\n\t * @kind function\n\t * @description Triggers an animation and then removes the element from the DOM.\n\t * When the function is called a promise is returned that will be resolved during the next\n\t * digest once the animation has completed.\n\t *\n\t * @param {DOMElement} element the element which will be removed from the DOM\n\t * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t *\n\t * @return {Promise} the animation callback promise\n\t */\n\t leave: function(element, options) {\n\t return $$animateQueue.push(element, 'leave', prepareAnimateOptions(options), function() {\n\t element.remove();\n\t });\n\t },\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $animate#addClass\n\t * @kind function\n\t *\n\t * @description Triggers an addClass animation surrounding the addition of the provided CSS class(es). Upon\n\t * execution, the addClass operation will only be handled after the next digest and it will not trigger an\n\t * animation if element already contains the CSS class or if the class is removed at a later step.\n\t * Note that class-based animations are treated differently compared to structural animations\n\t * (like enter, move and leave) since the CSS classes may be added/removed at different points\n\t * depending if CSS or JavaScript animations are used.\n\t *\n\t * @param {DOMElement} element the element which the CSS classes will be applied to\n\t * @param {string} className the CSS class(es) that will be added (multiple classes are separated via spaces)\n\t * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t *\n\t * @return {Promise} the animation callback promise\n\t */\n\t addClass: function(element, className, options) {\n\t options = prepareAnimateOptions(options);\n\t options.addClass = mergeClasses(options.addclass, className);\n\t return $$animateQueue.push(element, 'addClass', options);\n\t },\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $animate#removeClass\n\t * @kind function\n\t *\n\t * @description Triggers a removeClass animation surrounding the removal of the provided CSS class(es). Upon\n\t * execution, the removeClass operation will only be handled after the next digest and it will not trigger an\n\t * animation if element does not contain the CSS class or if the class is added at a later step.\n\t * Note that class-based animations are treated differently compared to structural animations\n\t * (like enter, move and leave) since the CSS classes may be added/removed at different points\n\t * depending if CSS or JavaScript animations are used.\n\t *\n\t * @param {DOMElement} element the element which the CSS classes will be applied to\n\t * @param {string} className the CSS class(es) that will be removed (multiple classes are separated via spaces)\n\t * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t *\n\t * @return {Promise} the animation callback promise\n\t */\n\t removeClass: function(element, className, options) {\n\t options = prepareAnimateOptions(options);\n\t options.removeClass = mergeClasses(options.removeClass, className);\n\t return $$animateQueue.push(element, 'removeClass', options);\n\t },\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $animate#setClass\n\t * @kind function\n\t *\n\t * @description Performs both the addition and removal of a CSS classes on an element and (during the process)\n\t * triggers an animation surrounding the class addition/removal. Much like `$animate.addClass` and\n\t * `$animate.removeClass`, `setClass` will only evaluate the classes being added/removed once a digest has\n\t * passed. Note that class-based animations are treated differently compared to structural animations\n\t * (like enter, move and leave) since the CSS classes may be added/removed at different points\n\t * depending if CSS or JavaScript animations are used.\n\t *\n\t * @param {DOMElement} element the element which the CSS classes will be applied to\n\t * @param {string} add the CSS class(es) that will be added (multiple classes are separated via spaces)\n\t * @param {string} remove the CSS class(es) that will be removed (multiple classes are separated via spaces)\n\t * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t *\n\t * @return {Promise} the animation callback promise\n\t */\n\t setClass: function(element, add, remove, options) {\n\t options = prepareAnimateOptions(options);\n\t options.addClass = mergeClasses(options.addClass, add);\n\t options.removeClass = mergeClasses(options.removeClass, remove);\n\t return $$animateQueue.push(element, 'setClass', options);\n\t },\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $animate#animate\n\t * @kind function\n\t *\n\t * @description Performs an inline animation on the element which applies the provided to and from CSS styles to the element.\n\t * If any detected CSS transition, keyframe or JavaScript matches the provided className value, then the animation will take\n\t * on the provided styles. For example, if a transition animation is set for the given className, then the provided `from` and\n\t * `to` styles will be applied alongside the given transition. If the CSS style provided in `from` does not have a corresponding\n\t * style in `to`, the style in `from` is applied immediately, and no animation is run.\n\t * If a JavaScript animation is detected then the provided styles will be given in as function parameters into the `animate`\n\t * method (or as part of the `options` parameter):\n\t *\n\t * ```js\n\t * ngModule.animation('.my-inline-animation', function() {\n\t * return {\n\t * animate : function(element, from, to, done, options) {\n\t * //animation\n\t * done();\n\t * }\n\t * }\n\t * });\n\t * ```\n\t *\n\t * @param {DOMElement} element the element which the CSS styles will be applied to\n\t * @param {object} from the from (starting) CSS styles that will be applied to the element and across the animation.\n\t * @param {object} to the to (destination) CSS styles that will be applied to the element and across the animation.\n\t * @param {string=} className an optional CSS class that will be applied to the element for the duration of the animation. If\n\t * this value is left as empty then a CSS class of `ng-inline-animate` will be applied to the element.\n\t * (Note that if no animation is detected then this value will not be appplied to the element.)\n\t * @param {object=} options an optional collection of options/styles that will be applied to the element\n\t *\n\t * @return {Promise} the animation callback promise\n\t */\n\t animate: function(element, from, to, className, options) {\n\t options = prepareAnimateOptions(options);\n\t options.from = options.from ? extend(options.from, from) : from;\n\t options.to = options.to ? extend(options.to, to) : to;\n\t\n\t className = className || 'ng-inline-animate';\n\t options.tempClasses = mergeClasses(options.tempClasses, className);\n\t return $$animateQueue.push(element, 'animate', options);\n\t }\n\t };\n\t }];\n\t}];\n\t\n\tvar $$AnimateAsyncRunFactoryProvider = function() {\n\t this.$get = ['$$rAF', function($$rAF) {\n\t var waitQueue = [];\n\t\n\t function waitForTick(fn) {\n\t waitQueue.push(fn);\n\t if (waitQueue.length > 1) return;\n\t $$rAF(function() {\n\t for (var i = 0; i < waitQueue.length; i++) {\n\t waitQueue[i]();\n\t }\n\t waitQueue = [];\n\t });\n\t }\n\t\n\t return function() {\n\t var passed = false;\n\t waitForTick(function() {\n\t passed = true;\n\t });\n\t return function(callback) {\n\t passed ? callback() : waitForTick(callback);\n\t };\n\t };\n\t }];\n\t};\n\t\n\tvar $$AnimateRunnerFactoryProvider = function() {\n\t this.$get = ['$q', '$sniffer', '$$animateAsyncRun', '$document', '$timeout',\n\t function($q, $sniffer, $$animateAsyncRun, $document, $timeout) {\n\t\n\t var INITIAL_STATE = 0;\n\t var DONE_PENDING_STATE = 1;\n\t var DONE_COMPLETE_STATE = 2;\n\t\n\t AnimateRunner.chain = function(chain, callback) {\n\t var index = 0;\n\t\n\t next();\n\t function next() {\n\t if (index === chain.length) {\n\t callback(true);\n\t return;\n\t }\n\t\n\t chain[index](function(response) {\n\t if (response === false) {\n\t callback(false);\n\t return;\n\t }\n\t index++;\n\t next();\n\t });\n\t }\n\t };\n\t\n\t AnimateRunner.all = function(runners, callback) {\n\t var count = 0;\n\t var status = true;\n\t forEach(runners, function(runner) {\n\t runner.done(onProgress);\n\t });\n\t\n\t function onProgress(response) {\n\t status = status && response;\n\t if (++count === runners.length) {\n\t callback(status);\n\t }\n\t }\n\t };\n\t\n\t function AnimateRunner(host) {\n\t this.setHost(host);\n\t\n\t var rafTick = $$animateAsyncRun();\n\t var timeoutTick = function(fn) {\n\t $timeout(fn, 0, false);\n\t };\n\t\n\t this._doneCallbacks = [];\n\t this._tick = function(fn) {\n\t var doc = $document[0];\n\t\n\t // the document may not be ready or attached\n\t // to the module for some internal tests\n\t if (doc && doc.hidden) {\n\t timeoutTick(fn);\n\t } else {\n\t rafTick(fn);\n\t }\n\t };\n\t this._state = 0;\n\t }\n\t\n\t AnimateRunner.prototype = {\n\t setHost: function(host) {\n\t this.host = host || {};\n\t },\n\t\n\t done: function(fn) {\n\t if (this._state === DONE_COMPLETE_STATE) {\n\t fn();\n\t } else {\n\t this._doneCallbacks.push(fn);\n\t }\n\t },\n\t\n\t progress: noop,\n\t\n\t getPromise: function() {\n\t if (!this.promise) {\n\t var self = this;\n\t this.promise = $q(function(resolve, reject) {\n\t self.done(function(status) {\n\t status === false ? reject() : resolve();\n\t });\n\t });\n\t }\n\t return this.promise;\n\t },\n\t\n\t then: function(resolveHandler, rejectHandler) {\n\t return this.getPromise().then(resolveHandler, rejectHandler);\n\t },\n\t\n\t 'catch': function(handler) {\n\t return this.getPromise()['catch'](handler);\n\t },\n\t\n\t 'finally': function(handler) {\n\t return this.getPromise()['finally'](handler);\n\t },\n\t\n\t pause: function() {\n\t if (this.host.pause) {\n\t this.host.pause();\n\t }\n\t },\n\t\n\t resume: function() {\n\t if (this.host.resume) {\n\t this.host.resume();\n\t }\n\t },\n\t\n\t end: function() {\n\t if (this.host.end) {\n\t this.host.end();\n\t }\n\t this._resolve(true);\n\t },\n\t\n\t cancel: function() {\n\t if (this.host.cancel) {\n\t this.host.cancel();\n\t }\n\t this._resolve(false);\n\t },\n\t\n\t complete: function(response) {\n\t var self = this;\n\t if (self._state === INITIAL_STATE) {\n\t self._state = DONE_PENDING_STATE;\n\t self._tick(function() {\n\t self._resolve(response);\n\t });\n\t }\n\t },\n\t\n\t _resolve: function(response) {\n\t if (this._state !== DONE_COMPLETE_STATE) {\n\t forEach(this._doneCallbacks, function(fn) {\n\t fn(response);\n\t });\n\t this._doneCallbacks.length = 0;\n\t this._state = DONE_COMPLETE_STATE;\n\t }\n\t }\n\t };\n\t\n\t return AnimateRunner;\n\t }];\n\t};\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $animateCss\n\t * @kind object\n\t *\n\t * @description\n\t * This is the core version of `$animateCss`. By default, only when the `ngAnimate` is included,\n\t * then the `$animateCss` service will actually perform animations.\n\t *\n\t * Click here {@link ngAnimate.$animateCss to read the documentation for $animateCss}.\n\t */\n\tvar $CoreAnimateCssProvider = function() {\n\t this.$get = ['$$rAF', '$q', '$$AnimateRunner', function($$rAF, $q, $$AnimateRunner) {\n\t\n\t return function(element, initialOptions) {\n\t // all of the animation functions should create\n\t // a copy of the options data, however, if a\n\t // parent service has already created a copy then\n\t // we should stick to using that\n\t var options = initialOptions || {};\n\t if (!options.$$prepared) {\n\t options = copy(options);\n\t }\n\t\n\t // there is no point in applying the styles since\n\t // there is no animation that goes on at all in\n\t // this version of $animateCss.\n\t if (options.cleanupStyles) {\n\t options.from = options.to = null;\n\t }\n\t\n\t if (options.from) {\n\t element.css(options.from);\n\t options.from = null;\n\t }\n\t\n\t /* jshint newcap: false*/\n\t var closed, runner = new $$AnimateRunner();\n\t return {\n\t start: run,\n\t end: run\n\t };\n\t\n\t function run() {\n\t $$rAF(function() {\n\t applyAnimationContents();\n\t if (!closed) {\n\t runner.complete();\n\t }\n\t closed = true;\n\t });\n\t return runner;\n\t }\n\t\n\t function applyAnimationContents() {\n\t if (options.addClass) {\n\t element.addClass(options.addClass);\n\t options.addClass = null;\n\t }\n\t if (options.removeClass) {\n\t element.removeClass(options.removeClass);\n\t options.removeClass = null;\n\t }\n\t if (options.to) {\n\t element.css(options.to);\n\t options.to = null;\n\t }\n\t }\n\t };\n\t }];\n\t};\n\t\n\t/* global stripHash: true */\n\t\n\t/**\n\t * ! This is a private undocumented service !\n\t *\n\t * @name $browser\n\t * @requires $log\n\t * @description\n\t * This object has two goals:\n\t *\n\t * - hide all the global state in the browser caused by the window object\n\t * - abstract away all the browser specific features and inconsistencies\n\t *\n\t * For tests we provide {@link ngMock.$browser mock implementation} of the `$browser`\n\t * service, which can be used for convenient testing of the application without the interaction with\n\t * the real browser apis.\n\t */\n\t/**\n\t * @param {object} window The global window object.\n\t * @param {object} document jQuery wrapped document.\n\t * @param {object} $log window.console or an object with the same interface.\n\t * @param {object} $sniffer $sniffer service\n\t */\n\tfunction Browser(window, document, $log, $sniffer) {\n\t var self = this,\n\t rawDocument = document[0],\n\t location = window.location,\n\t history = window.history,\n\t setTimeout = window.setTimeout,\n\t clearTimeout = window.clearTimeout,\n\t pendingDeferIds = {};\n\t\n\t self.isMock = false;\n\t\n\t var outstandingRequestCount = 0;\n\t var outstandingRequestCallbacks = [];\n\t\n\t // TODO(vojta): remove this temporary api\n\t self.$$completeOutstandingRequest = completeOutstandingRequest;\n\t self.$$incOutstandingRequestCount = function() { outstandingRequestCount++; };\n\t\n\t /**\n\t * Executes the `fn` function(supports currying) and decrements the `outstandingRequestCallbacks`\n\t * counter. If the counter reaches 0, all the `outstandingRequestCallbacks` are executed.\n\t */\n\t function completeOutstandingRequest(fn) {\n\t try {\n\t fn.apply(null, sliceArgs(arguments, 1));\n\t } finally {\n\t outstandingRequestCount--;\n\t if (outstandingRequestCount === 0) {\n\t while (outstandingRequestCallbacks.length) {\n\t try {\n\t outstandingRequestCallbacks.pop()();\n\t } catch (e) {\n\t $log.error(e);\n\t }\n\t }\n\t }\n\t }\n\t }\n\t\n\t function getHash(url) {\n\t var index = url.indexOf('#');\n\t return index === -1 ? '' : url.substr(index);\n\t }\n\t\n\t /**\n\t * @private\n\t * Note: this method is used only by scenario runner\n\t * TODO(vojta): prefix this method with $$ ?\n\t * @param {function()} callback Function that will be called when no outstanding request\n\t */\n\t self.notifyWhenNoOutstandingRequests = function(callback) {\n\t if (outstandingRequestCount === 0) {\n\t callback();\n\t } else {\n\t outstandingRequestCallbacks.push(callback);\n\t }\n\t };\n\t\n\t //////////////////////////////////////////////////////////////\n\t // URL API\n\t //////////////////////////////////////////////////////////////\n\t\n\t var cachedState, lastHistoryState,\n\t lastBrowserUrl = location.href,\n\t baseElement = document.find('base'),\n\t pendingLocation = null;\n\t\n\t cacheState();\n\t lastHistoryState = cachedState;\n\t\n\t /**\n\t * @name $browser#url\n\t *\n\t * @description\n\t * GETTER:\n\t * Without any argument, this method just returns current value of location.href.\n\t *\n\t * SETTER:\n\t * With at least one argument, this method sets url to new value.\n\t * If html5 history api supported, pushState/replaceState is used, otherwise\n\t * location.href/location.replace is used.\n\t * Returns its own instance to allow chaining\n\t *\n\t * NOTE: this api is intended for use only by the $location service. Please use the\n\t * {@link ng.$location $location service} to change url.\n\t *\n\t * @param {string} url New url (when used as setter)\n\t * @param {boolean=} replace Should new url replace current history record?\n\t * @param {object=} state object to use with pushState/replaceState\n\t */\n\t self.url = function(url, replace, state) {\n\t // In modern browsers `history.state` is `null` by default; treating it separately\n\t // from `undefined` would cause `$browser.url('/foo')` to change `history.state`\n\t // to undefined via `pushState`. Instead, let's change `undefined` to `null` here.\n\t if (isUndefined(state)) {\n\t state = null;\n\t }\n\t\n\t // Android Browser BFCache causes location, history reference to become stale.\n\t if (location !== window.location) location = window.location;\n\t if (history !== window.history) history = window.history;\n\t\n\t // setter\n\t if (url) {\n\t var sameState = lastHistoryState === state;\n\t\n\t // Don't change anything if previous and current URLs and states match. This also prevents\n\t // IE<10 from getting into redirect loop when in LocationHashbangInHtml5Url mode.\n\t // See https://github.com/angular/angular.js/commit/ffb2701\n\t if (lastBrowserUrl === url && (!$sniffer.history || sameState)) {\n\t return self;\n\t }\n\t var sameBase = lastBrowserUrl && stripHash(lastBrowserUrl) === stripHash(url);\n\t lastBrowserUrl = url;\n\t lastHistoryState = state;\n\t // Don't use history API if only the hash changed\n\t // due to a bug in IE10/IE11 which leads\n\t // to not firing a `hashchange` nor `popstate` event\n\t // in some cases (see #9143).\n\t if ($sniffer.history && (!sameBase || !sameState)) {\n\t history[replace ? 'replaceState' : 'pushState'](state, '', url);\n\t cacheState();\n\t // Do the assignment again so that those two variables are referentially identical.\n\t lastHistoryState = cachedState;\n\t } else {\n\t if (!sameBase || pendingLocation) {\n\t pendingLocation = url;\n\t }\n\t if (replace) {\n\t location.replace(url);\n\t } else if (!sameBase) {\n\t location.href = url;\n\t } else {\n\t location.hash = getHash(url);\n\t }\n\t if (location.href !== url) {\n\t pendingLocation = url;\n\t }\n\t }\n\t return self;\n\t // getter\n\t } else {\n\t // - pendingLocation is needed as browsers don't allow to read out\n\t // the new location.href if a reload happened or if there is a bug like in iOS 9 (see\n\t // https://openradar.appspot.com/22186109).\n\t // - the replacement is a workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=407172\n\t return pendingLocation || location.href.replace(/%27/g,\"'\");\n\t }\n\t };\n\t\n\t /**\n\t * @name $browser#state\n\t *\n\t * @description\n\t * This method is a getter.\n\t *\n\t * Return history.state or null if history.state is undefined.\n\t *\n\t * @returns {object} state\n\t */\n\t self.state = function() {\n\t return cachedState;\n\t };\n\t\n\t var urlChangeListeners = [],\n\t urlChangeInit = false;\n\t\n\t function cacheStateAndFireUrlChange() {\n\t pendingLocation = null;\n\t cacheState();\n\t fireUrlChange();\n\t }\n\t\n\t function getCurrentState() {\n\t try {\n\t return history.state;\n\t } catch (e) {\n\t // MSIE can reportedly throw when there is no state (UNCONFIRMED).\n\t }\n\t }\n\t\n\t // This variable should be used *only* inside the cacheState function.\n\t var lastCachedState = null;\n\t function cacheState() {\n\t // This should be the only place in $browser where `history.state` is read.\n\t cachedState = getCurrentState();\n\t cachedState = isUndefined(cachedState) ? null : cachedState;\n\t\n\t // Prevent callbacks fo fire twice if both hashchange & popstate were fired.\n\t if (equals(cachedState, lastCachedState)) {\n\t cachedState = lastCachedState;\n\t }\n\t lastCachedState = cachedState;\n\t }\n\t\n\t function fireUrlChange() {\n\t if (lastBrowserUrl === self.url() && lastHistoryState === cachedState) {\n\t return;\n\t }\n\t\n\t lastBrowserUrl = self.url();\n\t lastHistoryState = cachedState;\n\t forEach(urlChangeListeners, function(listener) {\n\t listener(self.url(), cachedState);\n\t });\n\t }\n\t\n\t /**\n\t * @name $browser#onUrlChange\n\t *\n\t * @description\n\t * Register callback function that will be called, when url changes.\n\t *\n\t * It's only called when the url is changed from outside of angular:\n\t * - user types different url into address bar\n\t * - user clicks on history (forward/back) button\n\t * - user clicks on a link\n\t *\n\t * It's not called when url is changed by $browser.url() method\n\t *\n\t * The listener gets called with new url as parameter.\n\t *\n\t * NOTE: this api is intended for use only by the $location service. Please use the\n\t * {@link ng.$location $location service} to monitor url changes in angular apps.\n\t *\n\t * @param {function(string)} listener Listener function to be called when url changes.\n\t * @return {function(string)} Returns the registered listener fn - handy if the fn is anonymous.\n\t */\n\t self.onUrlChange = function(callback) {\n\t // TODO(vojta): refactor to use node's syntax for events\n\t if (!urlChangeInit) {\n\t // We listen on both (hashchange/popstate) when available, as some browsers (e.g. Opera)\n\t // don't fire popstate when user change the address bar and don't fire hashchange when url\n\t // changed by push/replaceState\n\t\n\t // html5 history api - popstate event\n\t if ($sniffer.history) jqLite(window).on('popstate', cacheStateAndFireUrlChange);\n\t // hashchange event\n\t jqLite(window).on('hashchange', cacheStateAndFireUrlChange);\n\t\n\t urlChangeInit = true;\n\t }\n\t\n\t urlChangeListeners.push(callback);\n\t return callback;\n\t };\n\t\n\t /**\n\t * @private\n\t * Remove popstate and hashchange handler from window.\n\t *\n\t * NOTE: this api is intended for use only by $rootScope.\n\t */\n\t self.$$applicationDestroyed = function() {\n\t jqLite(window).off('hashchange popstate', cacheStateAndFireUrlChange);\n\t };\n\t\n\t /**\n\t * Checks whether the url has changed outside of Angular.\n\t * Needs to be exported to be able to check for changes that have been done in sync,\n\t * as hashchange/popstate events fire in async.\n\t */\n\t self.$$checkUrlChange = fireUrlChange;\n\t\n\t //////////////////////////////////////////////////////////////\n\t // Misc API\n\t //////////////////////////////////////////////////////////////\n\t\n\t /**\n\t * @name $browser#baseHref\n\t *\n\t * @description\n\t * Returns current \n\t * (always relative - without domain)\n\t *\n\t * @returns {string} The current base href\n\t */\n\t self.baseHref = function() {\n\t var href = baseElement.attr('href');\n\t return href ? href.replace(/^(https?\\:)?\\/\\/[^\\/]*/, '') : '';\n\t };\n\t\n\t /**\n\t * @name $browser#defer\n\t * @param {function()} fn A function, who's execution should be deferred.\n\t * @param {number=} [delay=0] of milliseconds to defer the function execution.\n\t * @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`.\n\t *\n\t * @description\n\t * Executes a fn asynchronously via `setTimeout(fn, delay)`.\n\t *\n\t * Unlike when calling `setTimeout` directly, in test this function is mocked and instead of using\n\t * `setTimeout` in tests, the fns are queued in an array, which can be programmatically flushed\n\t * via `$browser.defer.flush()`.\n\t *\n\t */\n\t self.defer = function(fn, delay) {\n\t var timeoutId;\n\t outstandingRequestCount++;\n\t timeoutId = setTimeout(function() {\n\t delete pendingDeferIds[timeoutId];\n\t completeOutstandingRequest(fn);\n\t }, delay || 0);\n\t pendingDeferIds[timeoutId] = true;\n\t return timeoutId;\n\t };\n\t\n\t\n\t /**\n\t * @name $browser#defer.cancel\n\t *\n\t * @description\n\t * Cancels a deferred task identified with `deferId`.\n\t *\n\t * @param {*} deferId Token returned by the `$browser.defer` function.\n\t * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully\n\t * canceled.\n\t */\n\t self.defer.cancel = function(deferId) {\n\t if (pendingDeferIds[deferId]) {\n\t delete pendingDeferIds[deferId];\n\t clearTimeout(deferId);\n\t completeOutstandingRequest(noop);\n\t return true;\n\t }\n\t return false;\n\t };\n\t\n\t}\n\t\n\tfunction $BrowserProvider() {\n\t this.$get = ['$window', '$log', '$sniffer', '$document',\n\t function($window, $log, $sniffer, $document) {\n\t return new Browser($window, $document, $log, $sniffer);\n\t }];\n\t}\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $cacheFactory\n\t *\n\t * @description\n\t * Factory that constructs {@link $cacheFactory.Cache Cache} objects and gives access to\n\t * them.\n\t *\n\t * ```js\n\t *\n\t * var cache = $cacheFactory('cacheId');\n\t * expect($cacheFactory.get('cacheId')).toBe(cache);\n\t * expect($cacheFactory.get('noSuchCacheId')).not.toBeDefined();\n\t *\n\t * cache.put(\"key\", \"value\");\n\t * cache.put(\"another key\", \"another value\");\n\t *\n\t * // We've specified no options on creation\n\t * expect(cache.info()).toEqual({id: 'cacheId', size: 2});\n\t *\n\t * ```\n\t *\n\t *\n\t * @param {string} cacheId Name or id of the newly created cache.\n\t * @param {object=} options Options object that specifies the cache behavior. Properties:\n\t *\n\t * - `{number=}` `capacity` — turns the cache into LRU cache.\n\t *\n\t * @returns {object} Newly created cache object with the following set of methods:\n\t *\n\t * - `{object}` `info()` — Returns id, size, and options of cache.\n\t * - `{{*}}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache and returns\n\t * it.\n\t * - `{{*}}` `get({string} key)` — Returns cached value for `key` or undefined for cache miss.\n\t * - `{void}` `remove({string} key)` — Removes a key-value pair from the cache.\n\t * - `{void}` `removeAll()` — Removes all cached values.\n\t * - `{void}` `destroy()` — Removes references to this cache from $cacheFactory.\n\t *\n\t * @example\n\t \n\t \n\t
\n\t \n\t \n\t \n\t\n\t

Cached Values

\n\t
\n\t \n\t : \n\t \n\t
\n\t\n\t

Cache Info

\n\t
\n\t \n\t : \n\t \n\t
\n\t
\n\t
\n\t \n\t angular.module('cacheExampleApp', []).\n\t controller('CacheController', ['$scope', '$cacheFactory', function($scope, $cacheFactory) {\n\t $scope.keys = [];\n\t $scope.cache = $cacheFactory('cacheId');\n\t $scope.put = function(key, value) {\n\t if (angular.isUndefined($scope.cache.get(key))) {\n\t $scope.keys.push(key);\n\t }\n\t $scope.cache.put(key, angular.isUndefined(value) ? null : value);\n\t };\n\t }]);\n\t \n\t \n\t p {\n\t margin: 10px 0 3px;\n\t }\n\t \n\t
\n\t */\n\tfunction $CacheFactoryProvider() {\n\t\n\t this.$get = function() {\n\t var caches = {};\n\t\n\t function cacheFactory(cacheId, options) {\n\t if (cacheId in caches) {\n\t throw minErr('$cacheFactory')('iid', \"CacheId '{0}' is already taken!\", cacheId);\n\t }\n\t\n\t var size = 0,\n\t stats = extend({}, options, {id: cacheId}),\n\t data = createMap(),\n\t capacity = (options && options.capacity) || Number.MAX_VALUE,\n\t lruHash = createMap(),\n\t freshEnd = null,\n\t staleEnd = null;\n\t\n\t /**\n\t * @ngdoc type\n\t * @name $cacheFactory.Cache\n\t *\n\t * @description\n\t * A cache object used to store and retrieve data, primarily used by\n\t * {@link $http $http} and the {@link ng.directive:script script} directive to cache\n\t * templates and other data.\n\t *\n\t * ```js\n\t * angular.module('superCache')\n\t * .factory('superCache', ['$cacheFactory', function($cacheFactory) {\n\t * return $cacheFactory('super-cache');\n\t * }]);\n\t * ```\n\t *\n\t * Example test:\n\t *\n\t * ```js\n\t * it('should behave like a cache', inject(function(superCache) {\n\t * superCache.put('key', 'value');\n\t * superCache.put('another key', 'another value');\n\t *\n\t * expect(superCache.info()).toEqual({\n\t * id: 'super-cache',\n\t * size: 2\n\t * });\n\t *\n\t * superCache.remove('another key');\n\t * expect(superCache.get('another key')).toBeUndefined();\n\t *\n\t * superCache.removeAll();\n\t * expect(superCache.info()).toEqual({\n\t * id: 'super-cache',\n\t * size: 0\n\t * });\n\t * }));\n\t * ```\n\t */\n\t return caches[cacheId] = {\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $cacheFactory.Cache#put\n\t * @kind function\n\t *\n\t * @description\n\t * Inserts a named entry into the {@link $cacheFactory.Cache Cache} object to be\n\t * retrieved later, and incrementing the size of the cache if the key was not already\n\t * present in the cache. If behaving like an LRU cache, it will also remove stale\n\t * entries from the set.\n\t *\n\t * It will not insert undefined values into the cache.\n\t *\n\t * @param {string} key the key under which the cached data is stored.\n\t * @param {*} value the value to store alongside the key. If it is undefined, the key\n\t * will not be stored.\n\t * @returns {*} the value stored.\n\t */\n\t put: function(key, value) {\n\t if (isUndefined(value)) return;\n\t if (capacity < Number.MAX_VALUE) {\n\t var lruEntry = lruHash[key] || (lruHash[key] = {key: key});\n\t\n\t refresh(lruEntry);\n\t }\n\t\n\t if (!(key in data)) size++;\n\t data[key] = value;\n\t\n\t if (size > capacity) {\n\t this.remove(staleEnd.key);\n\t }\n\t\n\t return value;\n\t },\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $cacheFactory.Cache#get\n\t * @kind function\n\t *\n\t * @description\n\t * Retrieves named data stored in the {@link $cacheFactory.Cache Cache} object.\n\t *\n\t * @param {string} key the key of the data to be retrieved\n\t * @returns {*} the value stored.\n\t */\n\t get: function(key) {\n\t if (capacity < Number.MAX_VALUE) {\n\t var lruEntry = lruHash[key];\n\t\n\t if (!lruEntry) return;\n\t\n\t refresh(lruEntry);\n\t }\n\t\n\t return data[key];\n\t },\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $cacheFactory.Cache#remove\n\t * @kind function\n\t *\n\t * @description\n\t * Removes an entry from the {@link $cacheFactory.Cache Cache} object.\n\t *\n\t * @param {string} key the key of the entry to be removed\n\t */\n\t remove: function(key) {\n\t if (capacity < Number.MAX_VALUE) {\n\t var lruEntry = lruHash[key];\n\t\n\t if (!lruEntry) return;\n\t\n\t if (lruEntry == freshEnd) freshEnd = lruEntry.p;\n\t if (lruEntry == staleEnd) staleEnd = lruEntry.n;\n\t link(lruEntry.n,lruEntry.p);\n\t\n\t delete lruHash[key];\n\t }\n\t\n\t if (!(key in data)) return;\n\t\n\t delete data[key];\n\t size--;\n\t },\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $cacheFactory.Cache#removeAll\n\t * @kind function\n\t *\n\t * @description\n\t * Clears the cache object of any entries.\n\t */\n\t removeAll: function() {\n\t data = createMap();\n\t size = 0;\n\t lruHash = createMap();\n\t freshEnd = staleEnd = null;\n\t },\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $cacheFactory.Cache#destroy\n\t * @kind function\n\t *\n\t * @description\n\t * Destroys the {@link $cacheFactory.Cache Cache} object entirely,\n\t * removing it from the {@link $cacheFactory $cacheFactory} set.\n\t */\n\t destroy: function() {\n\t data = null;\n\t stats = null;\n\t lruHash = null;\n\t delete caches[cacheId];\n\t },\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $cacheFactory.Cache#info\n\t * @kind function\n\t *\n\t * @description\n\t * Retrieve information regarding a particular {@link $cacheFactory.Cache Cache}.\n\t *\n\t * @returns {object} an object with the following properties:\n\t *
    \n\t *
  • **id**: the id of the cache instance
  • \n\t *
  • **size**: the number of entries kept in the cache instance
  • \n\t *
  • **...**: any additional properties from the options object when creating the\n\t * cache.
  • \n\t *
\n\t */\n\t info: function() {\n\t return extend({}, stats, {size: size});\n\t }\n\t };\n\t\n\t\n\t /**\n\t * makes the `entry` the freshEnd of the LRU linked list\n\t */\n\t function refresh(entry) {\n\t if (entry != freshEnd) {\n\t if (!staleEnd) {\n\t staleEnd = entry;\n\t } else if (staleEnd == entry) {\n\t staleEnd = entry.n;\n\t }\n\t\n\t link(entry.n, entry.p);\n\t link(entry, freshEnd);\n\t freshEnd = entry;\n\t freshEnd.n = null;\n\t }\n\t }\n\t\n\t\n\t /**\n\t * bidirectionally links two entries of the LRU linked list\n\t */\n\t function link(nextEntry, prevEntry) {\n\t if (nextEntry != prevEntry) {\n\t if (nextEntry) nextEntry.p = prevEntry; //p stands for previous, 'prev' didn't minify\n\t if (prevEntry) prevEntry.n = nextEntry; //n stands for next, 'next' didn't minify\n\t }\n\t }\n\t }\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $cacheFactory#info\n\t *\n\t * @description\n\t * Get information about all the caches that have been created\n\t *\n\t * @returns {Object} - key-value map of `cacheId` to the result of calling `cache#info`\n\t */\n\t cacheFactory.info = function() {\n\t var info = {};\n\t forEach(caches, function(cache, cacheId) {\n\t info[cacheId] = cache.info();\n\t });\n\t return info;\n\t };\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $cacheFactory#get\n\t *\n\t * @description\n\t * Get access to a cache object by the `cacheId` used when it was created.\n\t *\n\t * @param {string} cacheId Name or id of a cache to access.\n\t * @returns {object} Cache object identified by the cacheId or undefined if no such cache.\n\t */\n\t cacheFactory.get = function(cacheId) {\n\t return caches[cacheId];\n\t };\n\t\n\t\n\t return cacheFactory;\n\t };\n\t}\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $templateCache\n\t *\n\t * @description\n\t * The first time a template is used, it is loaded in the template cache for quick retrieval. You\n\t * can load templates directly into the cache in a `script` tag, or by consuming the\n\t * `$templateCache` service directly.\n\t *\n\t * Adding via the `script` tag:\n\t *\n\t * ```html\n\t * \n\t * ```\n\t *\n\t * **Note:** the `script` tag containing the template does not need to be included in the `head` of\n\t * the document, but it must be a descendent of the {@link ng.$rootElement $rootElement} (IE,\n\t * element with ng-app attribute), otherwise the template will be ignored.\n\t *\n\t * Adding via the `$templateCache` service:\n\t *\n\t * ```js\n\t * var myApp = angular.module('myApp', []);\n\t * myApp.run(function($templateCache) {\n\t * $templateCache.put('templateId.html', 'This is the content of the template');\n\t * });\n\t * ```\n\t *\n\t * To retrieve the template later, simply use it in your HTML:\n\t * ```html\n\t *
\n\t * ```\n\t *\n\t * or get it via Javascript:\n\t * ```js\n\t * $templateCache.get('templateId.html')\n\t * ```\n\t *\n\t * See {@link ng.$cacheFactory $cacheFactory}.\n\t *\n\t */\n\tfunction $TemplateCacheProvider() {\n\t this.$get = ['$cacheFactory', function($cacheFactory) {\n\t return $cacheFactory('templates');\n\t }];\n\t}\n\t\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t * Any commits to this file should be reviewed with security in mind. *\n\t * Changes to this file can potentially create security vulnerabilities. *\n\t * An approval from 2 Core members with history of modifying *\n\t * this file is required. *\n\t * *\n\t * Does the change somehow allow for arbitrary javascript to be executed? *\n\t * Or allows for someone to change the prototype of built-in objects? *\n\t * Or gives undesired access to variables likes document or window? *\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\t\n\t/* ! VARIABLE/FUNCTION NAMING CONVENTIONS THAT APPLY TO THIS FILE!\n\t *\n\t * DOM-related variables:\n\t *\n\t * - \"node\" - DOM Node\n\t * - \"element\" - DOM Element or Node\n\t * - \"$node\" or \"$element\" - jqLite-wrapped node or element\n\t *\n\t *\n\t * Compiler related stuff:\n\t *\n\t * - \"linkFn\" - linking fn of a single directive\n\t * - \"nodeLinkFn\" - function that aggregates all linking fns for a particular node\n\t * - \"childLinkFn\" - function that aggregates all linking fns for child nodes of a particular node\n\t * - \"compositeLinkFn\" - function that aggregates all linking fns for a compilation root (nodeList)\n\t */\n\t\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $compile\n\t * @kind function\n\t *\n\t * @description\n\t * Compiles an HTML string or DOM into a template and produces a template function, which\n\t * can then be used to link {@link ng.$rootScope.Scope `scope`} and the template together.\n\t *\n\t * The compilation is a process of walking the DOM tree and matching DOM elements to\n\t * {@link ng.$compileProvider#directive directives}.\n\t *\n\t *
\n\t * **Note:** This document is an in-depth reference of all directive options.\n\t * For a gentle introduction to directives with examples of common use cases,\n\t * see the {@link guide/directive directive guide}.\n\t *
\n\t *\n\t * ## Comprehensive Directive API\n\t *\n\t * There are many different options for a directive.\n\t *\n\t * The difference resides in the return value of the factory function.\n\t * You can either return a \"Directive Definition Object\" (see below) that defines the directive properties,\n\t * or just the `postLink` function (all other properties will have the default values).\n\t *\n\t *
\n\t * **Best Practice:** It's recommended to use the \"directive definition object\" form.\n\t *
\n\t *\n\t * Here's an example directive declared with a Directive Definition Object:\n\t *\n\t * ```js\n\t * var myModule = angular.module(...);\n\t *\n\t * myModule.directive('directiveName', function factory(injectables) {\n\t * var directiveDefinitionObject = {\n\t * priority: 0,\n\t * template: '
', // or // function(tElement, tAttrs) { ... },\n\t * // or\n\t * // templateUrl: 'directive.html', // or // function(tElement, tAttrs) { ... },\n\t * transclude: false,\n\t * restrict: 'A',\n\t * templateNamespace: 'html',\n\t * scope: false,\n\t * controller: function($scope, $element, $attrs, $transclude, otherInjectables) { ... },\n\t * controllerAs: 'stringIdentifier',\n\t * bindToController: false,\n\t * require: 'siblingDirectiveName', // or // ['^parentDirectiveName', '?optionalDirectiveName', '?^optionalParent'],\n\t * compile: function compile(tElement, tAttrs, transclude) {\n\t * return {\n\t * pre: function preLink(scope, iElement, iAttrs, controller) { ... },\n\t * post: function postLink(scope, iElement, iAttrs, controller) { ... }\n\t * }\n\t * // or\n\t * // return function postLink( ... ) { ... }\n\t * },\n\t * // or\n\t * // link: {\n\t * // pre: function preLink(scope, iElement, iAttrs, controller) { ... },\n\t * // post: function postLink(scope, iElement, iAttrs, controller) { ... }\n\t * // }\n\t * // or\n\t * // link: function postLink( ... ) { ... }\n\t * };\n\t * return directiveDefinitionObject;\n\t * });\n\t * ```\n\t *\n\t *
\n\t * **Note:** Any unspecified options will use the default value. You can see the default values below.\n\t *
\n\t *\n\t * Therefore the above can be simplified as:\n\t *\n\t * ```js\n\t * var myModule = angular.module(...);\n\t *\n\t * myModule.directive('directiveName', function factory(injectables) {\n\t * var directiveDefinitionObject = {\n\t * link: function postLink(scope, iElement, iAttrs) { ... }\n\t * };\n\t * return directiveDefinitionObject;\n\t * // or\n\t * // return function postLink(scope, iElement, iAttrs) { ... }\n\t * });\n\t * ```\n\t *\n\t *\n\t *\n\t * ### Directive Definition Object\n\t *\n\t * The directive definition object provides instructions to the {@link ng.$compile\n\t * compiler}. The attributes are:\n\t *\n\t * #### `multiElement`\n\t * When this property is set to true, the HTML compiler will collect DOM nodes between\n\t * nodes with the attributes `directive-name-start` and `directive-name-end`, and group them\n\t * together as the directive elements. It is recommended that this feature be used on directives\n\t * which are not strictly behavioural (such as {@link ngClick}), and which\n\t * do not manipulate or replace child nodes (such as {@link ngInclude}).\n\t *\n\t * #### `priority`\n\t * When there are multiple directives defined on a single DOM element, sometimes it\n\t * is necessary to specify the order in which the directives are applied. The `priority` is used\n\t * to sort the directives before their `compile` functions get called. Priority is defined as a\n\t * number. Directives with greater numerical `priority` are compiled first. Pre-link functions\n\t * are also run in priority order, but post-link functions are run in reverse order. The order\n\t * of directives with the same priority is undefined. The default priority is `0`.\n\t *\n\t * #### `terminal`\n\t * If set to true then the current `priority` will be the last set of directives\n\t * which will execute (any directives at the current priority will still execute\n\t * as the order of execution on same `priority` is undefined). Note that expressions\n\t * and other directives used in the directive's template will also be excluded from execution.\n\t *\n\t * #### `scope`\n\t * The scope property can be `true`, an object or a falsy value:\n\t *\n\t * * **falsy:** No scope will be created for the directive. The directive will use its parent's scope.\n\t *\n\t * * **`true`:** A new child scope that prototypically inherits from its parent will be created for\n\t * the directive's element. If multiple directives on the same element request a new scope,\n\t * only one new scope is created. The new scope rule does not apply for the root of the template\n\t * since the root of the template always gets a new scope.\n\t *\n\t * * **`{...}` (an object hash):** A new \"isolate\" scope is created for the directive's element. The\n\t * 'isolate' scope differs from normal scope in that it does not prototypically inherit from its parent\n\t * scope. This is useful when creating reusable components, which should not accidentally read or modify\n\t * data in the parent scope.\n\t *\n\t * The 'isolate' scope object hash defines a set of local scope properties derived from attributes on the\n\t * directive's element. These local properties are useful for aliasing values for templates. The keys in\n\t * the object hash map to the name of the property on the isolate scope; the values define how the property\n\t * is bound to the parent scope, via matching attributes on the directive's element:\n\t *\n\t * * `@` or `@attr` - bind a local scope property to the value of DOM attribute. The result is\n\t * always a string since DOM attributes are strings. If no `attr` name is specified then the\n\t * attribute name is assumed to be the same as the local name. Given `` and the isolate scope definition `scope: { localName:'@myAttr' }`,\n\t * the directive's scope property `localName` will reflect the interpolated value of `hello\n\t * {{name}}`. As the `name` attribute changes so will the `localName` property on the directive's\n\t * scope. The `name` is read from the parent scope (not the directive's scope).\n\t *\n\t * * `=` or `=attr` - set up a bidirectional binding between a local scope property and an expression\n\t * passed via the attribute `attr`. The expression is evaluated in the context of the parent scope.\n\t * If no `attr` name is specified then the attribute name is assumed to be the same as the local\n\t * name. Given `` and the isolate scope definition `scope: {\n\t * localModel: '=myAttr' }`, the property `localModel` on the directive's scope will reflect the\n\t * value of `parentModel` on the parent scope. Changes to `parentModel` will be reflected in\n\t * `localModel` and vice versa. Optional attributes should be marked as such with a question mark:\n\t * `=?` or `=?attr`. If the binding expression is non-assignable, or if the attribute isn't\n\t * optional and doesn't exist, an exception ({@link error/$compile/nonassign `$compile:nonassign`})\n\t * will be thrown upon discovering changes to the local value, since it will be impossible to sync\n\t * them back to the parent scope. By default, the {@link ng.$rootScope.Scope#$watch `$watch`}\n\t * method is used for tracking changes, and the equality check is based on object identity.\n\t * However, if an object literal or an array literal is passed as the binding expression, the\n\t * equality check is done by value (using the {@link angular.equals} function). It's also possible\n\t * to watch the evaluated value shallowly with {@link ng.$rootScope.Scope#$watchCollection\n\t * `$watchCollection`}: use `=*` or `=*attr` (`=*?` or `=*?attr` if the attribute is optional).\n\t *\n\t * * `&` or `&attr` - provides a way to execute an expression in the context of the parent scope. If\n\t * no `attr` name is specified then the attribute name is assumed to be the same as the local name.\n\t * Given `` and the isolate scope definition `scope: {\n\t * localFn:'&myAttr' }`, the isolate scope property `localFn` will point to a function wrapper for\n\t * the `count = count + value` expression. Often it's desirable to pass data from the isolated scope\n\t * via an expression to the parent scope. This can be done by passing a map of local variable names\n\t * and values into the expression wrapper fn. For example, if the expression is `increment(amount)`\n\t * then we can specify the amount value by calling the `localFn` as `localFn({amount: 22})`.\n\t *\n\t * In general it's possible to apply more than one directive to one element, but there might be limitations\n\t * depending on the type of scope required by the directives. The following points will help explain these limitations.\n\t * For simplicity only two directives are taken into account, but it is also applicable for several directives:\n\t *\n\t * * **no scope** + **no scope** => Two directives which don't require their own scope will use their parent's scope\n\t * * **child scope** + **no scope** => Both directives will share one single child scope\n\t * * **child scope** + **child scope** => Both directives will share one single child scope\n\t * * **isolated scope** + **no scope** => The isolated directive will use it's own created isolated scope. The other directive will use\n\t * its parent's scope\n\t * * **isolated scope** + **child scope** => **Won't work!** Only one scope can be related to one element. Therefore these directives cannot\n\t * be applied to the same element.\n\t * * **isolated scope** + **isolated scope** => **Won't work!** Only one scope can be related to one element. Therefore these directives\n\t * cannot be applied to the same element.\n\t *\n\t *\n\t * #### `bindToController`\n\t * This property is used to bind scope properties directly to the controller. It can be either\n\t * `true` or an object hash with the same format as the `scope` property. Additionally, a controller\n\t * alias must be set, either by using `controllerAs: 'myAlias'` or by specifying the alias in the controller\n\t * definition: `controller: 'myCtrl as myAlias'`.\n\t *\n\t * When an isolate scope is used for a directive (see above), `bindToController: true` will\n\t * allow a component to have its properties bound to the controller, rather than to scope. When the controller\n\t * is instantiated, the initial values of the isolate scope bindings are already available.\n\t *\n\t * It is also possible to set `bindToController` to an object hash with the same format as the `scope` property.\n\t * This will set up the scope bindings to the controller directly. Note that `scope` can still be used\n\t * to define which kind of scope is created. By default, no scope is created. Use `scope: {}` to create an isolate\n\t * scope (useful for component directives).\n\t *\n\t * If both `bindToController` and `scope` are defined and have object hashes, `bindToController` overrides `scope`.\n\t *\n\t *\n\t * #### `controller`\n\t * Controller constructor function. The controller is instantiated before the\n\t * pre-linking phase and can be accessed by other directives (see\n\t * `require` attribute). This allows the directives to communicate with each other and augment\n\t * each other's behavior. The controller is injectable (and supports bracket notation) with the following locals:\n\t *\n\t * * `$scope` - Current scope associated with the element\n\t * * `$element` - Current element\n\t * * `$attrs` - Current attributes object for the element\n\t * * `$transclude` - A transclude linking function pre-bound to the correct transclusion scope:\n\t * `function([scope], cloneLinkingFn, futureParentElement)`.\n\t * * `scope`: optional argument to override the scope.\n\t * * `cloneLinkingFn`: optional argument to create clones of the original transcluded content.\n\t * * `futureParentElement`:\n\t * * defines the parent to which the `cloneLinkingFn` will add the cloned elements.\n\t * * default: `$element.parent()` resp. `$element` for `transclude:'element'` resp. `transclude:true`.\n\t * * only needed for transcludes that are allowed to contain non html elements (e.g. SVG elements)\n\t * and when the `cloneLinkinFn` is passed,\n\t * as those elements need to created and cloned in a special way when they are defined outside their\n\t * usual containers (e.g. like ``).\n\t * * See also the `directive.templateNamespace` property.\n\t *\n\t *\n\t * #### `require`\n\t * Require another directive and inject its controller as the fourth argument to the linking function. The\n\t * `require` takes a string name (or array of strings) of the directive(s) to pass in. If an array is used, the\n\t * injected argument will be an array in corresponding order. If no such directive can be\n\t * found, or if the directive does not have a controller, then an error is raised (unless no link function\n\t * is specified, in which case error checking is skipped). The name can be prefixed with:\n\t *\n\t * * (no prefix) - Locate the required controller on the current element. Throw an error if not found.\n\t * * `?` - Attempt to locate the required controller or pass `null` to the `link` fn if not found.\n\t * * `^` - Locate the required controller by searching the element and its parents. Throw an error if not found.\n\t * * `^^` - Locate the required controller by searching the element's parents. Throw an error if not found.\n\t * * `?^` - Attempt to locate the required controller by searching the element and its parents or pass\n\t * `null` to the `link` fn if not found.\n\t * * `?^^` - Attempt to locate the required controller by searching the element's parents, or pass\n\t * `null` to the `link` fn if not found.\n\t *\n\t *\n\t * #### `controllerAs`\n\t * Identifier name for a reference to the controller in the directive's scope.\n\t * This allows the controller to be referenced from the directive template. This is especially\n\t * useful when a directive is used as component, i.e. with an `isolate` scope. It's also possible\n\t * to use it in a directive without an `isolate` / `new` scope, but you need to be aware that the\n\t * `controllerAs` reference might overwrite a property that already exists on the parent scope.\n\t *\n\t *\n\t * #### `restrict`\n\t * String of subset of `EACM` which restricts the directive to a specific directive\n\t * declaration style. If omitted, the defaults (elements and attributes) are used.\n\t *\n\t * * `E` - Element name (default): ``\n\t * * `A` - Attribute (default): `
`\n\t * * `C` - Class: `
`\n\t * * `M` - Comment: ``\n\t *\n\t *\n\t * #### `templateNamespace`\n\t * String representing the document type used by the markup in the template.\n\t * AngularJS needs this information as those elements need to be created and cloned\n\t * in a special way when they are defined outside their usual containers like `` and ``.\n\t *\n\t * * `html` - All root nodes in the template are HTML. Root nodes may also be\n\t * top-level elements such as `` or ``.\n\t * * `svg` - The root nodes in the template are SVG elements (excluding ``).\n\t * * `math` - The root nodes in the template are MathML elements (excluding ``).\n\t *\n\t * If no `templateNamespace` is specified, then the namespace is considered to be `html`.\n\t *\n\t * #### `template`\n\t * HTML markup that may:\n\t * * Replace the contents of the directive's element (default).\n\t * * Replace the directive's element itself (if `replace` is true - DEPRECATED).\n\t * * Wrap the contents of the directive's element (if `transclude` is true).\n\t *\n\t * Value may be:\n\t *\n\t * * A string. For example `
{{delete_str}}
`.\n\t * * A function which takes two arguments `tElement` and `tAttrs` (described in the `compile`\n\t * function api below) and returns a string value.\n\t *\n\t *\n\t * #### `templateUrl`\n\t * This is similar to `template` but the template is loaded from the specified URL, asynchronously.\n\t *\n\t * Because template loading is asynchronous the compiler will suspend compilation of directives on that element\n\t * for later when the template has been resolved. In the meantime it will continue to compile and link\n\t * sibling and parent elements as though this element had not contained any directives.\n\t *\n\t * The compiler does not suspend the entire compilation to wait for templates to be loaded because this\n\t * would result in the whole app \"stalling\" until all templates are loaded asynchronously - even in the\n\t * case when only one deeply nested directive has `templateUrl`.\n\t *\n\t * Template loading is asynchronous even if the template has been preloaded into the {@link $templateCache}\n\t *\n\t * You can specify `templateUrl` as a string representing the URL or as a function which takes two\n\t * arguments `tElement` and `tAttrs` (described in the `compile` function api below) and returns\n\t * a string value representing the url. In either case, the template URL is passed through {@link\n\t * $sce#getTrustedResourceUrl $sce.getTrustedResourceUrl}.\n\t *\n\t *\n\t * #### `replace` ([*DEPRECATED*!], will be removed in next major release - i.e. v2.0)\n\t * specify what the template should replace. Defaults to `false`.\n\t *\n\t * * `true` - the template will replace the directive's element.\n\t * * `false` - the template will replace the contents of the directive's element.\n\t *\n\t * The replacement process migrates all of the attributes / classes from the old element to the new\n\t * one. See the {@link guide/directive#template-expanding-directive\n\t * Directives Guide} for an example.\n\t *\n\t * There are very few scenarios where element replacement is required for the application function,\n\t * the main one being reusable custom components that are used within SVG contexts\n\t * (because SVG doesn't work with custom elements in the DOM tree).\n\t *\n\t * #### `transclude`\n\t * Extract the contents of the element where the directive appears and make it available to the directive.\n\t * The contents are compiled and provided to the directive as a **transclusion function**. See the\n\t * {@link $compile#transclusion Transclusion} section below.\n\t *\n\t * There are two kinds of transclusion depending upon whether you want to transclude just the contents of the\n\t * directive's element or the entire element:\n\t *\n\t * * `true` - transclude the content (i.e. the child nodes) of the directive's element.\n\t * * `'element'` - transclude the whole of the directive's element including any directives on this\n\t * element that defined at a lower priority than this directive. When used, the `template`\n\t * property is ignored.\n\t *\n\t *\n\t * #### `compile`\n\t *\n\t * ```js\n\t * function compile(tElement, tAttrs, transclude) { ... }\n\t * ```\n\t *\n\t * The compile function deals with transforming the template DOM. Since most directives do not do\n\t * template transformation, it is not used often. The compile function takes the following arguments:\n\t *\n\t * * `tElement` - template element - The element where the directive has been declared. It is\n\t * safe to do template transformation on the element and child elements only.\n\t *\n\t * * `tAttrs` - template attributes - Normalized list of attributes declared on this element shared\n\t * between all directive compile functions.\n\t *\n\t * * `transclude` - [*DEPRECATED*!] A transclude linking function: `function(scope, cloneLinkingFn)`\n\t *\n\t *
\n\t * **Note:** The template instance and the link instance may be different objects if the template has\n\t * been cloned. For this reason it is **not** safe to do anything other than DOM transformations that\n\t * apply to all cloned DOM nodes within the compile function. Specifically, DOM listener registration\n\t * should be done in a linking function rather than in a compile function.\n\t *
\n\t\n\t *
\n\t * **Note:** The compile function cannot handle directives that recursively use themselves in their\n\t * own templates or compile functions. Compiling these directives results in an infinite loop and\n\t * stack overflow errors.\n\t *\n\t * This can be avoided by manually using $compile in the postLink function to imperatively compile\n\t * a directive's template instead of relying on automatic template compilation via `template` or\n\t * `templateUrl` declaration or manual compilation inside the compile function.\n\t *
\n\t *\n\t *
\n\t * **Note:** The `transclude` function that is passed to the compile function is deprecated, as it\n\t * e.g. does not know about the right outer scope. Please use the transclude function that is passed\n\t * to the link function instead.\n\t *
\n\t\n\t * A compile function can have a return value which can be either a function or an object.\n\t *\n\t * * returning a (post-link) function - is equivalent to registering the linking function via the\n\t * `link` property of the config object when the compile function is empty.\n\t *\n\t * * returning an object with function(s) registered via `pre` and `post` properties - allows you to\n\t * control when a linking function should be called during the linking phase. See info about\n\t * pre-linking and post-linking functions below.\n\t *\n\t *\n\t * #### `link`\n\t * This property is used only if the `compile` property is not defined.\n\t *\n\t * ```js\n\t * function link(scope, iElement, iAttrs, controller, transcludeFn) { ... }\n\t * ```\n\t *\n\t * The link function is responsible for registering DOM listeners as well as updating the DOM. It is\n\t * executed after the template has been cloned. This is where most of the directive logic will be\n\t * put.\n\t *\n\t * * `scope` - {@link ng.$rootScope.Scope Scope} - The scope to be used by the\n\t * directive for registering {@link ng.$rootScope.Scope#$watch watches}.\n\t *\n\t * * `iElement` - instance element - The element where the directive is to be used. It is safe to\n\t * manipulate the children of the element only in `postLink` function since the children have\n\t * already been linked.\n\t *\n\t * * `iAttrs` - instance attributes - Normalized list of attributes declared on this element shared\n\t * between all directive linking functions.\n\t *\n\t * * `controller` - the directive's required controller instance(s) - Instances are shared\n\t * among all directives, which allows the directives to use the controllers as a communication\n\t * channel. The exact value depends on the directive's `require` property:\n\t * * no controller(s) required: the directive's own controller, or `undefined` if it doesn't have one\n\t * * `string`: the controller instance\n\t * * `array`: array of controller instances\n\t *\n\t * If a required controller cannot be found, and it is optional, the instance is `null`,\n\t * otherwise the {@link error:$compile:ctreq Missing Required Controller} error is thrown.\n\t *\n\t * Note that you can also require the directive's own controller - it will be made available like\n\t * any other controller.\n\t *\n\t * * `transcludeFn` - A transclude linking function pre-bound to the correct transclusion scope.\n\t * This is the same as the `$transclude`\n\t * parameter of directive controllers, see there for details.\n\t * `function([scope], cloneLinkingFn, futureParentElement)`.\n\t *\n\t * #### Pre-linking function\n\t *\n\t * Executed before the child elements are linked. Not safe to do DOM transformation since the\n\t * compiler linking function will fail to locate the correct elements for linking.\n\t *\n\t * #### Post-linking function\n\t *\n\t * Executed after the child elements are linked.\n\t *\n\t * Note that child elements that contain `templateUrl` directives will not have been compiled\n\t * and linked since they are waiting for their template to load asynchronously and their own\n\t * compilation and linking has been suspended until that occurs.\n\t *\n\t * It is safe to do DOM transformation in the post-linking function on elements that are not waiting\n\t * for their async templates to be resolved.\n\t *\n\t *\n\t * ### Transclusion\n\t *\n\t * Transclusion is the process of extracting a collection of DOM elements from one part of the DOM and\n\t * copying them to another part of the DOM, while maintaining their connection to the original AngularJS\n\t * scope from where they were taken.\n\t *\n\t * Transclusion is used (often with {@link ngTransclude}) to insert the\n\t * original contents of a directive's element into a specified place in the template of the directive.\n\t * The benefit of transclusion, over simply moving the DOM elements manually, is that the transcluded\n\t * content has access to the properties on the scope from which it was taken, even if the directive\n\t * has isolated scope.\n\t * See the {@link guide/directive#creating-a-directive-that-wraps-other-elements Directives Guide}.\n\t *\n\t * This makes it possible for the widget to have private state for its template, while the transcluded\n\t * content has access to its originating scope.\n\t *\n\t *
\n\t * **Note:** When testing an element transclude directive you must not place the directive at the root of the\n\t * DOM fragment that is being compiled. See {@link guide/unit-testing#testing-transclusion-directives\n\t * Testing Transclusion Directives}.\n\t *
\n\t *\n\t * #### Transclusion Functions\n\t *\n\t * When a directive requests transclusion, the compiler extracts its contents and provides a **transclusion\n\t * function** to the directive's `link` function and `controller`. This transclusion function is a special\n\t * **linking function** that will return the compiled contents linked to a new transclusion scope.\n\t *\n\t *
\n\t * If you are just using {@link ngTransclude} then you don't need to worry about this function, since\n\t * ngTransclude will deal with it for us.\n\t *
\n\t *\n\t * If you want to manually control the insertion and removal of the transcluded content in your directive\n\t * then you must use this transclude function. When you call a transclude function it returns a a jqLite/JQuery\n\t * object that contains the compiled DOM, which is linked to the correct transclusion scope.\n\t *\n\t * When you call a transclusion function you can pass in a **clone attach function**. This function accepts\n\t * two parameters, `function(clone, scope) { ... }`, where the `clone` is a fresh compiled copy of your transcluded\n\t * content and the `scope` is the newly created transclusion scope, to which the clone is bound.\n\t *\n\t *
\n\t * **Best Practice**: Always provide a `cloneFn` (clone attach function) when you call a translude function\n\t * since you then get a fresh clone of the original DOM and also have access to the new transclusion scope.\n\t *
\n\t *\n\t * It is normal practice to attach your transcluded content (`clone`) to the DOM inside your **clone\n\t * attach function**:\n\t *\n\t * ```js\n\t * var transcludedContent, transclusionScope;\n\t *\n\t * $transclude(function(clone, scope) {\n\t * element.append(clone);\n\t * transcludedContent = clone;\n\t * transclusionScope = scope;\n\t * });\n\t * ```\n\t *\n\t * Later, if you want to remove the transcluded content from your DOM then you should also destroy the\n\t * associated transclusion scope:\n\t *\n\t * ```js\n\t * transcludedContent.remove();\n\t * transclusionScope.$destroy();\n\t * ```\n\t *\n\t *
\n\t * **Best Practice**: if you intend to add and remove transcluded content manually in your directive\n\t * (by calling the transclude function to get the DOM and calling `element.remove()` to remove it),\n\t * then you are also responsible for calling `$destroy` on the transclusion scope.\n\t *
\n\t *\n\t * The built-in DOM manipulation directives, such as {@link ngIf}, {@link ngSwitch} and {@link ngRepeat}\n\t * automatically destroy their transluded clones as necessary so you do not need to worry about this if\n\t * you are simply using {@link ngTransclude} to inject the transclusion into your directive.\n\t *\n\t *\n\t * #### Transclusion Scopes\n\t *\n\t * When you call a transclude function it returns a DOM fragment that is pre-bound to a **transclusion\n\t * scope**. This scope is special, in that it is a child of the directive's scope (and so gets destroyed\n\t * when the directive's scope gets destroyed) but it inherits the properties of the scope from which it\n\t * was taken.\n\t *\n\t * For example consider a directive that uses transclusion and isolated scope. The DOM hierarchy might look\n\t * like this:\n\t *\n\t * ```html\n\t *
\n\t *
\n\t *
\n\t *
\n\t *
\n\t *
\n\t * ```\n\t *\n\t * The `$parent` scope hierarchy will look like this:\n\t *\n\t ```\n\t - $rootScope\n\t - isolate\n\t - transclusion\n\t ```\n\t *\n\t * but the scopes will inherit prototypically from different scopes to their `$parent`.\n\t *\n\t ```\n\t - $rootScope\n\t - transclusion\n\t - isolate\n\t ```\n\t *\n\t *\n\t * ### Attributes\n\t *\n\t * The {@link ng.$compile.directive.Attributes Attributes} object - passed as a parameter in the\n\t * `link()` or `compile()` functions. It has a variety of uses.\n\t *\n\t * * *Accessing normalized attribute names:* Directives like 'ngBind' can be expressed in many ways:\n\t * 'ng:bind', `data-ng-bind`, or 'x-ng-bind'. The attributes object allows for normalized access\n\t * to the attributes.\n\t *\n\t * * *Directive inter-communication:* All directives share the same instance of the attributes\n\t * object which allows the directives to use the attributes object as inter directive\n\t * communication.\n\t *\n\t * * *Supports interpolation:* Interpolation attributes are assigned to the attribute object\n\t * allowing other directives to read the interpolated value.\n\t *\n\t * * *Observing interpolated attributes:* Use `$observe` to observe the value changes of attributes\n\t * that contain interpolation (e.g. `src=\"{{bar}}\"`). Not only is this very efficient but it's also\n\t * the only way to easily get the actual value because during the linking phase the interpolation\n\t * hasn't been evaluated yet and so the value is at this time set to `undefined`.\n\t *\n\t * ```js\n\t * function linkingFn(scope, elm, attrs, ctrl) {\n\t * // get the attribute value\n\t * console.log(attrs.ngModel);\n\t *\n\t * // change the attribute\n\t * attrs.$set('ngModel', 'new value');\n\t *\n\t * // observe changes to interpolated attribute\n\t * attrs.$observe('ngModel', function(value) {\n\t * console.log('ngModel has changed value to ' + value);\n\t * });\n\t * }\n\t * ```\n\t *\n\t * ## Example\n\t *\n\t *
\n\t * **Note**: Typically directives are registered with `module.directive`. The example below is\n\t * to illustrate how `$compile` works.\n\t *
\n\t *\n\t \n\t \n\t \n\t
\n\t
\n\t
\n\t
\n\t
\n\t
\n\t \n\t it('should auto compile', function() {\n\t var textarea = $('textarea');\n\t var output = $('div[compile]');\n\t // The initial state reads 'Hello Angular'.\n\t expect(output.getText()).toBe('Hello Angular');\n\t textarea.clear();\n\t textarea.sendKeys('{{name}}!');\n\t expect(output.getText()).toBe('Angular!');\n\t });\n\t \n\t
\n\t\n\t *\n\t *\n\t * @param {string|DOMElement} element Element or HTML string to compile into a template function.\n\t * @param {function(angular.Scope, cloneAttachFn=)} transclude function available to directives - DEPRECATED.\n\t *\n\t *
\n\t * **Note:** Passing a `transclude` function to the $compile function is deprecated, as it\n\t * e.g. will not use the right outer scope. Please pass the transclude function as a\n\t * `parentBoundTranscludeFn` to the link function instead.\n\t *
\n\t *\n\t * @param {number} maxPriority only apply directives lower than given priority (Only effects the\n\t * root element(s), not their children)\n\t * @returns {function(scope, cloneAttachFn=, options=)} a link function which is used to bind template\n\t * (a DOM element/tree) to a scope. Where:\n\t *\n\t * * `scope` - A {@link ng.$rootScope.Scope Scope} to bind to.\n\t * * `cloneAttachFn` - If `cloneAttachFn` is provided, then the link function will clone the\n\t * `template` and call the `cloneAttachFn` function allowing the caller to attach the\n\t * cloned elements to the DOM document at the appropriate place. The `cloneAttachFn` is\n\t * called as:
`cloneAttachFn(clonedElement, scope)` where:\n\t *\n\t * * `clonedElement` - is a clone of the original `element` passed into the compiler.\n\t * * `scope` - is the current scope with which the linking function is working with.\n\t *\n\t * * `options` - An optional object hash with linking options. If `options` is provided, then the following\n\t * keys may be used to control linking behavior:\n\t *\n\t * * `parentBoundTranscludeFn` - the transclude function made available to\n\t * directives; if given, it will be passed through to the link functions of\n\t * directives found in `element` during compilation.\n\t * * `transcludeControllers` - an object hash with keys that map controller names\n\t * to a hash with the key `instance`, which maps to the controller instance;\n\t * if given, it will make the controllers available to directives on the compileNode:\n\t * ```\n\t * {\n\t * parent: {\n\t * instance: parentControllerInstance\n\t * }\n\t * }\n\t * ```\n\t * * `futureParentElement` - defines the parent to which the `cloneAttachFn` will add\n\t * the cloned elements; only needed for transcludes that are allowed to contain non html\n\t * elements (e.g. SVG elements). See also the directive.controller property.\n\t *\n\t * Calling the linking function returns the element of the template. It is either the original\n\t * element passed in, or the clone of the element if the `cloneAttachFn` is provided.\n\t *\n\t * After linking the view is not updated until after a call to $digest which typically is done by\n\t * Angular automatically.\n\t *\n\t * If you need access to the bound view, there are two ways to do it:\n\t *\n\t * - If you are not asking the linking function to clone the template, create the DOM element(s)\n\t * before you send them to the compiler and keep this reference around.\n\t * ```js\n\t * var element = $compile('

{{total}}

')(scope);\n\t * ```\n\t *\n\t * - if on the other hand, you need the element to be cloned, the view reference from the original\n\t * example would not point to the clone, but rather to the original template that was cloned. In\n\t * this case, you can access the clone via the cloneAttachFn:\n\t * ```js\n\t * var templateElement = angular.element('

{{total}}

'),\n\t * scope = ....;\n\t *\n\t * var clonedElement = $compile(templateElement)(scope, function(clonedElement, scope) {\n\t * //attach the clone to DOM document at the right place\n\t * });\n\t *\n\t * //now we have reference to the cloned DOM via `clonedElement`\n\t * ```\n\t *\n\t *\n\t * For information on how the compiler works, see the\n\t * {@link guide/compiler Angular HTML Compiler} section of the Developer Guide.\n\t */\n\t\n\tvar $compileMinErr = minErr('$compile');\n\t\n\t/**\n\t * @ngdoc provider\n\t * @name $compileProvider\n\t *\n\t * @description\n\t */\n\t$CompileProvider.$inject = ['$provide', '$$sanitizeUriProvider'];\n\tfunction $CompileProvider($provide, $$sanitizeUriProvider) {\n\t var hasDirectives = {},\n\t Suffix = 'Directive',\n\t COMMENT_DIRECTIVE_REGEXP = /^\\s*directive\\:\\s*([\\w\\-]+)\\s+(.*)$/,\n\t CLASS_DIRECTIVE_REGEXP = /(([\\w\\-]+)(?:\\:([^;]+))?;?)/,\n\t ALL_OR_NOTHING_ATTRS = makeMap('ngSrc,ngSrcset,src,srcset'),\n\t REQUIRE_PREFIX_REGEXP = /^(?:(\\^\\^?)?(\\?)?(\\^\\^?)?)?/;\n\t\n\t // Ref: http://developers.whatwg.org/webappapis.html#event-handler-idl-attributes\n\t // The assumption is that future DOM event attribute names will begin with\n\t // 'on' and be composed of only English letters.\n\t var EVENT_HANDLER_ATTR_REGEXP = /^(on[a-z]+|formaction)$/;\n\t var bindingCache = createMap();\n\t\n\t function parseIsolateBindings(scope, directiveName, isController) {\n\t var LOCAL_REGEXP = /^\\s*([@&]|=(\\*?))(\\??)\\s*(\\w*)\\s*$/;\n\t\n\t var bindings = createMap();\n\t\n\t forEach(scope, function(definition, scopeName) {\n\t if (definition in bindingCache) {\n\t bindings[scopeName] = bindingCache[definition];\n\t return;\n\t }\n\t var match = definition.match(LOCAL_REGEXP);\n\t\n\t if (!match) {\n\t throw $compileMinErr('iscp',\n\t \"Invalid {3} for directive '{0}'.\" +\n\t \" Definition: {... {1}: '{2}' ...}\",\n\t directiveName, scopeName, definition,\n\t (isController ? \"controller bindings definition\" :\n\t \"isolate scope definition\"));\n\t }\n\t\n\t bindings[scopeName] = {\n\t mode: match[1][0],\n\t collection: match[2] === '*',\n\t optional: match[3] === '?',\n\t attrName: match[4] || scopeName\n\t };\n\t if (match[4]) {\n\t bindingCache[definition] = bindings[scopeName];\n\t }\n\t });\n\t\n\t return bindings;\n\t }\n\t\n\t function parseDirectiveBindings(directive, directiveName) {\n\t var bindings = {\n\t isolateScope: null,\n\t bindToController: null\n\t };\n\t if (isObject(directive.scope)) {\n\t if (directive.bindToController === true) {\n\t bindings.bindToController = parseIsolateBindings(directive.scope,\n\t directiveName, true);\n\t bindings.isolateScope = {};\n\t } else {\n\t bindings.isolateScope = parseIsolateBindings(directive.scope,\n\t directiveName, false);\n\t }\n\t }\n\t if (isObject(directive.bindToController)) {\n\t bindings.bindToController =\n\t parseIsolateBindings(directive.bindToController, directiveName, true);\n\t }\n\t if (isObject(bindings.bindToController)) {\n\t var controller = directive.controller;\n\t var controllerAs = directive.controllerAs;\n\t if (!controller) {\n\t // There is no controller, there may or may not be a controllerAs property\n\t throw $compileMinErr('noctrl',\n\t \"Cannot bind to controller without directive '{0}'s controller.\",\n\t directiveName);\n\t } else if (!identifierForController(controller, controllerAs)) {\n\t // There is a controller, but no identifier or controllerAs property\n\t throw $compileMinErr('noident',\n\t \"Cannot bind to controller without identifier for directive '{0}'.\",\n\t directiveName);\n\t }\n\t }\n\t return bindings;\n\t }\n\t\n\t function assertValidDirectiveName(name) {\n\t var letter = name.charAt(0);\n\t if (!letter || letter !== lowercase(letter)) {\n\t throw $compileMinErr('baddir', \"Directive name '{0}' is invalid. The first character must be a lowercase letter\", name);\n\t }\n\t if (name !== name.trim()) {\n\t throw $compileMinErr('baddir',\n\t \"Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces\",\n\t name);\n\t }\n\t }\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $compileProvider#directive\n\t * @kind function\n\t *\n\t * @description\n\t * Register a new directive with the compiler.\n\t *\n\t * @param {string|Object} name Name of the directive in camel-case (i.e. ngBind which\n\t * will match as ng-bind), or an object map of directives where the keys are the\n\t * names and the values are the factories.\n\t * @param {Function|Array} directiveFactory An injectable directive factory function. See\n\t * {@link guide/directive} for more info.\n\t * @returns {ng.$compileProvider} Self for chaining.\n\t */\n\t this.directive = function registerDirective(name, directiveFactory) {\n\t assertNotHasOwnProperty(name, 'directive');\n\t if (isString(name)) {\n\t assertValidDirectiveName(name);\n\t assertArg(directiveFactory, 'directiveFactory');\n\t if (!hasDirectives.hasOwnProperty(name)) {\n\t hasDirectives[name] = [];\n\t $provide.factory(name + Suffix, ['$injector', '$exceptionHandler',\n\t function($injector, $exceptionHandler) {\n\t var directives = [];\n\t forEach(hasDirectives[name], function(directiveFactory, index) {\n\t try {\n\t var directive = $injector.invoke(directiveFactory);\n\t if (isFunction(directive)) {\n\t directive = { compile: valueFn(directive) };\n\t } else if (!directive.compile && directive.link) {\n\t directive.compile = valueFn(directive.link);\n\t }\n\t directive.priority = directive.priority || 0;\n\t directive.index = index;\n\t directive.name = directive.name || name;\n\t directive.require = directive.require || (directive.controller && directive.name);\n\t directive.restrict = directive.restrict || 'EA';\n\t directive.$$moduleName = directiveFactory.$$moduleName;\n\t directives.push(directive);\n\t } catch (e) {\n\t $exceptionHandler(e);\n\t }\n\t });\n\t return directives;\n\t }]);\n\t }\n\t hasDirectives[name].push(directiveFactory);\n\t } else {\n\t forEach(name, reverseParams(registerDirective));\n\t }\n\t return this;\n\t };\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $compileProvider#aHrefSanitizationWhitelist\n\t * @kind function\n\t *\n\t * @description\n\t * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n\t * urls during a[href] sanitization.\n\t *\n\t * The sanitization is a security measure aimed at preventing XSS attacks via html links.\n\t *\n\t * Any url about to be assigned to a[href] via data-binding is first normalized and turned into\n\t * an absolute url. Afterwards, the url is matched against the `aHrefSanitizationWhitelist`\n\t * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n\t * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n\t *\n\t * @param {RegExp=} regexp New regexp to whitelist urls with.\n\t * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n\t * chaining otherwise.\n\t */\n\t this.aHrefSanitizationWhitelist = function(regexp) {\n\t if (isDefined(regexp)) {\n\t $$sanitizeUriProvider.aHrefSanitizationWhitelist(regexp);\n\t return this;\n\t } else {\n\t return $$sanitizeUriProvider.aHrefSanitizationWhitelist();\n\t }\n\t };\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $compileProvider#imgSrcSanitizationWhitelist\n\t * @kind function\n\t *\n\t * @description\n\t * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n\t * urls during img[src] sanitization.\n\t *\n\t * The sanitization is a security measure aimed at prevent XSS attacks via html links.\n\t *\n\t * Any url about to be assigned to img[src] via data-binding is first normalized and turned into\n\t * an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationWhitelist`\n\t * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n\t * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n\t *\n\t * @param {RegExp=} regexp New regexp to whitelist urls with.\n\t * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n\t * chaining otherwise.\n\t */\n\t this.imgSrcSanitizationWhitelist = function(regexp) {\n\t if (isDefined(regexp)) {\n\t $$sanitizeUriProvider.imgSrcSanitizationWhitelist(regexp);\n\t return this;\n\t } else {\n\t return $$sanitizeUriProvider.imgSrcSanitizationWhitelist();\n\t }\n\t };\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $compileProvider#debugInfoEnabled\n\t *\n\t * @param {boolean=} enabled update the debugInfoEnabled state if provided, otherwise just return the\n\t * current debugInfoEnabled state\n\t * @returns {*} current value if used as getter or itself (chaining) if used as setter\n\t *\n\t * @kind function\n\t *\n\t * @description\n\t * Call this method to enable/disable various debug runtime information in the compiler such as adding\n\t * binding information and a reference to the current scope on to DOM elements.\n\t * If enabled, the compiler will add the following to DOM elements that have been bound to the scope\n\t * * `ng-binding` CSS class\n\t * * `$binding` data property containing an array of the binding expressions\n\t *\n\t * You may want to disable this in production for a significant performance boost. See\n\t * {@link guide/production#disabling-debug-data Disabling Debug Data} for more.\n\t *\n\t * The default value is true.\n\t */\n\t var debugInfoEnabled = true;\n\t this.debugInfoEnabled = function(enabled) {\n\t if (isDefined(enabled)) {\n\t debugInfoEnabled = enabled;\n\t return this;\n\t }\n\t return debugInfoEnabled;\n\t };\n\t\n\t this.$get = [\n\t '$injector', '$interpolate', '$exceptionHandler', '$templateRequest', '$parse',\n\t '$controller', '$rootScope', '$sce', '$animate', '$$sanitizeUri',\n\t function($injector, $interpolate, $exceptionHandler, $templateRequest, $parse,\n\t $controller, $rootScope, $sce, $animate, $$sanitizeUri) {\n\t\n\t var Attributes = function(element, attributesToCopy) {\n\t if (attributesToCopy) {\n\t var keys = Object.keys(attributesToCopy);\n\t var i, l, key;\n\t\n\t for (i = 0, l = keys.length; i < l; i++) {\n\t key = keys[i];\n\t this[key] = attributesToCopy[key];\n\t }\n\t } else {\n\t this.$attr = {};\n\t }\n\t\n\t this.$$element = element;\n\t };\n\t\n\t Attributes.prototype = {\n\t /**\n\t * @ngdoc method\n\t * @name $compile.directive.Attributes#$normalize\n\t * @kind function\n\t *\n\t * @description\n\t * Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with `x-` or\n\t * `data-`) to its normalized, camelCase form.\n\t *\n\t * Also there is special case for Moz prefix starting with upper case letter.\n\t *\n\t * For further information check out the guide on {@link guide/directive#matching-directives Matching Directives}\n\t *\n\t * @param {string} name Name to normalize\n\t */\n\t $normalize: directiveNormalize,\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $compile.directive.Attributes#$addClass\n\t * @kind function\n\t *\n\t * @description\n\t * Adds the CSS class value specified by the classVal parameter to the element. If animations\n\t * are enabled then an animation will be triggered for the class addition.\n\t *\n\t * @param {string} classVal The className value that will be added to the element\n\t */\n\t $addClass: function(classVal) {\n\t if (classVal && classVal.length > 0) {\n\t $animate.addClass(this.$$element, classVal);\n\t }\n\t },\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $compile.directive.Attributes#$removeClass\n\t * @kind function\n\t *\n\t * @description\n\t * Removes the CSS class value specified by the classVal parameter from the element. If\n\t * animations are enabled then an animation will be triggered for the class removal.\n\t *\n\t * @param {string} classVal The className value that will be removed from the element\n\t */\n\t $removeClass: function(classVal) {\n\t if (classVal && classVal.length > 0) {\n\t $animate.removeClass(this.$$element, classVal);\n\t }\n\t },\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $compile.directive.Attributes#$updateClass\n\t * @kind function\n\t *\n\t * @description\n\t * Adds and removes the appropriate CSS class values to the element based on the difference\n\t * between the new and old CSS class values (specified as newClasses and oldClasses).\n\t *\n\t * @param {string} newClasses The current CSS className value\n\t * @param {string} oldClasses The former CSS className value\n\t */\n\t $updateClass: function(newClasses, oldClasses) {\n\t var toAdd = tokenDifference(newClasses, oldClasses);\n\t if (toAdd && toAdd.length) {\n\t $animate.addClass(this.$$element, toAdd);\n\t }\n\t\n\t var toRemove = tokenDifference(oldClasses, newClasses);\n\t if (toRemove && toRemove.length) {\n\t $animate.removeClass(this.$$element, toRemove);\n\t }\n\t },\n\t\n\t /**\n\t * Set a normalized attribute on the element in a way such that all directives\n\t * can share the attribute. This function properly handles boolean attributes.\n\t * @param {string} key Normalized key. (ie ngAttribute)\n\t * @param {string|boolean} value The value to set. If `null` attribute will be deleted.\n\t * @param {boolean=} writeAttr If false, does not write the value to DOM element attribute.\n\t * Defaults to true.\n\t * @param {string=} attrName Optional none normalized name. Defaults to key.\n\t */\n\t $set: function(key, value, writeAttr, attrName) {\n\t // TODO: decide whether or not to throw an error if \"class\"\n\t //is set through this function since it may cause $updateClass to\n\t //become unstable.\n\t\n\t var node = this.$$element[0],\n\t booleanKey = getBooleanAttrName(node, key),\n\t aliasedKey = getAliasedAttrName(key),\n\t observer = key,\n\t nodeName;\n\t\n\t if (booleanKey) {\n\t this.$$element.prop(key, value);\n\t attrName = booleanKey;\n\t } else if (aliasedKey) {\n\t this[aliasedKey] = value;\n\t observer = aliasedKey;\n\t }\n\t\n\t this[key] = value;\n\t\n\t // translate normalized key to actual key\n\t if (attrName) {\n\t this.$attr[key] = attrName;\n\t } else {\n\t attrName = this.$attr[key];\n\t if (!attrName) {\n\t this.$attr[key] = attrName = snake_case(key, '-');\n\t }\n\t }\n\t\n\t nodeName = nodeName_(this.$$element);\n\t\n\t if ((nodeName === 'a' && key === 'href') ||\n\t (nodeName === 'img' && key === 'src')) {\n\t // sanitize a[href] and img[src] values\n\t this[key] = value = $$sanitizeUri(value, key === 'src');\n\t } else if (nodeName === 'img' && key === 'srcset' && isDefined(value)) {\n\t // sanitize img[srcset] values\n\t var result = \"\";\n\t\n\t // first check if there are spaces because it's not the same pattern\n\t var trimmedSrcset = trim(value);\n\t // ( 999x ,| 999w ,| ,|, )\n\t var srcPattern = /(\\s+\\d+x\\s*,|\\s+\\d+w\\s*,|\\s+,|,\\s+)/;\n\t var pattern = /\\s/.test(trimmedSrcset) ? srcPattern : /(,)/;\n\t\n\t // split srcset into tuple of uri and descriptor except for the last item\n\t var rawUris = trimmedSrcset.split(pattern);\n\t\n\t // for each tuples\n\t var nbrUrisWith2parts = Math.floor(rawUris.length / 2);\n\t for (var i = 0; i < nbrUrisWith2parts; i++) {\n\t var innerIdx = i * 2;\n\t // sanitize the uri\n\t result += $$sanitizeUri(trim(rawUris[innerIdx]), true);\n\t // add the descriptor\n\t result += (\" \" + trim(rawUris[innerIdx + 1]));\n\t }\n\t\n\t // split the last item into uri and descriptor\n\t var lastTuple = trim(rawUris[i * 2]).split(/\\s/);\n\t\n\t // sanitize the last uri\n\t result += $$sanitizeUri(trim(lastTuple[0]), true);\n\t\n\t // and add the last descriptor if any\n\t if (lastTuple.length === 2) {\n\t result += (\" \" + trim(lastTuple[1]));\n\t }\n\t this[key] = value = result;\n\t }\n\t\n\t if (writeAttr !== false) {\n\t if (value === null || isUndefined(value)) {\n\t this.$$element.removeAttr(attrName);\n\t } else {\n\t this.$$element.attr(attrName, value);\n\t }\n\t }\n\t\n\t // fire observers\n\t var $$observers = this.$$observers;\n\t $$observers && forEach($$observers[observer], function(fn) {\n\t try {\n\t fn(value);\n\t } catch (e) {\n\t $exceptionHandler(e);\n\t }\n\t });\n\t },\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $compile.directive.Attributes#$observe\n\t * @kind function\n\t *\n\t * @description\n\t * Observes an interpolated attribute.\n\t *\n\t * The observer function will be invoked once during the next `$digest` following\n\t * compilation. The observer is then invoked whenever the interpolated value\n\t * changes.\n\t *\n\t * @param {string} key Normalized key. (ie ngAttribute) .\n\t * @param {function(interpolatedValue)} fn Function that will be called whenever\n\t the interpolated value of the attribute changes.\n\t * See the {@link guide/interpolation#how-text-and-attribute-bindings-work Interpolation\n\t * guide} for more info.\n\t * @returns {function()} Returns a deregistration function for this observer.\n\t */\n\t $observe: function(key, fn) {\n\t var attrs = this,\n\t $$observers = (attrs.$$observers || (attrs.$$observers = createMap())),\n\t listeners = ($$observers[key] || ($$observers[key] = []));\n\t\n\t listeners.push(fn);\n\t $rootScope.$evalAsync(function() {\n\t if (!listeners.$$inter && attrs.hasOwnProperty(key) && !isUndefined(attrs[key])) {\n\t // no one registered attribute interpolation function, so lets call it manually\n\t fn(attrs[key]);\n\t }\n\t });\n\t\n\t return function() {\n\t arrayRemove(listeners, fn);\n\t };\n\t }\n\t };\n\t\n\t\n\t function safeAddClass($element, className) {\n\t try {\n\t $element.addClass(className);\n\t } catch (e) {\n\t // ignore, since it means that we are trying to set class on\n\t // SVG element, where class name is read-only.\n\t }\n\t }\n\t\n\t\n\t var startSymbol = $interpolate.startSymbol(),\n\t endSymbol = $interpolate.endSymbol(),\n\t denormalizeTemplate = (startSymbol == '{{' && endSymbol == '}}')\n\t ? identity\n\t : function denormalizeTemplate(template) {\n\t return template.replace(/\\{\\{/g, startSymbol).replace(/}}/g, endSymbol);\n\t },\n\t NG_ATTR_BINDING = /^ngAttr[A-Z]/;\n\t var MULTI_ELEMENT_DIR_RE = /^(.+)Start$/;\n\t\n\t compile.$$addBindingInfo = debugInfoEnabled ? function $$addBindingInfo($element, binding) {\n\t var bindings = $element.data('$binding') || [];\n\t\n\t if (isArray(binding)) {\n\t bindings = bindings.concat(binding);\n\t } else {\n\t bindings.push(binding);\n\t }\n\t\n\t $element.data('$binding', bindings);\n\t } : noop;\n\t\n\t compile.$$addBindingClass = debugInfoEnabled ? function $$addBindingClass($element) {\n\t safeAddClass($element, 'ng-binding');\n\t } : noop;\n\t\n\t compile.$$addScopeInfo = debugInfoEnabled ? function $$addScopeInfo($element, scope, isolated, noTemplate) {\n\t var dataName = isolated ? (noTemplate ? '$isolateScopeNoTemplate' : '$isolateScope') : '$scope';\n\t $element.data(dataName, scope);\n\t } : noop;\n\t\n\t compile.$$addScopeClass = debugInfoEnabled ? function $$addScopeClass($element, isolated) {\n\t safeAddClass($element, isolated ? 'ng-isolate-scope' : 'ng-scope');\n\t } : noop;\n\t\n\t return compile;\n\t\n\t //================================\n\t\n\t function compile($compileNodes, transcludeFn, maxPriority, ignoreDirective,\n\t previousCompileContext) {\n\t if (!($compileNodes instanceof jqLite)) {\n\t // jquery always rewraps, whereas we need to preserve the original selector so that we can\n\t // modify it.\n\t $compileNodes = jqLite($compileNodes);\n\t }\n\t\n\t var NOT_EMPTY = /\\S+/;\n\t\n\t // We can not compile top level text elements since text nodes can be merged and we will\n\t // not be able to attach scope data to them, so we will wrap them in \n\t for (var i = 0, len = $compileNodes.length; i < len; i++) {\n\t var domNode = $compileNodes[i];\n\t\n\t if (domNode.nodeType === NODE_TYPE_TEXT && domNode.nodeValue.match(NOT_EMPTY) /* non-empty */) {\n\t jqLiteWrapNode(domNode, $compileNodes[i] = document.createElement('span'));\n\t }\n\t }\n\t\n\t var compositeLinkFn =\n\t compileNodes($compileNodes, transcludeFn, $compileNodes,\n\t maxPriority, ignoreDirective, previousCompileContext);\n\t compile.$$addScopeClass($compileNodes);\n\t var namespace = null;\n\t return function publicLinkFn(scope, cloneConnectFn, options) {\n\t assertArg(scope, 'scope');\n\t\n\t if (previousCompileContext && previousCompileContext.needsNewScope) {\n\t // A parent directive did a replace and a directive on this element asked\n\t // for transclusion, which caused us to lose a layer of element on which\n\t // we could hold the new transclusion scope, so we will create it manually\n\t // here.\n\t scope = scope.$parent.$new();\n\t }\n\t\n\t options = options || {};\n\t var parentBoundTranscludeFn = options.parentBoundTranscludeFn,\n\t transcludeControllers = options.transcludeControllers,\n\t futureParentElement = options.futureParentElement;\n\t\n\t // When `parentBoundTranscludeFn` is passed, it is a\n\t // `controllersBoundTransclude` function (it was previously passed\n\t // as `transclude` to directive.link) so we must unwrap it to get\n\t // its `boundTranscludeFn`\n\t if (parentBoundTranscludeFn && parentBoundTranscludeFn.$$boundTransclude) {\n\t parentBoundTranscludeFn = parentBoundTranscludeFn.$$boundTransclude;\n\t }\n\t\n\t if (!namespace) {\n\t namespace = detectNamespaceForChildElements(futureParentElement);\n\t }\n\t var $linkNode;\n\t if (namespace !== 'html') {\n\t // When using a directive with replace:true and templateUrl the $compileNodes\n\t // (or a child element inside of them)\n\t // might change, so we need to recreate the namespace adapted compileNodes\n\t // for call to the link function.\n\t // Note: This will already clone the nodes...\n\t $linkNode = jqLite(\n\t wrapTemplate(namespace, jqLite('
').append($compileNodes).html())\n\t );\n\t } else if (cloneConnectFn) {\n\t // important!!: we must call our jqLite.clone() since the jQuery one is trying to be smart\n\t // and sometimes changes the structure of the DOM.\n\t $linkNode = JQLitePrototype.clone.call($compileNodes);\n\t } else {\n\t $linkNode = $compileNodes;\n\t }\n\t\n\t if (transcludeControllers) {\n\t for (var controllerName in transcludeControllers) {\n\t $linkNode.data('$' + controllerName + 'Controller', transcludeControllers[controllerName].instance);\n\t }\n\t }\n\t\n\t compile.$$addScopeInfo($linkNode, scope);\n\t\n\t if (cloneConnectFn) cloneConnectFn($linkNode, scope);\n\t if (compositeLinkFn) compositeLinkFn(scope, $linkNode, $linkNode, parentBoundTranscludeFn);\n\t return $linkNode;\n\t };\n\t }\n\t\n\t function detectNamespaceForChildElements(parentElement) {\n\t // TODO: Make this detect MathML as well...\n\t var node = parentElement && parentElement[0];\n\t if (!node) {\n\t return 'html';\n\t } else {\n\t return nodeName_(node) !== 'foreignobject' && node.toString().match(/SVG/) ? 'svg' : 'html';\n\t }\n\t }\n\t\n\t /**\n\t * Compile function matches each node in nodeList against the directives. Once all directives\n\t * for a particular node are collected their compile functions are executed. The compile\n\t * functions return values - the linking functions - are combined into a composite linking\n\t * function, which is the a linking function for the node.\n\t *\n\t * @param {NodeList} nodeList an array of nodes or NodeList to compile\n\t * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the\n\t * scope argument is auto-generated to the new child of the transcluded parent scope.\n\t * @param {DOMElement=} $rootElement If the nodeList is the root of the compilation tree then\n\t * the rootElement must be set the jqLite collection of the compile root. This is\n\t * needed so that the jqLite collection items can be replaced with widgets.\n\t * @param {number=} maxPriority Max directive priority.\n\t * @returns {Function} A composite linking function of all of the matched directives or null.\n\t */\n\t function compileNodes(nodeList, transcludeFn, $rootElement, maxPriority, ignoreDirective,\n\t previousCompileContext) {\n\t var linkFns = [],\n\t attrs, directives, nodeLinkFn, childNodes, childLinkFn, linkFnFound, nodeLinkFnFound;\n\t\n\t for (var i = 0; i < nodeList.length; i++) {\n\t attrs = new Attributes();\n\t\n\t // we must always refer to nodeList[i] since the nodes can be replaced underneath us.\n\t directives = collectDirectives(nodeList[i], [], attrs, i === 0 ? maxPriority : undefined,\n\t ignoreDirective);\n\t\n\t nodeLinkFn = (directives.length)\n\t ? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement,\n\t null, [], [], previousCompileContext)\n\t : null;\n\t\n\t if (nodeLinkFn && nodeLinkFn.scope) {\n\t compile.$$addScopeClass(attrs.$$element);\n\t }\n\t\n\t childLinkFn = (nodeLinkFn && nodeLinkFn.terminal ||\n\t !(childNodes = nodeList[i].childNodes) ||\n\t !childNodes.length)\n\t ? null\n\t : compileNodes(childNodes,\n\t nodeLinkFn ? (\n\t (nodeLinkFn.transcludeOnThisElement || !nodeLinkFn.templateOnThisElement)\n\t && nodeLinkFn.transclude) : transcludeFn);\n\t\n\t if (nodeLinkFn || childLinkFn) {\n\t linkFns.push(i, nodeLinkFn, childLinkFn);\n\t linkFnFound = true;\n\t nodeLinkFnFound = nodeLinkFnFound || nodeLinkFn;\n\t }\n\t\n\t //use the previous context only for the first element in the virtual group\n\t previousCompileContext = null;\n\t }\n\t\n\t // return a linking function if we have found anything, null otherwise\n\t return linkFnFound ? compositeLinkFn : null;\n\t\n\t function compositeLinkFn(scope, nodeList, $rootElement, parentBoundTranscludeFn) {\n\t var nodeLinkFn, childLinkFn, node, childScope, i, ii, idx, childBoundTranscludeFn;\n\t var stableNodeList;\n\t\n\t\n\t if (nodeLinkFnFound) {\n\t // copy nodeList so that if a nodeLinkFn removes or adds an element at this DOM level our\n\t // offsets don't get screwed up\n\t var nodeListLength = nodeList.length;\n\t stableNodeList = new Array(nodeListLength);\n\t\n\t // create a sparse array by only copying the elements which have a linkFn\n\t for (i = 0; i < linkFns.length; i+=3) {\n\t idx = linkFns[i];\n\t stableNodeList[idx] = nodeList[idx];\n\t }\n\t } else {\n\t stableNodeList = nodeList;\n\t }\n\t\n\t for (i = 0, ii = linkFns.length; i < ii;) {\n\t node = stableNodeList[linkFns[i++]];\n\t nodeLinkFn = linkFns[i++];\n\t childLinkFn = linkFns[i++];\n\t\n\t if (nodeLinkFn) {\n\t if (nodeLinkFn.scope) {\n\t childScope = scope.$new();\n\t compile.$$addScopeInfo(jqLite(node), childScope);\n\t } else {\n\t childScope = scope;\n\t }\n\t\n\t if (nodeLinkFn.transcludeOnThisElement) {\n\t childBoundTranscludeFn = createBoundTranscludeFn(\n\t scope, nodeLinkFn.transclude, parentBoundTranscludeFn);\n\t\n\t } else if (!nodeLinkFn.templateOnThisElement && parentBoundTranscludeFn) {\n\t childBoundTranscludeFn = parentBoundTranscludeFn;\n\t\n\t } else if (!parentBoundTranscludeFn && transcludeFn) {\n\t childBoundTranscludeFn = createBoundTranscludeFn(scope, transcludeFn);\n\t\n\t } else {\n\t childBoundTranscludeFn = null;\n\t }\n\t\n\t nodeLinkFn(childLinkFn, childScope, node, $rootElement, childBoundTranscludeFn);\n\t\n\t } else if (childLinkFn) {\n\t childLinkFn(scope, node.childNodes, undefined, parentBoundTranscludeFn);\n\t }\n\t }\n\t }\n\t }\n\t\n\t function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) {\n\t\n\t var boundTranscludeFn = function(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) {\n\t\n\t if (!transcludedScope) {\n\t transcludedScope = scope.$new(false, containingScope);\n\t transcludedScope.$$transcluded = true;\n\t }\n\t\n\t return transcludeFn(transcludedScope, cloneFn, {\n\t parentBoundTranscludeFn: previousBoundTranscludeFn,\n\t transcludeControllers: controllers,\n\t futureParentElement: futureParentElement\n\t });\n\t };\n\t\n\t return boundTranscludeFn;\n\t }\n\t\n\t /**\n\t * Looks for directives on the given node and adds them to the directive collection which is\n\t * sorted.\n\t *\n\t * @param node Node to search.\n\t * @param directives An array to which the directives are added to. This array is sorted before\n\t * the function returns.\n\t * @param attrs The shared attrs object which is used to populate the normalized attributes.\n\t * @param {number=} maxPriority Max directive priority.\n\t */\n\t function collectDirectives(node, directives, attrs, maxPriority, ignoreDirective) {\n\t var nodeType = node.nodeType,\n\t attrsMap = attrs.$attr,\n\t match,\n\t nodeName,\n\t className;\n\t\n\t switch (nodeType) {\n\t case NODE_TYPE_ELEMENT: /* Element */\n\t\n\t nodeName = nodeName_(node);\n\t\n\t // use the node name: \n\t addDirective(directives,\n\t directiveNormalize(nodeName), 'E', maxPriority, ignoreDirective);\n\t\n\t // iterate over the attributes\n\t for (var attr, name, nName, ngAttrName, value, isNgAttr, nAttrs = node.attributes,\n\t j = 0, jj = nAttrs && nAttrs.length; j < jj; j++) {\n\t var attrStartName = false;\n\t var attrEndName = false;\n\t\n\t attr = nAttrs[j];\n\t name = attr.name;\n\t value = trim(attr.value);\n\t\n\t // support ngAttr attribute binding\n\t ngAttrName = directiveNormalize(name);\n\t if (isNgAttr = NG_ATTR_BINDING.test(ngAttrName)) {\n\t name = name.replace(PREFIX_REGEXP, '')\n\t .substr(8).replace(/_(.)/g, function(match, letter) {\n\t return letter.toUpperCase();\n\t });\n\t }\n\t\n\t var multiElementMatch = ngAttrName.match(MULTI_ELEMENT_DIR_RE);\n\t if (multiElementMatch && directiveIsMultiElement(multiElementMatch[1])) {\n\t attrStartName = name;\n\t attrEndName = name.substr(0, name.length - 5) + 'end';\n\t name = name.substr(0, name.length - 6);\n\t }\n\t\n\t nName = directiveNormalize(name.toLowerCase());\n\t attrsMap[nName] = name;\n\t if (isNgAttr || !attrs.hasOwnProperty(nName)) {\n\t attrs[nName] = value;\n\t if (getBooleanAttrName(node, nName)) {\n\t attrs[nName] = true; // presence means true\n\t }\n\t }\n\t addAttrInterpolateDirective(node, directives, value, nName, isNgAttr);\n\t addDirective(directives, nName, 'A', maxPriority, ignoreDirective, attrStartName,\n\t attrEndName);\n\t }\n\t\n\t if (nodeName === 'input' && node.getAttribute('type') === 'hidden') {\n\t // Hidden input elements can have strange behaviour when navigating back to the page\n\t // This tells the browser not to try to cache and reinstate previous values\n\t node.setAttribute('autocomplete', 'off');\n\t }\n\t\n\t // use class as directive\n\t className = node.className;\n\t if (isObject(className)) {\n\t // Maybe SVGAnimatedString\n\t className = className.animVal;\n\t }\n\t if (isString(className) && className !== '') {\n\t while (match = CLASS_DIRECTIVE_REGEXP.exec(className)) {\n\t nName = directiveNormalize(match[2]);\n\t if (addDirective(directives, nName, 'C', maxPriority, ignoreDirective)) {\n\t attrs[nName] = trim(match[3]);\n\t }\n\t className = className.substr(match.index + match[0].length);\n\t }\n\t }\n\t break;\n\t case NODE_TYPE_TEXT: /* Text Node */\n\t if (msie === 11) {\n\t // Workaround for #11781\n\t while (node.parentNode && node.nextSibling && node.nextSibling.nodeType === NODE_TYPE_TEXT) {\n\t node.nodeValue = node.nodeValue + node.nextSibling.nodeValue;\n\t node.parentNode.removeChild(node.nextSibling);\n\t }\n\t }\n\t addTextInterpolateDirective(directives, node.nodeValue);\n\t break;\n\t case NODE_TYPE_COMMENT: /* Comment */\n\t try {\n\t match = COMMENT_DIRECTIVE_REGEXP.exec(node.nodeValue);\n\t if (match) {\n\t nName = directiveNormalize(match[1]);\n\t if (addDirective(directives, nName, 'M', maxPriority, ignoreDirective)) {\n\t attrs[nName] = trim(match[2]);\n\t }\n\t }\n\t } catch (e) {\n\t // turns out that under some circumstances IE9 throws errors when one attempts to read\n\t // comment's node value.\n\t // Just ignore it and continue. (Can't seem to reproduce in test case.)\n\t }\n\t break;\n\t }\n\t\n\t directives.sort(byPriority);\n\t return directives;\n\t }\n\t\n\t /**\n\t * Given a node with an directive-start it collects all of the siblings until it finds\n\t * directive-end.\n\t * @param node\n\t * @param attrStart\n\t * @param attrEnd\n\t * @returns {*}\n\t */\n\t function groupScan(node, attrStart, attrEnd) {\n\t var nodes = [];\n\t var depth = 0;\n\t if (attrStart && node.hasAttribute && node.hasAttribute(attrStart)) {\n\t do {\n\t if (!node) {\n\t throw $compileMinErr('uterdir',\n\t \"Unterminated attribute, found '{0}' but no matching '{1}' found.\",\n\t attrStart, attrEnd);\n\t }\n\t if (node.nodeType == NODE_TYPE_ELEMENT) {\n\t if (node.hasAttribute(attrStart)) depth++;\n\t if (node.hasAttribute(attrEnd)) depth--;\n\t }\n\t nodes.push(node);\n\t node = node.nextSibling;\n\t } while (depth > 0);\n\t } else {\n\t nodes.push(node);\n\t }\n\t\n\t return jqLite(nodes);\n\t }\n\t\n\t /**\n\t * Wrapper for linking function which converts normal linking function into a grouped\n\t * linking function.\n\t * @param linkFn\n\t * @param attrStart\n\t * @param attrEnd\n\t * @returns {Function}\n\t */\n\t function groupElementsLinkFnWrapper(linkFn, attrStart, attrEnd) {\n\t return function(scope, element, attrs, controllers, transcludeFn) {\n\t element = groupScan(element[0], attrStart, attrEnd);\n\t return linkFn(scope, element, attrs, controllers, transcludeFn);\n\t };\n\t }\n\t\n\t /**\n\t * Once the directives have been collected, their compile functions are executed. This method\n\t * is responsible for inlining directive templates as well as terminating the application\n\t * of the directives if the terminal directive has been reached.\n\t *\n\t * @param {Array} directives Array of collected directives to execute their compile function.\n\t * this needs to be pre-sorted by priority order.\n\t * @param {Node} compileNode The raw DOM node to apply the compile functions to\n\t * @param {Object} templateAttrs The shared attribute function\n\t * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the\n\t * scope argument is auto-generated to the new\n\t * child of the transcluded parent scope.\n\t * @param {JQLite} jqCollection If we are working on the root of the compile tree then this\n\t * argument has the root jqLite array so that we can replace nodes\n\t * on it.\n\t * @param {Object=} originalReplaceDirective An optional directive that will be ignored when\n\t * compiling the transclusion.\n\t * @param {Array.} preLinkFns\n\t * @param {Array.} postLinkFns\n\t * @param {Object} previousCompileContext Context used for previous compilation of the current\n\t * node\n\t * @returns {Function} linkFn\n\t */\n\t function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn,\n\t jqCollection, originalReplaceDirective, preLinkFns, postLinkFns,\n\t previousCompileContext) {\n\t previousCompileContext = previousCompileContext || {};\n\t\n\t var terminalPriority = -Number.MAX_VALUE,\n\t newScopeDirective = previousCompileContext.newScopeDirective,\n\t controllerDirectives = previousCompileContext.controllerDirectives,\n\t newIsolateScopeDirective = previousCompileContext.newIsolateScopeDirective,\n\t templateDirective = previousCompileContext.templateDirective,\n\t nonTlbTranscludeDirective = previousCompileContext.nonTlbTranscludeDirective,\n\t hasTranscludeDirective = false,\n\t hasTemplate = false,\n\t hasElementTranscludeDirective = previousCompileContext.hasElementTranscludeDirective,\n\t $compileNode = templateAttrs.$$element = jqLite(compileNode),\n\t directive,\n\t directiveName,\n\t $template,\n\t replaceDirective = originalReplaceDirective,\n\t childTranscludeFn = transcludeFn,\n\t linkFn,\n\t directiveValue;\n\t\n\t // executes all directives on the current element\n\t for (var i = 0, ii = directives.length; i < ii; i++) {\n\t directive = directives[i];\n\t var attrStart = directive.$$start;\n\t var attrEnd = directive.$$end;\n\t\n\t // collect multiblock sections\n\t if (attrStart) {\n\t $compileNode = groupScan(compileNode, attrStart, attrEnd);\n\t }\n\t $template = undefined;\n\t\n\t if (terminalPriority > directive.priority) {\n\t break; // prevent further processing of directives\n\t }\n\t\n\t if (directiveValue = directive.scope) {\n\t\n\t // skip the check for directives with async templates, we'll check the derived sync\n\t // directive when the template arrives\n\t if (!directive.templateUrl) {\n\t if (isObject(directiveValue)) {\n\t // This directive is trying to add an isolated scope.\n\t // Check that there is no scope of any kind already\n\t assertNoDuplicate('new/isolated scope', newIsolateScopeDirective || newScopeDirective,\n\t directive, $compileNode);\n\t newIsolateScopeDirective = directive;\n\t } else {\n\t // This directive is trying to add a child scope.\n\t // Check that there is no isolated scope already\n\t assertNoDuplicate('new/isolated scope', newIsolateScopeDirective, directive,\n\t $compileNode);\n\t }\n\t }\n\t\n\t newScopeDirective = newScopeDirective || directive;\n\t }\n\t\n\t directiveName = directive.name;\n\t\n\t if (!directive.templateUrl && directive.controller) {\n\t directiveValue = directive.controller;\n\t controllerDirectives = controllerDirectives || createMap();\n\t assertNoDuplicate(\"'\" + directiveName + \"' controller\",\n\t controllerDirectives[directiveName], directive, $compileNode);\n\t controllerDirectives[directiveName] = directive;\n\t }\n\t\n\t if (directiveValue = directive.transclude) {\n\t hasTranscludeDirective = true;\n\t\n\t // Special case ngIf and ngRepeat so that we don't complain about duplicate transclusion.\n\t // This option should only be used by directives that know how to safely handle element transclusion,\n\t // where the transcluded nodes are added or replaced after linking.\n\t if (!directive.$$tlb) {\n\t assertNoDuplicate('transclusion', nonTlbTranscludeDirective, directive, $compileNode);\n\t nonTlbTranscludeDirective = directive;\n\t }\n\t\n\t if (directiveValue == 'element') {\n\t hasElementTranscludeDirective = true;\n\t terminalPriority = directive.priority;\n\t $template = $compileNode;\n\t $compileNode = templateAttrs.$$element =\n\t jqLite(document.createComment(' ' + directiveName + ': ' +\n\t templateAttrs[directiveName] + ' '));\n\t compileNode = $compileNode[0];\n\t replaceWith(jqCollection, sliceArgs($template), compileNode);\n\t\n\t childTranscludeFn = compile($template, transcludeFn, terminalPriority,\n\t replaceDirective && replaceDirective.name, {\n\t // Don't pass in:\n\t // - controllerDirectives - otherwise we'll create duplicates controllers\n\t // - newIsolateScopeDirective or templateDirective - combining templates with\n\t // element transclusion doesn't make sense.\n\t //\n\t // We need only nonTlbTranscludeDirective so that we prevent putting transclusion\n\t // on the same element more than once.\n\t nonTlbTranscludeDirective: nonTlbTranscludeDirective\n\t });\n\t } else {\n\t $template = jqLite(jqLiteClone(compileNode)).contents();\n\t $compileNode.empty(); // clear contents\n\t childTranscludeFn = compile($template, transcludeFn, undefined,\n\t undefined, { needsNewScope: directive.$$isolateScope || directive.$$newScope});\n\t }\n\t }\n\t\n\t if (directive.template) {\n\t hasTemplate = true;\n\t assertNoDuplicate('template', templateDirective, directive, $compileNode);\n\t templateDirective = directive;\n\t\n\t directiveValue = (isFunction(directive.template))\n\t ? directive.template($compileNode, templateAttrs)\n\t : directive.template;\n\t\n\t directiveValue = denormalizeTemplate(directiveValue);\n\t\n\t if (directive.replace) {\n\t replaceDirective = directive;\n\t if (jqLiteIsTextNode(directiveValue)) {\n\t $template = [];\n\t } else {\n\t $template = removeComments(wrapTemplate(directive.templateNamespace, trim(directiveValue)));\n\t }\n\t compileNode = $template[0];\n\t\n\t if ($template.length != 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) {\n\t throw $compileMinErr('tplrt',\n\t \"Template for directive '{0}' must have exactly one root element. {1}\",\n\t directiveName, '');\n\t }\n\t\n\t replaceWith(jqCollection, $compileNode, compileNode);\n\t\n\t var newTemplateAttrs = {$attr: {}};\n\t\n\t // combine directives from the original node and from the template:\n\t // - take the array of directives for this element\n\t // - split it into two parts, those that already applied (processed) and those that weren't (unprocessed)\n\t // - collect directives from the template and sort them by priority\n\t // - combine directives as: processed + template + unprocessed\n\t var templateDirectives = collectDirectives(compileNode, [], newTemplateAttrs);\n\t var unprocessedDirectives = directives.splice(i + 1, directives.length - (i + 1));\n\t\n\t if (newIsolateScopeDirective || newScopeDirective) {\n\t // The original directive caused the current element to be replaced but this element\n\t // also needs to have a new scope, so we need to tell the template directives\n\t // that they would need to get their scope from further up, if they require transclusion\n\t markDirectiveScope(templateDirectives, newIsolateScopeDirective, newScopeDirective);\n\t }\n\t directives = directives.concat(templateDirectives).concat(unprocessedDirectives);\n\t mergeTemplateAttributes(templateAttrs, newTemplateAttrs);\n\t\n\t ii = directives.length;\n\t } else {\n\t $compileNode.html(directiveValue);\n\t }\n\t }\n\t\n\t if (directive.templateUrl) {\n\t hasTemplate = true;\n\t assertNoDuplicate('template', templateDirective, directive, $compileNode);\n\t templateDirective = directive;\n\t\n\t if (directive.replace) {\n\t replaceDirective = directive;\n\t }\n\t\n\t nodeLinkFn = compileTemplateUrl(directives.splice(i, directives.length - i), $compileNode,\n\t templateAttrs, jqCollection, hasTranscludeDirective && childTranscludeFn, preLinkFns, postLinkFns, {\n\t controllerDirectives: controllerDirectives,\n\t newScopeDirective: (newScopeDirective !== directive) && newScopeDirective,\n\t newIsolateScopeDirective: newIsolateScopeDirective,\n\t templateDirective: templateDirective,\n\t nonTlbTranscludeDirective: nonTlbTranscludeDirective\n\t });\n\t ii = directives.length;\n\t } else if (directive.compile) {\n\t try {\n\t linkFn = directive.compile($compileNode, templateAttrs, childTranscludeFn);\n\t if (isFunction(linkFn)) {\n\t addLinkFns(null, linkFn, attrStart, attrEnd);\n\t } else if (linkFn) {\n\t addLinkFns(linkFn.pre, linkFn.post, attrStart, attrEnd);\n\t }\n\t } catch (e) {\n\t $exceptionHandler(e, startingTag($compileNode));\n\t }\n\t }\n\t\n\t if (directive.terminal) {\n\t nodeLinkFn.terminal = true;\n\t terminalPriority = Math.max(terminalPriority, directive.priority);\n\t }\n\t\n\t }\n\t\n\t nodeLinkFn.scope = newScopeDirective && newScopeDirective.scope === true;\n\t nodeLinkFn.transcludeOnThisElement = hasTranscludeDirective;\n\t nodeLinkFn.templateOnThisElement = hasTemplate;\n\t nodeLinkFn.transclude = childTranscludeFn;\n\t\n\t previousCompileContext.hasElementTranscludeDirective = hasElementTranscludeDirective;\n\t\n\t // might be normal or delayed nodeLinkFn depending on if templateUrl is present\n\t return nodeLinkFn;\n\t\n\t ////////////////////\n\t\n\t function addLinkFns(pre, post, attrStart, attrEnd) {\n\t if (pre) {\n\t if (attrStart) pre = groupElementsLinkFnWrapper(pre, attrStart, attrEnd);\n\t pre.require = directive.require;\n\t pre.directiveName = directiveName;\n\t if (newIsolateScopeDirective === directive || directive.$$isolateScope) {\n\t pre = cloneAndAnnotateFn(pre, {isolateScope: true});\n\t }\n\t preLinkFns.push(pre);\n\t }\n\t if (post) {\n\t if (attrStart) post = groupElementsLinkFnWrapper(post, attrStart, attrEnd);\n\t post.require = directive.require;\n\t post.directiveName = directiveName;\n\t if (newIsolateScopeDirective === directive || directive.$$isolateScope) {\n\t post = cloneAndAnnotateFn(post, {isolateScope: true});\n\t }\n\t postLinkFns.push(post);\n\t }\n\t }\n\t\n\t\n\t function getControllers(directiveName, require, $element, elementControllers) {\n\t var value;\n\t\n\t if (isString(require)) {\n\t var match = require.match(REQUIRE_PREFIX_REGEXP);\n\t var name = require.substring(match[0].length);\n\t var inheritType = match[1] || match[3];\n\t var optional = match[2] === '?';\n\t\n\t //If only parents then start at the parent element\n\t if (inheritType === '^^') {\n\t $element = $element.parent();\n\t //Otherwise attempt getting the controller from elementControllers in case\n\t //the element is transcluded (and has no data) and to avoid .data if possible\n\t } else {\n\t value = elementControllers && elementControllers[name];\n\t value = value && value.instance;\n\t }\n\t\n\t if (!value) {\n\t var dataName = '$' + name + 'Controller';\n\t value = inheritType ? $element.inheritedData(dataName) : $element.data(dataName);\n\t }\n\t\n\t if (!value && !optional) {\n\t throw $compileMinErr('ctreq',\n\t \"Controller '{0}', required by directive '{1}', can't be found!\",\n\t name, directiveName);\n\t }\n\t } else if (isArray(require)) {\n\t value = [];\n\t for (var i = 0, ii = require.length; i < ii; i++) {\n\t value[i] = getControllers(directiveName, require[i], $element, elementControllers);\n\t }\n\t }\n\t\n\t return value || null;\n\t }\n\t\n\t function setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope) {\n\t var elementControllers = createMap();\n\t for (var controllerKey in controllerDirectives) {\n\t var directive = controllerDirectives[controllerKey];\n\t var locals = {\n\t $scope: directive === newIsolateScopeDirective || directive.$$isolateScope ? isolateScope : scope,\n\t $element: $element,\n\t $attrs: attrs,\n\t $transclude: transcludeFn\n\t };\n\t\n\t var controller = directive.controller;\n\t if (controller == '@') {\n\t controller = attrs[directive.name];\n\t }\n\t\n\t var controllerInstance = $controller(controller, locals, true, directive.controllerAs);\n\t\n\t // For directives with element transclusion the element is a comment.\n\t // In this case .data will not attach any data.\n\t // Instead, we save the controllers for the element in a local hash and attach to .data\n\t // later, once we have the actual element.\n\t elementControllers[directive.name] = controllerInstance;\n\t $element.data('$' + directive.name + 'Controller', controllerInstance.instance);\n\t }\n\t return elementControllers;\n\t }\n\t\n\t function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) {\n\t var linkFn, isolateScope, controllerScope, elementControllers, transcludeFn, $element,\n\t attrs, removeScopeBindingWatches, removeControllerBindingWatches;\n\t\n\t if (compileNode === linkNode) {\n\t attrs = templateAttrs;\n\t $element = templateAttrs.$$element;\n\t } else {\n\t $element = jqLite(linkNode);\n\t attrs = new Attributes($element, templateAttrs);\n\t }\n\t\n\t controllerScope = scope;\n\t if (newIsolateScopeDirective) {\n\t isolateScope = scope.$new(true);\n\t } else if (newScopeDirective) {\n\t controllerScope = scope.$parent;\n\t }\n\t\n\t if (boundTranscludeFn) {\n\t // track `boundTranscludeFn` so it can be unwrapped if `transcludeFn`\n\t // is later passed as `parentBoundTranscludeFn` to `publicLinkFn`\n\t transcludeFn = controllersBoundTransclude;\n\t transcludeFn.$$boundTransclude = boundTranscludeFn;\n\t }\n\t\n\t if (controllerDirectives) {\n\t elementControllers = setupControllers($element, attrs, transcludeFn, controllerDirectives, isolateScope, scope);\n\t }\n\t\n\t if (newIsolateScopeDirective) {\n\t // Initialize isolate scope bindings for new isolate scope directive.\n\t compile.$$addScopeInfo($element, isolateScope, true, !(templateDirective && (templateDirective === newIsolateScopeDirective ||\n\t templateDirective === newIsolateScopeDirective.$$originalDirective)));\n\t compile.$$addScopeClass($element, true);\n\t isolateScope.$$isolateBindings =\n\t newIsolateScopeDirective.$$isolateBindings;\n\t removeScopeBindingWatches = initializeDirectiveBindings(scope, attrs, isolateScope,\n\t isolateScope.$$isolateBindings,\n\t newIsolateScopeDirective);\n\t if (removeScopeBindingWatches) {\n\t isolateScope.$on('$destroy', removeScopeBindingWatches);\n\t }\n\t }\n\t\n\t // Initialize bindToController bindings\n\t for (var name in elementControllers) {\n\t var controllerDirective = controllerDirectives[name];\n\t var controller = elementControllers[name];\n\t var bindings = controllerDirective.$$bindings.bindToController;\n\t\n\t if (controller.identifier && bindings) {\n\t removeControllerBindingWatches =\n\t initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective);\n\t }\n\t\n\t var controllerResult = controller();\n\t if (controllerResult !== controller.instance) {\n\t // If the controller constructor has a return value, overwrite the instance\n\t // from setupControllers\n\t controller.instance = controllerResult;\n\t $element.data('$' + controllerDirective.name + 'Controller', controllerResult);\n\t removeControllerBindingWatches && removeControllerBindingWatches();\n\t removeControllerBindingWatches =\n\t initializeDirectiveBindings(controllerScope, attrs, controller.instance, bindings, controllerDirective);\n\t }\n\t }\n\t\n\t // PRELINKING\n\t for (i = 0, ii = preLinkFns.length; i < ii; i++) {\n\t linkFn = preLinkFns[i];\n\t invokeLinkFn(linkFn,\n\t linkFn.isolateScope ? isolateScope : scope,\n\t $element,\n\t attrs,\n\t linkFn.require && getControllers(linkFn.directiveName, linkFn.require, $element, elementControllers),\n\t transcludeFn\n\t );\n\t }\n\t\n\t // RECURSION\n\t // We only pass the isolate scope, if the isolate directive has a template,\n\t // otherwise the child elements do not belong to the isolate directive.\n\t var scopeToChild = scope;\n\t if (newIsolateScopeDirective && (newIsolateScopeDirective.template || newIsolateScopeDirective.templateUrl === null)) {\n\t scopeToChild = isolateScope;\n\t }\n\t childLinkFn && childLinkFn(scopeToChild, linkNode.childNodes, undefined, boundTranscludeFn);\n\t\n\t // POSTLINKING\n\t for (i = postLinkFns.length - 1; i >= 0; i--) {\n\t linkFn = postLinkFns[i];\n\t invokeLinkFn(linkFn,\n\t linkFn.isolateScope ? isolateScope : scope,\n\t $element,\n\t attrs,\n\t linkFn.require && getControllers(linkFn.directiveName, linkFn.require, $element, elementControllers),\n\t transcludeFn\n\t );\n\t }\n\t\n\t // This is the function that is injected as `$transclude`.\n\t // Note: all arguments are optional!\n\t function controllersBoundTransclude(scope, cloneAttachFn, futureParentElement) {\n\t var transcludeControllers;\n\t\n\t // No scope passed in:\n\t if (!isScope(scope)) {\n\t futureParentElement = cloneAttachFn;\n\t cloneAttachFn = scope;\n\t scope = undefined;\n\t }\n\t\n\t if (hasElementTranscludeDirective) {\n\t transcludeControllers = elementControllers;\n\t }\n\t if (!futureParentElement) {\n\t futureParentElement = hasElementTranscludeDirective ? $element.parent() : $element;\n\t }\n\t return boundTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild);\n\t }\n\t }\n\t }\n\t\n\t // Depending upon the context in which a directive finds itself it might need to have a new isolated\n\t // or child scope created. For instance:\n\t // * if the directive has been pulled into a template because another directive with a higher priority\n\t // asked for element transclusion\n\t // * if the directive itself asks for transclusion but it is at the root of a template and the original\n\t // element was replaced. See https://github.com/angular/angular.js/issues/12936\n\t function markDirectiveScope(directives, isolateScope, newScope) {\n\t for (var j = 0, jj = directives.length; j < jj; j++) {\n\t directives[j] = inherit(directives[j], {$$isolateScope: isolateScope, $$newScope: newScope});\n\t }\n\t }\n\t\n\t /**\n\t * looks up the directive and decorates it with exception handling and proper parameters. We\n\t * call this the boundDirective.\n\t *\n\t * @param {string} name name of the directive to look up.\n\t * @param {string} location The directive must be found in specific format.\n\t * String containing any of theses characters:\n\t *\n\t * * `E`: element name\n\t * * `A': attribute\n\t * * `C`: class\n\t * * `M`: comment\n\t * @returns {boolean} true if directive was added.\n\t */\n\t function addDirective(tDirectives, name, location, maxPriority, ignoreDirective, startAttrName,\n\t endAttrName) {\n\t if (name === ignoreDirective) return null;\n\t var match = null;\n\t if (hasDirectives.hasOwnProperty(name)) {\n\t for (var directive, directives = $injector.get(name + Suffix),\n\t i = 0, ii = directives.length; i < ii; i++) {\n\t try {\n\t directive = directives[i];\n\t if ((isUndefined(maxPriority) || maxPriority > directive.priority) &&\n\t directive.restrict.indexOf(location) != -1) {\n\t if (startAttrName) {\n\t directive = inherit(directive, {$$start: startAttrName, $$end: endAttrName});\n\t }\n\t if (!directive.$$bindings) {\n\t var bindings = directive.$$bindings =\n\t parseDirectiveBindings(directive, directive.name);\n\t if (isObject(bindings.isolateScope)) {\n\t directive.$$isolateBindings = bindings.isolateScope;\n\t }\n\t }\n\t tDirectives.push(directive);\n\t match = directive;\n\t }\n\t } catch (e) { $exceptionHandler(e); }\n\t }\n\t }\n\t return match;\n\t }\n\t\n\t\n\t /**\n\t * looks up the directive and returns true if it is a multi-element directive,\n\t * and therefore requires DOM nodes between -start and -end markers to be grouped\n\t * together.\n\t *\n\t * @param {string} name name of the directive to look up.\n\t * @returns true if directive was registered as multi-element.\n\t */\n\t function directiveIsMultiElement(name) {\n\t if (hasDirectives.hasOwnProperty(name)) {\n\t for (var directive, directives = $injector.get(name + Suffix),\n\t i = 0, ii = directives.length; i < ii; i++) {\n\t directive = directives[i];\n\t if (directive.multiElement) {\n\t return true;\n\t }\n\t }\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * When the element is replaced with HTML template then the new attributes\n\t * on the template need to be merged with the existing attributes in the DOM.\n\t * The desired effect is to have both of the attributes present.\n\t *\n\t * @param {object} dst destination attributes (original DOM)\n\t * @param {object} src source attributes (from the directive template)\n\t */\n\t function mergeTemplateAttributes(dst, src) {\n\t var srcAttr = src.$attr,\n\t dstAttr = dst.$attr,\n\t $element = dst.$$element;\n\t\n\t // reapply the old attributes to the new element\n\t forEach(dst, function(value, key) {\n\t if (key.charAt(0) != '$') {\n\t if (src[key] && src[key] !== value) {\n\t value += (key === 'style' ? ';' : ' ') + src[key];\n\t }\n\t dst.$set(key, value, true, srcAttr[key]);\n\t }\n\t });\n\t\n\t // copy the new attributes on the old attrs object\n\t forEach(src, function(value, key) {\n\t if (key == 'class') {\n\t safeAddClass($element, value);\n\t dst['class'] = (dst['class'] ? dst['class'] + ' ' : '') + value;\n\t } else if (key == 'style') {\n\t $element.attr('style', $element.attr('style') + ';' + value);\n\t dst['style'] = (dst['style'] ? dst['style'] + ';' : '') + value;\n\t // `dst` will never contain hasOwnProperty as DOM parser won't let it.\n\t // You will get an \"InvalidCharacterError: DOM Exception 5\" error if you\n\t // have an attribute like \"has-own-property\" or \"data-has-own-property\", etc.\n\t } else if (key.charAt(0) != '$' && !dst.hasOwnProperty(key)) {\n\t dst[key] = value;\n\t dstAttr[key] = srcAttr[key];\n\t }\n\t });\n\t }\n\t\n\t\n\t function compileTemplateUrl(directives, $compileNode, tAttrs,\n\t $rootElement, childTranscludeFn, preLinkFns, postLinkFns, previousCompileContext) {\n\t var linkQueue = [],\n\t afterTemplateNodeLinkFn,\n\t afterTemplateChildLinkFn,\n\t beforeTemplateCompileNode = $compileNode[0],\n\t origAsyncDirective = directives.shift(),\n\t derivedSyncDirective = inherit(origAsyncDirective, {\n\t templateUrl: null, transclude: null, replace: null, $$originalDirective: origAsyncDirective\n\t }),\n\t templateUrl = (isFunction(origAsyncDirective.templateUrl))\n\t ? origAsyncDirective.templateUrl($compileNode, tAttrs)\n\t : origAsyncDirective.templateUrl,\n\t templateNamespace = origAsyncDirective.templateNamespace;\n\t\n\t $compileNode.empty();\n\t\n\t $templateRequest(templateUrl)\n\t .then(function(content) {\n\t var compileNode, tempTemplateAttrs, $template, childBoundTranscludeFn;\n\t\n\t content = denormalizeTemplate(content);\n\t\n\t if (origAsyncDirective.replace) {\n\t if (jqLiteIsTextNode(content)) {\n\t $template = [];\n\t } else {\n\t $template = removeComments(wrapTemplate(templateNamespace, trim(content)));\n\t }\n\t compileNode = $template[0];\n\t\n\t if ($template.length != 1 || compileNode.nodeType !== NODE_TYPE_ELEMENT) {\n\t throw $compileMinErr('tplrt',\n\t \"Template for directive '{0}' must have exactly one root element. {1}\",\n\t origAsyncDirective.name, templateUrl);\n\t }\n\t\n\t tempTemplateAttrs = {$attr: {}};\n\t replaceWith($rootElement, $compileNode, compileNode);\n\t var templateDirectives = collectDirectives(compileNode, [], tempTemplateAttrs);\n\t\n\t if (isObject(origAsyncDirective.scope)) {\n\t // the original directive that caused the template to be loaded async required\n\t // an isolate scope\n\t markDirectiveScope(templateDirectives, true);\n\t }\n\t directives = templateDirectives.concat(directives);\n\t mergeTemplateAttributes(tAttrs, tempTemplateAttrs);\n\t } else {\n\t compileNode = beforeTemplateCompileNode;\n\t $compileNode.html(content);\n\t }\n\t\n\t directives.unshift(derivedSyncDirective);\n\t\n\t afterTemplateNodeLinkFn = applyDirectivesToNode(directives, compileNode, tAttrs,\n\t childTranscludeFn, $compileNode, origAsyncDirective, preLinkFns, postLinkFns,\n\t previousCompileContext);\n\t forEach($rootElement, function(node, i) {\n\t if (node == compileNode) {\n\t $rootElement[i] = $compileNode[0];\n\t }\n\t });\n\t afterTemplateChildLinkFn = compileNodes($compileNode[0].childNodes, childTranscludeFn);\n\t\n\t while (linkQueue.length) {\n\t var scope = linkQueue.shift(),\n\t beforeTemplateLinkNode = linkQueue.shift(),\n\t linkRootElement = linkQueue.shift(),\n\t boundTranscludeFn = linkQueue.shift(),\n\t linkNode = $compileNode[0];\n\t\n\t if (scope.$$destroyed) continue;\n\t\n\t if (beforeTemplateLinkNode !== beforeTemplateCompileNode) {\n\t var oldClasses = beforeTemplateLinkNode.className;\n\t\n\t if (!(previousCompileContext.hasElementTranscludeDirective &&\n\t origAsyncDirective.replace)) {\n\t // it was cloned therefore we have to clone as well.\n\t linkNode = jqLiteClone(compileNode);\n\t }\n\t replaceWith(linkRootElement, jqLite(beforeTemplateLinkNode), linkNode);\n\t\n\t // Copy in CSS classes from original node\n\t safeAddClass(jqLite(linkNode), oldClasses);\n\t }\n\t if (afterTemplateNodeLinkFn.transcludeOnThisElement) {\n\t childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn);\n\t } else {\n\t childBoundTranscludeFn = boundTranscludeFn;\n\t }\n\t afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, linkNode, $rootElement,\n\t childBoundTranscludeFn);\n\t }\n\t linkQueue = null;\n\t });\n\t\n\t return function delayedNodeLinkFn(ignoreChildLinkFn, scope, node, rootElement, boundTranscludeFn) {\n\t var childBoundTranscludeFn = boundTranscludeFn;\n\t if (scope.$$destroyed) return;\n\t if (linkQueue) {\n\t linkQueue.push(scope,\n\t node,\n\t rootElement,\n\t childBoundTranscludeFn);\n\t } else {\n\t if (afterTemplateNodeLinkFn.transcludeOnThisElement) {\n\t childBoundTranscludeFn = createBoundTranscludeFn(scope, afterTemplateNodeLinkFn.transclude, boundTranscludeFn);\n\t }\n\t afterTemplateNodeLinkFn(afterTemplateChildLinkFn, scope, node, rootElement, childBoundTranscludeFn);\n\t }\n\t };\n\t }\n\t\n\t\n\t /**\n\t * Sorting function for bound directives.\n\t */\n\t function byPriority(a, b) {\n\t var diff = b.priority - a.priority;\n\t if (diff !== 0) return diff;\n\t if (a.name !== b.name) return (a.name < b.name) ? -1 : 1;\n\t return a.index - b.index;\n\t }\n\t\n\t function assertNoDuplicate(what, previousDirective, directive, element) {\n\t\n\t function wrapModuleNameIfDefined(moduleName) {\n\t return moduleName ?\n\t (' (module: ' + moduleName + ')') :\n\t '';\n\t }\n\t\n\t if (previousDirective) {\n\t throw $compileMinErr('multidir', 'Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}',\n\t previousDirective.name, wrapModuleNameIfDefined(previousDirective.$$moduleName),\n\t directive.name, wrapModuleNameIfDefined(directive.$$moduleName), what, startingTag(element));\n\t }\n\t }\n\t\n\t\n\t function addTextInterpolateDirective(directives, text) {\n\t var interpolateFn = $interpolate(text, true);\n\t if (interpolateFn) {\n\t directives.push({\n\t priority: 0,\n\t compile: function textInterpolateCompileFn(templateNode) {\n\t var templateNodeParent = templateNode.parent(),\n\t hasCompileParent = !!templateNodeParent.length;\n\t\n\t // When transcluding a template that has bindings in the root\n\t // we don't have a parent and thus need to add the class during linking fn.\n\t if (hasCompileParent) compile.$$addBindingClass(templateNodeParent);\n\t\n\t return function textInterpolateLinkFn(scope, node) {\n\t var parent = node.parent();\n\t if (!hasCompileParent) compile.$$addBindingClass(parent);\n\t compile.$$addBindingInfo(parent, interpolateFn.expressions);\n\t scope.$watch(interpolateFn, function interpolateFnWatchAction(value) {\n\t node[0].nodeValue = value;\n\t });\n\t };\n\t }\n\t });\n\t }\n\t }\n\t\n\t\n\t function wrapTemplate(type, template) {\n\t type = lowercase(type || 'html');\n\t switch (type) {\n\t case 'svg':\n\t case 'math':\n\t var wrapper = document.createElement('div');\n\t wrapper.innerHTML = '<' + type + '>' + template + '';\n\t return wrapper.childNodes[0].childNodes;\n\t default:\n\t return template;\n\t }\n\t }\n\t\n\t\n\t function getTrustedContext(node, attrNormalizedName) {\n\t if (attrNormalizedName == \"srcdoc\") {\n\t return $sce.HTML;\n\t }\n\t var tag = nodeName_(node);\n\t // maction[xlink:href] can source SVG. It's not limited to .\n\t if (attrNormalizedName == \"xlinkHref\" ||\n\t (tag == \"form\" && attrNormalizedName == \"action\") ||\n\t (tag != \"img\" && (attrNormalizedName == \"src\" ||\n\t attrNormalizedName == \"ngSrc\"))) {\n\t return $sce.RESOURCE_URL;\n\t }\n\t }\n\t\n\t\n\t function addAttrInterpolateDirective(node, directives, value, name, allOrNothing) {\n\t var trustedContext = getTrustedContext(node, name);\n\t allOrNothing = ALL_OR_NOTHING_ATTRS[name] || allOrNothing;\n\t\n\t var interpolateFn = $interpolate(value, true, trustedContext, allOrNothing);\n\t\n\t // no interpolation found -> ignore\n\t if (!interpolateFn) return;\n\t\n\t\n\t if (name === \"multiple\" && nodeName_(node) === \"select\") {\n\t throw $compileMinErr(\"selmulti\",\n\t \"Binding to the 'multiple' attribute is not supported. Element: {0}\",\n\t startingTag(node));\n\t }\n\t\n\t directives.push({\n\t priority: 100,\n\t compile: function() {\n\t return {\n\t pre: function attrInterpolatePreLinkFn(scope, element, attr) {\n\t var $$observers = (attr.$$observers || (attr.$$observers = createMap()));\n\t\n\t if (EVENT_HANDLER_ATTR_REGEXP.test(name)) {\n\t throw $compileMinErr('nodomevents',\n\t \"Interpolations for HTML DOM event attributes are disallowed. Please use the \" +\n\t \"ng- versions (such as ng-click instead of onclick) instead.\");\n\t }\n\t\n\t // If the attribute has changed since last $interpolate()ed\n\t var newValue = attr[name];\n\t if (newValue !== value) {\n\t // we need to interpolate again since the attribute value has been updated\n\t // (e.g. by another directive's compile function)\n\t // ensure unset/empty values make interpolateFn falsy\n\t interpolateFn = newValue && $interpolate(newValue, true, trustedContext, allOrNothing);\n\t value = newValue;\n\t }\n\t\n\t // if attribute was updated so that there is no interpolation going on we don't want to\n\t // register any observers\n\t if (!interpolateFn) return;\n\t\n\t // initialize attr object so that it's ready in case we need the value for isolate\n\t // scope initialization, otherwise the value would not be available from isolate\n\t // directive's linking fn during linking phase\n\t attr[name] = interpolateFn(scope);\n\t\n\t ($$observers[name] || ($$observers[name] = [])).$$inter = true;\n\t (attr.$$observers && attr.$$observers[name].$$scope || scope).\n\t $watch(interpolateFn, function interpolateFnWatchAction(newValue, oldValue) {\n\t //special case for class attribute addition + removal\n\t //so that class changes can tap into the animation\n\t //hooks provided by the $animate service. Be sure to\n\t //skip animations when the first digest occurs (when\n\t //both the new and the old values are the same) since\n\t //the CSS classes are the non-interpolated values\n\t if (name === 'class' && newValue != oldValue) {\n\t attr.$updateClass(newValue, oldValue);\n\t } else {\n\t attr.$set(name, newValue);\n\t }\n\t });\n\t }\n\t };\n\t }\n\t });\n\t }\n\t\n\t\n\t /**\n\t * This is a special jqLite.replaceWith, which can replace items which\n\t * have no parents, provided that the containing jqLite collection is provided.\n\t *\n\t * @param {JqLite=} $rootElement The root of the compile tree. Used so that we can replace nodes\n\t * in the root of the tree.\n\t * @param {JqLite} elementsToRemove The jqLite element which we are going to replace. We keep\n\t * the shell, but replace its DOM node reference.\n\t * @param {Node} newNode The new DOM node.\n\t */\n\t function replaceWith($rootElement, elementsToRemove, newNode) {\n\t var firstElementToRemove = elementsToRemove[0],\n\t removeCount = elementsToRemove.length,\n\t parent = firstElementToRemove.parentNode,\n\t i, ii;\n\t\n\t if ($rootElement) {\n\t for (i = 0, ii = $rootElement.length; i < ii; i++) {\n\t if ($rootElement[i] == firstElementToRemove) {\n\t $rootElement[i++] = newNode;\n\t for (var j = i, j2 = j + removeCount - 1,\n\t jj = $rootElement.length;\n\t j < jj; j++, j2++) {\n\t if (j2 < jj) {\n\t $rootElement[j] = $rootElement[j2];\n\t } else {\n\t delete $rootElement[j];\n\t }\n\t }\n\t $rootElement.length -= removeCount - 1;\n\t\n\t // If the replaced element is also the jQuery .context then replace it\n\t // .context is a deprecated jQuery api, so we should set it only when jQuery set it\n\t // http://api.jquery.com/context/\n\t if ($rootElement.context === firstElementToRemove) {\n\t $rootElement.context = newNode;\n\t }\n\t break;\n\t }\n\t }\n\t }\n\t\n\t if (parent) {\n\t parent.replaceChild(newNode, firstElementToRemove);\n\t }\n\t\n\t // TODO(perf): what's this document fragment for? is it needed? can we at least reuse it?\n\t var fragment = document.createDocumentFragment();\n\t fragment.appendChild(firstElementToRemove);\n\t\n\t if (jqLite.hasData(firstElementToRemove)) {\n\t // Copy over user data (that includes Angular's $scope etc.). Don't copy private\n\t // data here because there's no public interface in jQuery to do that and copying over\n\t // event listeners (which is the main use of private data) wouldn't work anyway.\n\t jqLite.data(newNode, jqLite.data(firstElementToRemove));\n\t\n\t // Remove data of the replaced element. We cannot just call .remove()\n\t // on the element it since that would deallocate scope that is needed\n\t // for the new node. Instead, remove the data \"manually\".\n\t if (!jQuery) {\n\t delete jqLite.cache[firstElementToRemove[jqLite.expando]];\n\t } else {\n\t // jQuery 2.x doesn't expose the data storage. Use jQuery.cleanData to clean up after\n\t // the replaced element. The cleanData version monkey-patched by Angular would cause\n\t // the scope to be trashed and we do need the very same scope to work with the new\n\t // element. However, we cannot just cache the non-patched version and use it here as\n\t // that would break if another library patches the method after Angular does (one\n\t // example is jQuery UI). Instead, set a flag indicating scope destroying should be\n\t // skipped this one time.\n\t skipDestroyOnNextJQueryCleanData = true;\n\t jQuery.cleanData([firstElementToRemove]);\n\t }\n\t }\n\t\n\t for (var k = 1, kk = elementsToRemove.length; k < kk; k++) {\n\t var element = elementsToRemove[k];\n\t jqLite(element).remove(); // must do this way to clean up expando\n\t fragment.appendChild(element);\n\t delete elementsToRemove[k];\n\t }\n\t\n\t elementsToRemove[0] = newNode;\n\t elementsToRemove.length = 1;\n\t }\n\t\n\t\n\t function cloneAndAnnotateFn(fn, annotation) {\n\t return extend(function() { return fn.apply(null, arguments); }, fn, annotation);\n\t }\n\t\n\t\n\t function invokeLinkFn(linkFn, scope, $element, attrs, controllers, transcludeFn) {\n\t try {\n\t linkFn(scope, $element, attrs, controllers, transcludeFn);\n\t } catch (e) {\n\t $exceptionHandler(e, startingTag($element));\n\t }\n\t }\n\t\n\t\n\t // Set up $watches for isolate scope and controller bindings. This process\n\t // only occurs for isolate scopes and new scopes with controllerAs.\n\t function initializeDirectiveBindings(scope, attrs, destination, bindings, directive) {\n\t var removeWatchCollection = [];\n\t forEach(bindings, function(definition, scopeName) {\n\t var attrName = definition.attrName,\n\t optional = definition.optional,\n\t mode = definition.mode, // @, =, or &\n\t lastValue,\n\t parentGet, parentSet, compare;\n\t\n\t switch (mode) {\n\t\n\t case '@':\n\t if (!optional && !hasOwnProperty.call(attrs, attrName)) {\n\t destination[scopeName] = attrs[attrName] = void 0;\n\t }\n\t attrs.$observe(attrName, function(value) {\n\t if (isString(value)) {\n\t destination[scopeName] = value;\n\t }\n\t });\n\t attrs.$$observers[attrName].$$scope = scope;\n\t lastValue = attrs[attrName];\n\t if (isString(lastValue)) {\n\t // If the attribute has been provided then we trigger an interpolation to ensure\n\t // the value is there for use in the link fn\n\t destination[scopeName] = $interpolate(lastValue)(scope);\n\t } else if (isBoolean(lastValue)) {\n\t // If the attributes is one of the BOOLEAN_ATTR then Angular will have converted\n\t // the value to boolean rather than a string, so we special case this situation\n\t destination[scopeName] = lastValue;\n\t }\n\t break;\n\t\n\t case '=':\n\t if (!hasOwnProperty.call(attrs, attrName)) {\n\t if (optional) break;\n\t attrs[attrName] = void 0;\n\t }\n\t if (optional && !attrs[attrName]) break;\n\t\n\t parentGet = $parse(attrs[attrName]);\n\t if (parentGet.literal) {\n\t compare = equals;\n\t } else {\n\t compare = function(a, b) { return a === b || (a !== a && b !== b); };\n\t }\n\t parentSet = parentGet.assign || function() {\n\t // reset the change, or we will throw this exception on every $digest\n\t lastValue = destination[scopeName] = parentGet(scope);\n\t throw $compileMinErr('nonassign',\n\t \"Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!\",\n\t attrs[attrName], attrName, directive.name);\n\t };\n\t lastValue = destination[scopeName] = parentGet(scope);\n\t var parentValueWatch = function parentValueWatch(parentValue) {\n\t if (!compare(parentValue, destination[scopeName])) {\n\t // we are out of sync and need to copy\n\t if (!compare(parentValue, lastValue)) {\n\t // parent changed and it has precedence\n\t destination[scopeName] = parentValue;\n\t } else {\n\t // if the parent can be assigned then do so\n\t parentSet(scope, parentValue = destination[scopeName]);\n\t }\n\t }\n\t return lastValue = parentValue;\n\t };\n\t parentValueWatch.$stateful = true;\n\t var removeWatch;\n\t if (definition.collection) {\n\t removeWatch = scope.$watchCollection(attrs[attrName], parentValueWatch);\n\t } else {\n\t removeWatch = scope.$watch($parse(attrs[attrName], parentValueWatch), null, parentGet.literal);\n\t }\n\t removeWatchCollection.push(removeWatch);\n\t break;\n\t\n\t case '&':\n\t // Don't assign Object.prototype method to scope\n\t parentGet = attrs.hasOwnProperty(attrName) ? $parse(attrs[attrName]) : noop;\n\t\n\t // Don't assign noop to destination if expression is not valid\n\t if (parentGet === noop && optional) break;\n\t\n\t destination[scopeName] = function(locals) {\n\t return parentGet(scope, locals);\n\t };\n\t break;\n\t }\n\t });\n\t\n\t return removeWatchCollection.length && function removeWatches() {\n\t for (var i = 0, ii = removeWatchCollection.length; i < ii; ++i) {\n\t removeWatchCollection[i]();\n\t }\n\t };\n\t }\n\t }];\n\t}\n\t\n\tvar PREFIX_REGEXP = /^((?:x|data)[\\:\\-_])/i;\n\t/**\n\t * Converts all accepted directives format into proper directive name.\n\t * @param name Name to normalize\n\t */\n\tfunction directiveNormalize(name) {\n\t return camelCase(name.replace(PREFIX_REGEXP, ''));\n\t}\n\t\n\t/**\n\t * @ngdoc type\n\t * @name $compile.directive.Attributes\n\t *\n\t * @description\n\t * A shared object between directive compile / linking functions which contains normalized DOM\n\t * element attributes. The values reflect current binding state `{{ }}`. The normalization is\n\t * needed since all of these are treated as equivalent in Angular:\n\t *\n\t * ```\n\t * \n\t * ```\n\t */\n\t\n\t/**\n\t * @ngdoc property\n\t * @name $compile.directive.Attributes#$attr\n\t *\n\t * @description\n\t * A map of DOM element attribute names to the normalized name. This is\n\t * needed to do reverse lookup from normalized name back to actual name.\n\t */\n\t\n\t\n\t/**\n\t * @ngdoc method\n\t * @name $compile.directive.Attributes#$set\n\t * @kind function\n\t *\n\t * @description\n\t * Set DOM element attribute value.\n\t *\n\t *\n\t * @param {string} name Normalized element attribute name of the property to modify. The name is\n\t * reverse-translated using the {@link ng.$compile.directive.Attributes#$attr $attr}\n\t * property to the original name.\n\t * @param {string} value Value to set the attribute to. The value can be an interpolated string.\n\t */\n\t\n\t\n\t\n\t/**\n\t * Closure compiler type information\n\t */\n\t\n\tfunction nodesetLinkingFn(\n\t /* angular.Scope */ scope,\n\t /* NodeList */ nodeList,\n\t /* Element */ rootElement,\n\t /* function(Function) */ boundTranscludeFn\n\t) {}\n\t\n\tfunction directiveLinkingFn(\n\t /* nodesetLinkingFn */ nodesetLinkingFn,\n\t /* angular.Scope */ scope,\n\t /* Node */ node,\n\t /* Element */ rootElement,\n\t /* function(Function) */ boundTranscludeFn\n\t) {}\n\t\n\tfunction tokenDifference(str1, str2) {\n\t var values = '',\n\t tokens1 = str1.split(/\\s+/),\n\t tokens2 = str2.split(/\\s+/);\n\t\n\t outer:\n\t for (var i = 0; i < tokens1.length; i++) {\n\t var token = tokens1[i];\n\t for (var j = 0; j < tokens2.length; j++) {\n\t if (token == tokens2[j]) continue outer;\n\t }\n\t values += (values.length > 0 ? ' ' : '') + token;\n\t }\n\t return values;\n\t}\n\t\n\tfunction removeComments(jqNodes) {\n\t jqNodes = jqLite(jqNodes);\n\t var i = jqNodes.length;\n\t\n\t if (i <= 1) {\n\t return jqNodes;\n\t }\n\t\n\t while (i--) {\n\t var node = jqNodes[i];\n\t if (node.nodeType === NODE_TYPE_COMMENT) {\n\t splice.call(jqNodes, i, 1);\n\t }\n\t }\n\t return jqNodes;\n\t}\n\t\n\tvar $controllerMinErr = minErr('$controller');\n\t\n\t\n\tvar CNTRL_REG = /^(\\S+)(\\s+as\\s+([\\w$]+))?$/;\n\tfunction identifierForController(controller, ident) {\n\t if (ident && isString(ident)) return ident;\n\t if (isString(controller)) {\n\t var match = CNTRL_REG.exec(controller);\n\t if (match) return match[3];\n\t }\n\t}\n\t\n\t\n\t/**\n\t * @ngdoc provider\n\t * @name $controllerProvider\n\t * @description\n\t * The {@link ng.$controller $controller service} is used by Angular to create new\n\t * controllers.\n\t *\n\t * This provider allows controller registration via the\n\t * {@link ng.$controllerProvider#register register} method.\n\t */\n\tfunction $ControllerProvider() {\n\t var controllers = {},\n\t globals = false;\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $controllerProvider#register\n\t * @param {string|Object} name Controller name, or an object map of controllers where the keys are\n\t * the names and the values are the constructors.\n\t * @param {Function|Array} constructor Controller constructor fn (optionally decorated with DI\n\t * annotations in the array notation).\n\t */\n\t this.register = function(name, constructor) {\n\t assertNotHasOwnProperty(name, 'controller');\n\t if (isObject(name)) {\n\t extend(controllers, name);\n\t } else {\n\t controllers[name] = constructor;\n\t }\n\t };\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $controllerProvider#allowGlobals\n\t * @description If called, allows `$controller` to find controller constructors on `window`\n\t */\n\t this.allowGlobals = function() {\n\t globals = true;\n\t };\n\t\n\t\n\t this.$get = ['$injector', '$window', function($injector, $window) {\n\t\n\t /**\n\t * @ngdoc service\n\t * @name $controller\n\t * @requires $injector\n\t *\n\t * @param {Function|string} constructor If called with a function then it's considered to be the\n\t * controller constructor function. Otherwise it's considered to be a string which is used\n\t * to retrieve the controller constructor using the following steps:\n\t *\n\t * * check if a controller with given name is registered via `$controllerProvider`\n\t * * check if evaluating the string on the current scope returns a constructor\n\t * * if $controllerProvider#allowGlobals, check `window[constructor]` on the global\n\t * `window` object (not recommended)\n\t *\n\t * The string can use the `controller as property` syntax, where the controller instance is published\n\t * as the specified property on the `scope`; the `scope` must be injected into `locals` param for this\n\t * to work correctly.\n\t *\n\t * @param {Object} locals Injection locals for Controller.\n\t * @return {Object} Instance of given controller.\n\t *\n\t * @description\n\t * `$controller` service is responsible for instantiating controllers.\n\t *\n\t * It's just a simple call to {@link auto.$injector $injector}, but extracted into\n\t * a service, so that one can override this service with [BC version](https://gist.github.com/1649788).\n\t */\n\t return function(expression, locals, later, ident) {\n\t // PRIVATE API:\n\t // param `later` --- indicates that the controller's constructor is invoked at a later time.\n\t // If true, $controller will allocate the object with the correct\n\t // prototype chain, but will not invoke the controller until a returned\n\t // callback is invoked.\n\t // param `ident` --- An optional label which overrides the label parsed from the controller\n\t // expression, if any.\n\t var instance, match, constructor, identifier;\n\t later = later === true;\n\t if (ident && isString(ident)) {\n\t identifier = ident;\n\t }\n\t\n\t if (isString(expression)) {\n\t match = expression.match(CNTRL_REG);\n\t if (!match) {\n\t throw $controllerMinErr('ctrlfmt',\n\t \"Badly formed controller string '{0}'. \" +\n\t \"Must match `__name__ as __id__` or `__name__`.\", expression);\n\t }\n\t constructor = match[1],\n\t identifier = identifier || match[3];\n\t expression = controllers.hasOwnProperty(constructor)\n\t ? controllers[constructor]\n\t : getter(locals.$scope, constructor, true) ||\n\t (globals ? getter($window, constructor, true) : undefined);\n\t\n\t assertArgFn(expression, constructor, true);\n\t }\n\t\n\t if (later) {\n\t // Instantiate controller later:\n\t // This machinery is used to create an instance of the object before calling the\n\t // controller's constructor itself.\n\t //\n\t // This allows properties to be added to the controller before the constructor is\n\t // invoked. Primarily, this is used for isolate scope bindings in $compile.\n\t //\n\t // This feature is not intended for use by applications, and is thus not documented\n\t // publicly.\n\t // Object creation: http://jsperf.com/create-constructor/2\n\t var controllerPrototype = (isArray(expression) ?\n\t expression[expression.length - 1] : expression).prototype;\n\t instance = Object.create(controllerPrototype || null);\n\t\n\t if (identifier) {\n\t addIdentifier(locals, identifier, instance, constructor || expression.name);\n\t }\n\t\n\t var instantiate;\n\t return instantiate = extend(function() {\n\t var result = $injector.invoke(expression, instance, locals, constructor);\n\t if (result !== instance && (isObject(result) || isFunction(result))) {\n\t instance = result;\n\t if (identifier) {\n\t // If result changed, re-assign controllerAs value to scope.\n\t addIdentifier(locals, identifier, instance, constructor || expression.name);\n\t }\n\t }\n\t return instance;\n\t }, {\n\t instance: instance,\n\t identifier: identifier\n\t });\n\t }\n\t\n\t instance = $injector.instantiate(expression, locals, constructor);\n\t\n\t if (identifier) {\n\t addIdentifier(locals, identifier, instance, constructor || expression.name);\n\t }\n\t\n\t return instance;\n\t };\n\t\n\t function addIdentifier(locals, identifier, instance, name) {\n\t if (!(locals && isObject(locals.$scope))) {\n\t throw minErr('$controller')('noscp',\n\t \"Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.\",\n\t name, identifier);\n\t }\n\t\n\t locals.$scope[identifier] = instance;\n\t }\n\t }];\n\t}\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $document\n\t * @requires $window\n\t *\n\t * @description\n\t * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object.\n\t *\n\t * @example\n\t \n\t \n\t
\n\t

$document title:

\n\t

window.document title:

\n\t
\n\t
\n\t \n\t angular.module('documentExample', [])\n\t .controller('ExampleController', ['$scope', '$document', function($scope, $document) {\n\t $scope.title = $document[0].title;\n\t $scope.windowTitle = angular.element(window.document)[0].title;\n\t }]);\n\t \n\t
\n\t */\n\tfunction $DocumentProvider() {\n\t this.$get = ['$window', function(window) {\n\t return jqLite(window.document);\n\t }];\n\t}\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $exceptionHandler\n\t * @requires ng.$log\n\t *\n\t * @description\n\t * Any uncaught exception in angular expressions is delegated to this service.\n\t * The default implementation simply delegates to `$log.error` which logs it into\n\t * the browser console.\n\t *\n\t * In unit tests, if `angular-mocks.js` is loaded, this service is overridden by\n\t * {@link ngMock.$exceptionHandler mock $exceptionHandler} which aids in testing.\n\t *\n\t * ## Example:\n\t *\n\t * ```js\n\t * angular.module('exceptionOverride', []).factory('$exceptionHandler', function() {\n\t * return function(exception, cause) {\n\t * exception.message += ' (caused by \"' + cause + '\")';\n\t * throw exception;\n\t * };\n\t * });\n\t * ```\n\t *\n\t * This example will override the normal action of `$exceptionHandler`, to make angular\n\t * exceptions fail hard when they happen, instead of just logging to the console.\n\t *\n\t *
\n\t * Note, that code executed in event-listeners (even those registered using jqLite's `on`/`bind`\n\t * methods) does not delegate exceptions to the {@link ng.$exceptionHandler $exceptionHandler}\n\t * (unless executed during a digest).\n\t *\n\t * If you wish, you can manually delegate exceptions, e.g.\n\t * `try { ... } catch(e) { $exceptionHandler(e); }`\n\t *\n\t * @param {Error} exception Exception associated with the error.\n\t * @param {string=} cause optional information about the context in which\n\t * the error was thrown.\n\t *\n\t */\n\tfunction $ExceptionHandlerProvider() {\n\t this.$get = ['$log', function($log) {\n\t return function(exception, cause) {\n\t $log.error.apply($log, arguments);\n\t };\n\t }];\n\t}\n\t\n\tvar $$ForceReflowProvider = function() {\n\t this.$get = ['$document', function($document) {\n\t return function(domNode) {\n\t //the line below will force the browser to perform a repaint so\n\t //that all the animated elements within the animation frame will\n\t //be properly updated and drawn on screen. This is required to\n\t //ensure that the preparation animation is properly flushed so that\n\t //the active state picks up from there. DO NOT REMOVE THIS LINE.\n\t //DO NOT OPTIMIZE THIS LINE. THE MINIFIER WILL REMOVE IT OTHERWISE WHICH\n\t //WILL RESULT IN AN UNPREDICTABLE BUG THAT IS VERY HARD TO TRACK DOWN AND\n\t //WILL TAKE YEARS AWAY FROM YOUR LIFE.\n\t if (domNode) {\n\t if (!domNode.nodeType && domNode instanceof jqLite) {\n\t domNode = domNode[0];\n\t }\n\t } else {\n\t domNode = $document[0].body;\n\t }\n\t return domNode.offsetWidth + 1;\n\t };\n\t }];\n\t};\n\t\n\tvar APPLICATION_JSON = 'application/json';\n\tvar CONTENT_TYPE_APPLICATION_JSON = {'Content-Type': APPLICATION_JSON + ';charset=utf-8'};\n\tvar JSON_START = /^\\[|^\\{(?!\\{)/;\n\tvar JSON_ENDS = {\n\t '[': /]$/,\n\t '{': /}$/\n\t};\n\tvar JSON_PROTECTION_PREFIX = /^\\)\\]\\}',?\\n/;\n\tvar $httpMinErr = minErr('$http');\n\tvar $httpMinErrLegacyFn = function(method) {\n\t return function() {\n\t throw $httpMinErr('legacy', 'The method `{0}` on the promise returned from `$http` has been disabled.', method);\n\t };\n\t};\n\t\n\tfunction serializeValue(v) {\n\t if (isObject(v)) {\n\t return isDate(v) ? v.toISOString() : toJson(v);\n\t }\n\t return v;\n\t}\n\t\n\t\n\tfunction $HttpParamSerializerProvider() {\n\t /**\n\t * @ngdoc service\n\t * @name $httpParamSerializer\n\t * @description\n\t *\n\t * Default {@link $http `$http`} params serializer that converts objects to strings\n\t * according to the following rules:\n\t *\n\t * * `{'foo': 'bar'}` results in `foo=bar`\n\t * * `{'foo': Date.now()}` results in `foo=2015-04-01T09%3A50%3A49.262Z` (`toISOString()` and encoded representation of a Date object)\n\t * * `{'foo': ['bar', 'baz']}` results in `foo=bar&foo=baz` (repeated key for each array element)\n\t * * `{'foo': {'bar':'baz'}}` results in `foo=%7B%22bar%22%3A%22baz%22%7D\"` (stringified and encoded representation of an object)\n\t *\n\t * Note that serializer will sort the request parameters alphabetically.\n\t * */\n\t\n\t this.$get = function() {\n\t return function ngParamSerializer(params) {\n\t if (!params) return '';\n\t var parts = [];\n\t forEachSorted(params, function(value, key) {\n\t if (value === null || isUndefined(value)) return;\n\t if (isArray(value)) {\n\t forEach(value, function(v, k) {\n\t parts.push(encodeUriQuery(key) + '=' + encodeUriQuery(serializeValue(v)));\n\t });\n\t } else {\n\t parts.push(encodeUriQuery(key) + '=' + encodeUriQuery(serializeValue(value)));\n\t }\n\t });\n\t\n\t return parts.join('&');\n\t };\n\t };\n\t}\n\t\n\tfunction $HttpParamSerializerJQLikeProvider() {\n\t /**\n\t * @ngdoc service\n\t * @name $httpParamSerializerJQLike\n\t * @description\n\t *\n\t * Alternative {@link $http `$http`} params serializer that follows\n\t * jQuery's [`param()`](http://api.jquery.com/jquery.param/) method logic.\n\t * The serializer will also sort the params alphabetically.\n\t *\n\t * To use it for serializing `$http` request parameters, set it as the `paramSerializer` property:\n\t *\n\t * ```js\n\t * $http({\n\t * url: myUrl,\n\t * method: 'GET',\n\t * params: myParams,\n\t * paramSerializer: '$httpParamSerializerJQLike'\n\t * });\n\t * ```\n\t *\n\t * It is also possible to set it as the default `paramSerializer` in the\n\t * {@link $httpProvider#defaults `$httpProvider`}.\n\t *\n\t * Additionally, you can inject the serializer and use it explicitly, for example to serialize\n\t * form data for submission:\n\t *\n\t * ```js\n\t * .controller(function($http, $httpParamSerializerJQLike) {\n\t * //...\n\t *\n\t * $http({\n\t * url: myUrl,\n\t * method: 'POST',\n\t * data: $httpParamSerializerJQLike(myData),\n\t * headers: {\n\t * 'Content-Type': 'application/x-www-form-urlencoded'\n\t * }\n\t * });\n\t *\n\t * });\n\t * ```\n\t *\n\t * */\n\t this.$get = function() {\n\t return function jQueryLikeParamSerializer(params) {\n\t if (!params) return '';\n\t var parts = [];\n\t serialize(params, '', true);\n\t return parts.join('&');\n\t\n\t function serialize(toSerialize, prefix, topLevel) {\n\t if (toSerialize === null || isUndefined(toSerialize)) return;\n\t if (isArray(toSerialize)) {\n\t forEach(toSerialize, function(value, index) {\n\t serialize(value, prefix + '[' + (isObject(value) ? index : '') + ']');\n\t });\n\t } else if (isObject(toSerialize) && !isDate(toSerialize)) {\n\t forEachSorted(toSerialize, function(value, key) {\n\t serialize(value, prefix +\n\t (topLevel ? '' : '[') +\n\t key +\n\t (topLevel ? '' : ']'));\n\t });\n\t } else {\n\t parts.push(encodeUriQuery(prefix) + '=' + encodeUriQuery(serializeValue(toSerialize)));\n\t }\n\t }\n\t };\n\t };\n\t}\n\t\n\tfunction defaultHttpResponseTransform(data, headers) {\n\t if (isString(data)) {\n\t // Strip json vulnerability protection prefix and trim whitespace\n\t var tempData = data.replace(JSON_PROTECTION_PREFIX, '').trim();\n\t\n\t if (tempData) {\n\t var contentType = headers('Content-Type');\n\t if ((contentType && (contentType.indexOf(APPLICATION_JSON) === 0)) || isJsonLike(tempData)) {\n\t data = fromJson(tempData);\n\t }\n\t }\n\t }\n\t\n\t return data;\n\t}\n\t\n\tfunction isJsonLike(str) {\n\t var jsonStart = str.match(JSON_START);\n\t return jsonStart && JSON_ENDS[jsonStart[0]].test(str);\n\t}\n\t\n\t/**\n\t * Parse headers into key value object\n\t *\n\t * @param {string} headers Raw headers as a string\n\t * @returns {Object} Parsed headers as key value object\n\t */\n\tfunction parseHeaders(headers) {\n\t var parsed = createMap(), i;\n\t\n\t function fillInParsed(key, val) {\n\t if (key) {\n\t parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n\t }\n\t }\n\t\n\t if (isString(headers)) {\n\t forEach(headers.split('\\n'), function(line) {\n\t i = line.indexOf(':');\n\t fillInParsed(lowercase(trim(line.substr(0, i))), trim(line.substr(i + 1)));\n\t });\n\t } else if (isObject(headers)) {\n\t forEach(headers, function(headerVal, headerKey) {\n\t fillInParsed(lowercase(headerKey), trim(headerVal));\n\t });\n\t }\n\t\n\t return parsed;\n\t}\n\t\n\t\n\t/**\n\t * Returns a function that provides access to parsed headers.\n\t *\n\t * Headers are lazy parsed when first requested.\n\t * @see parseHeaders\n\t *\n\t * @param {(string|Object)} headers Headers to provide access to.\n\t * @returns {function(string=)} Returns a getter function which if called with:\n\t *\n\t * - if called with single an argument returns a single header value or null\n\t * - if called with no arguments returns an object containing all headers.\n\t */\n\tfunction headersGetter(headers) {\n\t var headersObj;\n\t\n\t return function(name) {\n\t if (!headersObj) headersObj = parseHeaders(headers);\n\t\n\t if (name) {\n\t var value = headersObj[lowercase(name)];\n\t if (value === void 0) {\n\t value = null;\n\t }\n\t return value;\n\t }\n\t\n\t return headersObj;\n\t };\n\t}\n\t\n\t\n\t/**\n\t * Chain all given functions\n\t *\n\t * This function is used for both request and response transforming\n\t *\n\t * @param {*} data Data to transform.\n\t * @param {function(string=)} headers HTTP headers getter fn.\n\t * @param {number} status HTTP status code of the response.\n\t * @param {(Function|Array.)} fns Function or an array of functions.\n\t * @returns {*} Transformed data.\n\t */\n\tfunction transformData(data, headers, status, fns) {\n\t if (isFunction(fns)) {\n\t return fns(data, headers, status);\n\t }\n\t\n\t forEach(fns, function(fn) {\n\t data = fn(data, headers, status);\n\t });\n\t\n\t return data;\n\t}\n\t\n\t\n\tfunction isSuccess(status) {\n\t return 200 <= status && status < 300;\n\t}\n\t\n\t\n\t/**\n\t * @ngdoc provider\n\t * @name $httpProvider\n\t * @description\n\t * Use `$httpProvider` to change the default behavior of the {@link ng.$http $http} service.\n\t * */\n\tfunction $HttpProvider() {\n\t /**\n\t * @ngdoc property\n\t * @name $httpProvider#defaults\n\t * @description\n\t *\n\t * Object containing default values for all {@link ng.$http $http} requests.\n\t *\n\t * - **`defaults.cache`** - {boolean|Object} - A boolean value or object created with\n\t * {@link ng.$cacheFactory `$cacheFactory`} to enable or disable caching of HTTP responses\n\t * by default. See {@link $http#caching $http Caching} for more information.\n\t *\n\t * - **`defaults.xsrfCookieName`** - {string} - Name of cookie containing the XSRF token.\n\t * Defaults value is `'XSRF-TOKEN'`.\n\t *\n\t * - **`defaults.xsrfHeaderName`** - {string} - Name of HTTP header to populate with the\n\t * XSRF token. Defaults value is `'X-XSRF-TOKEN'`.\n\t *\n\t * - **`defaults.headers`** - {Object} - Default headers for all $http requests.\n\t * Refer to {@link ng.$http#setting-http-headers $http} for documentation on\n\t * setting default headers.\n\t * - **`defaults.headers.common`**\n\t * - **`defaults.headers.post`**\n\t * - **`defaults.headers.put`**\n\t * - **`defaults.headers.patch`**\n\t *\n\t *\n\t * - **`defaults.paramSerializer`** - `{string|function(Object):string}` - A function\n\t * used to the prepare string representation of request parameters (specified as an object).\n\t * If specified as string, it is interpreted as a function registered with the {@link auto.$injector $injector}.\n\t * Defaults to {@link ng.$httpParamSerializer $httpParamSerializer}.\n\t *\n\t **/\n\t var defaults = this.defaults = {\n\t // transform incoming response data\n\t transformResponse: [defaultHttpResponseTransform],\n\t\n\t // transform outgoing request data\n\t transformRequest: [function(d) {\n\t return isObject(d) && !isFile(d) && !isBlob(d) && !isFormData(d) ? toJson(d) : d;\n\t }],\n\t\n\t // default headers\n\t headers: {\n\t common: {\n\t 'Accept': 'application/json, text/plain, */*'\n\t },\n\t post: shallowCopy(CONTENT_TYPE_APPLICATION_JSON),\n\t put: shallowCopy(CONTENT_TYPE_APPLICATION_JSON),\n\t patch: shallowCopy(CONTENT_TYPE_APPLICATION_JSON)\n\t },\n\t\n\t xsrfCookieName: 'XSRF-TOKEN',\n\t xsrfHeaderName: 'X-XSRF-TOKEN',\n\t\n\t paramSerializer: '$httpParamSerializer'\n\t };\n\t\n\t var useApplyAsync = false;\n\t /**\n\t * @ngdoc method\n\t * @name $httpProvider#useApplyAsync\n\t * @description\n\t *\n\t * Configure $http service to combine processing of multiple http responses received at around\n\t * the same time via {@link ng.$rootScope.Scope#$applyAsync $rootScope.$applyAsync}. This can result in\n\t * significant performance improvement for bigger applications that make many HTTP requests\n\t * concurrently (common during application bootstrap).\n\t *\n\t * Defaults to false. If no value is specified, returns the current configured value.\n\t *\n\t * @param {boolean=} value If true, when requests are loaded, they will schedule a deferred\n\t * \"apply\" on the next tick, giving time for subsequent requests in a roughly ~10ms window\n\t * to load and share the same digest cycle.\n\t *\n\t * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.\n\t * otherwise, returns the current configured value.\n\t **/\n\t this.useApplyAsync = function(value) {\n\t if (isDefined(value)) {\n\t useApplyAsync = !!value;\n\t return this;\n\t }\n\t return useApplyAsync;\n\t };\n\t\n\t var useLegacyPromise = true;\n\t /**\n\t * @ngdoc method\n\t * @name $httpProvider#useLegacyPromiseExtensions\n\t * @description\n\t *\n\t * Configure `$http` service to return promises without the shorthand methods `success` and `error`.\n\t * This should be used to make sure that applications work without these methods.\n\t *\n\t * Defaults to true. If no value is specified, returns the current configured value.\n\t *\n\t * @param {boolean=} value If true, `$http` will return a promise with the deprecated legacy `success` and `error` methods.\n\t *\n\t * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.\n\t * otherwise, returns the current configured value.\n\t **/\n\t this.useLegacyPromiseExtensions = function(value) {\n\t if (isDefined(value)) {\n\t useLegacyPromise = !!value;\n\t return this;\n\t }\n\t return useLegacyPromise;\n\t };\n\t\n\t /**\n\t * @ngdoc property\n\t * @name $httpProvider#interceptors\n\t * @description\n\t *\n\t * Array containing service factories for all synchronous or asynchronous {@link ng.$http $http}\n\t * pre-processing of request or postprocessing of responses.\n\t *\n\t * These service factories are ordered by request, i.e. they are applied in the same order as the\n\t * array, on request, but reverse order, on response.\n\t *\n\t * {@link ng.$http#interceptors Interceptors detailed info}\n\t **/\n\t var interceptorFactories = this.interceptors = [];\n\t\n\t this.$get = ['$httpBackend', '$$cookieReader', '$cacheFactory', '$rootScope', '$q', '$injector',\n\t function($httpBackend, $$cookieReader, $cacheFactory, $rootScope, $q, $injector) {\n\t\n\t var defaultCache = $cacheFactory('$http');\n\t\n\t /**\n\t * Make sure that default param serializer is exposed as a function\n\t */\n\t defaults.paramSerializer = isString(defaults.paramSerializer) ?\n\t $injector.get(defaults.paramSerializer) : defaults.paramSerializer;\n\t\n\t /**\n\t * Interceptors stored in reverse order. Inner interceptors before outer interceptors.\n\t * The reversal is needed so that we can build up the interception chain around the\n\t * server request.\n\t */\n\t var reversedInterceptors = [];\n\t\n\t forEach(interceptorFactories, function(interceptorFactory) {\n\t reversedInterceptors.unshift(isString(interceptorFactory)\n\t ? $injector.get(interceptorFactory) : $injector.invoke(interceptorFactory));\n\t });\n\t\n\t /**\n\t * @ngdoc service\n\t * @kind function\n\t * @name $http\n\t * @requires ng.$httpBackend\n\t * @requires $cacheFactory\n\t * @requires $rootScope\n\t * @requires $q\n\t * @requires $injector\n\t *\n\t * @description\n\t * The `$http` service is a core Angular service that facilitates communication with the remote\n\t * HTTP servers via the browser's [XMLHttpRequest](https://developer.mozilla.org/en/xmlhttprequest)\n\t * object or via [JSONP](http://en.wikipedia.org/wiki/JSONP).\n\t *\n\t * For unit testing applications that use `$http` service, see\n\t * {@link ngMock.$httpBackend $httpBackend mock}.\n\t *\n\t * For a higher level of abstraction, please check out the {@link ngResource.$resource\n\t * $resource} service.\n\t *\n\t * The $http API is based on the {@link ng.$q deferred/promise APIs} exposed by\n\t * the $q service. While for simple usage patterns this doesn't matter much, for advanced usage\n\t * it is important to familiarize yourself with these APIs and the guarantees they provide.\n\t *\n\t *\n\t * ## General usage\n\t * The `$http` service is a function which takes a single argument — a {@link $http#usage configuration object} —\n\t * that is used to generate an HTTP request and returns a {@link ng.$q promise}.\n\t *\n\t * ```js\n\t * // Simple GET request example:\n\t * $http({\n\t * method: 'GET',\n\t * url: '/someUrl'\n\t * }).then(function successCallback(response) {\n\t * // this callback will be called asynchronously\n\t * // when the response is available\n\t * }, function errorCallback(response) {\n\t * // called asynchronously if an error occurs\n\t * // or server returns response with an error status.\n\t * });\n\t * ```\n\t *\n\t * The response object has these properties:\n\t *\n\t * - **data** – `{string|Object}` – The response body transformed with the transform\n\t * functions.\n\t * - **status** – `{number}` – HTTP status code of the response.\n\t * - **headers** – `{function([headerName])}` – Header getter function.\n\t * - **config** – `{Object}` – The configuration object that was used to generate the request.\n\t * - **statusText** – `{string}` – HTTP status text of the response.\n\t *\n\t * A response status code between 200 and 299 is considered a success status and\n\t * will result in the success callback being called. Note that if the response is a redirect,\n\t * XMLHttpRequest will transparently follow it, meaning that the error callback will not be\n\t * called for such responses.\n\t *\n\t *\n\t * ## Shortcut methods\n\t *\n\t * Shortcut methods are also available. All shortcut methods require passing in the URL, and\n\t * request data must be passed in for POST/PUT requests. An optional config can be passed as the\n\t * last argument.\n\t *\n\t * ```js\n\t * $http.get('/someUrl', config).then(successCallback, errorCallback);\n\t * $http.post('/someUrl', data, config).then(successCallback, errorCallback);\n\t * ```\n\t *\n\t * Complete list of shortcut methods:\n\t *\n\t * - {@link ng.$http#get $http.get}\n\t * - {@link ng.$http#head $http.head}\n\t * - {@link ng.$http#post $http.post}\n\t * - {@link ng.$http#put $http.put}\n\t * - {@link ng.$http#delete $http.delete}\n\t * - {@link ng.$http#jsonp $http.jsonp}\n\t * - {@link ng.$http#patch $http.patch}\n\t *\n\t *\n\t * ## Writing Unit Tests that use $http\n\t * When unit testing (using {@link ngMock ngMock}), it is necessary to call\n\t * {@link ngMock.$httpBackend#flush $httpBackend.flush()} to flush each pending\n\t * request using trained responses.\n\t *\n\t * ```\n\t * $httpBackend.expectGET(...);\n\t * $http.get(...);\n\t * $httpBackend.flush();\n\t * ```\n\t *\n\t * ## Deprecation Notice\n\t *
\n\t * The `$http` legacy promise methods `success` and `error` have been deprecated.\n\t * Use the standard `then` method instead.\n\t * If {@link $httpProvider#useLegacyPromiseExtensions `$httpProvider.useLegacyPromiseExtensions`} is set to\n\t * `false` then these methods will throw {@link $http:legacy `$http/legacy`} error.\n\t *
\n\t *\n\t * ## Setting HTTP Headers\n\t *\n\t * The $http service will automatically add certain HTTP headers to all requests. These defaults\n\t * can be fully configured by accessing the `$httpProvider.defaults.headers` configuration\n\t * object, which currently contains this default configuration:\n\t *\n\t * - `$httpProvider.defaults.headers.common` (headers that are common for all requests):\n\t * - `Accept: application/json, text/plain, * / *`\n\t * - `$httpProvider.defaults.headers.post`: (header defaults for POST requests)\n\t * - `Content-Type: application/json`\n\t * - `$httpProvider.defaults.headers.put` (header defaults for PUT requests)\n\t * - `Content-Type: application/json`\n\t *\n\t * To add or overwrite these defaults, simply add or remove a property from these configuration\n\t * objects. To add headers for an HTTP method other than POST or PUT, simply add a new object\n\t * with the lowercased HTTP method name as the key, e.g.\n\t * `$httpProvider.defaults.headers.get = { 'My-Header' : 'value' }`.\n\t *\n\t * The defaults can also be set at runtime via the `$http.defaults` object in the same\n\t * fashion. For example:\n\t *\n\t * ```\n\t * module.run(function($http) {\n\t * $http.defaults.headers.common.Authorization = 'Basic YmVlcDpib29w'\n\t * });\n\t * ```\n\t *\n\t * In addition, you can supply a `headers` property in the config object passed when\n\t * calling `$http(config)`, which overrides the defaults without changing them globally.\n\t *\n\t * To explicitly remove a header automatically added via $httpProvider.defaults.headers on a per request basis,\n\t * Use the `headers` property, setting the desired header to `undefined`. For example:\n\t *\n\t * ```js\n\t * var req = {\n\t * method: 'POST',\n\t * url: 'http://example.com',\n\t * headers: {\n\t * 'Content-Type': undefined\n\t * },\n\t * data: { test: 'test' }\n\t * }\n\t *\n\t * $http(req).then(function(){...}, function(){...});\n\t * ```\n\t *\n\t * ## Transforming Requests and Responses\n\t *\n\t * Both requests and responses can be transformed using transformation functions: `transformRequest`\n\t * and `transformResponse`. These properties can be a single function that returns\n\t * the transformed value (`function(data, headersGetter, status)`) or an array of such transformation functions,\n\t * which allows you to `push` or `unshift` a new transformation function into the transformation chain.\n\t *\n\t *
\n\t * **Note:** Angular does not make a copy of the `data` parameter before it is passed into the `transformRequest` pipeline.\n\t * That means changes to the properties of `data` are not local to the transform function (since Javascript passes objects by reference).\n\t * For example, when calling `$http.get(url, $scope.myObject)`, modifications to the object's properties in a transformRequest\n\t * function will be reflected on the scope and in any templates where the object is data-bound.\n\t * To prevent this, transform functions should have no side-effects.\n\t * If you need to modify properties, it is recommended to make a copy of the data, or create new object to return.\n\t *
\n\t *\n\t * ### Default Transformations\n\t *\n\t * The `$httpProvider` provider and `$http` service expose `defaults.transformRequest` and\n\t * `defaults.transformResponse` properties. If a request does not provide its own transformations\n\t * then these will be applied.\n\t *\n\t * You can augment or replace the default transformations by modifying these properties by adding to or\n\t * replacing the array.\n\t *\n\t * Angular provides the following default transformations:\n\t *\n\t * Request transformations (`$httpProvider.defaults.transformRequest` and `$http.defaults.transformRequest`):\n\t *\n\t * - If the `data` property of the request configuration object contains an object, serialize it\n\t * into JSON format.\n\t *\n\t * Response transformations (`$httpProvider.defaults.transformResponse` and `$http.defaults.transformResponse`):\n\t *\n\t * - If XSRF prefix is detected, strip it (see Security Considerations section below).\n\t * - If JSON response is detected, deserialize it using a JSON parser.\n\t *\n\t *\n\t * ### Overriding the Default Transformations Per Request\n\t *\n\t * If you wish override the request/response transformations only for a single request then provide\n\t * `transformRequest` and/or `transformResponse` properties on the configuration object passed\n\t * into `$http`.\n\t *\n\t * Note that if you provide these properties on the config object the default transformations will be\n\t * overwritten. If you wish to augment the default transformations then you must include them in your\n\t * local transformation array.\n\t *\n\t * The following code demonstrates adding a new response transformation to be run after the default response\n\t * transformations have been run.\n\t *\n\t * ```js\n\t * function appendTransform(defaults, transform) {\n\t *\n\t * // We can't guarantee that the default transformation is an array\n\t * defaults = angular.isArray(defaults) ? defaults : [defaults];\n\t *\n\t * // Append the new transformation to the defaults\n\t * return defaults.concat(transform);\n\t * }\n\t *\n\t * $http({\n\t * url: '...',\n\t * method: 'GET',\n\t * transformResponse: appendTransform($http.defaults.transformResponse, function(value) {\n\t * return doTransform(value);\n\t * })\n\t * });\n\t * ```\n\t *\n\t *\n\t * ## Caching\n\t *\n\t * {@link ng.$http `$http`} responses are not cached by default. To enable caching, you must\n\t * set the config.cache value or the default cache value to TRUE or to a cache object (created\n\t * with {@link ng.$cacheFactory `$cacheFactory`}). If defined, the value of config.cache takes\n\t * precedence over the default cache value.\n\t *\n\t * In order to:\n\t * * cache all responses - set the default cache value to TRUE or to a cache object\n\t * * cache a specific response - set config.cache value to TRUE or to a cache object\n\t *\n\t * If caching is enabled, but neither the default cache nor config.cache are set to a cache object,\n\t * then the default `$cacheFactory($http)` object is used.\n\t *\n\t * The default cache value can be set by updating the\n\t * {@link ng.$http#defaults `$http.defaults.cache`} property or the\n\t * {@link $httpProvider#defaults `$httpProvider.defaults.cache`} property.\n\t *\n\t * When caching is enabled, {@link ng.$http `$http`} stores the response from the server using\n\t * the relevant cache object. The next time the same request is made, the response is returned\n\t * from the cache without sending a request to the server.\n\t *\n\t * Take note that:\n\t *\n\t * * Only GET and JSONP requests are cached.\n\t * * The cache key is the request URL including search parameters; headers are not considered.\n\t * * Cached responses are returned asynchronously, in the same way as responses from the server.\n\t * * If multiple identical requests are made using the same cache, which is not yet populated,\n\t * one request will be made to the server and remaining requests will return the same response.\n\t * * A cache-control header on the response does not affect if or how responses are cached.\n\t *\n\t *\n\t * ## Interceptors\n\t *\n\t * Before you start creating interceptors, be sure to understand the\n\t * {@link ng.$q $q and deferred/promise APIs}.\n\t *\n\t * For purposes of global error handling, authentication, or any kind of synchronous or\n\t * asynchronous pre-processing of request or postprocessing of responses, it is desirable to be\n\t * able to intercept requests before they are handed to the server and\n\t * responses before they are handed over to the application code that\n\t * initiated these requests. The interceptors leverage the {@link ng.$q\n\t * promise APIs} to fulfill this need for both synchronous and asynchronous pre-processing.\n\t *\n\t * The interceptors are service factories that are registered with the `$httpProvider` by\n\t * adding them to the `$httpProvider.interceptors` array. The factory is called and\n\t * injected with dependencies (if specified) and returns the interceptor.\n\t *\n\t * There are two kinds of interceptors (and two kinds of rejection interceptors):\n\t *\n\t * * `request`: interceptors get called with a http {@link $http#usage config} object. The function is free to\n\t * modify the `config` object or create a new one. The function needs to return the `config`\n\t * object directly, or a promise containing the `config` or a new `config` object.\n\t * * `requestError`: interceptor gets called when a previous interceptor threw an error or\n\t * resolved with a rejection.\n\t * * `response`: interceptors get called with http `response` object. The function is free to\n\t * modify the `response` object or create a new one. The function needs to return the `response`\n\t * object directly, or as a promise containing the `response` or a new `response` object.\n\t * * `responseError`: interceptor gets called when a previous interceptor threw an error or\n\t * resolved with a rejection.\n\t *\n\t *\n\t * ```js\n\t * // register the interceptor as a service\n\t * $provide.factory('myHttpInterceptor', function($q, dependency1, dependency2) {\n\t * return {\n\t * // optional method\n\t * 'request': function(config) {\n\t * // do something on success\n\t * return config;\n\t * },\n\t *\n\t * // optional method\n\t * 'requestError': function(rejection) {\n\t * // do something on error\n\t * if (canRecover(rejection)) {\n\t * return responseOrNewPromise\n\t * }\n\t * return $q.reject(rejection);\n\t * },\n\t *\n\t *\n\t *\n\t * // optional method\n\t * 'response': function(response) {\n\t * // do something on success\n\t * return response;\n\t * },\n\t *\n\t * // optional method\n\t * 'responseError': function(rejection) {\n\t * // do something on error\n\t * if (canRecover(rejection)) {\n\t * return responseOrNewPromise\n\t * }\n\t * return $q.reject(rejection);\n\t * }\n\t * };\n\t * });\n\t *\n\t * $httpProvider.interceptors.push('myHttpInterceptor');\n\t *\n\t *\n\t * // alternatively, register the interceptor via an anonymous factory\n\t * $httpProvider.interceptors.push(function($q, dependency1, dependency2) {\n\t * return {\n\t * 'request': function(config) {\n\t * // same as above\n\t * },\n\t *\n\t * 'response': function(response) {\n\t * // same as above\n\t * }\n\t * };\n\t * });\n\t * ```\n\t *\n\t * ## Security Considerations\n\t *\n\t * When designing web applications, consider security threats from:\n\t *\n\t * - [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx)\n\t * - [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery)\n\t *\n\t * Both server and the client must cooperate in order to eliminate these threats. Angular comes\n\t * pre-configured with strategies that address these issues, but for this to work backend server\n\t * cooperation is required.\n\t *\n\t * ### JSON Vulnerability Protection\n\t *\n\t * A [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx)\n\t * allows third party website to turn your JSON resource URL into\n\t * [JSONP](http://en.wikipedia.org/wiki/JSONP) request under some conditions. To\n\t * counter this your server can prefix all JSON requests with following string `\")]}',\\n\"`.\n\t * Angular will automatically strip the prefix before processing it as JSON.\n\t *\n\t * For example if your server needs to return:\n\t * ```js\n\t * ['one','two']\n\t * ```\n\t *\n\t * which is vulnerable to attack, your server can return:\n\t * ```js\n\t * )]}',\n\t * ['one','two']\n\t * ```\n\t *\n\t * Angular will strip the prefix, before processing the JSON.\n\t *\n\t *\n\t * ### Cross Site Request Forgery (XSRF) Protection\n\t *\n\t * [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery) is an attack technique by\n\t * which the attacker can trick an authenticated user into unknowingly executing actions on your\n\t * website. Angular provides a mechanism to counter XSRF. When performing XHR requests, the\n\t * $http service reads a token from a cookie (by default, `XSRF-TOKEN`) and sets it as an HTTP\n\t * header (`X-XSRF-TOKEN`). Since only JavaScript that runs on your domain could read the\n\t * cookie, your server can be assured that the XHR came from JavaScript running on your domain.\n\t * The header will not be set for cross-domain requests.\n\t *\n\t * To take advantage of this, your server needs to set a token in a JavaScript readable session\n\t * cookie called `XSRF-TOKEN` on the first HTTP GET request. On subsequent XHR requests the\n\t * server can verify that the cookie matches `X-XSRF-TOKEN` HTTP header, and therefore be sure\n\t * that only JavaScript running on your domain could have sent the request. The token must be\n\t * unique for each user and must be verifiable by the server (to prevent the JavaScript from\n\t * making up its own tokens). We recommend that the token is a digest of your site's\n\t * authentication cookie with a [salt](https://en.wikipedia.org/wiki/Salt_(cryptography))\n\t * for added security.\n\t *\n\t * The name of the headers can be specified using the xsrfHeaderName and xsrfCookieName\n\t * properties of either $httpProvider.defaults at config-time, $http.defaults at run-time,\n\t * or the per-request config object.\n\t *\n\t * In order to prevent collisions in environments where multiple Angular apps share the\n\t * same domain or subdomain, we recommend that each application uses unique cookie name.\n\t *\n\t * @param {object} config Object describing the request to be made and how it should be\n\t * processed. The object has following properties:\n\t *\n\t * - **method** – `{string}` – HTTP method (e.g. 'GET', 'POST', etc)\n\t * - **url** – `{string}` – Absolute or relative URL of the resource that is being requested.\n\t * - **params** – `{Object.}` – Map of strings or objects which will be serialized\n\t * with the `paramSerializer` and appended as GET parameters.\n\t * - **data** – `{string|Object}` – Data to be sent as the request message data.\n\t * - **headers** – `{Object}` – Map of strings or functions which return strings representing\n\t * HTTP headers to send to the server. If the return value of a function is null, the\n\t * header will not be sent. Functions accept a config object as an argument.\n\t * - **xsrfHeaderName** – `{string}` – Name of HTTP header to populate with the XSRF token.\n\t * - **xsrfCookieName** – `{string}` – Name of cookie containing the XSRF token.\n\t * - **transformRequest** –\n\t * `{function(data, headersGetter)|Array.}` –\n\t * transform function or an array of such functions. The transform function takes the http\n\t * request body and headers and returns its transformed (typically serialized) version.\n\t * See {@link ng.$http#overriding-the-default-transformations-per-request\n\t * Overriding the Default Transformations}\n\t * - **transformResponse** –\n\t * `{function(data, headersGetter, status)|Array.}` –\n\t * transform function or an array of such functions. The transform function takes the http\n\t * response body, headers and status and returns its transformed (typically deserialized) version.\n\t * See {@link ng.$http#overriding-the-default-transformations-per-request\n\t * Overriding the Default Transformations}\n\t * - **paramSerializer** - `{string|function(Object):string}` - A function used to\n\t * prepare the string representation of request parameters (specified as an object).\n\t * If specified as string, it is interpreted as function registered with the\n\t * {@link $injector $injector}, which means you can create your own serializer\n\t * by registering it as a {@link auto.$provide#service service}.\n\t * The default serializer is the {@link $httpParamSerializer $httpParamSerializer};\n\t * alternatively, you can use the {@link $httpParamSerializerJQLike $httpParamSerializerJQLike}\n\t * - **cache** – `{boolean|Object}` – A boolean value or object created with\n\t * {@link ng.$cacheFactory `$cacheFactory`} to enable or disable caching of the HTTP response.\n\t * See {@link $http#caching $http Caching} for more information.\n\t * - **timeout** – `{number|Promise}` – timeout in milliseconds, or {@link ng.$q promise}\n\t * that should abort the request when resolved.\n\t * - **withCredentials** - `{boolean}` - whether to set the `withCredentials` flag on the\n\t * XHR object. See [requests with credentials](https://developer.mozilla.org/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials)\n\t * for more information.\n\t * - **responseType** - `{string}` - see\n\t * [XMLHttpRequest.responseType](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#xmlhttprequest-responsetype).\n\t *\n\t * @returns {HttpPromise} Returns a {@link ng.$q `Promise}` that will be resolved to a response object\n\t * when the request succeeds or fails.\n\t *\n\t *\n\t * @property {Array.} pendingRequests Array of config objects for currently pending\n\t * requests. This is primarily meant to be used for debugging purposes.\n\t *\n\t *\n\t * @example\n\t\n\t\n\t
\n\t \n\t \n\t
\n\t \n\t \n\t \n\t
http status code: {{status}}
\n\t
http response data: {{data}}
\n\t
\n\t
\n\t\n\t angular.module('httpExample', [])\n\t .controller('FetchController', ['$scope', '$http', '$templateCache',\n\t function($scope, $http, $templateCache) {\n\t $scope.method = 'GET';\n\t $scope.url = 'http-hello.html';\n\t\n\t $scope.fetch = function() {\n\t $scope.code = null;\n\t $scope.response = null;\n\t\n\t $http({method: $scope.method, url: $scope.url, cache: $templateCache}).\n\t then(function(response) {\n\t $scope.status = response.status;\n\t $scope.data = response.data;\n\t }, function(response) {\n\t $scope.data = response.data || \"Request failed\";\n\t $scope.status = response.status;\n\t });\n\t };\n\t\n\t $scope.updateModel = function(method, url) {\n\t $scope.method = method;\n\t $scope.url = url;\n\t };\n\t }]);\n\t\n\t\n\t Hello, $http!\n\t\n\t\n\t var status = element(by.binding('status'));\n\t var data = element(by.binding('data'));\n\t var fetchBtn = element(by.id('fetchbtn'));\n\t var sampleGetBtn = element(by.id('samplegetbtn'));\n\t var sampleJsonpBtn = element(by.id('samplejsonpbtn'));\n\t var invalidJsonpBtn = element(by.id('invalidjsonpbtn'));\n\t\n\t it('should make an xhr GET request', function() {\n\t sampleGetBtn.click();\n\t fetchBtn.click();\n\t expect(status.getText()).toMatch('200');\n\t expect(data.getText()).toMatch(/Hello, \\$http!/);\n\t });\n\t\n\t// Commented out due to flakes. See https://github.com/angular/angular.js/issues/9185\n\t// it('should make a JSONP request to angularjs.org', function() {\n\t// sampleJsonpBtn.click();\n\t// fetchBtn.click();\n\t// expect(status.getText()).toMatch('200');\n\t// expect(data.getText()).toMatch(/Super Hero!/);\n\t// });\n\t\n\t it('should make JSONP request to invalid URL and invoke the error handler',\n\t function() {\n\t invalidJsonpBtn.click();\n\t fetchBtn.click();\n\t expect(status.getText()).toMatch('0');\n\t expect(data.getText()).toMatch('Request failed');\n\t });\n\t\n\t
\n\t */\n\t function $http(requestConfig) {\n\t\n\t if (!angular.isObject(requestConfig)) {\n\t throw minErr('$http')('badreq', 'Http request configuration must be an object. Received: {0}', requestConfig);\n\t }\n\t\n\t if (!isString(requestConfig.url)) {\n\t throw minErr('$http')('badreq', 'Http request configuration url must be a string. Received: {0}', requestConfig.url);\n\t }\n\t\n\t var config = extend({\n\t method: 'get',\n\t transformRequest: defaults.transformRequest,\n\t transformResponse: defaults.transformResponse,\n\t paramSerializer: defaults.paramSerializer\n\t }, requestConfig);\n\t\n\t config.headers = mergeHeaders(requestConfig);\n\t config.method = uppercase(config.method);\n\t config.paramSerializer = isString(config.paramSerializer) ?\n\t $injector.get(config.paramSerializer) : config.paramSerializer;\n\t\n\t var serverRequest = function(config) {\n\t var headers = config.headers;\n\t var reqData = transformData(config.data, headersGetter(headers), undefined, config.transformRequest);\n\t\n\t // strip content-type if data is undefined\n\t if (isUndefined(reqData)) {\n\t forEach(headers, function(value, header) {\n\t if (lowercase(header) === 'content-type') {\n\t delete headers[header];\n\t }\n\t });\n\t }\n\t\n\t if (isUndefined(config.withCredentials) && !isUndefined(defaults.withCredentials)) {\n\t config.withCredentials = defaults.withCredentials;\n\t }\n\t\n\t // send request\n\t return sendReq(config, reqData).then(transformResponse, transformResponse);\n\t };\n\t\n\t var chain = [serverRequest, undefined];\n\t var promise = $q.when(config);\n\t\n\t // apply interceptors\n\t forEach(reversedInterceptors, function(interceptor) {\n\t if (interceptor.request || interceptor.requestError) {\n\t chain.unshift(interceptor.request, interceptor.requestError);\n\t }\n\t if (interceptor.response || interceptor.responseError) {\n\t chain.push(interceptor.response, interceptor.responseError);\n\t }\n\t });\n\t\n\t while (chain.length) {\n\t var thenFn = chain.shift();\n\t var rejectFn = chain.shift();\n\t\n\t promise = promise.then(thenFn, rejectFn);\n\t }\n\t\n\t if (useLegacyPromise) {\n\t promise.success = function(fn) {\n\t assertArgFn(fn, 'fn');\n\t\n\t promise.then(function(response) {\n\t fn(response.data, response.status, response.headers, config);\n\t });\n\t return promise;\n\t };\n\t\n\t promise.error = function(fn) {\n\t assertArgFn(fn, 'fn');\n\t\n\t promise.then(null, function(response) {\n\t fn(response.data, response.status, response.headers, config);\n\t });\n\t return promise;\n\t };\n\t } else {\n\t promise.success = $httpMinErrLegacyFn('success');\n\t promise.error = $httpMinErrLegacyFn('error');\n\t }\n\t\n\t return promise;\n\t\n\t function transformResponse(response) {\n\t // make a copy since the response must be cacheable\n\t var resp = extend({}, response);\n\t resp.data = transformData(response.data, response.headers, response.status,\n\t config.transformResponse);\n\t return (isSuccess(response.status))\n\t ? resp\n\t : $q.reject(resp);\n\t }\n\t\n\t function executeHeaderFns(headers, config) {\n\t var headerContent, processedHeaders = {};\n\t\n\t forEach(headers, function(headerFn, header) {\n\t if (isFunction(headerFn)) {\n\t headerContent = headerFn(config);\n\t if (headerContent != null) {\n\t processedHeaders[header] = headerContent;\n\t }\n\t } else {\n\t processedHeaders[header] = headerFn;\n\t }\n\t });\n\t\n\t return processedHeaders;\n\t }\n\t\n\t function mergeHeaders(config) {\n\t var defHeaders = defaults.headers,\n\t reqHeaders = extend({}, config.headers),\n\t defHeaderName, lowercaseDefHeaderName, reqHeaderName;\n\t\n\t defHeaders = extend({}, defHeaders.common, defHeaders[lowercase(config.method)]);\n\t\n\t // using for-in instead of forEach to avoid unecessary iteration after header has been found\n\t defaultHeadersIteration:\n\t for (defHeaderName in defHeaders) {\n\t lowercaseDefHeaderName = lowercase(defHeaderName);\n\t\n\t for (reqHeaderName in reqHeaders) {\n\t if (lowercase(reqHeaderName) === lowercaseDefHeaderName) {\n\t continue defaultHeadersIteration;\n\t }\n\t }\n\t\n\t reqHeaders[defHeaderName] = defHeaders[defHeaderName];\n\t }\n\t\n\t // execute if header value is a function for merged headers\n\t return executeHeaderFns(reqHeaders, shallowCopy(config));\n\t }\n\t }\n\t\n\t $http.pendingRequests = [];\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $http#get\n\t *\n\t * @description\n\t * Shortcut method to perform `GET` request.\n\t *\n\t * @param {string} url Relative or absolute URL specifying the destination of the request\n\t * @param {Object=} config Optional configuration object\n\t * @returns {HttpPromise} Future object\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $http#delete\n\t *\n\t * @description\n\t * Shortcut method to perform `DELETE` request.\n\t *\n\t * @param {string} url Relative or absolute URL specifying the destination of the request\n\t * @param {Object=} config Optional configuration object\n\t * @returns {HttpPromise} Future object\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $http#head\n\t *\n\t * @description\n\t * Shortcut method to perform `HEAD` request.\n\t *\n\t * @param {string} url Relative or absolute URL specifying the destination of the request\n\t * @param {Object=} config Optional configuration object\n\t * @returns {HttpPromise} Future object\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $http#jsonp\n\t *\n\t * @description\n\t * Shortcut method to perform `JSONP` request.\n\t *\n\t * @param {string} url Relative or absolute URL specifying the destination of the request.\n\t * The name of the callback should be the string `JSON_CALLBACK`.\n\t * @param {Object=} config Optional configuration object\n\t * @returns {HttpPromise} Future object\n\t */\n\t createShortMethods('get', 'delete', 'head', 'jsonp');\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $http#post\n\t *\n\t * @description\n\t * Shortcut method to perform `POST` request.\n\t *\n\t * @param {string} url Relative or absolute URL specifying the destination of the request\n\t * @param {*} data Request content\n\t * @param {Object=} config Optional configuration object\n\t * @returns {HttpPromise} Future object\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $http#put\n\t *\n\t * @description\n\t * Shortcut method to perform `PUT` request.\n\t *\n\t * @param {string} url Relative or absolute URL specifying the destination of the request\n\t * @param {*} data Request content\n\t * @param {Object=} config Optional configuration object\n\t * @returns {HttpPromise} Future object\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $http#patch\n\t *\n\t * @description\n\t * Shortcut method to perform `PATCH` request.\n\t *\n\t * @param {string} url Relative or absolute URL specifying the destination of the request\n\t * @param {*} data Request content\n\t * @param {Object=} config Optional configuration object\n\t * @returns {HttpPromise} Future object\n\t */\n\t createShortMethodsWithData('post', 'put', 'patch');\n\t\n\t /**\n\t * @ngdoc property\n\t * @name $http#defaults\n\t *\n\t * @description\n\t * Runtime equivalent of the `$httpProvider.defaults` property. Allows configuration of\n\t * default headers, withCredentials as well as request and response transformations.\n\t *\n\t * See \"Setting HTTP Headers\" and \"Transforming Requests and Responses\" sections above.\n\t */\n\t $http.defaults = defaults;\n\t\n\t\n\t return $http;\n\t\n\t\n\t function createShortMethods(names) {\n\t forEach(arguments, function(name) {\n\t $http[name] = function(url, config) {\n\t return $http(extend({}, config || {}, {\n\t method: name,\n\t url: url\n\t }));\n\t };\n\t });\n\t }\n\t\n\t\n\t function createShortMethodsWithData(name) {\n\t forEach(arguments, function(name) {\n\t $http[name] = function(url, data, config) {\n\t return $http(extend({}, config || {}, {\n\t method: name,\n\t url: url,\n\t data: data\n\t }));\n\t };\n\t });\n\t }\n\t\n\t\n\t /**\n\t * Makes the request.\n\t *\n\t * !!! ACCESSES CLOSURE VARS:\n\t * $httpBackend, defaults, $log, $rootScope, defaultCache, $http.pendingRequests\n\t */\n\t function sendReq(config, reqData) {\n\t var deferred = $q.defer(),\n\t promise = deferred.promise,\n\t cache,\n\t cachedResp,\n\t reqHeaders = config.headers,\n\t url = buildUrl(config.url, config.paramSerializer(config.params));\n\t\n\t $http.pendingRequests.push(config);\n\t promise.then(removePendingReq, removePendingReq);\n\t\n\t\n\t if ((config.cache || defaults.cache) && config.cache !== false &&\n\t (config.method === 'GET' || config.method === 'JSONP')) {\n\t cache = isObject(config.cache) ? config.cache\n\t : isObject(defaults.cache) ? defaults.cache\n\t : defaultCache;\n\t }\n\t\n\t if (cache) {\n\t cachedResp = cache.get(url);\n\t if (isDefined(cachedResp)) {\n\t if (isPromiseLike(cachedResp)) {\n\t // cached request has already been sent, but there is no response yet\n\t cachedResp.then(resolvePromiseWithResult, resolvePromiseWithResult);\n\t } else {\n\t // serving from cache\n\t if (isArray(cachedResp)) {\n\t resolvePromise(cachedResp[1], cachedResp[0], shallowCopy(cachedResp[2]), cachedResp[3]);\n\t } else {\n\t resolvePromise(cachedResp, 200, {}, 'OK');\n\t }\n\t }\n\t } else {\n\t // put the promise for the non-transformed response into cache as a placeholder\n\t cache.put(url, promise);\n\t }\n\t }\n\t\n\t\n\t // if we won't have the response in cache, set the xsrf headers and\n\t // send the request to the backend\n\t if (isUndefined(cachedResp)) {\n\t var xsrfValue = urlIsSameOrigin(config.url)\n\t ? $$cookieReader()[config.xsrfCookieName || defaults.xsrfCookieName]\n\t : undefined;\n\t if (xsrfValue) {\n\t reqHeaders[(config.xsrfHeaderName || defaults.xsrfHeaderName)] = xsrfValue;\n\t }\n\t\n\t $httpBackend(config.method, url, reqData, done, reqHeaders, config.timeout,\n\t config.withCredentials, config.responseType);\n\t }\n\t\n\t return promise;\n\t\n\t\n\t /**\n\t * Callback registered to $httpBackend():\n\t * - caches the response if desired\n\t * - resolves the raw $http promise\n\t * - calls $apply\n\t */\n\t function done(status, response, headersString, statusText) {\n\t if (cache) {\n\t if (isSuccess(status)) {\n\t cache.put(url, [status, response, parseHeaders(headersString), statusText]);\n\t } else {\n\t // remove promise from the cache\n\t cache.remove(url);\n\t }\n\t }\n\t\n\t function resolveHttpPromise() {\n\t resolvePromise(response, status, headersString, statusText);\n\t }\n\t\n\t if (useApplyAsync) {\n\t $rootScope.$applyAsync(resolveHttpPromise);\n\t } else {\n\t resolveHttpPromise();\n\t if (!$rootScope.$$phase) $rootScope.$apply();\n\t }\n\t }\n\t\n\t\n\t /**\n\t * Resolves the raw $http promise.\n\t */\n\t function resolvePromise(response, status, headers, statusText) {\n\t //status: HTTP response status code, 0, -1 (aborted by timeout / promise)\n\t status = status >= -1 ? status : 0;\n\t\n\t (isSuccess(status) ? deferred.resolve : deferred.reject)({\n\t data: response,\n\t status: status,\n\t headers: headersGetter(headers),\n\t config: config,\n\t statusText: statusText\n\t });\n\t }\n\t\n\t function resolvePromiseWithResult(result) {\n\t resolvePromise(result.data, result.status, shallowCopy(result.headers()), result.statusText);\n\t }\n\t\n\t function removePendingReq() {\n\t var idx = $http.pendingRequests.indexOf(config);\n\t if (idx !== -1) $http.pendingRequests.splice(idx, 1);\n\t }\n\t }\n\t\n\t\n\t function buildUrl(url, serializedParams) {\n\t if (serializedParams.length > 0) {\n\t url += ((url.indexOf('?') == -1) ? '?' : '&') + serializedParams;\n\t }\n\t return url;\n\t }\n\t }];\n\t}\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $xhrFactory\n\t *\n\t * @description\n\t * Factory function used to create XMLHttpRequest objects.\n\t *\n\t * Replace or decorate this service to create your own custom XMLHttpRequest objects.\n\t *\n\t * ```\n\t * angular.module('myApp', [])\n\t * .factory('$xhrFactory', function() {\n\t * return function createXhr(method, url) {\n\t * return new window.XMLHttpRequest({mozSystem: true});\n\t * };\n\t * });\n\t * ```\n\t *\n\t * @param {string} method HTTP method of the request (GET, POST, PUT, ..)\n\t * @param {string} url URL of the request.\n\t */\n\tfunction $xhrFactoryProvider() {\n\t this.$get = function() {\n\t return function createXhr() {\n\t return new window.XMLHttpRequest();\n\t };\n\t };\n\t}\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $httpBackend\n\t * @requires $window\n\t * @requires $document\n\t * @requires $xhrFactory\n\t *\n\t * @description\n\t * HTTP backend used by the {@link ng.$http service} that delegates to\n\t * XMLHttpRequest object or JSONP and deals with browser incompatibilities.\n\t *\n\t * You should never need to use this service directly, instead use the higher-level abstractions:\n\t * {@link ng.$http $http} or {@link ngResource.$resource $resource}.\n\t *\n\t * During testing this implementation is swapped with {@link ngMock.$httpBackend mock\n\t * $httpBackend} which can be trained with responses.\n\t */\n\tfunction $HttpBackendProvider() {\n\t this.$get = ['$browser', '$window', '$document', '$xhrFactory', function($browser, $window, $document, $xhrFactory) {\n\t return createHttpBackend($browser, $xhrFactory, $browser.defer, $window.angular.callbacks, $document[0]);\n\t }];\n\t}\n\t\n\tfunction createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDocument) {\n\t // TODO(vojta): fix the signature\n\t return function(method, url, post, callback, headers, timeout, withCredentials, responseType) {\n\t $browser.$$incOutstandingRequestCount();\n\t url = url || $browser.url();\n\t\n\t if (lowercase(method) == 'jsonp') {\n\t var callbackId = '_' + (callbacks.counter++).toString(36);\n\t callbacks[callbackId] = function(data) {\n\t callbacks[callbackId].data = data;\n\t callbacks[callbackId].called = true;\n\t };\n\t\n\t var jsonpDone = jsonpReq(url.replace('JSON_CALLBACK', 'angular.callbacks.' + callbackId),\n\t callbackId, function(status, text) {\n\t completeRequest(callback, status, callbacks[callbackId].data, \"\", text);\n\t callbacks[callbackId] = noop;\n\t });\n\t } else {\n\t\n\t var xhr = createXhr(method, url);\n\t\n\t xhr.open(method, url, true);\n\t forEach(headers, function(value, key) {\n\t if (isDefined(value)) {\n\t xhr.setRequestHeader(key, value);\n\t }\n\t });\n\t\n\t xhr.onload = function requestLoaded() {\n\t var statusText = xhr.statusText || '';\n\t\n\t // responseText is the old-school way of retrieving response (supported by IE9)\n\t // response/responseType properties were introduced in XHR Level2 spec (supported by IE10)\n\t var response = ('response' in xhr) ? xhr.response : xhr.responseText;\n\t\n\t // normalize IE9 bug (http://bugs.jquery.com/ticket/1450)\n\t var status = xhr.status === 1223 ? 204 : xhr.status;\n\t\n\t // fix status code when it is 0 (0 status is undocumented).\n\t // Occurs when accessing file resources or on Android 4.1 stock browser\n\t // while retrieving files from application cache.\n\t if (status === 0) {\n\t status = response ? 200 : urlResolve(url).protocol == 'file' ? 404 : 0;\n\t }\n\t\n\t completeRequest(callback,\n\t status,\n\t response,\n\t xhr.getAllResponseHeaders(),\n\t statusText);\n\t };\n\t\n\t var requestError = function() {\n\t // The response is always empty\n\t // See https://xhr.spec.whatwg.org/#request-error-steps and https://fetch.spec.whatwg.org/#concept-network-error\n\t completeRequest(callback, -1, null, null, '');\n\t };\n\t\n\t xhr.onerror = requestError;\n\t xhr.onabort = requestError;\n\t\n\t if (withCredentials) {\n\t xhr.withCredentials = true;\n\t }\n\t\n\t if (responseType) {\n\t try {\n\t xhr.responseType = responseType;\n\t } catch (e) {\n\t // WebKit added support for the json responseType value on 09/03/2013\n\t // https://bugs.webkit.org/show_bug.cgi?id=73648. Versions of Safari prior to 7 are\n\t // known to throw when setting the value \"json\" as the response type. Other older\n\t // browsers implementing the responseType\n\t //\n\t // The json response type can be ignored if not supported, because JSON payloads are\n\t // parsed on the client-side regardless.\n\t if (responseType !== 'json') {\n\t throw e;\n\t }\n\t }\n\t }\n\t\n\t xhr.send(isUndefined(post) ? null : post);\n\t }\n\t\n\t if (timeout > 0) {\n\t var timeoutId = $browserDefer(timeoutRequest, timeout);\n\t } else if (isPromiseLike(timeout)) {\n\t timeout.then(timeoutRequest);\n\t }\n\t\n\t\n\t function timeoutRequest() {\n\t jsonpDone && jsonpDone();\n\t xhr && xhr.abort();\n\t }\n\t\n\t function completeRequest(callback, status, response, headersString, statusText) {\n\t // cancel timeout and subsequent timeout promise resolution\n\t if (isDefined(timeoutId)) {\n\t $browserDefer.cancel(timeoutId);\n\t }\n\t jsonpDone = xhr = null;\n\t\n\t callback(status, response, headersString, statusText);\n\t $browser.$$completeOutstandingRequest(noop);\n\t }\n\t };\n\t\n\t function jsonpReq(url, callbackId, done) {\n\t // we can't use jQuery/jqLite here because jQuery does crazy stuff with script elements, e.g.:\n\t // - fetches local scripts via XHR and evals them\n\t // - adds and immediately removes script elements from the document\n\t var script = rawDocument.createElement('script'), callback = null;\n\t script.type = \"text/javascript\";\n\t script.src = url;\n\t script.async = true;\n\t\n\t callback = function(event) {\n\t removeEventListenerFn(script, \"load\", callback);\n\t removeEventListenerFn(script, \"error\", callback);\n\t rawDocument.body.removeChild(script);\n\t script = null;\n\t var status = -1;\n\t var text = \"unknown\";\n\t\n\t if (event) {\n\t if (event.type === \"load\" && !callbacks[callbackId].called) {\n\t event = { type: \"error\" };\n\t }\n\t text = event.type;\n\t status = event.type === \"error\" ? 404 : 200;\n\t }\n\t\n\t if (done) {\n\t done(status, text);\n\t }\n\t };\n\t\n\t addEventListenerFn(script, \"load\", callback);\n\t addEventListenerFn(script, \"error\", callback);\n\t rawDocument.body.appendChild(script);\n\t return callback;\n\t }\n\t}\n\t\n\tvar $interpolateMinErr = angular.$interpolateMinErr = minErr('$interpolate');\n\t$interpolateMinErr.throwNoconcat = function(text) {\n\t throw $interpolateMinErr('noconcat',\n\t \"Error while interpolating: {0}\\nStrict Contextual Escaping disallows \" +\n\t \"interpolations that concatenate multiple expressions when a trusted value is \" +\n\t \"required. See http://docs.angularjs.org/api/ng.$sce\", text);\n\t};\n\t\n\t$interpolateMinErr.interr = function(text, err) {\n\t return $interpolateMinErr('interr', \"Can't interpolate: {0}\\n{1}\", text, err.toString());\n\t};\n\t\n\t/**\n\t * @ngdoc provider\n\t * @name $interpolateProvider\n\t *\n\t * @description\n\t *\n\t * Used for configuring the interpolation markup. Defaults to `{{` and `}}`.\n\t *\n\t * @example\n\t\n\t\n\t\n\t
\n\t //demo.label//\n\t
\n\t
\n\t\n\t it('should interpolate binding with custom symbols', function() {\n\t expect(element(by.binding('demo.label')).getText()).toBe('This binding is brought you by // interpolation symbols.');\n\t });\n\t\n\t
\n\t */\n\tfunction $InterpolateProvider() {\n\t var startSymbol = '{{';\n\t var endSymbol = '}}';\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $interpolateProvider#startSymbol\n\t * @description\n\t * Symbol to denote start of expression in the interpolated string. Defaults to `{{`.\n\t *\n\t * @param {string=} value new value to set the starting symbol to.\n\t * @returns {string|self} Returns the symbol when used as getter and self if used as setter.\n\t */\n\t this.startSymbol = function(value) {\n\t if (value) {\n\t startSymbol = value;\n\t return this;\n\t } else {\n\t return startSymbol;\n\t }\n\t };\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $interpolateProvider#endSymbol\n\t * @description\n\t * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.\n\t *\n\t * @param {string=} value new value to set the ending symbol to.\n\t * @returns {string|self} Returns the symbol when used as getter and self if used as setter.\n\t */\n\t this.endSymbol = function(value) {\n\t if (value) {\n\t endSymbol = value;\n\t return this;\n\t } else {\n\t return endSymbol;\n\t }\n\t };\n\t\n\t\n\t this.$get = ['$parse', '$exceptionHandler', '$sce', function($parse, $exceptionHandler, $sce) {\n\t var startSymbolLength = startSymbol.length,\n\t endSymbolLength = endSymbol.length,\n\t escapedStartRegexp = new RegExp(startSymbol.replace(/./g, escape), 'g'),\n\t escapedEndRegexp = new RegExp(endSymbol.replace(/./g, escape), 'g');\n\t\n\t function escape(ch) {\n\t return '\\\\\\\\\\\\' + ch;\n\t }\n\t\n\t function unescapeText(text) {\n\t return text.replace(escapedStartRegexp, startSymbol).\n\t replace(escapedEndRegexp, endSymbol);\n\t }\n\t\n\t function stringify(value) {\n\t if (value == null) { // null || undefined\n\t return '';\n\t }\n\t switch (typeof value) {\n\t case 'string':\n\t break;\n\t case 'number':\n\t value = '' + value;\n\t break;\n\t default:\n\t value = toJson(value);\n\t }\n\t\n\t return value;\n\t }\n\t\n\t /**\n\t * @ngdoc service\n\t * @name $interpolate\n\t * @kind function\n\t *\n\t * @requires $parse\n\t * @requires $sce\n\t *\n\t * @description\n\t *\n\t * Compiles a string with markup into an interpolation function. This service is used by the\n\t * HTML {@link ng.$compile $compile} service for data binding. See\n\t * {@link ng.$interpolateProvider $interpolateProvider} for configuring the\n\t * interpolation markup.\n\t *\n\t *\n\t * ```js\n\t * var $interpolate = ...; // injected\n\t * var exp = $interpolate('Hello {{name | uppercase}}!');\n\t * expect(exp({name:'Angular'})).toEqual('Hello ANGULAR!');\n\t * ```\n\t *\n\t * `$interpolate` takes an optional fourth argument, `allOrNothing`. If `allOrNothing` is\n\t * `true`, the interpolation function will return `undefined` unless all embedded expressions\n\t * evaluate to a value other than `undefined`.\n\t *\n\t * ```js\n\t * var $interpolate = ...; // injected\n\t * var context = {greeting: 'Hello', name: undefined };\n\t *\n\t * // default \"forgiving\" mode\n\t * var exp = $interpolate('{{greeting}} {{name}}!');\n\t * expect(exp(context)).toEqual('Hello !');\n\t *\n\t * // \"allOrNothing\" mode\n\t * exp = $interpolate('{{greeting}} {{name}}!', false, null, true);\n\t * expect(exp(context)).toBeUndefined();\n\t * context.name = 'Angular';\n\t * expect(exp(context)).toEqual('Hello Angular!');\n\t * ```\n\t *\n\t * `allOrNothing` is useful for interpolating URLs. `ngSrc` and `ngSrcset` use this behavior.\n\t *\n\t * ####Escaped Interpolation\n\t * $interpolate provides a mechanism for escaping interpolation markers. Start and end markers\n\t * can be escaped by preceding each of their characters with a REVERSE SOLIDUS U+005C (backslash).\n\t * It will be rendered as a regular start/end marker, and will not be interpreted as an expression\n\t * or binding.\n\t *\n\t * This enables web-servers to prevent script injection attacks and defacing attacks, to some\n\t * degree, while also enabling code examples to work without relying on the\n\t * {@link ng.directive:ngNonBindable ngNonBindable} directive.\n\t *\n\t * **For security purposes, it is strongly encouraged that web servers escape user-supplied data,\n\t * replacing angle brackets (<, >) with &lt; and &gt; respectively, and replacing all\n\t * interpolation start/end markers with their escaped counterparts.**\n\t *\n\t * Escaped interpolation markers are only replaced with the actual interpolation markers in rendered\n\t * output when the $interpolate service processes the text. So, for HTML elements interpolated\n\t * by {@link ng.$compile $compile}, or otherwise interpolated with the `mustHaveExpression` parameter\n\t * set to `true`, the interpolated text must contain an unescaped interpolation expression. As such,\n\t * this is typically useful only when user-data is used in rendering a template from the server, or\n\t * when otherwise untrusted data is used by a directive.\n\t *\n\t * \n\t * \n\t *
\n\t *

{{apptitle}}: \\{\\{ username = \"defaced value\"; \\}\\}\n\t *

\n\t *

{{username}} attempts to inject code which will deface the\n\t * application, but fails to accomplish their task, because the server has correctly\n\t * escaped the interpolation start/end markers with REVERSE SOLIDUS U+005C (backslash)\n\t * characters.

\n\t *

Instead, the result of the attempted script injection is visible, and can be removed\n\t * from the database by an administrator.

\n\t *
\n\t *
\n\t *
\n\t *\n\t * @knownIssue\n\t * It is currently not possible for an interpolated expression to contain the interpolation end\n\t * symbol. For example, `{{ '}}' }}` will be incorrectly interpreted as `{{ ' }}` + `' }}`, i.e.\n\t * an interpolated expression consisting of a single-quote (`'`) and the `' }}` string.\n\t *\n\t * @param {string} text The text with markup to interpolate.\n\t * @param {boolean=} mustHaveExpression if set to true then the interpolation string must have\n\t * embedded expression in order to return an interpolation function. Strings with no\n\t * embedded expression will return null for the interpolation function.\n\t * @param {string=} trustedContext when provided, the returned function passes the interpolated\n\t * result through {@link ng.$sce#getTrusted $sce.getTrusted(interpolatedResult,\n\t * trustedContext)} before returning it. Refer to the {@link ng.$sce $sce} service that\n\t * provides Strict Contextual Escaping for details.\n\t * @param {boolean=} allOrNothing if `true`, then the returned function returns undefined\n\t * unless all embedded expressions evaluate to a value other than `undefined`.\n\t * @returns {function(context)} an interpolation function which is used to compute the\n\t * interpolated string. The function has these parameters:\n\t *\n\t * - `context`: evaluation context for all expressions embedded in the interpolated text\n\t */\n\t function $interpolate(text, mustHaveExpression, trustedContext, allOrNothing) {\n\t allOrNothing = !!allOrNothing;\n\t var startIndex,\n\t endIndex,\n\t index = 0,\n\t expressions = [],\n\t parseFns = [],\n\t textLength = text.length,\n\t exp,\n\t concat = [],\n\t expressionPositions = [];\n\t\n\t while (index < textLength) {\n\t if (((startIndex = text.indexOf(startSymbol, index)) != -1) &&\n\t ((endIndex = text.indexOf(endSymbol, startIndex + startSymbolLength)) != -1)) {\n\t if (index !== startIndex) {\n\t concat.push(unescapeText(text.substring(index, startIndex)));\n\t }\n\t exp = text.substring(startIndex + startSymbolLength, endIndex);\n\t expressions.push(exp);\n\t parseFns.push($parse(exp, parseStringifyInterceptor));\n\t index = endIndex + endSymbolLength;\n\t expressionPositions.push(concat.length);\n\t concat.push('');\n\t } else {\n\t // we did not find an interpolation, so we have to add the remainder to the separators array\n\t if (index !== textLength) {\n\t concat.push(unescapeText(text.substring(index)));\n\t }\n\t break;\n\t }\n\t }\n\t\n\t // Concatenating expressions makes it hard to reason about whether some combination of\n\t // concatenated values are unsafe to use and could easily lead to XSS. By requiring that a\n\t // single expression be used for iframe[src], object[src], etc., we ensure that the value\n\t // that's used is assigned or constructed by some JS code somewhere that is more testable or\n\t // make it obvious that you bound the value to some user controlled value. This helps reduce\n\t // the load when auditing for XSS issues.\n\t if (trustedContext && concat.length > 1) {\n\t $interpolateMinErr.throwNoconcat(text);\n\t }\n\t\n\t if (!mustHaveExpression || expressions.length) {\n\t var compute = function(values) {\n\t for (var i = 0, ii = expressions.length; i < ii; i++) {\n\t if (allOrNothing && isUndefined(values[i])) return;\n\t concat[expressionPositions[i]] = values[i];\n\t }\n\t return concat.join('');\n\t };\n\t\n\t var getValue = function(value) {\n\t return trustedContext ?\n\t $sce.getTrusted(trustedContext, value) :\n\t $sce.valueOf(value);\n\t };\n\t\n\t return extend(function interpolationFn(context) {\n\t var i = 0;\n\t var ii = expressions.length;\n\t var values = new Array(ii);\n\t\n\t try {\n\t for (; i < ii; i++) {\n\t values[i] = parseFns[i](context);\n\t }\n\t\n\t return compute(values);\n\t } catch (err) {\n\t $exceptionHandler($interpolateMinErr.interr(text, err));\n\t }\n\t\n\t }, {\n\t // all of these properties are undocumented for now\n\t exp: text, //just for compatibility with regular watchers created via $watch\n\t expressions: expressions,\n\t $$watchDelegate: function(scope, listener) {\n\t var lastValue;\n\t return scope.$watchGroup(parseFns, function interpolateFnWatcher(values, oldValues) {\n\t var currValue = compute(values);\n\t if (isFunction(listener)) {\n\t listener.call(this, currValue, values !== oldValues ? lastValue : currValue, scope);\n\t }\n\t lastValue = currValue;\n\t });\n\t }\n\t });\n\t }\n\t\n\t function parseStringifyInterceptor(value) {\n\t try {\n\t value = getValue(value);\n\t return allOrNothing && !isDefined(value) ? value : stringify(value);\n\t } catch (err) {\n\t $exceptionHandler($interpolateMinErr.interr(text, err));\n\t }\n\t }\n\t }\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $interpolate#startSymbol\n\t * @description\n\t * Symbol to denote the start of expression in the interpolated string. Defaults to `{{`.\n\t *\n\t * Use {@link ng.$interpolateProvider#startSymbol `$interpolateProvider.startSymbol`} to change\n\t * the symbol.\n\t *\n\t * @returns {string} start symbol.\n\t */\n\t $interpolate.startSymbol = function() {\n\t return startSymbol;\n\t };\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $interpolate#endSymbol\n\t * @description\n\t * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.\n\t *\n\t * Use {@link ng.$interpolateProvider#endSymbol `$interpolateProvider.endSymbol`} to change\n\t * the symbol.\n\t *\n\t * @returns {string} end symbol.\n\t */\n\t $interpolate.endSymbol = function() {\n\t return endSymbol;\n\t };\n\t\n\t return $interpolate;\n\t }];\n\t}\n\t\n\tfunction $IntervalProvider() {\n\t this.$get = ['$rootScope', '$window', '$q', '$$q',\n\t function($rootScope, $window, $q, $$q) {\n\t var intervals = {};\n\t\n\t\n\t /**\n\t * @ngdoc service\n\t * @name $interval\n\t *\n\t * @description\n\t * Angular's wrapper for `window.setInterval`. The `fn` function is executed every `delay`\n\t * milliseconds.\n\t *\n\t * The return value of registering an interval function is a promise. This promise will be\n\t * notified upon each tick of the interval, and will be resolved after `count` iterations, or\n\t * run indefinitely if `count` is not defined. The value of the notification will be the\n\t * number of iterations that have run.\n\t * To cancel an interval, call `$interval.cancel(promise)`.\n\t *\n\t * In tests you can use {@link ngMock.$interval#flush `$interval.flush(millis)`} to\n\t * move forward by `millis` milliseconds and trigger any functions scheduled to run in that\n\t * time.\n\t *\n\t *
\n\t * **Note**: Intervals created by this service must be explicitly destroyed when you are finished\n\t * with them. In particular they are not automatically destroyed when a controller's scope or a\n\t * directive's element are destroyed.\n\t * You should take this into consideration and make sure to always cancel the interval at the\n\t * appropriate moment. See the example below for more details on how and when to do this.\n\t *
\n\t *\n\t * @param {function()} fn A function that should be called repeatedly.\n\t * @param {number} delay Number of milliseconds between each function call.\n\t * @param {number=} [count=0] Number of times to repeat. If not set, or 0, will repeat\n\t * indefinitely.\n\t * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise\n\t * will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.\n\t * @param {...*=} Pass additional parameters to the executed function.\n\t * @returns {promise} A promise which will be notified on each iteration.\n\t *\n\t * @example\n\t * \n\t * \n\t * \n\t *\n\t *
\n\t *
\n\t *
\n\t * Current time is: \n\t *
\n\t * Blood 1 : {{blood_1}}\n\t * Blood 2 : {{blood_2}}\n\t * \n\t * \n\t * \n\t *
\n\t *
\n\t *\n\t *
\n\t *
\n\t */\n\t function interval(fn, delay, count, invokeApply) {\n\t var hasParams = arguments.length > 4,\n\t args = hasParams ? sliceArgs(arguments, 4) : [],\n\t setInterval = $window.setInterval,\n\t clearInterval = $window.clearInterval,\n\t iteration = 0,\n\t skipApply = (isDefined(invokeApply) && !invokeApply),\n\t deferred = (skipApply ? $$q : $q).defer(),\n\t promise = deferred.promise;\n\t\n\t count = isDefined(count) ? count : 0;\n\t\n\t promise.then(null, null, (!hasParams) ? fn : function() {\n\t fn.apply(null, args);\n\t });\n\t\n\t promise.$$intervalId = setInterval(function tick() {\n\t deferred.notify(iteration++);\n\t\n\t if (count > 0 && iteration >= count) {\n\t deferred.resolve(iteration);\n\t clearInterval(promise.$$intervalId);\n\t delete intervals[promise.$$intervalId];\n\t }\n\t\n\t if (!skipApply) $rootScope.$apply();\n\t\n\t }, delay);\n\t\n\t intervals[promise.$$intervalId] = deferred;\n\t\n\t return promise;\n\t }\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $interval#cancel\n\t *\n\t * @description\n\t * Cancels a task associated with the `promise`.\n\t *\n\t * @param {Promise=} promise returned by the `$interval` function.\n\t * @returns {boolean} Returns `true` if the task was successfully canceled.\n\t */\n\t interval.cancel = function(promise) {\n\t if (promise && promise.$$intervalId in intervals) {\n\t intervals[promise.$$intervalId].reject('canceled');\n\t $window.clearInterval(promise.$$intervalId);\n\t delete intervals[promise.$$intervalId];\n\t return true;\n\t }\n\t return false;\n\t };\n\t\n\t return interval;\n\t }];\n\t}\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $locale\n\t *\n\t * @description\n\t * $locale service provides localization rules for various Angular components. As of right now the\n\t * only public api is:\n\t *\n\t * * `id` – `{string}` – locale id formatted as `languageId-countryId` (e.g. `en-us`)\n\t */\n\t\n\tvar PATH_MATCH = /^([^\\?#]*)(\\?([^#]*))?(#(.*))?$/,\n\t DEFAULT_PORTS = {'http': 80, 'https': 443, 'ftp': 21};\n\tvar $locationMinErr = minErr('$location');\n\t\n\t\n\t/**\n\t * Encode path using encodeUriSegment, ignoring forward slashes\n\t *\n\t * @param {string} path Path to encode\n\t * @returns {string}\n\t */\n\tfunction encodePath(path) {\n\t var segments = path.split('/'),\n\t i = segments.length;\n\t\n\t while (i--) {\n\t segments[i] = encodeUriSegment(segments[i]);\n\t }\n\t\n\t return segments.join('/');\n\t}\n\t\n\tfunction parseAbsoluteUrl(absoluteUrl, locationObj) {\n\t var parsedUrl = urlResolve(absoluteUrl);\n\t\n\t locationObj.$$protocol = parsedUrl.protocol;\n\t locationObj.$$host = parsedUrl.hostname;\n\t locationObj.$$port = toInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;\n\t}\n\t\n\t\n\tfunction parseAppUrl(relativeUrl, locationObj) {\n\t var prefixed = (relativeUrl.charAt(0) !== '/');\n\t if (prefixed) {\n\t relativeUrl = '/' + relativeUrl;\n\t }\n\t var match = urlResolve(relativeUrl);\n\t locationObj.$$path = decodeURIComponent(prefixed && match.pathname.charAt(0) === '/' ?\n\t match.pathname.substring(1) : match.pathname);\n\t locationObj.$$search = parseKeyValue(match.search);\n\t locationObj.$$hash = decodeURIComponent(match.hash);\n\t\n\t // make sure path starts with '/';\n\t if (locationObj.$$path && locationObj.$$path.charAt(0) != '/') {\n\t locationObj.$$path = '/' + locationObj.$$path;\n\t }\n\t}\n\t\n\t\n\t/**\n\t *\n\t * @param {string} begin\n\t * @param {string} whole\n\t * @returns {string} returns text from whole after begin or undefined if it does not begin with\n\t * expected string.\n\t */\n\tfunction beginsWith(begin, whole) {\n\t if (whole.indexOf(begin) === 0) {\n\t return whole.substr(begin.length);\n\t }\n\t}\n\t\n\t\n\tfunction stripHash(url) {\n\t var index = url.indexOf('#');\n\t return index == -1 ? url : url.substr(0, index);\n\t}\n\t\n\tfunction trimEmptyHash(url) {\n\t return url.replace(/(#.+)|#$/, '$1');\n\t}\n\t\n\t\n\tfunction stripFile(url) {\n\t return url.substr(0, stripHash(url).lastIndexOf('/') + 1);\n\t}\n\t\n\t/* return the server only (scheme://host:port) */\n\tfunction serverBase(url) {\n\t return url.substring(0, url.indexOf('/', url.indexOf('//') + 2));\n\t}\n\t\n\t\n\t/**\n\t * LocationHtml5Url represents an url\n\t * This object is exposed as $location service when HTML5 mode is enabled and supported\n\t *\n\t * @constructor\n\t * @param {string} appBase application base URL\n\t * @param {string} appBaseNoFile application base URL stripped of any filename\n\t * @param {string} basePrefix url path prefix\n\t */\n\tfunction LocationHtml5Url(appBase, appBaseNoFile, basePrefix) {\n\t this.$$html5 = true;\n\t basePrefix = basePrefix || '';\n\t parseAbsoluteUrl(appBase, this);\n\t\n\t\n\t /**\n\t * Parse given html5 (regular) url string into properties\n\t * @param {string} url HTML5 url\n\t * @private\n\t */\n\t this.$$parse = function(url) {\n\t var pathUrl = beginsWith(appBaseNoFile, url);\n\t if (!isString(pathUrl)) {\n\t throw $locationMinErr('ipthprfx', 'Invalid url \"{0}\", missing path prefix \"{1}\".', url,\n\t appBaseNoFile);\n\t }\n\t\n\t parseAppUrl(pathUrl, this);\n\t\n\t if (!this.$$path) {\n\t this.$$path = '/';\n\t }\n\t\n\t this.$$compose();\n\t };\n\t\n\t /**\n\t * Compose url and update `absUrl` property\n\t * @private\n\t */\n\t this.$$compose = function() {\n\t var search = toKeyValue(this.$$search),\n\t hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';\n\t\n\t this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;\n\t this.$$absUrl = appBaseNoFile + this.$$url.substr(1); // first char is always '/'\n\t };\n\t\n\t this.$$parseLinkUrl = function(url, relHref) {\n\t if (relHref && relHref[0] === '#') {\n\t // special case for links to hash fragments:\n\t // keep the old url and only replace the hash fragment\n\t this.hash(relHref.slice(1));\n\t return true;\n\t }\n\t var appUrl, prevAppUrl;\n\t var rewrittenUrl;\n\t\n\t if (isDefined(appUrl = beginsWith(appBase, url))) {\n\t prevAppUrl = appUrl;\n\t if (isDefined(appUrl = beginsWith(basePrefix, appUrl))) {\n\t rewrittenUrl = appBaseNoFile + (beginsWith('/', appUrl) || appUrl);\n\t } else {\n\t rewrittenUrl = appBase + prevAppUrl;\n\t }\n\t } else if (isDefined(appUrl = beginsWith(appBaseNoFile, url))) {\n\t rewrittenUrl = appBaseNoFile + appUrl;\n\t } else if (appBaseNoFile == url + '/') {\n\t rewrittenUrl = appBaseNoFile;\n\t }\n\t if (rewrittenUrl) {\n\t this.$$parse(rewrittenUrl);\n\t }\n\t return !!rewrittenUrl;\n\t };\n\t}\n\t\n\t\n\t/**\n\t * LocationHashbangUrl represents url\n\t * This object is exposed as $location service when developer doesn't opt into html5 mode.\n\t * It also serves as the base class for html5 mode fallback on legacy browsers.\n\t *\n\t * @constructor\n\t * @param {string} appBase application base URL\n\t * @param {string} appBaseNoFile application base URL stripped of any filename\n\t * @param {string} hashPrefix hashbang prefix\n\t */\n\tfunction LocationHashbangUrl(appBase, appBaseNoFile, hashPrefix) {\n\t\n\t parseAbsoluteUrl(appBase, this);\n\t\n\t\n\t /**\n\t * Parse given hashbang url into properties\n\t * @param {string} url Hashbang url\n\t * @private\n\t */\n\t this.$$parse = function(url) {\n\t var withoutBaseUrl = beginsWith(appBase, url) || beginsWith(appBaseNoFile, url);\n\t var withoutHashUrl;\n\t\n\t if (!isUndefined(withoutBaseUrl) && withoutBaseUrl.charAt(0) === '#') {\n\t\n\t // The rest of the url starts with a hash so we have\n\t // got either a hashbang path or a plain hash fragment\n\t withoutHashUrl = beginsWith(hashPrefix, withoutBaseUrl);\n\t if (isUndefined(withoutHashUrl)) {\n\t // There was no hashbang prefix so we just have a hash fragment\n\t withoutHashUrl = withoutBaseUrl;\n\t }\n\t\n\t } else {\n\t // There was no hashbang path nor hash fragment:\n\t // If we are in HTML5 mode we use what is left as the path;\n\t // Otherwise we ignore what is left\n\t if (this.$$html5) {\n\t withoutHashUrl = withoutBaseUrl;\n\t } else {\n\t withoutHashUrl = '';\n\t if (isUndefined(withoutBaseUrl)) {\n\t appBase = url;\n\t this.replace();\n\t }\n\t }\n\t }\n\t\n\t parseAppUrl(withoutHashUrl, this);\n\t\n\t this.$$path = removeWindowsDriveName(this.$$path, withoutHashUrl, appBase);\n\t\n\t this.$$compose();\n\t\n\t /*\n\t * In Windows, on an anchor node on documents loaded from\n\t * the filesystem, the browser will return a pathname\n\t * prefixed with the drive name ('/C:/path') when a\n\t * pathname without a drive is set:\n\t * * a.setAttribute('href', '/foo')\n\t * * a.pathname === '/C:/foo' //true\n\t *\n\t * Inside of Angular, we're always using pathnames that\n\t * do not include drive names for routing.\n\t */\n\t function removeWindowsDriveName(path, url, base) {\n\t /*\n\t Matches paths for file protocol on windows,\n\t such as /C:/foo/bar, and captures only /foo/bar.\n\t */\n\t var windowsFilePathExp = /^\\/[A-Z]:(\\/.*)/;\n\t\n\t var firstPathSegmentMatch;\n\t\n\t //Get the relative path from the input URL.\n\t if (url.indexOf(base) === 0) {\n\t url = url.replace(base, '');\n\t }\n\t\n\t // The input URL intentionally contains a first path segment that ends with a colon.\n\t if (windowsFilePathExp.exec(url)) {\n\t return path;\n\t }\n\t\n\t firstPathSegmentMatch = windowsFilePathExp.exec(path);\n\t return firstPathSegmentMatch ? firstPathSegmentMatch[1] : path;\n\t }\n\t };\n\t\n\t /**\n\t * Compose hashbang url and update `absUrl` property\n\t * @private\n\t */\n\t this.$$compose = function() {\n\t var search = toKeyValue(this.$$search),\n\t hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';\n\t\n\t this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;\n\t this.$$absUrl = appBase + (this.$$url ? hashPrefix + this.$$url : '');\n\t };\n\t\n\t this.$$parseLinkUrl = function(url, relHref) {\n\t if (stripHash(appBase) == stripHash(url)) {\n\t this.$$parse(url);\n\t return true;\n\t }\n\t return false;\n\t };\n\t}\n\t\n\t\n\t/**\n\t * LocationHashbangUrl represents url\n\t * This object is exposed as $location service when html5 history api is enabled but the browser\n\t * does not support it.\n\t *\n\t * @constructor\n\t * @param {string} appBase application base URL\n\t * @param {string} appBaseNoFile application base URL stripped of any filename\n\t * @param {string} hashPrefix hashbang prefix\n\t */\n\tfunction LocationHashbangInHtml5Url(appBase, appBaseNoFile, hashPrefix) {\n\t this.$$html5 = true;\n\t LocationHashbangUrl.apply(this, arguments);\n\t\n\t this.$$parseLinkUrl = function(url, relHref) {\n\t if (relHref && relHref[0] === '#') {\n\t // special case for links to hash fragments:\n\t // keep the old url and only replace the hash fragment\n\t this.hash(relHref.slice(1));\n\t return true;\n\t }\n\t\n\t var rewrittenUrl;\n\t var appUrl;\n\t\n\t if (appBase == stripHash(url)) {\n\t rewrittenUrl = url;\n\t } else if ((appUrl = beginsWith(appBaseNoFile, url))) {\n\t rewrittenUrl = appBase + hashPrefix + appUrl;\n\t } else if (appBaseNoFile === url + '/') {\n\t rewrittenUrl = appBaseNoFile;\n\t }\n\t if (rewrittenUrl) {\n\t this.$$parse(rewrittenUrl);\n\t }\n\t return !!rewrittenUrl;\n\t };\n\t\n\t this.$$compose = function() {\n\t var search = toKeyValue(this.$$search),\n\t hash = this.$$hash ? '#' + encodeUriSegment(this.$$hash) : '';\n\t\n\t this.$$url = encodePath(this.$$path) + (search ? '?' + search : '') + hash;\n\t // include hashPrefix in $$absUrl when $$url is empty so IE9 does not reload page because of removal of '#'\n\t this.$$absUrl = appBase + hashPrefix + this.$$url;\n\t };\n\t\n\t}\n\t\n\t\n\tvar locationPrototype = {\n\t\n\t /**\n\t * Are we in html5 mode?\n\t * @private\n\t */\n\t $$html5: false,\n\t\n\t /**\n\t * Has any change been replacing?\n\t * @private\n\t */\n\t $$replace: false,\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $location#absUrl\n\t *\n\t * @description\n\t * This method is getter only.\n\t *\n\t * Return full url representation with all segments encoded according to rules specified in\n\t * [RFC 3986](http://www.ietf.org/rfc/rfc3986.txt).\n\t *\n\t *\n\t * ```js\n\t * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t * var absUrl = $location.absUrl();\n\t * // => \"http://example.com/#/some/path?foo=bar&baz=xoxo\"\n\t * ```\n\t *\n\t * @return {string} full url\n\t */\n\t absUrl: locationGetter('$$absUrl'),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $location#url\n\t *\n\t * @description\n\t * This method is getter / setter.\n\t *\n\t * Return url (e.g. `/path?a=b#hash`) when called without any parameter.\n\t *\n\t * Change path, search and hash, when called with parameter and return `$location`.\n\t *\n\t *\n\t * ```js\n\t * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t * var url = $location.url();\n\t * // => \"/some/path?foo=bar&baz=xoxo\"\n\t * ```\n\t *\n\t * @param {string=} url New url without base prefix (e.g. `/path?a=b#hash`)\n\t * @return {string} url\n\t */\n\t url: function(url) {\n\t if (isUndefined(url)) {\n\t return this.$$url;\n\t }\n\t\n\t var match = PATH_MATCH.exec(url);\n\t if (match[1] || url === '') this.path(decodeURIComponent(match[1]));\n\t if (match[2] || match[1] || url === '') this.search(match[3] || '');\n\t this.hash(match[5] || '');\n\t\n\t return this;\n\t },\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $location#protocol\n\t *\n\t * @description\n\t * This method is getter only.\n\t *\n\t * Return protocol of current url.\n\t *\n\t *\n\t * ```js\n\t * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t * var protocol = $location.protocol();\n\t * // => \"http\"\n\t * ```\n\t *\n\t * @return {string} protocol of current url\n\t */\n\t protocol: locationGetter('$$protocol'),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $location#host\n\t *\n\t * @description\n\t * This method is getter only.\n\t *\n\t * Return host of current url.\n\t *\n\t * Note: compared to the non-angular version `location.host` which returns `hostname:port`, this returns the `hostname` portion only.\n\t *\n\t *\n\t * ```js\n\t * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t * var host = $location.host();\n\t * // => \"example.com\"\n\t *\n\t * // given url http://user:password@example.com:8080/#/some/path?foo=bar&baz=xoxo\n\t * host = $location.host();\n\t * // => \"example.com\"\n\t * host = location.host;\n\t * // => \"example.com:8080\"\n\t * ```\n\t *\n\t * @return {string} host of current url.\n\t */\n\t host: locationGetter('$$host'),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $location#port\n\t *\n\t * @description\n\t * This method is getter only.\n\t *\n\t * Return port of current url.\n\t *\n\t *\n\t * ```js\n\t * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t * var port = $location.port();\n\t * // => 80\n\t * ```\n\t *\n\t * @return {Number} port\n\t */\n\t port: locationGetter('$$port'),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $location#path\n\t *\n\t * @description\n\t * This method is getter / setter.\n\t *\n\t * Return path of current url when called without any parameter.\n\t *\n\t * Change path when called with parameter and return `$location`.\n\t *\n\t * Note: Path should always begin with forward slash (/), this method will add the forward slash\n\t * if it is missing.\n\t *\n\t *\n\t * ```js\n\t * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t * var path = $location.path();\n\t * // => \"/some/path\"\n\t * ```\n\t *\n\t * @param {(string|number)=} path New path\n\t * @return {(string|object)} path if called with no parameters, or `$location` if called with a parameter\n\t */\n\t path: locationGetterSetter('$$path', function(path) {\n\t path = path !== null ? path.toString() : '';\n\t return path.charAt(0) == '/' ? path : '/' + path;\n\t }),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $location#search\n\t *\n\t * @description\n\t * This method is getter / setter.\n\t *\n\t * Return search part (as object) of current url when called without any parameter.\n\t *\n\t * Change search part when called with parameter and return `$location`.\n\t *\n\t *\n\t * ```js\n\t * // given url http://example.com/#/some/path?foo=bar&baz=xoxo\n\t * var searchObject = $location.search();\n\t * // => {foo: 'bar', baz: 'xoxo'}\n\t *\n\t * // set foo to 'yipee'\n\t * $location.search('foo', 'yipee');\n\t * // $location.search() => {foo: 'yipee', baz: 'xoxo'}\n\t * ```\n\t *\n\t * @param {string|Object.|Object.>} search New search params - string or\n\t * hash object.\n\t *\n\t * When called with a single argument the method acts as a setter, setting the `search` component\n\t * of `$location` to the specified value.\n\t *\n\t * If the argument is a hash object containing an array of values, these values will be encoded\n\t * as duplicate search parameters in the url.\n\t *\n\t * @param {(string|Number|Array|boolean)=} paramValue If `search` is a string or number, then `paramValue`\n\t * will override only a single search property.\n\t *\n\t * If `paramValue` is an array, it will override the property of the `search` component of\n\t * `$location` specified via the first argument.\n\t *\n\t * If `paramValue` is `null`, the property specified via the first argument will be deleted.\n\t *\n\t * If `paramValue` is `true`, the property specified via the first argument will be added with no\n\t * value nor trailing equal sign.\n\t *\n\t * @return {Object} If called with no arguments returns the parsed `search` object. If called with\n\t * one or more arguments returns `$location` object itself.\n\t */\n\t search: function(search, paramValue) {\n\t switch (arguments.length) {\n\t case 0:\n\t return this.$$search;\n\t case 1:\n\t if (isString(search) || isNumber(search)) {\n\t search = search.toString();\n\t this.$$search = parseKeyValue(search);\n\t } else if (isObject(search)) {\n\t search = copy(search, {});\n\t // remove object undefined or null properties\n\t forEach(search, function(value, key) {\n\t if (value == null) delete search[key];\n\t });\n\t\n\t this.$$search = search;\n\t } else {\n\t throw $locationMinErr('isrcharg',\n\t 'The first argument of the `$location#search()` call must be a string or an object.');\n\t }\n\t break;\n\t default:\n\t if (isUndefined(paramValue) || paramValue === null) {\n\t delete this.$$search[search];\n\t } else {\n\t this.$$search[search] = paramValue;\n\t }\n\t }\n\t\n\t this.$$compose();\n\t return this;\n\t },\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $location#hash\n\t *\n\t * @description\n\t * This method is getter / setter.\n\t *\n\t * Returns the hash fragment when called without any parameters.\n\t *\n\t * Changes the hash fragment when called with a parameter and returns `$location`.\n\t *\n\t *\n\t * ```js\n\t * // given url http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue\n\t * var hash = $location.hash();\n\t * // => \"hashValue\"\n\t * ```\n\t *\n\t * @param {(string|number)=} hash New hash fragment\n\t * @return {string} hash\n\t */\n\t hash: locationGetterSetter('$$hash', function(hash) {\n\t return hash !== null ? hash.toString() : '';\n\t }),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $location#replace\n\t *\n\t * @description\n\t * If called, all changes to $location during the current `$digest` will replace the current history\n\t * record, instead of adding a new one.\n\t */\n\t replace: function() {\n\t this.$$replace = true;\n\t return this;\n\t }\n\t};\n\t\n\tforEach([LocationHashbangInHtml5Url, LocationHashbangUrl, LocationHtml5Url], function(Location) {\n\t Location.prototype = Object.create(locationPrototype);\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $location#state\n\t *\n\t * @description\n\t * This method is getter / setter.\n\t *\n\t * Return the history state object when called without any parameter.\n\t *\n\t * Change the history state object when called with one parameter and return `$location`.\n\t * The state object is later passed to `pushState` or `replaceState`.\n\t *\n\t * NOTE: This method is supported only in HTML5 mode and only in browsers supporting\n\t * the HTML5 History API (i.e. methods `pushState` and `replaceState`). If you need to support\n\t * older browsers (like IE9 or Android < 4.0), don't use this method.\n\t *\n\t * @param {object=} state State object for pushState or replaceState\n\t * @return {object} state\n\t */\n\t Location.prototype.state = function(state) {\n\t if (!arguments.length) {\n\t return this.$$state;\n\t }\n\t\n\t if (Location !== LocationHtml5Url || !this.$$html5) {\n\t throw $locationMinErr('nostate', 'History API state support is available only ' +\n\t 'in HTML5 mode and only in browsers supporting HTML5 History API');\n\t }\n\t // The user might modify `stateObject` after invoking `$location.state(stateObject)`\n\t // but we're changing the $$state reference to $browser.state() during the $digest\n\t // so the modification window is narrow.\n\t this.$$state = isUndefined(state) ? null : state;\n\t\n\t return this;\n\t };\n\t});\n\t\n\t\n\tfunction locationGetter(property) {\n\t return function() {\n\t return this[property];\n\t };\n\t}\n\t\n\t\n\tfunction locationGetterSetter(property, preprocess) {\n\t return function(value) {\n\t if (isUndefined(value)) {\n\t return this[property];\n\t }\n\t\n\t this[property] = preprocess(value);\n\t this.$$compose();\n\t\n\t return this;\n\t };\n\t}\n\t\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $location\n\t *\n\t * @requires $rootElement\n\t *\n\t * @description\n\t * The $location service parses the URL in the browser address bar (based on the\n\t * [window.location](https://developer.mozilla.org/en/window.location)) and makes the URL\n\t * available to your application. Changes to the URL in the address bar are reflected into\n\t * $location service and changes to $location are reflected into the browser address bar.\n\t *\n\t * **The $location service:**\n\t *\n\t * - Exposes the current URL in the browser address bar, so you can\n\t * - Watch and observe the URL.\n\t * - Change the URL.\n\t * - Synchronizes the URL with the browser when the user\n\t * - Changes the address bar.\n\t * - Clicks the back or forward button (or clicks a History link).\n\t * - Clicks on a link.\n\t * - Represents the URL object as a set of methods (protocol, host, port, path, search, hash).\n\t *\n\t * For more information see {@link guide/$location Developer Guide: Using $location}\n\t */\n\t\n\t/**\n\t * @ngdoc provider\n\t * @name $locationProvider\n\t * @description\n\t * Use the `$locationProvider` to configure how the application deep linking paths are stored.\n\t */\n\tfunction $LocationProvider() {\n\t var hashPrefix = '',\n\t html5Mode = {\n\t enabled: false,\n\t requireBase: true,\n\t rewriteLinks: true\n\t };\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $locationProvider#hashPrefix\n\t * @description\n\t * @param {string=} prefix Prefix for hash part (containing path and search)\n\t * @returns {*} current value if used as getter or itself (chaining) if used as setter\n\t */\n\t this.hashPrefix = function(prefix) {\n\t if (isDefined(prefix)) {\n\t hashPrefix = prefix;\n\t return this;\n\t } else {\n\t return hashPrefix;\n\t }\n\t };\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $locationProvider#html5Mode\n\t * @description\n\t * @param {(boolean|Object)=} mode If boolean, sets `html5Mode.enabled` to value.\n\t * If object, sets `enabled`, `requireBase` and `rewriteLinks` to respective values. Supported\n\t * properties:\n\t * - **enabled** – `{boolean}` – (default: false) If true, will rely on `history.pushState` to\n\t * change urls where supported. Will fall back to hash-prefixed paths in browsers that do not\n\t * support `pushState`.\n\t * - **requireBase** - `{boolean}` - (default: `true`) When html5Mode is enabled, specifies\n\t * whether or not a tag is required to be present. If `enabled` and `requireBase` are\n\t * true, and a base tag is not present, an error will be thrown when `$location` is injected.\n\t * See the {@link guide/$location $location guide for more information}\n\t * - **rewriteLinks** - `{boolean}` - (default: `true`) When html5Mode is enabled,\n\t * enables/disables url rewriting for relative links.\n\t *\n\t * @returns {Object} html5Mode object if used as getter or itself (chaining) if used as setter\n\t */\n\t this.html5Mode = function(mode) {\n\t if (isBoolean(mode)) {\n\t html5Mode.enabled = mode;\n\t return this;\n\t } else if (isObject(mode)) {\n\t\n\t if (isBoolean(mode.enabled)) {\n\t html5Mode.enabled = mode.enabled;\n\t }\n\t\n\t if (isBoolean(mode.requireBase)) {\n\t html5Mode.requireBase = mode.requireBase;\n\t }\n\t\n\t if (isBoolean(mode.rewriteLinks)) {\n\t html5Mode.rewriteLinks = mode.rewriteLinks;\n\t }\n\t\n\t return this;\n\t } else {\n\t return html5Mode;\n\t }\n\t };\n\t\n\t /**\n\t * @ngdoc event\n\t * @name $location#$locationChangeStart\n\t * @eventType broadcast on root scope\n\t * @description\n\t * Broadcasted before a URL will change.\n\t *\n\t * This change can be prevented by calling\n\t * `preventDefault` method of the event. See {@link ng.$rootScope.Scope#$on} for more\n\t * details about event object. Upon successful change\n\t * {@link ng.$location#$locationChangeSuccess $locationChangeSuccess} is fired.\n\t *\n\t * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when\n\t * the browser supports the HTML5 History API.\n\t *\n\t * @param {Object} angularEvent Synthetic event object.\n\t * @param {string} newUrl New URL\n\t * @param {string=} oldUrl URL that was before it was changed.\n\t * @param {string=} newState New history state object\n\t * @param {string=} oldState History state object that was before it was changed.\n\t */\n\t\n\t /**\n\t * @ngdoc event\n\t * @name $location#$locationChangeSuccess\n\t * @eventType broadcast on root scope\n\t * @description\n\t * Broadcasted after a URL was changed.\n\t *\n\t * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when\n\t * the browser supports the HTML5 History API.\n\t *\n\t * @param {Object} angularEvent Synthetic event object.\n\t * @param {string} newUrl New URL\n\t * @param {string=} oldUrl URL that was before it was changed.\n\t * @param {string=} newState New history state object\n\t * @param {string=} oldState History state object that was before it was changed.\n\t */\n\t\n\t this.$get = ['$rootScope', '$browser', '$sniffer', '$rootElement', '$window',\n\t function($rootScope, $browser, $sniffer, $rootElement, $window) {\n\t var $location,\n\t LocationMode,\n\t baseHref = $browser.baseHref(), // if base[href] is undefined, it defaults to ''\n\t initialUrl = $browser.url(),\n\t appBase;\n\t\n\t if (html5Mode.enabled) {\n\t if (!baseHref && html5Mode.requireBase) {\n\t throw $locationMinErr('nobase',\n\t \"$location in HTML5 mode requires a tag to be present!\");\n\t }\n\t appBase = serverBase(initialUrl) + (baseHref || '/');\n\t LocationMode = $sniffer.history ? LocationHtml5Url : LocationHashbangInHtml5Url;\n\t } else {\n\t appBase = stripHash(initialUrl);\n\t LocationMode = LocationHashbangUrl;\n\t }\n\t var appBaseNoFile = stripFile(appBase);\n\t\n\t $location = new LocationMode(appBase, appBaseNoFile, '#' + hashPrefix);\n\t $location.$$parseLinkUrl(initialUrl, initialUrl);\n\t\n\t $location.$$state = $browser.state();\n\t\n\t var IGNORE_URI_REGEXP = /^\\s*(javascript|mailto):/i;\n\t\n\t function setBrowserUrlWithFallback(url, replace, state) {\n\t var oldUrl = $location.url();\n\t var oldState = $location.$$state;\n\t try {\n\t $browser.url(url, replace, state);\n\t\n\t // Make sure $location.state() returns referentially identical (not just deeply equal)\n\t // state object; this makes possible quick checking if the state changed in the digest\n\t // loop. Checking deep equality would be too expensive.\n\t $location.$$state = $browser.state();\n\t } catch (e) {\n\t // Restore old values if pushState fails\n\t $location.url(oldUrl);\n\t $location.$$state = oldState;\n\t\n\t throw e;\n\t }\n\t }\n\t\n\t $rootElement.on('click', function(event) {\n\t // TODO(vojta): rewrite link when opening in new tab/window (in legacy browser)\n\t // currently we open nice url link and redirect then\n\t\n\t if (!html5Mode.rewriteLinks || event.ctrlKey || event.metaKey || event.shiftKey || event.which == 2 || event.button == 2) return;\n\t\n\t var elm = jqLite(event.target);\n\t\n\t // traverse the DOM up to find first A tag\n\t while (nodeName_(elm[0]) !== 'a') {\n\t // ignore rewriting if no A tag (reached root element, or no parent - removed from document)\n\t if (elm[0] === $rootElement[0] || !(elm = elm.parent())[0]) return;\n\t }\n\t\n\t var absHref = elm.prop('href');\n\t // get the actual href attribute - see\n\t // http://msdn.microsoft.com/en-us/library/ie/dd347148(v=vs.85).aspx\n\t var relHref = elm.attr('href') || elm.attr('xlink:href');\n\t\n\t if (isObject(absHref) && absHref.toString() === '[object SVGAnimatedString]') {\n\t // SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal, unless during\n\t // an animation.\n\t absHref = urlResolve(absHref.animVal).href;\n\t }\n\t\n\t // Ignore when url is started with javascript: or mailto:\n\t if (IGNORE_URI_REGEXP.test(absHref)) return;\n\t\n\t if (absHref && !elm.attr('target') && !event.isDefaultPrevented()) {\n\t if ($location.$$parseLinkUrl(absHref, relHref)) {\n\t // We do a preventDefault for all urls that are part of the angular application,\n\t // in html5mode and also without, so that we are able to abort navigation without\n\t // getting double entries in the location history.\n\t event.preventDefault();\n\t // update location manually\n\t if ($location.absUrl() != $browser.url()) {\n\t $rootScope.$apply();\n\t // hack to work around FF6 bug 684208 when scenario runner clicks on links\n\t $window.angular['ff-684208-preventDefault'] = true;\n\t }\n\t }\n\t }\n\t });\n\t\n\t\n\t // rewrite hashbang url <> html5 url\n\t if (trimEmptyHash($location.absUrl()) != trimEmptyHash(initialUrl)) {\n\t $browser.url($location.absUrl(), true);\n\t }\n\t\n\t var initializing = true;\n\t\n\t // update $location when $browser url changes\n\t $browser.onUrlChange(function(newUrl, newState) {\n\t\n\t if (isUndefined(beginsWith(appBaseNoFile, newUrl))) {\n\t // If we are navigating outside of the app then force a reload\n\t $window.location.href = newUrl;\n\t return;\n\t }\n\t\n\t $rootScope.$evalAsync(function() {\n\t var oldUrl = $location.absUrl();\n\t var oldState = $location.$$state;\n\t var defaultPrevented;\n\t newUrl = trimEmptyHash(newUrl);\n\t $location.$$parse(newUrl);\n\t $location.$$state = newState;\n\t\n\t defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl,\n\t newState, oldState).defaultPrevented;\n\t\n\t // if the location was changed by a `$locationChangeStart` handler then stop\n\t // processing this location change\n\t if ($location.absUrl() !== newUrl) return;\n\t\n\t if (defaultPrevented) {\n\t $location.$$parse(oldUrl);\n\t $location.$$state = oldState;\n\t setBrowserUrlWithFallback(oldUrl, false, oldState);\n\t } else {\n\t initializing = false;\n\t afterLocationChange(oldUrl, oldState);\n\t }\n\t });\n\t if (!$rootScope.$$phase) $rootScope.$digest();\n\t });\n\t\n\t // update browser\n\t $rootScope.$watch(function $locationWatch() {\n\t var oldUrl = trimEmptyHash($browser.url());\n\t var newUrl = trimEmptyHash($location.absUrl());\n\t var oldState = $browser.state();\n\t var currentReplace = $location.$$replace;\n\t var urlOrStateChanged = oldUrl !== newUrl ||\n\t ($location.$$html5 && $sniffer.history && oldState !== $location.$$state);\n\t\n\t if (initializing || urlOrStateChanged) {\n\t initializing = false;\n\t\n\t $rootScope.$evalAsync(function() {\n\t var newUrl = $location.absUrl();\n\t var defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl,\n\t $location.$$state, oldState).defaultPrevented;\n\t\n\t // if the location was changed by a `$locationChangeStart` handler then stop\n\t // processing this location change\n\t if ($location.absUrl() !== newUrl) return;\n\t\n\t if (defaultPrevented) {\n\t $location.$$parse(oldUrl);\n\t $location.$$state = oldState;\n\t } else {\n\t if (urlOrStateChanged) {\n\t setBrowserUrlWithFallback(newUrl, currentReplace,\n\t oldState === $location.$$state ? null : $location.$$state);\n\t }\n\t afterLocationChange(oldUrl, oldState);\n\t }\n\t });\n\t }\n\t\n\t $location.$$replace = false;\n\t\n\t // we don't need to return anything because $evalAsync will make the digest loop dirty when\n\t // there is a change\n\t });\n\t\n\t return $location;\n\t\n\t function afterLocationChange(oldUrl, oldState) {\n\t $rootScope.$broadcast('$locationChangeSuccess', $location.absUrl(), oldUrl,\n\t $location.$$state, oldState);\n\t }\n\t}];\n\t}\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $log\n\t * @requires $window\n\t *\n\t * @description\n\t * Simple service for logging. Default implementation safely writes the message\n\t * into the browser's console (if present).\n\t *\n\t * The main purpose of this service is to simplify debugging and troubleshooting.\n\t *\n\t * The default is to log `debug` messages. You can use\n\t * {@link ng.$logProvider ng.$logProvider#debugEnabled} to change this.\n\t *\n\t * @example\n\t \n\t \n\t angular.module('logExample', [])\n\t .controller('LogController', ['$scope', '$log', function($scope, $log) {\n\t $scope.$log = $log;\n\t $scope.message = 'Hello World!';\n\t }]);\n\t \n\t \n\t
\n\t

Reload this page with open console, enter text and hit the log button...

\n\t \n\t \n\t \n\t \n\t \n\t \n\t
\n\t
\n\t
\n\t */\n\t\n\t/**\n\t * @ngdoc provider\n\t * @name $logProvider\n\t * @description\n\t * Use the `$logProvider` to configure how the application logs messages\n\t */\n\tfunction $LogProvider() {\n\t var debug = true,\n\t self = this;\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $logProvider#debugEnabled\n\t * @description\n\t * @param {boolean=} flag enable or disable debug level messages\n\t * @returns {*} current value if used as getter or itself (chaining) if used as setter\n\t */\n\t this.debugEnabled = function(flag) {\n\t if (isDefined(flag)) {\n\t debug = flag;\n\t return this;\n\t } else {\n\t return debug;\n\t }\n\t };\n\t\n\t this.$get = ['$window', function($window) {\n\t return {\n\t /**\n\t * @ngdoc method\n\t * @name $log#log\n\t *\n\t * @description\n\t * Write a log message\n\t */\n\t log: consoleLog('log'),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $log#info\n\t *\n\t * @description\n\t * Write an information message\n\t */\n\t info: consoleLog('info'),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $log#warn\n\t *\n\t * @description\n\t * Write a warning message\n\t */\n\t warn: consoleLog('warn'),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $log#error\n\t *\n\t * @description\n\t * Write an error message\n\t */\n\t error: consoleLog('error'),\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $log#debug\n\t *\n\t * @description\n\t * Write a debug message\n\t */\n\t debug: (function() {\n\t var fn = consoleLog('debug');\n\t\n\t return function() {\n\t if (debug) {\n\t fn.apply(self, arguments);\n\t }\n\t };\n\t }())\n\t };\n\t\n\t function formatError(arg) {\n\t if (arg instanceof Error) {\n\t if (arg.stack) {\n\t arg = (arg.message && arg.stack.indexOf(arg.message) === -1)\n\t ? 'Error: ' + arg.message + '\\n' + arg.stack\n\t : arg.stack;\n\t } else if (arg.sourceURL) {\n\t arg = arg.message + '\\n' + arg.sourceURL + ':' + arg.line;\n\t }\n\t }\n\t return arg;\n\t }\n\t\n\t function consoleLog(type) {\n\t var console = $window.console || {},\n\t logFn = console[type] || console.log || noop,\n\t hasApply = false;\n\t\n\t // Note: reading logFn.apply throws an error in IE11 in IE8 document mode.\n\t // The reason behind this is that console.log has type \"object\" in IE8...\n\t try {\n\t hasApply = !!logFn.apply;\n\t } catch (e) {}\n\t\n\t if (hasApply) {\n\t return function() {\n\t var args = [];\n\t forEach(arguments, function(arg) {\n\t args.push(formatError(arg));\n\t });\n\t return logFn.apply(console, args);\n\t };\n\t }\n\t\n\t // we are IE which either doesn't have window.console => this is noop and we do nothing,\n\t // or we are IE where console.log doesn't have apply so we log at least first 2 args\n\t return function(arg1, arg2) {\n\t logFn(arg1, arg2 == null ? '' : arg2);\n\t };\n\t }\n\t }];\n\t}\n\t\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t * Any commits to this file should be reviewed with security in mind. *\n\t * Changes to this file can potentially create security vulnerabilities. *\n\t * An approval from 2 Core members with history of modifying *\n\t * this file is required. *\n\t * *\n\t * Does the change somehow allow for arbitrary javascript to be executed? *\n\t * Or allows for someone to change the prototype of built-in objects? *\n\t * Or gives undesired access to variables likes document or window? *\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\t\n\tvar $parseMinErr = minErr('$parse');\n\t\n\t// Sandboxing Angular Expressions\n\t// ------------------------------\n\t// Angular expressions are generally considered safe because these expressions only have direct\n\t// access to `$scope` and locals. However, one can obtain the ability to execute arbitrary JS code by\n\t// obtaining a reference to native JS functions such as the Function constructor.\n\t//\n\t// As an example, consider the following Angular expression:\n\t//\n\t// {}.toString.constructor('alert(\"evil JS code\")')\n\t//\n\t// This sandboxing technique is not perfect and doesn't aim to be. The goal is to prevent exploits\n\t// against the expression language, but not to prevent exploits that were enabled by exposing\n\t// sensitive JavaScript or browser APIs on Scope. Exposing such objects on a Scope is never a good\n\t// practice and therefore we are not even trying to protect against interaction with an object\n\t// explicitly exposed in this way.\n\t//\n\t// In general, it is not possible to access a Window object from an angular expression unless a\n\t// window or some DOM object that has a reference to window is published onto a Scope.\n\t// Similarly we prevent invocations of function known to be dangerous, as well as assignments to\n\t// native objects.\n\t//\n\t// See https://docs.angularjs.org/guide/security\n\t\n\t\n\tfunction ensureSafeMemberName(name, fullExpression) {\n\t if (name === \"__defineGetter__\" || name === \"__defineSetter__\"\n\t || name === \"__lookupGetter__\" || name === \"__lookupSetter__\"\n\t || name === \"__proto__\") {\n\t throw $parseMinErr('isecfld',\n\t 'Attempting to access a disallowed field in Angular expressions! '\n\t + 'Expression: {0}', fullExpression);\n\t }\n\t return name;\n\t}\n\t\n\tfunction getStringValue(name, fullExpression) {\n\t // From the JavaScript docs:\n\t // Property names must be strings. This means that non-string objects cannot be used\n\t // as keys in an object. Any non-string object, including a number, is typecasted\n\t // into a string via the toString method.\n\t //\n\t // So, to ensure that we are checking the same `name` that JavaScript would use,\n\t // we cast it to a string, if possible.\n\t // Doing `name + ''` can cause a repl error if the result to `toString` is not a string,\n\t // this is, this will handle objects that misbehave.\n\t name = name + '';\n\t if (!isString(name)) {\n\t throw $parseMinErr('iseccst',\n\t 'Cannot convert object to primitive value! '\n\t + 'Expression: {0}', fullExpression);\n\t }\n\t return name;\n\t}\n\t\n\tfunction ensureSafeObject(obj, fullExpression) {\n\t // nifty check if obj is Function that is fast and works across iframes and other contexts\n\t if (obj) {\n\t if (obj.constructor === obj) {\n\t throw $parseMinErr('isecfn',\n\t 'Referencing Function in Angular expressions is disallowed! Expression: {0}',\n\t fullExpression);\n\t } else if (// isWindow(obj)\n\t obj.window === obj) {\n\t throw $parseMinErr('isecwindow',\n\t 'Referencing the Window in Angular expressions is disallowed! Expression: {0}',\n\t fullExpression);\n\t } else if (// isElement(obj)\n\t obj.children && (obj.nodeName || (obj.prop && obj.attr && obj.find))) {\n\t throw $parseMinErr('isecdom',\n\t 'Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}',\n\t fullExpression);\n\t } else if (// block Object so that we can't get hold of dangerous Object.* methods\n\t obj === Object) {\n\t throw $parseMinErr('isecobj',\n\t 'Referencing Object in Angular expressions is disallowed! Expression: {0}',\n\t fullExpression);\n\t }\n\t }\n\t return obj;\n\t}\n\t\n\tvar CALL = Function.prototype.call;\n\tvar APPLY = Function.prototype.apply;\n\tvar BIND = Function.prototype.bind;\n\t\n\tfunction ensureSafeFunction(obj, fullExpression) {\n\t if (obj) {\n\t if (obj.constructor === obj) {\n\t throw $parseMinErr('isecfn',\n\t 'Referencing Function in Angular expressions is disallowed! Expression: {0}',\n\t fullExpression);\n\t } else if (obj === CALL || obj === APPLY || obj === BIND) {\n\t throw $parseMinErr('isecff',\n\t 'Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}',\n\t fullExpression);\n\t }\n\t }\n\t}\n\t\n\tfunction ensureSafeAssignContext(obj, fullExpression) {\n\t if (obj) {\n\t if (obj === (0).constructor || obj === (false).constructor || obj === ''.constructor ||\n\t obj === {}.constructor || obj === [].constructor || obj === Function.constructor) {\n\t throw $parseMinErr('isecaf',\n\t 'Assigning to a constructor is disallowed! Expression: {0}', fullExpression);\n\t }\n\t }\n\t}\n\t\n\tvar OPERATORS = createMap();\n\tforEach('+ - * / % === !== == != < > <= >= && || ! = |'.split(' '), function(operator) { OPERATORS[operator] = true; });\n\tvar ESCAPE = {\"n\":\"\\n\", \"f\":\"\\f\", \"r\":\"\\r\", \"t\":\"\\t\", \"v\":\"\\v\", \"'\":\"'\", '\"':'\"'};\n\t\n\t\n\t/////////////////////////////////////////\n\t\n\t\n\t/**\n\t * @constructor\n\t */\n\tvar Lexer = function(options) {\n\t this.options = options;\n\t};\n\t\n\tLexer.prototype = {\n\t constructor: Lexer,\n\t\n\t lex: function(text) {\n\t this.text = text;\n\t this.index = 0;\n\t this.tokens = [];\n\t\n\t while (this.index < this.text.length) {\n\t var ch = this.text.charAt(this.index);\n\t if (ch === '\"' || ch === \"'\") {\n\t this.readString(ch);\n\t } else if (this.isNumber(ch) || ch === '.' && this.isNumber(this.peek())) {\n\t this.readNumber();\n\t } else if (this.isIdent(ch)) {\n\t this.readIdent();\n\t } else if (this.is(ch, '(){}[].,;:?')) {\n\t this.tokens.push({index: this.index, text: ch});\n\t this.index++;\n\t } else if (this.isWhitespace(ch)) {\n\t this.index++;\n\t } else {\n\t var ch2 = ch + this.peek();\n\t var ch3 = ch2 + this.peek(2);\n\t var op1 = OPERATORS[ch];\n\t var op2 = OPERATORS[ch2];\n\t var op3 = OPERATORS[ch3];\n\t if (op1 || op2 || op3) {\n\t var token = op3 ? ch3 : (op2 ? ch2 : ch);\n\t this.tokens.push({index: this.index, text: token, operator: true});\n\t this.index += token.length;\n\t } else {\n\t this.throwError('Unexpected next character ', this.index, this.index + 1);\n\t }\n\t }\n\t }\n\t return this.tokens;\n\t },\n\t\n\t is: function(ch, chars) {\n\t return chars.indexOf(ch) !== -1;\n\t },\n\t\n\t peek: function(i) {\n\t var num = i || 1;\n\t return (this.index + num < this.text.length) ? this.text.charAt(this.index + num) : false;\n\t },\n\t\n\t isNumber: function(ch) {\n\t return ('0' <= ch && ch <= '9') && typeof ch === \"string\";\n\t },\n\t\n\t isWhitespace: function(ch) {\n\t // IE treats non-breaking space as \\u00A0\n\t return (ch === ' ' || ch === '\\r' || ch === '\\t' ||\n\t ch === '\\n' || ch === '\\v' || ch === '\\u00A0');\n\t },\n\t\n\t isIdent: function(ch) {\n\t return ('a' <= ch && ch <= 'z' ||\n\t 'A' <= ch && ch <= 'Z' ||\n\t '_' === ch || ch === '$');\n\t },\n\t\n\t isExpOperator: function(ch) {\n\t return (ch === '-' || ch === '+' || this.isNumber(ch));\n\t },\n\t\n\t throwError: function(error, start, end) {\n\t end = end || this.index;\n\t var colStr = (isDefined(start)\n\t ? 's ' + start + '-' + this.index + ' [' + this.text.substring(start, end) + ']'\n\t : ' ' + end);\n\t throw $parseMinErr('lexerr', 'Lexer Error: {0} at column{1} in expression [{2}].',\n\t error, colStr, this.text);\n\t },\n\t\n\t readNumber: function() {\n\t var number = '';\n\t var start = this.index;\n\t while (this.index < this.text.length) {\n\t var ch = lowercase(this.text.charAt(this.index));\n\t if (ch == '.' || this.isNumber(ch)) {\n\t number += ch;\n\t } else {\n\t var peekCh = this.peek();\n\t if (ch == 'e' && this.isExpOperator(peekCh)) {\n\t number += ch;\n\t } else if (this.isExpOperator(ch) &&\n\t peekCh && this.isNumber(peekCh) &&\n\t number.charAt(number.length - 1) == 'e') {\n\t number += ch;\n\t } else if (this.isExpOperator(ch) &&\n\t (!peekCh || !this.isNumber(peekCh)) &&\n\t number.charAt(number.length - 1) == 'e') {\n\t this.throwError('Invalid exponent');\n\t } else {\n\t break;\n\t }\n\t }\n\t this.index++;\n\t }\n\t this.tokens.push({\n\t index: start,\n\t text: number,\n\t constant: true,\n\t value: Number(number)\n\t });\n\t },\n\t\n\t readIdent: function() {\n\t var start = this.index;\n\t while (this.index < this.text.length) {\n\t var ch = this.text.charAt(this.index);\n\t if (!(this.isIdent(ch) || this.isNumber(ch))) {\n\t break;\n\t }\n\t this.index++;\n\t }\n\t this.tokens.push({\n\t index: start,\n\t text: this.text.slice(start, this.index),\n\t identifier: true\n\t });\n\t },\n\t\n\t readString: function(quote) {\n\t var start = this.index;\n\t this.index++;\n\t var string = '';\n\t var rawString = quote;\n\t var escape = false;\n\t while (this.index < this.text.length) {\n\t var ch = this.text.charAt(this.index);\n\t rawString += ch;\n\t if (escape) {\n\t if (ch === 'u') {\n\t var hex = this.text.substring(this.index + 1, this.index + 5);\n\t if (!hex.match(/[\\da-f]{4}/i)) {\n\t this.throwError('Invalid unicode escape [\\\\u' + hex + ']');\n\t }\n\t this.index += 4;\n\t string += String.fromCharCode(parseInt(hex, 16));\n\t } else {\n\t var rep = ESCAPE[ch];\n\t string = string + (rep || ch);\n\t }\n\t escape = false;\n\t } else if (ch === '\\\\') {\n\t escape = true;\n\t } else if (ch === quote) {\n\t this.index++;\n\t this.tokens.push({\n\t index: start,\n\t text: rawString,\n\t constant: true,\n\t value: string\n\t });\n\t return;\n\t } else {\n\t string += ch;\n\t }\n\t this.index++;\n\t }\n\t this.throwError('Unterminated quote', start);\n\t }\n\t};\n\t\n\tvar AST = function(lexer, options) {\n\t this.lexer = lexer;\n\t this.options = options;\n\t};\n\t\n\tAST.Program = 'Program';\n\tAST.ExpressionStatement = 'ExpressionStatement';\n\tAST.AssignmentExpression = 'AssignmentExpression';\n\tAST.ConditionalExpression = 'ConditionalExpression';\n\tAST.LogicalExpression = 'LogicalExpression';\n\tAST.BinaryExpression = 'BinaryExpression';\n\tAST.UnaryExpression = 'UnaryExpression';\n\tAST.CallExpression = 'CallExpression';\n\tAST.MemberExpression = 'MemberExpression';\n\tAST.Identifier = 'Identifier';\n\tAST.Literal = 'Literal';\n\tAST.ArrayExpression = 'ArrayExpression';\n\tAST.Property = 'Property';\n\tAST.ObjectExpression = 'ObjectExpression';\n\tAST.ThisExpression = 'ThisExpression';\n\t\n\t// Internal use only\n\tAST.NGValueParameter = 'NGValueParameter';\n\t\n\tAST.prototype = {\n\t ast: function(text) {\n\t this.text = text;\n\t this.tokens = this.lexer.lex(text);\n\t\n\t var value = this.program();\n\t\n\t if (this.tokens.length !== 0) {\n\t this.throwError('is an unexpected token', this.tokens[0]);\n\t }\n\t\n\t return value;\n\t },\n\t\n\t program: function() {\n\t var body = [];\n\t while (true) {\n\t if (this.tokens.length > 0 && !this.peek('}', ')', ';', ']'))\n\t body.push(this.expressionStatement());\n\t if (!this.expect(';')) {\n\t return { type: AST.Program, body: body};\n\t }\n\t }\n\t },\n\t\n\t expressionStatement: function() {\n\t return { type: AST.ExpressionStatement, expression: this.filterChain() };\n\t },\n\t\n\t filterChain: function() {\n\t var left = this.expression();\n\t var token;\n\t while ((token = this.expect('|'))) {\n\t left = this.filter(left);\n\t }\n\t return left;\n\t },\n\t\n\t expression: function() {\n\t return this.assignment();\n\t },\n\t\n\t assignment: function() {\n\t var result = this.ternary();\n\t if (this.expect('=')) {\n\t result = { type: AST.AssignmentExpression, left: result, right: this.assignment(), operator: '='};\n\t }\n\t return result;\n\t },\n\t\n\t ternary: function() {\n\t var test = this.logicalOR();\n\t var alternate;\n\t var consequent;\n\t if (this.expect('?')) {\n\t alternate = this.expression();\n\t if (this.consume(':')) {\n\t consequent = this.expression();\n\t return { type: AST.ConditionalExpression, test: test, alternate: alternate, consequent: consequent};\n\t }\n\t }\n\t return test;\n\t },\n\t\n\t logicalOR: function() {\n\t var left = this.logicalAND();\n\t while (this.expect('||')) {\n\t left = { type: AST.LogicalExpression, operator: '||', left: left, right: this.logicalAND() };\n\t }\n\t return left;\n\t },\n\t\n\t logicalAND: function() {\n\t var left = this.equality();\n\t while (this.expect('&&')) {\n\t left = { type: AST.LogicalExpression, operator: '&&', left: left, right: this.equality()};\n\t }\n\t return left;\n\t },\n\t\n\t equality: function() {\n\t var left = this.relational();\n\t var token;\n\t while ((token = this.expect('==','!=','===','!=='))) {\n\t left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.relational() };\n\t }\n\t return left;\n\t },\n\t\n\t relational: function() {\n\t var left = this.additive();\n\t var token;\n\t while ((token = this.expect('<', '>', '<=', '>='))) {\n\t left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.additive() };\n\t }\n\t return left;\n\t },\n\t\n\t additive: function() {\n\t var left = this.multiplicative();\n\t var token;\n\t while ((token = this.expect('+','-'))) {\n\t left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.multiplicative() };\n\t }\n\t return left;\n\t },\n\t\n\t multiplicative: function() {\n\t var left = this.unary();\n\t var token;\n\t while ((token = this.expect('*','/','%'))) {\n\t left = { type: AST.BinaryExpression, operator: token.text, left: left, right: this.unary() };\n\t }\n\t return left;\n\t },\n\t\n\t unary: function() {\n\t var token;\n\t if ((token = this.expect('+', '-', '!'))) {\n\t return { type: AST.UnaryExpression, operator: token.text, prefix: true, argument: this.unary() };\n\t } else {\n\t return this.primary();\n\t }\n\t },\n\t\n\t primary: function() {\n\t var primary;\n\t if (this.expect('(')) {\n\t primary = this.filterChain();\n\t this.consume(')');\n\t } else if (this.expect('[')) {\n\t primary = this.arrayDeclaration();\n\t } else if (this.expect('{')) {\n\t primary = this.object();\n\t } else if (this.constants.hasOwnProperty(this.peek().text)) {\n\t primary = copy(this.constants[this.consume().text]);\n\t } else if (this.peek().identifier) {\n\t primary = this.identifier();\n\t } else if (this.peek().constant) {\n\t primary = this.constant();\n\t } else {\n\t this.throwError('not a primary expression', this.peek());\n\t }\n\t\n\t var next;\n\t while ((next = this.expect('(', '[', '.'))) {\n\t if (next.text === '(') {\n\t primary = {type: AST.CallExpression, callee: primary, arguments: this.parseArguments() };\n\t this.consume(')');\n\t } else if (next.text === '[') {\n\t primary = { type: AST.MemberExpression, object: primary, property: this.expression(), computed: true };\n\t this.consume(']');\n\t } else if (next.text === '.') {\n\t primary = { type: AST.MemberExpression, object: primary, property: this.identifier(), computed: false };\n\t } else {\n\t this.throwError('IMPOSSIBLE');\n\t }\n\t }\n\t return primary;\n\t },\n\t\n\t filter: function(baseExpression) {\n\t var args = [baseExpression];\n\t var result = {type: AST.CallExpression, callee: this.identifier(), arguments: args, filter: true};\n\t\n\t while (this.expect(':')) {\n\t args.push(this.expression());\n\t }\n\t\n\t return result;\n\t },\n\t\n\t parseArguments: function() {\n\t var args = [];\n\t if (this.peekToken().text !== ')') {\n\t do {\n\t args.push(this.expression());\n\t } while (this.expect(','));\n\t }\n\t return args;\n\t },\n\t\n\t identifier: function() {\n\t var token = this.consume();\n\t if (!token.identifier) {\n\t this.throwError('is not a valid identifier', token);\n\t }\n\t return { type: AST.Identifier, name: token.text };\n\t },\n\t\n\t constant: function() {\n\t // TODO check that it is a constant\n\t return { type: AST.Literal, value: this.consume().value };\n\t },\n\t\n\t arrayDeclaration: function() {\n\t var elements = [];\n\t if (this.peekToken().text !== ']') {\n\t do {\n\t if (this.peek(']')) {\n\t // Support trailing commas per ES5.1.\n\t break;\n\t }\n\t elements.push(this.expression());\n\t } while (this.expect(','));\n\t }\n\t this.consume(']');\n\t\n\t return { type: AST.ArrayExpression, elements: elements };\n\t },\n\t\n\t object: function() {\n\t var properties = [], property;\n\t if (this.peekToken().text !== '}') {\n\t do {\n\t if (this.peek('}')) {\n\t // Support trailing commas per ES5.1.\n\t break;\n\t }\n\t property = {type: AST.Property, kind: 'init'};\n\t if (this.peek().constant) {\n\t property.key = this.constant();\n\t } else if (this.peek().identifier) {\n\t property.key = this.identifier();\n\t } else {\n\t this.throwError(\"invalid key\", this.peek());\n\t }\n\t this.consume(':');\n\t property.value = this.expression();\n\t properties.push(property);\n\t } while (this.expect(','));\n\t }\n\t this.consume('}');\n\t\n\t return {type: AST.ObjectExpression, properties: properties };\n\t },\n\t\n\t throwError: function(msg, token) {\n\t throw $parseMinErr('syntax',\n\t 'Syntax Error: Token \\'{0}\\' {1} at column {2} of the expression [{3}] starting at [{4}].',\n\t token.text, msg, (token.index + 1), this.text, this.text.substring(token.index));\n\t },\n\t\n\t consume: function(e1) {\n\t if (this.tokens.length === 0) {\n\t throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text);\n\t }\n\t\n\t var token = this.expect(e1);\n\t if (!token) {\n\t this.throwError('is unexpected, expecting [' + e1 + ']', this.peek());\n\t }\n\t return token;\n\t },\n\t\n\t peekToken: function() {\n\t if (this.tokens.length === 0) {\n\t throw $parseMinErr('ueoe', 'Unexpected end of expression: {0}', this.text);\n\t }\n\t return this.tokens[0];\n\t },\n\t\n\t peek: function(e1, e2, e3, e4) {\n\t return this.peekAhead(0, e1, e2, e3, e4);\n\t },\n\t\n\t peekAhead: function(i, e1, e2, e3, e4) {\n\t if (this.tokens.length > i) {\n\t var token = this.tokens[i];\n\t var t = token.text;\n\t if (t === e1 || t === e2 || t === e3 || t === e4 ||\n\t (!e1 && !e2 && !e3 && !e4)) {\n\t return token;\n\t }\n\t }\n\t return false;\n\t },\n\t\n\t expect: function(e1, e2, e3, e4) {\n\t var token = this.peek(e1, e2, e3, e4);\n\t if (token) {\n\t this.tokens.shift();\n\t return token;\n\t }\n\t return false;\n\t },\n\t\n\t\n\t /* `undefined` is not a constant, it is an identifier,\n\t * but using it as an identifier is not supported\n\t */\n\t constants: {\n\t 'true': { type: AST.Literal, value: true },\n\t 'false': { type: AST.Literal, value: false },\n\t 'null': { type: AST.Literal, value: null },\n\t 'undefined': {type: AST.Literal, value: undefined },\n\t 'this': {type: AST.ThisExpression }\n\t }\n\t};\n\t\n\tfunction ifDefined(v, d) {\n\t return typeof v !== 'undefined' ? v : d;\n\t}\n\t\n\tfunction plusFn(l, r) {\n\t if (typeof l === 'undefined') return r;\n\t if (typeof r === 'undefined') return l;\n\t return l + r;\n\t}\n\t\n\tfunction isStateless($filter, filterName) {\n\t var fn = $filter(filterName);\n\t return !fn.$stateful;\n\t}\n\t\n\tfunction findConstantAndWatchExpressions(ast, $filter) {\n\t var allConstants;\n\t var argsToWatch;\n\t switch (ast.type) {\n\t case AST.Program:\n\t allConstants = true;\n\t forEach(ast.body, function(expr) {\n\t findConstantAndWatchExpressions(expr.expression, $filter);\n\t allConstants = allConstants && expr.expression.constant;\n\t });\n\t ast.constant = allConstants;\n\t break;\n\t case AST.Literal:\n\t ast.constant = true;\n\t ast.toWatch = [];\n\t break;\n\t case AST.UnaryExpression:\n\t findConstantAndWatchExpressions(ast.argument, $filter);\n\t ast.constant = ast.argument.constant;\n\t ast.toWatch = ast.argument.toWatch;\n\t break;\n\t case AST.BinaryExpression:\n\t findConstantAndWatchExpressions(ast.left, $filter);\n\t findConstantAndWatchExpressions(ast.right, $filter);\n\t ast.constant = ast.left.constant && ast.right.constant;\n\t ast.toWatch = ast.left.toWatch.concat(ast.right.toWatch);\n\t break;\n\t case AST.LogicalExpression:\n\t findConstantAndWatchExpressions(ast.left, $filter);\n\t findConstantAndWatchExpressions(ast.right, $filter);\n\t ast.constant = ast.left.constant && ast.right.constant;\n\t ast.toWatch = ast.constant ? [] : [ast];\n\t break;\n\t case AST.ConditionalExpression:\n\t findConstantAndWatchExpressions(ast.test, $filter);\n\t findConstantAndWatchExpressions(ast.alternate, $filter);\n\t findConstantAndWatchExpressions(ast.consequent, $filter);\n\t ast.constant = ast.test.constant && ast.alternate.constant && ast.consequent.constant;\n\t ast.toWatch = ast.constant ? [] : [ast];\n\t break;\n\t case AST.Identifier:\n\t ast.constant = false;\n\t ast.toWatch = [ast];\n\t break;\n\t case AST.MemberExpression:\n\t findConstantAndWatchExpressions(ast.object, $filter);\n\t if (ast.computed) {\n\t findConstantAndWatchExpressions(ast.property, $filter);\n\t }\n\t ast.constant = ast.object.constant && (!ast.computed || ast.property.constant);\n\t ast.toWatch = [ast];\n\t break;\n\t case AST.CallExpression:\n\t allConstants = ast.filter ? isStateless($filter, ast.callee.name) : false;\n\t argsToWatch = [];\n\t forEach(ast.arguments, function(expr) {\n\t findConstantAndWatchExpressions(expr, $filter);\n\t allConstants = allConstants && expr.constant;\n\t if (!expr.constant) {\n\t argsToWatch.push.apply(argsToWatch, expr.toWatch);\n\t }\n\t });\n\t ast.constant = allConstants;\n\t ast.toWatch = ast.filter && isStateless($filter, ast.callee.name) ? argsToWatch : [ast];\n\t break;\n\t case AST.AssignmentExpression:\n\t findConstantAndWatchExpressions(ast.left, $filter);\n\t findConstantAndWatchExpressions(ast.right, $filter);\n\t ast.constant = ast.left.constant && ast.right.constant;\n\t ast.toWatch = [ast];\n\t break;\n\t case AST.ArrayExpression:\n\t allConstants = true;\n\t argsToWatch = [];\n\t forEach(ast.elements, function(expr) {\n\t findConstantAndWatchExpressions(expr, $filter);\n\t allConstants = allConstants && expr.constant;\n\t if (!expr.constant) {\n\t argsToWatch.push.apply(argsToWatch, expr.toWatch);\n\t }\n\t });\n\t ast.constant = allConstants;\n\t ast.toWatch = argsToWatch;\n\t break;\n\t case AST.ObjectExpression:\n\t allConstants = true;\n\t argsToWatch = [];\n\t forEach(ast.properties, function(property) {\n\t findConstantAndWatchExpressions(property.value, $filter);\n\t allConstants = allConstants && property.value.constant;\n\t if (!property.value.constant) {\n\t argsToWatch.push.apply(argsToWatch, property.value.toWatch);\n\t }\n\t });\n\t ast.constant = allConstants;\n\t ast.toWatch = argsToWatch;\n\t break;\n\t case AST.ThisExpression:\n\t ast.constant = false;\n\t ast.toWatch = [];\n\t break;\n\t }\n\t}\n\t\n\tfunction getInputs(body) {\n\t if (body.length != 1) return;\n\t var lastExpression = body[0].expression;\n\t var candidate = lastExpression.toWatch;\n\t if (candidate.length !== 1) return candidate;\n\t return candidate[0] !== lastExpression ? candidate : undefined;\n\t}\n\t\n\tfunction isAssignable(ast) {\n\t return ast.type === AST.Identifier || ast.type === AST.MemberExpression;\n\t}\n\t\n\tfunction assignableAST(ast) {\n\t if (ast.body.length === 1 && isAssignable(ast.body[0].expression)) {\n\t return {type: AST.AssignmentExpression, left: ast.body[0].expression, right: {type: AST.NGValueParameter}, operator: '='};\n\t }\n\t}\n\t\n\tfunction isLiteral(ast) {\n\t return ast.body.length === 0 ||\n\t ast.body.length === 1 && (\n\t ast.body[0].expression.type === AST.Literal ||\n\t ast.body[0].expression.type === AST.ArrayExpression ||\n\t ast.body[0].expression.type === AST.ObjectExpression);\n\t}\n\t\n\tfunction isConstant(ast) {\n\t return ast.constant;\n\t}\n\t\n\tfunction ASTCompiler(astBuilder, $filter) {\n\t this.astBuilder = astBuilder;\n\t this.$filter = $filter;\n\t}\n\t\n\tASTCompiler.prototype = {\n\t compile: function(expression, expensiveChecks) {\n\t var self = this;\n\t var ast = this.astBuilder.ast(expression);\n\t this.state = {\n\t nextId: 0,\n\t filters: {},\n\t expensiveChecks: expensiveChecks,\n\t fn: {vars: [], body: [], own: {}},\n\t assign: {vars: [], body: [], own: {}},\n\t inputs: []\n\t };\n\t findConstantAndWatchExpressions(ast, self.$filter);\n\t var extra = '';\n\t var assignable;\n\t this.stage = 'assign';\n\t if ((assignable = assignableAST(ast))) {\n\t this.state.computing = 'assign';\n\t var result = this.nextId();\n\t this.recurse(assignable, result);\n\t this.return_(result);\n\t extra = 'fn.assign=' + this.generateFunction('assign', 's,v,l');\n\t }\n\t var toWatch = getInputs(ast.body);\n\t self.stage = 'inputs';\n\t forEach(toWatch, function(watch, key) {\n\t var fnKey = 'fn' + key;\n\t self.state[fnKey] = {vars: [], body: [], own: {}};\n\t self.state.computing = fnKey;\n\t var intoId = self.nextId();\n\t self.recurse(watch, intoId);\n\t self.return_(intoId);\n\t self.state.inputs.push(fnKey);\n\t watch.watchId = key;\n\t });\n\t this.state.computing = 'fn';\n\t this.stage = 'main';\n\t this.recurse(ast);\n\t var fnString =\n\t // The build and minification steps remove the string \"use strict\" from the code, but this is done using a regex.\n\t // This is a workaround for this until we do a better job at only removing the prefix only when we should.\n\t '\"' + this.USE + ' ' + this.STRICT + '\";\\n' +\n\t this.filterPrefix() +\n\t 'var fn=' + this.generateFunction('fn', 's,l,a,i') +\n\t extra +\n\t this.watchFns() +\n\t 'return fn;';\n\t\n\t /* jshint -W054 */\n\t var fn = (new Function('$filter',\n\t 'ensureSafeMemberName',\n\t 'ensureSafeObject',\n\t 'ensureSafeFunction',\n\t 'getStringValue',\n\t 'ensureSafeAssignContext',\n\t 'ifDefined',\n\t 'plus',\n\t 'text',\n\t fnString))(\n\t this.$filter,\n\t ensureSafeMemberName,\n\t ensureSafeObject,\n\t ensureSafeFunction,\n\t getStringValue,\n\t ensureSafeAssignContext,\n\t ifDefined,\n\t plusFn,\n\t expression);\n\t /* jshint +W054 */\n\t this.state = this.stage = undefined;\n\t fn.literal = isLiteral(ast);\n\t fn.constant = isConstant(ast);\n\t return fn;\n\t },\n\t\n\t USE: 'use',\n\t\n\t STRICT: 'strict',\n\t\n\t watchFns: function() {\n\t var result = [];\n\t var fns = this.state.inputs;\n\t var self = this;\n\t forEach(fns, function(name) {\n\t result.push('var ' + name + '=' + self.generateFunction(name, 's'));\n\t });\n\t if (fns.length) {\n\t result.push('fn.inputs=[' + fns.join(',') + '];');\n\t }\n\t return result.join('');\n\t },\n\t\n\t generateFunction: function(name, params) {\n\t return 'function(' + params + '){' +\n\t this.varsPrefix(name) +\n\t this.body(name) +\n\t '};';\n\t },\n\t\n\t filterPrefix: function() {\n\t var parts = [];\n\t var self = this;\n\t forEach(this.state.filters, function(id, filter) {\n\t parts.push(id + '=$filter(' + self.escape(filter) + ')');\n\t });\n\t if (parts.length) return 'var ' + parts.join(',') + ';';\n\t return '';\n\t },\n\t\n\t varsPrefix: function(section) {\n\t return this.state[section].vars.length ? 'var ' + this.state[section].vars.join(',') + ';' : '';\n\t },\n\t\n\t body: function(section) {\n\t return this.state[section].body.join('');\n\t },\n\t\n\t recurse: function(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) {\n\t var left, right, self = this, args, expression;\n\t recursionFn = recursionFn || noop;\n\t if (!skipWatchIdCheck && isDefined(ast.watchId)) {\n\t intoId = intoId || this.nextId();\n\t this.if_('i',\n\t this.lazyAssign(intoId, this.computedMember('i', ast.watchId)),\n\t this.lazyRecurse(ast, intoId, nameId, recursionFn, create, true)\n\t );\n\t return;\n\t }\n\t switch (ast.type) {\n\t case AST.Program:\n\t forEach(ast.body, function(expression, pos) {\n\t self.recurse(expression.expression, undefined, undefined, function(expr) { right = expr; });\n\t if (pos !== ast.body.length - 1) {\n\t self.current().body.push(right, ';');\n\t } else {\n\t self.return_(right);\n\t }\n\t });\n\t break;\n\t case AST.Literal:\n\t expression = this.escape(ast.value);\n\t this.assign(intoId, expression);\n\t recursionFn(expression);\n\t break;\n\t case AST.UnaryExpression:\n\t this.recurse(ast.argument, undefined, undefined, function(expr) { right = expr; });\n\t expression = ast.operator + '(' + this.ifDefined(right, 0) + ')';\n\t this.assign(intoId, expression);\n\t recursionFn(expression);\n\t break;\n\t case AST.BinaryExpression:\n\t this.recurse(ast.left, undefined, undefined, function(expr) { left = expr; });\n\t this.recurse(ast.right, undefined, undefined, function(expr) { right = expr; });\n\t if (ast.operator === '+') {\n\t expression = this.plus(left, right);\n\t } else if (ast.operator === '-') {\n\t expression = this.ifDefined(left, 0) + ast.operator + this.ifDefined(right, 0);\n\t } else {\n\t expression = '(' + left + ')' + ast.operator + '(' + right + ')';\n\t }\n\t this.assign(intoId, expression);\n\t recursionFn(expression);\n\t break;\n\t case AST.LogicalExpression:\n\t intoId = intoId || this.nextId();\n\t self.recurse(ast.left, intoId);\n\t self.if_(ast.operator === '&&' ? intoId : self.not(intoId), self.lazyRecurse(ast.right, intoId));\n\t recursionFn(intoId);\n\t break;\n\t case AST.ConditionalExpression:\n\t intoId = intoId || this.nextId();\n\t self.recurse(ast.test, intoId);\n\t self.if_(intoId, self.lazyRecurse(ast.alternate, intoId), self.lazyRecurse(ast.consequent, intoId));\n\t recursionFn(intoId);\n\t break;\n\t case AST.Identifier:\n\t intoId = intoId || this.nextId();\n\t if (nameId) {\n\t nameId.context = self.stage === 'inputs' ? 's' : this.assign(this.nextId(), this.getHasOwnProperty('l', ast.name) + '?l:s');\n\t nameId.computed = false;\n\t nameId.name = ast.name;\n\t }\n\t ensureSafeMemberName(ast.name);\n\t self.if_(self.stage === 'inputs' || self.not(self.getHasOwnProperty('l', ast.name)),\n\t function() {\n\t self.if_(self.stage === 'inputs' || 's', function() {\n\t if (create && create !== 1) {\n\t self.if_(\n\t self.not(self.nonComputedMember('s', ast.name)),\n\t self.lazyAssign(self.nonComputedMember('s', ast.name), '{}'));\n\t }\n\t self.assign(intoId, self.nonComputedMember('s', ast.name));\n\t });\n\t }, intoId && self.lazyAssign(intoId, self.nonComputedMember('l', ast.name))\n\t );\n\t if (self.state.expensiveChecks || isPossiblyDangerousMemberName(ast.name)) {\n\t self.addEnsureSafeObject(intoId);\n\t }\n\t recursionFn(intoId);\n\t break;\n\t case AST.MemberExpression:\n\t left = nameId && (nameId.context = this.nextId()) || this.nextId();\n\t intoId = intoId || this.nextId();\n\t self.recurse(ast.object, left, undefined, function() {\n\t self.if_(self.notNull(left), function() {\n\t if (create && create !== 1) {\n\t self.addEnsureSafeAssignContext(left);\n\t }\n\t if (ast.computed) {\n\t right = self.nextId();\n\t self.recurse(ast.property, right);\n\t self.getStringValue(right);\n\t self.addEnsureSafeMemberName(right);\n\t if (create && create !== 1) {\n\t self.if_(self.not(self.computedMember(left, right)), self.lazyAssign(self.computedMember(left, right), '{}'));\n\t }\n\t expression = self.ensureSafeObject(self.computedMember(left, right));\n\t self.assign(intoId, expression);\n\t if (nameId) {\n\t nameId.computed = true;\n\t nameId.name = right;\n\t }\n\t } else {\n\t ensureSafeMemberName(ast.property.name);\n\t if (create && create !== 1) {\n\t self.if_(self.not(self.nonComputedMember(left, ast.property.name)), self.lazyAssign(self.nonComputedMember(left, ast.property.name), '{}'));\n\t }\n\t expression = self.nonComputedMember(left, ast.property.name);\n\t if (self.state.expensiveChecks || isPossiblyDangerousMemberName(ast.property.name)) {\n\t expression = self.ensureSafeObject(expression);\n\t }\n\t self.assign(intoId, expression);\n\t if (nameId) {\n\t nameId.computed = false;\n\t nameId.name = ast.property.name;\n\t }\n\t }\n\t }, function() {\n\t self.assign(intoId, 'undefined');\n\t });\n\t recursionFn(intoId);\n\t }, !!create);\n\t break;\n\t case AST.CallExpression:\n\t intoId = intoId || this.nextId();\n\t if (ast.filter) {\n\t right = self.filter(ast.callee.name);\n\t args = [];\n\t forEach(ast.arguments, function(expr) {\n\t var argument = self.nextId();\n\t self.recurse(expr, argument);\n\t args.push(argument);\n\t });\n\t expression = right + '(' + args.join(',') + ')';\n\t self.assign(intoId, expression);\n\t recursionFn(intoId);\n\t } else {\n\t right = self.nextId();\n\t left = {};\n\t args = [];\n\t self.recurse(ast.callee, right, left, function() {\n\t self.if_(self.notNull(right), function() {\n\t self.addEnsureSafeFunction(right);\n\t forEach(ast.arguments, function(expr) {\n\t self.recurse(expr, self.nextId(), undefined, function(argument) {\n\t args.push(self.ensureSafeObject(argument));\n\t });\n\t });\n\t if (left.name) {\n\t if (!self.state.expensiveChecks) {\n\t self.addEnsureSafeObject(left.context);\n\t }\n\t expression = self.member(left.context, left.name, left.computed) + '(' + args.join(',') + ')';\n\t } else {\n\t expression = right + '(' + args.join(',') + ')';\n\t }\n\t expression = self.ensureSafeObject(expression);\n\t self.assign(intoId, expression);\n\t }, function() {\n\t self.assign(intoId, 'undefined');\n\t });\n\t recursionFn(intoId);\n\t });\n\t }\n\t break;\n\t case AST.AssignmentExpression:\n\t right = this.nextId();\n\t left = {};\n\t if (!isAssignable(ast.left)) {\n\t throw $parseMinErr('lval', 'Trying to assign a value to a non l-value');\n\t }\n\t this.recurse(ast.left, undefined, left, function() {\n\t self.if_(self.notNull(left.context), function() {\n\t self.recurse(ast.right, right);\n\t self.addEnsureSafeObject(self.member(left.context, left.name, left.computed));\n\t self.addEnsureSafeAssignContext(left.context);\n\t expression = self.member(left.context, left.name, left.computed) + ast.operator + right;\n\t self.assign(intoId, expression);\n\t recursionFn(intoId || expression);\n\t });\n\t }, 1);\n\t break;\n\t case AST.ArrayExpression:\n\t args = [];\n\t forEach(ast.elements, function(expr) {\n\t self.recurse(expr, self.nextId(), undefined, function(argument) {\n\t args.push(argument);\n\t });\n\t });\n\t expression = '[' + args.join(',') + ']';\n\t this.assign(intoId, expression);\n\t recursionFn(expression);\n\t break;\n\t case AST.ObjectExpression:\n\t args = [];\n\t forEach(ast.properties, function(property) {\n\t self.recurse(property.value, self.nextId(), undefined, function(expr) {\n\t args.push(self.escape(\n\t property.key.type === AST.Identifier ? property.key.name :\n\t ('' + property.key.value)) +\n\t ':' + expr);\n\t });\n\t });\n\t expression = '{' + args.join(',') + '}';\n\t this.assign(intoId, expression);\n\t recursionFn(expression);\n\t break;\n\t case AST.ThisExpression:\n\t this.assign(intoId, 's');\n\t recursionFn('s');\n\t break;\n\t case AST.NGValueParameter:\n\t this.assign(intoId, 'v');\n\t recursionFn('v');\n\t break;\n\t }\n\t },\n\t\n\t getHasOwnProperty: function(element, property) {\n\t var key = element + '.' + property;\n\t var own = this.current().own;\n\t if (!own.hasOwnProperty(key)) {\n\t own[key] = this.nextId(false, element + '&&(' + this.escape(property) + ' in ' + element + ')');\n\t }\n\t return own[key];\n\t },\n\t\n\t assign: function(id, value) {\n\t if (!id) return;\n\t this.current().body.push(id, '=', value, ';');\n\t return id;\n\t },\n\t\n\t filter: function(filterName) {\n\t if (!this.state.filters.hasOwnProperty(filterName)) {\n\t this.state.filters[filterName] = this.nextId(true);\n\t }\n\t return this.state.filters[filterName];\n\t },\n\t\n\t ifDefined: function(id, defaultValue) {\n\t return 'ifDefined(' + id + ',' + this.escape(defaultValue) + ')';\n\t },\n\t\n\t plus: function(left, right) {\n\t return 'plus(' + left + ',' + right + ')';\n\t },\n\t\n\t return_: function(id) {\n\t this.current().body.push('return ', id, ';');\n\t },\n\t\n\t if_: function(test, alternate, consequent) {\n\t if (test === true) {\n\t alternate();\n\t } else {\n\t var body = this.current().body;\n\t body.push('if(', test, '){');\n\t alternate();\n\t body.push('}');\n\t if (consequent) {\n\t body.push('else{');\n\t consequent();\n\t body.push('}');\n\t }\n\t }\n\t },\n\t\n\t not: function(expression) {\n\t return '!(' + expression + ')';\n\t },\n\t\n\t notNull: function(expression) {\n\t return expression + '!=null';\n\t },\n\t\n\t nonComputedMember: function(left, right) {\n\t return left + '.' + right;\n\t },\n\t\n\t computedMember: function(left, right) {\n\t return left + '[' + right + ']';\n\t },\n\t\n\t member: function(left, right, computed) {\n\t if (computed) return this.computedMember(left, right);\n\t return this.nonComputedMember(left, right);\n\t },\n\t\n\t addEnsureSafeObject: function(item) {\n\t this.current().body.push(this.ensureSafeObject(item), ';');\n\t },\n\t\n\t addEnsureSafeMemberName: function(item) {\n\t this.current().body.push(this.ensureSafeMemberName(item), ';');\n\t },\n\t\n\t addEnsureSafeFunction: function(item) {\n\t this.current().body.push(this.ensureSafeFunction(item), ';');\n\t },\n\t\n\t addEnsureSafeAssignContext: function(item) {\n\t this.current().body.push(this.ensureSafeAssignContext(item), ';');\n\t },\n\t\n\t ensureSafeObject: function(item) {\n\t return 'ensureSafeObject(' + item + ',text)';\n\t },\n\t\n\t ensureSafeMemberName: function(item) {\n\t return 'ensureSafeMemberName(' + item + ',text)';\n\t },\n\t\n\t ensureSafeFunction: function(item) {\n\t return 'ensureSafeFunction(' + item + ',text)';\n\t },\n\t\n\t getStringValue: function(item) {\n\t this.assign(item, 'getStringValue(' + item + ',text)');\n\t },\n\t\n\t ensureSafeAssignContext: function(item) {\n\t return 'ensureSafeAssignContext(' + item + ',text)';\n\t },\n\t\n\t lazyRecurse: function(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck) {\n\t var self = this;\n\t return function() {\n\t self.recurse(ast, intoId, nameId, recursionFn, create, skipWatchIdCheck);\n\t };\n\t },\n\t\n\t lazyAssign: function(id, value) {\n\t var self = this;\n\t return function() {\n\t self.assign(id, value);\n\t };\n\t },\n\t\n\t stringEscapeRegex: /[^ a-zA-Z0-9]/g,\n\t\n\t stringEscapeFn: function(c) {\n\t return '\\\\u' + ('0000' + c.charCodeAt(0).toString(16)).slice(-4);\n\t },\n\t\n\t escape: function(value) {\n\t if (isString(value)) return \"'\" + value.replace(this.stringEscapeRegex, this.stringEscapeFn) + \"'\";\n\t if (isNumber(value)) return value.toString();\n\t if (value === true) return 'true';\n\t if (value === false) return 'false';\n\t if (value === null) return 'null';\n\t if (typeof value === 'undefined') return 'undefined';\n\t\n\t throw $parseMinErr('esc', 'IMPOSSIBLE');\n\t },\n\t\n\t nextId: function(skip, init) {\n\t var id = 'v' + (this.state.nextId++);\n\t if (!skip) {\n\t this.current().vars.push(id + (init ? '=' + init : ''));\n\t }\n\t return id;\n\t },\n\t\n\t current: function() {\n\t return this.state[this.state.computing];\n\t }\n\t};\n\t\n\t\n\tfunction ASTInterpreter(astBuilder, $filter) {\n\t this.astBuilder = astBuilder;\n\t this.$filter = $filter;\n\t}\n\t\n\tASTInterpreter.prototype = {\n\t compile: function(expression, expensiveChecks) {\n\t var self = this;\n\t var ast = this.astBuilder.ast(expression);\n\t this.expression = expression;\n\t this.expensiveChecks = expensiveChecks;\n\t findConstantAndWatchExpressions(ast, self.$filter);\n\t var assignable;\n\t var assign;\n\t if ((assignable = assignableAST(ast))) {\n\t assign = this.recurse(assignable);\n\t }\n\t var toWatch = getInputs(ast.body);\n\t var inputs;\n\t if (toWatch) {\n\t inputs = [];\n\t forEach(toWatch, function(watch, key) {\n\t var input = self.recurse(watch);\n\t watch.input = input;\n\t inputs.push(input);\n\t watch.watchId = key;\n\t });\n\t }\n\t var expressions = [];\n\t forEach(ast.body, function(expression) {\n\t expressions.push(self.recurse(expression.expression));\n\t });\n\t var fn = ast.body.length === 0 ? function() {} :\n\t ast.body.length === 1 ? expressions[0] :\n\t function(scope, locals) {\n\t var lastValue;\n\t forEach(expressions, function(exp) {\n\t lastValue = exp(scope, locals);\n\t });\n\t return lastValue;\n\t };\n\t if (assign) {\n\t fn.assign = function(scope, value, locals) {\n\t return assign(scope, locals, value);\n\t };\n\t }\n\t if (inputs) {\n\t fn.inputs = inputs;\n\t }\n\t fn.literal = isLiteral(ast);\n\t fn.constant = isConstant(ast);\n\t return fn;\n\t },\n\t\n\t recurse: function(ast, context, create) {\n\t var left, right, self = this, args, expression;\n\t if (ast.input) {\n\t return this.inputs(ast.input, ast.watchId);\n\t }\n\t switch (ast.type) {\n\t case AST.Literal:\n\t return this.value(ast.value, context);\n\t case AST.UnaryExpression:\n\t right = this.recurse(ast.argument);\n\t return this['unary' + ast.operator](right, context);\n\t case AST.BinaryExpression:\n\t left = this.recurse(ast.left);\n\t right = this.recurse(ast.right);\n\t return this['binary' + ast.operator](left, right, context);\n\t case AST.LogicalExpression:\n\t left = this.recurse(ast.left);\n\t right = this.recurse(ast.right);\n\t return this['binary' + ast.operator](left, right, context);\n\t case AST.ConditionalExpression:\n\t return this['ternary?:'](\n\t this.recurse(ast.test),\n\t this.recurse(ast.alternate),\n\t this.recurse(ast.consequent),\n\t context\n\t );\n\t case AST.Identifier:\n\t ensureSafeMemberName(ast.name, self.expression);\n\t return self.identifier(ast.name,\n\t self.expensiveChecks || isPossiblyDangerousMemberName(ast.name),\n\t context, create, self.expression);\n\t case AST.MemberExpression:\n\t left = this.recurse(ast.object, false, !!create);\n\t if (!ast.computed) {\n\t ensureSafeMemberName(ast.property.name, self.expression);\n\t right = ast.property.name;\n\t }\n\t if (ast.computed) right = this.recurse(ast.property);\n\t return ast.computed ?\n\t this.computedMember(left, right, context, create, self.expression) :\n\t this.nonComputedMember(left, right, self.expensiveChecks, context, create, self.expression);\n\t case AST.CallExpression:\n\t args = [];\n\t forEach(ast.arguments, function(expr) {\n\t args.push(self.recurse(expr));\n\t });\n\t if (ast.filter) right = this.$filter(ast.callee.name);\n\t if (!ast.filter) right = this.recurse(ast.callee, true);\n\t return ast.filter ?\n\t function(scope, locals, assign, inputs) {\n\t var values = [];\n\t for (var i = 0; i < args.length; ++i) {\n\t values.push(args[i](scope, locals, assign, inputs));\n\t }\n\t var value = right.apply(undefined, values, inputs);\n\t return context ? {context: undefined, name: undefined, value: value} : value;\n\t } :\n\t function(scope, locals, assign, inputs) {\n\t var rhs = right(scope, locals, assign, inputs);\n\t var value;\n\t if (rhs.value != null) {\n\t ensureSafeObject(rhs.context, self.expression);\n\t ensureSafeFunction(rhs.value, self.expression);\n\t var values = [];\n\t for (var i = 0; i < args.length; ++i) {\n\t values.push(ensureSafeObject(args[i](scope, locals, assign, inputs), self.expression));\n\t }\n\t value = ensureSafeObject(rhs.value.apply(rhs.context, values), self.expression);\n\t }\n\t return context ? {value: value} : value;\n\t };\n\t case AST.AssignmentExpression:\n\t left = this.recurse(ast.left, true, 1);\n\t right = this.recurse(ast.right);\n\t return function(scope, locals, assign, inputs) {\n\t var lhs = left(scope, locals, assign, inputs);\n\t var rhs = right(scope, locals, assign, inputs);\n\t ensureSafeObject(lhs.value, self.expression);\n\t ensureSafeAssignContext(lhs.context);\n\t lhs.context[lhs.name] = rhs;\n\t return context ? {value: rhs} : rhs;\n\t };\n\t case AST.ArrayExpression:\n\t args = [];\n\t forEach(ast.elements, function(expr) {\n\t args.push(self.recurse(expr));\n\t });\n\t return function(scope, locals, assign, inputs) {\n\t var value = [];\n\t for (var i = 0; i < args.length; ++i) {\n\t value.push(args[i](scope, locals, assign, inputs));\n\t }\n\t return context ? {value: value} : value;\n\t };\n\t case AST.ObjectExpression:\n\t args = [];\n\t forEach(ast.properties, function(property) {\n\t args.push({key: property.key.type === AST.Identifier ?\n\t property.key.name :\n\t ('' + property.key.value),\n\t value: self.recurse(property.value)\n\t });\n\t });\n\t return function(scope, locals, assign, inputs) {\n\t var value = {};\n\t for (var i = 0; i < args.length; ++i) {\n\t value[args[i].key] = args[i].value(scope, locals, assign, inputs);\n\t }\n\t return context ? {value: value} : value;\n\t };\n\t case AST.ThisExpression:\n\t return function(scope) {\n\t return context ? {value: scope} : scope;\n\t };\n\t case AST.NGValueParameter:\n\t return function(scope, locals, assign, inputs) {\n\t return context ? {value: assign} : assign;\n\t };\n\t }\n\t },\n\t\n\t 'unary+': function(argument, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var arg = argument(scope, locals, assign, inputs);\n\t if (isDefined(arg)) {\n\t arg = +arg;\n\t } else {\n\t arg = 0;\n\t }\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t 'unary-': function(argument, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var arg = argument(scope, locals, assign, inputs);\n\t if (isDefined(arg)) {\n\t arg = -arg;\n\t } else {\n\t arg = 0;\n\t }\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t 'unary!': function(argument, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var arg = !argument(scope, locals, assign, inputs);\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t 'binary+': function(left, right, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var lhs = left(scope, locals, assign, inputs);\n\t var rhs = right(scope, locals, assign, inputs);\n\t var arg = plusFn(lhs, rhs);\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t 'binary-': function(left, right, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var lhs = left(scope, locals, assign, inputs);\n\t var rhs = right(scope, locals, assign, inputs);\n\t var arg = (isDefined(lhs) ? lhs : 0) - (isDefined(rhs) ? rhs : 0);\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t 'binary*': function(left, right, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var arg = left(scope, locals, assign, inputs) * right(scope, locals, assign, inputs);\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t 'binary/': function(left, right, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var arg = left(scope, locals, assign, inputs) / right(scope, locals, assign, inputs);\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t 'binary%': function(left, right, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var arg = left(scope, locals, assign, inputs) % right(scope, locals, assign, inputs);\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t 'binary===': function(left, right, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var arg = left(scope, locals, assign, inputs) === right(scope, locals, assign, inputs);\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t 'binary!==': function(left, right, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var arg = left(scope, locals, assign, inputs) !== right(scope, locals, assign, inputs);\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t 'binary==': function(left, right, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var arg = left(scope, locals, assign, inputs) == right(scope, locals, assign, inputs);\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t 'binary!=': function(left, right, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var arg = left(scope, locals, assign, inputs) != right(scope, locals, assign, inputs);\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t 'binary<': function(left, right, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var arg = left(scope, locals, assign, inputs) < right(scope, locals, assign, inputs);\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t 'binary>': function(left, right, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var arg = left(scope, locals, assign, inputs) > right(scope, locals, assign, inputs);\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t 'binary<=': function(left, right, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var arg = left(scope, locals, assign, inputs) <= right(scope, locals, assign, inputs);\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t 'binary>=': function(left, right, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var arg = left(scope, locals, assign, inputs) >= right(scope, locals, assign, inputs);\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t 'binary&&': function(left, right, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var arg = left(scope, locals, assign, inputs) && right(scope, locals, assign, inputs);\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t 'binary||': function(left, right, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var arg = left(scope, locals, assign, inputs) || right(scope, locals, assign, inputs);\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t 'ternary?:': function(test, alternate, consequent, context) {\n\t return function(scope, locals, assign, inputs) {\n\t var arg = test(scope, locals, assign, inputs) ? alternate(scope, locals, assign, inputs) : consequent(scope, locals, assign, inputs);\n\t return context ? {value: arg} : arg;\n\t };\n\t },\n\t value: function(value, context) {\n\t return function() { return context ? {context: undefined, name: undefined, value: value} : value; };\n\t },\n\t identifier: function(name, expensiveChecks, context, create, expression) {\n\t return function(scope, locals, assign, inputs) {\n\t var base = locals && (name in locals) ? locals : scope;\n\t if (create && create !== 1 && base && !(base[name])) {\n\t base[name] = {};\n\t }\n\t var value = base ? base[name] : undefined;\n\t if (expensiveChecks) {\n\t ensureSafeObject(value, expression);\n\t }\n\t if (context) {\n\t return {context: base, name: name, value: value};\n\t } else {\n\t return value;\n\t }\n\t };\n\t },\n\t computedMember: function(left, right, context, create, expression) {\n\t return function(scope, locals, assign, inputs) {\n\t var lhs = left(scope, locals, assign, inputs);\n\t var rhs;\n\t var value;\n\t if (lhs != null) {\n\t rhs = right(scope, locals, assign, inputs);\n\t rhs = getStringValue(rhs);\n\t ensureSafeMemberName(rhs, expression);\n\t if (create && create !== 1) {\n\t ensureSafeAssignContext(lhs);\n\t if (lhs && !(lhs[rhs])) {\n\t lhs[rhs] = {};\n\t }\n\t }\n\t value = lhs[rhs];\n\t ensureSafeObject(value, expression);\n\t }\n\t if (context) {\n\t return {context: lhs, name: rhs, value: value};\n\t } else {\n\t return value;\n\t }\n\t };\n\t },\n\t nonComputedMember: function(left, right, expensiveChecks, context, create, expression) {\n\t return function(scope, locals, assign, inputs) {\n\t var lhs = left(scope, locals, assign, inputs);\n\t if (create && create !== 1) {\n\t ensureSafeAssignContext(lhs);\n\t if (lhs && !(lhs[right])) {\n\t lhs[right] = {};\n\t }\n\t }\n\t var value = lhs != null ? lhs[right] : undefined;\n\t if (expensiveChecks || isPossiblyDangerousMemberName(right)) {\n\t ensureSafeObject(value, expression);\n\t }\n\t if (context) {\n\t return {context: lhs, name: right, value: value};\n\t } else {\n\t return value;\n\t }\n\t };\n\t },\n\t inputs: function(input, watchId) {\n\t return function(scope, value, locals, inputs) {\n\t if (inputs) return inputs[watchId];\n\t return input(scope, value, locals);\n\t };\n\t }\n\t};\n\t\n\t/**\n\t * @constructor\n\t */\n\tvar Parser = function(lexer, $filter, options) {\n\t this.lexer = lexer;\n\t this.$filter = $filter;\n\t this.options = options;\n\t this.ast = new AST(this.lexer);\n\t this.astCompiler = options.csp ? new ASTInterpreter(this.ast, $filter) :\n\t new ASTCompiler(this.ast, $filter);\n\t};\n\t\n\tParser.prototype = {\n\t constructor: Parser,\n\t\n\t parse: function(text) {\n\t return this.astCompiler.compile(text, this.options.expensiveChecks);\n\t }\n\t};\n\t\n\tfunction isPossiblyDangerousMemberName(name) {\n\t return name == 'constructor';\n\t}\n\t\n\tvar objectValueOf = Object.prototype.valueOf;\n\t\n\tfunction getValueOf(value) {\n\t return isFunction(value.valueOf) ? value.valueOf() : objectValueOf.call(value);\n\t}\n\t\n\t///////////////////////////////////\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $parse\n\t * @kind function\n\t *\n\t * @description\n\t *\n\t * Converts Angular {@link guide/expression expression} into a function.\n\t *\n\t * ```js\n\t * var getter = $parse('user.name');\n\t * var setter = getter.assign;\n\t * var context = {user:{name:'angular'}};\n\t * var locals = {user:{name:'local'}};\n\t *\n\t * expect(getter(context)).toEqual('angular');\n\t * setter(context, 'newValue');\n\t * expect(context.user.name).toEqual('newValue');\n\t * expect(getter(context, locals)).toEqual('local');\n\t * ```\n\t *\n\t *\n\t * @param {string} expression String expression to compile.\n\t * @returns {function(context, locals)} a function which represents the compiled expression:\n\t *\n\t * * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t * are evaluated against (typically a scope object).\n\t * * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t * `context`.\n\t *\n\t * The returned function also has the following properties:\n\t * * `literal` – `{boolean}` – whether the expression's top-level node is a JavaScript\n\t * literal.\n\t * * `constant` – `{boolean}` – whether the expression is made entirely of JavaScript\n\t * constant literals.\n\t * * `assign` – `{?function(context, value)}` – if the expression is assignable, this will be\n\t * set to a function to change its value on the given context.\n\t *\n\t */\n\t\n\t\n\t/**\n\t * @ngdoc provider\n\t * @name $parseProvider\n\t *\n\t * @description\n\t * `$parseProvider` can be used for configuring the default behavior of the {@link ng.$parse $parse}\n\t * service.\n\t */\n\tfunction $ParseProvider() {\n\t var cacheDefault = createMap();\n\t var cacheExpensive = createMap();\n\t\n\t this.$get = ['$filter', function($filter) {\n\t var noUnsafeEval = csp().noUnsafeEval;\n\t var $parseOptions = {\n\t csp: noUnsafeEval,\n\t expensiveChecks: false\n\t },\n\t $parseOptionsExpensive = {\n\t csp: noUnsafeEval,\n\t expensiveChecks: true\n\t };\n\t var runningChecksEnabled = false;\n\t\n\t $parse.$$runningExpensiveChecks = function() {\n\t return runningChecksEnabled;\n\t };\n\t\n\t return $parse;\n\t\n\t function $parse(exp, interceptorFn, expensiveChecks) {\n\t var parsedExpression, oneTime, cacheKey;\n\t\n\t expensiveChecks = expensiveChecks || runningChecksEnabled;\n\t\n\t switch (typeof exp) {\n\t case 'string':\n\t exp = exp.trim();\n\t cacheKey = exp;\n\t\n\t var cache = (expensiveChecks ? cacheExpensive : cacheDefault);\n\t parsedExpression = cache[cacheKey];\n\t\n\t if (!parsedExpression) {\n\t if (exp.charAt(0) === ':' && exp.charAt(1) === ':') {\n\t oneTime = true;\n\t exp = exp.substring(2);\n\t }\n\t var parseOptions = expensiveChecks ? $parseOptionsExpensive : $parseOptions;\n\t var lexer = new Lexer(parseOptions);\n\t var parser = new Parser(lexer, $filter, parseOptions);\n\t parsedExpression = parser.parse(exp);\n\t if (parsedExpression.constant) {\n\t parsedExpression.$$watchDelegate = constantWatchDelegate;\n\t } else if (oneTime) {\n\t parsedExpression.$$watchDelegate = parsedExpression.literal ?\n\t oneTimeLiteralWatchDelegate : oneTimeWatchDelegate;\n\t } else if (parsedExpression.inputs) {\n\t parsedExpression.$$watchDelegate = inputsWatchDelegate;\n\t }\n\t if (expensiveChecks) {\n\t parsedExpression = expensiveChecksInterceptor(parsedExpression);\n\t }\n\t cache[cacheKey] = parsedExpression;\n\t }\n\t return addInterceptor(parsedExpression, interceptorFn);\n\t\n\t case 'function':\n\t return addInterceptor(exp, interceptorFn);\n\t\n\t default:\n\t return addInterceptor(noop, interceptorFn);\n\t }\n\t }\n\t\n\t function expensiveChecksInterceptor(fn) {\n\t if (!fn) return fn;\n\t expensiveCheckFn.$$watchDelegate = fn.$$watchDelegate;\n\t expensiveCheckFn.assign = expensiveChecksInterceptor(fn.assign);\n\t expensiveCheckFn.constant = fn.constant;\n\t expensiveCheckFn.literal = fn.literal;\n\t for (var i = 0; fn.inputs && i < fn.inputs.length; ++i) {\n\t fn.inputs[i] = expensiveChecksInterceptor(fn.inputs[i]);\n\t }\n\t expensiveCheckFn.inputs = fn.inputs;\n\t\n\t return expensiveCheckFn;\n\t\n\t function expensiveCheckFn(scope, locals, assign, inputs) {\n\t var expensiveCheckOldValue = runningChecksEnabled;\n\t runningChecksEnabled = true;\n\t try {\n\t return fn(scope, locals, assign, inputs);\n\t } finally {\n\t runningChecksEnabled = expensiveCheckOldValue;\n\t }\n\t }\n\t }\n\t\n\t function expressionInputDirtyCheck(newValue, oldValueOfValue) {\n\t\n\t if (newValue == null || oldValueOfValue == null) { // null/undefined\n\t return newValue === oldValueOfValue;\n\t }\n\t\n\t if (typeof newValue === 'object') {\n\t\n\t // attempt to convert the value to a primitive type\n\t // TODO(docs): add a note to docs that by implementing valueOf even objects and arrays can\n\t // be cheaply dirty-checked\n\t newValue = getValueOf(newValue);\n\t\n\t if (typeof newValue === 'object') {\n\t // objects/arrays are not supported - deep-watching them would be too expensive\n\t return false;\n\t }\n\t\n\t // fall-through to the primitive equality check\n\t }\n\t\n\t //Primitive or NaN\n\t return newValue === oldValueOfValue || (newValue !== newValue && oldValueOfValue !== oldValueOfValue);\n\t }\n\t\n\t function inputsWatchDelegate(scope, listener, objectEquality, parsedExpression, prettyPrintExpression) {\n\t var inputExpressions = parsedExpression.inputs;\n\t var lastResult;\n\t\n\t if (inputExpressions.length === 1) {\n\t var oldInputValueOf = expressionInputDirtyCheck; // init to something unique so that equals check fails\n\t inputExpressions = inputExpressions[0];\n\t return scope.$watch(function expressionInputWatch(scope) {\n\t var newInputValue = inputExpressions(scope);\n\t if (!expressionInputDirtyCheck(newInputValue, oldInputValueOf)) {\n\t lastResult = parsedExpression(scope, undefined, undefined, [newInputValue]);\n\t oldInputValueOf = newInputValue && getValueOf(newInputValue);\n\t }\n\t return lastResult;\n\t }, listener, objectEquality, prettyPrintExpression);\n\t }\n\t\n\t var oldInputValueOfValues = [];\n\t var oldInputValues = [];\n\t for (var i = 0, ii = inputExpressions.length; i < ii; i++) {\n\t oldInputValueOfValues[i] = expressionInputDirtyCheck; // init to something unique so that equals check fails\n\t oldInputValues[i] = null;\n\t }\n\t\n\t return scope.$watch(function expressionInputsWatch(scope) {\n\t var changed = false;\n\t\n\t for (var i = 0, ii = inputExpressions.length; i < ii; i++) {\n\t var newInputValue = inputExpressions[i](scope);\n\t if (changed || (changed = !expressionInputDirtyCheck(newInputValue, oldInputValueOfValues[i]))) {\n\t oldInputValues[i] = newInputValue;\n\t oldInputValueOfValues[i] = newInputValue && getValueOf(newInputValue);\n\t }\n\t }\n\t\n\t if (changed) {\n\t lastResult = parsedExpression(scope, undefined, undefined, oldInputValues);\n\t }\n\t\n\t return lastResult;\n\t }, listener, objectEquality, prettyPrintExpression);\n\t }\n\t\n\t function oneTimeWatchDelegate(scope, listener, objectEquality, parsedExpression) {\n\t var unwatch, lastValue;\n\t return unwatch = scope.$watch(function oneTimeWatch(scope) {\n\t return parsedExpression(scope);\n\t }, function oneTimeListener(value, old, scope) {\n\t lastValue = value;\n\t if (isFunction(listener)) {\n\t listener.apply(this, arguments);\n\t }\n\t if (isDefined(value)) {\n\t scope.$$postDigest(function() {\n\t if (isDefined(lastValue)) {\n\t unwatch();\n\t }\n\t });\n\t }\n\t }, objectEquality);\n\t }\n\t\n\t function oneTimeLiteralWatchDelegate(scope, listener, objectEquality, parsedExpression) {\n\t var unwatch, lastValue;\n\t return unwatch = scope.$watch(function oneTimeWatch(scope) {\n\t return parsedExpression(scope);\n\t }, function oneTimeListener(value, old, scope) {\n\t lastValue = value;\n\t if (isFunction(listener)) {\n\t listener.call(this, value, old, scope);\n\t }\n\t if (isAllDefined(value)) {\n\t scope.$$postDigest(function() {\n\t if (isAllDefined(lastValue)) unwatch();\n\t });\n\t }\n\t }, objectEquality);\n\t\n\t function isAllDefined(value) {\n\t var allDefined = true;\n\t forEach(value, function(val) {\n\t if (!isDefined(val)) allDefined = false;\n\t });\n\t return allDefined;\n\t }\n\t }\n\t\n\t function constantWatchDelegate(scope, listener, objectEquality, parsedExpression) {\n\t var unwatch;\n\t return unwatch = scope.$watch(function constantWatch(scope) {\n\t return parsedExpression(scope);\n\t }, function constantListener(value, old, scope) {\n\t if (isFunction(listener)) {\n\t listener.apply(this, arguments);\n\t }\n\t unwatch();\n\t }, objectEquality);\n\t }\n\t\n\t function addInterceptor(parsedExpression, interceptorFn) {\n\t if (!interceptorFn) return parsedExpression;\n\t var watchDelegate = parsedExpression.$$watchDelegate;\n\t var useInputs = false;\n\t\n\t var regularWatch =\n\t watchDelegate !== oneTimeLiteralWatchDelegate &&\n\t watchDelegate !== oneTimeWatchDelegate;\n\t\n\t var fn = regularWatch ? function regularInterceptedExpression(scope, locals, assign, inputs) {\n\t var value = useInputs && inputs ? inputs[0] : parsedExpression(scope, locals, assign, inputs);\n\t return interceptorFn(value, scope, locals);\n\t } : function oneTimeInterceptedExpression(scope, locals, assign, inputs) {\n\t var value = parsedExpression(scope, locals, assign, inputs);\n\t var result = interceptorFn(value, scope, locals);\n\t // we only return the interceptor's result if the\n\t // initial value is defined (for bind-once)\n\t return isDefined(value) ? result : value;\n\t };\n\t\n\t // Propagate $$watchDelegates other then inputsWatchDelegate\n\t if (parsedExpression.$$watchDelegate &&\n\t parsedExpression.$$watchDelegate !== inputsWatchDelegate) {\n\t fn.$$watchDelegate = parsedExpression.$$watchDelegate;\n\t } else if (!interceptorFn.$stateful) {\n\t // If there is an interceptor, but no watchDelegate then treat the interceptor like\n\t // we treat filters - it is assumed to be a pure function unless flagged with $stateful\n\t fn.$$watchDelegate = inputsWatchDelegate;\n\t useInputs = !parsedExpression.inputs;\n\t fn.inputs = parsedExpression.inputs ? parsedExpression.inputs : [parsedExpression];\n\t }\n\t\n\t return fn;\n\t }\n\t }];\n\t}\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $q\n\t * @requires $rootScope\n\t *\n\t * @description\n\t * A service that helps you run functions asynchronously, and use their return values (or exceptions)\n\t * when they are done processing.\n\t *\n\t * This is an implementation of promises/deferred objects inspired by\n\t * [Kris Kowal's Q](https://github.com/kriskowal/q).\n\t *\n\t * $q can be used in two fashions --- one which is more similar to Kris Kowal's Q or jQuery's Deferred\n\t * implementations, and the other which resembles ES6 (ES2015) promises to some degree.\n\t *\n\t * # $q constructor\n\t *\n\t * The streamlined ES6 style promise is essentially just using $q as a constructor which takes a `resolver`\n\t * function as the first argument. This is similar to the native Promise implementation from ES6,\n\t * see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).\n\t *\n\t * While the constructor-style use is supported, not all of the supporting methods from ES6 promises are\n\t * available yet.\n\t *\n\t * It can be used like so:\n\t *\n\t * ```js\n\t * // for the purpose of this example let's assume that variables `$q` and `okToGreet`\n\t * // are available in the current lexical scope (they could have been injected or passed in).\n\t *\n\t * function asyncGreet(name) {\n\t * // perform some asynchronous operation, resolve or reject the promise when appropriate.\n\t * return $q(function(resolve, reject) {\n\t * setTimeout(function() {\n\t * if (okToGreet(name)) {\n\t * resolve('Hello, ' + name + '!');\n\t * } else {\n\t * reject('Greeting ' + name + ' is not allowed.');\n\t * }\n\t * }, 1000);\n\t * });\n\t * }\n\t *\n\t * var promise = asyncGreet('Robin Hood');\n\t * promise.then(function(greeting) {\n\t * alert('Success: ' + greeting);\n\t * }, function(reason) {\n\t * alert('Failed: ' + reason);\n\t * });\n\t * ```\n\t *\n\t * Note: progress/notify callbacks are not currently supported via the ES6-style interface.\n\t *\n\t * Note: unlike ES6 behaviour, an exception thrown in the constructor function will NOT implicitly reject the promise.\n\t *\n\t * However, the more traditional CommonJS-style usage is still available, and documented below.\n\t *\n\t * [The CommonJS Promise proposal](http://wiki.commonjs.org/wiki/Promises) describes a promise as an\n\t * interface for interacting with an object that represents the result of an action that is\n\t * performed asynchronously, and may or may not be finished at any given point in time.\n\t *\n\t * From the perspective of dealing with error handling, deferred and promise APIs are to\n\t * asynchronous programming what `try`, `catch` and `throw` keywords are to synchronous programming.\n\t *\n\t * ```js\n\t * // for the purpose of this example let's assume that variables `$q` and `okToGreet`\n\t * // are available in the current lexical scope (they could have been injected or passed in).\n\t *\n\t * function asyncGreet(name) {\n\t * var deferred = $q.defer();\n\t *\n\t * setTimeout(function() {\n\t * deferred.notify('About to greet ' + name + '.');\n\t *\n\t * if (okToGreet(name)) {\n\t * deferred.resolve('Hello, ' + name + '!');\n\t * } else {\n\t * deferred.reject('Greeting ' + name + ' is not allowed.');\n\t * }\n\t * }, 1000);\n\t *\n\t * return deferred.promise;\n\t * }\n\t *\n\t * var promise = asyncGreet('Robin Hood');\n\t * promise.then(function(greeting) {\n\t * alert('Success: ' + greeting);\n\t * }, function(reason) {\n\t * alert('Failed: ' + reason);\n\t * }, function(update) {\n\t * alert('Got notification: ' + update);\n\t * });\n\t * ```\n\t *\n\t * At first it might not be obvious why this extra complexity is worth the trouble. The payoff\n\t * comes in the way of guarantees that promise and deferred APIs make, see\n\t * https://github.com/kriskowal/uncommonjs/blob/master/promises/specification.md.\n\t *\n\t * Additionally the promise api allows for composition that is very hard to do with the\n\t * traditional callback ([CPS](http://en.wikipedia.org/wiki/Continuation-passing_style)) approach.\n\t * For more on this please see the [Q documentation](https://github.com/kriskowal/q) especially the\n\t * section on serial or parallel joining of promises.\n\t *\n\t * # The Deferred API\n\t *\n\t * A new instance of deferred is constructed by calling `$q.defer()`.\n\t *\n\t * The purpose of the deferred object is to expose the associated Promise instance as well as APIs\n\t * that can be used for signaling the successful or unsuccessful completion, as well as the status\n\t * of the task.\n\t *\n\t * **Methods**\n\t *\n\t * - `resolve(value)` – resolves the derived promise with the `value`. If the value is a rejection\n\t * constructed via `$q.reject`, the promise will be rejected instead.\n\t * - `reject(reason)` – rejects the derived promise with the `reason`. This is equivalent to\n\t * resolving it with a rejection constructed via `$q.reject`.\n\t * - `notify(value)` - provides updates on the status of the promise's execution. This may be called\n\t * multiple times before the promise is either resolved or rejected.\n\t *\n\t * **Properties**\n\t *\n\t * - promise – `{Promise}` – promise object associated with this deferred.\n\t *\n\t *\n\t * # The Promise API\n\t *\n\t * A new promise instance is created when a deferred instance is created and can be retrieved by\n\t * calling `deferred.promise`.\n\t *\n\t * The purpose of the promise object is to allow for interested parties to get access to the result\n\t * of the deferred task when it completes.\n\t *\n\t * **Methods**\n\t *\n\t * - `then(successCallback, errorCallback, notifyCallback)` – regardless of when the promise was or\n\t * will be resolved or rejected, `then` calls one of the success or error callbacks asynchronously\n\t * as soon as the result is available. The callbacks are called with a single argument: the result\n\t * or rejection reason. Additionally, the notify callback may be called zero or more times to\n\t * provide a progress indication, before the promise is resolved or rejected.\n\t *\n\t * This method *returns a new promise* which is resolved or rejected via the return value of the\n\t * `successCallback`, `errorCallback` (unless that value is a promise, in which case it is resolved\n\t * with the value which is resolved in that promise using\n\t * [promise chaining](http://www.html5rocks.com/en/tutorials/es6/promises/#toc-promises-queues)).\n\t * It also notifies via the return value of the `notifyCallback` method. The promise cannot be\n\t * resolved or rejected from the notifyCallback method.\n\t *\n\t * - `catch(errorCallback)` – shorthand for `promise.then(null, errorCallback)`\n\t *\n\t * - `finally(callback, notifyCallback)` – allows you to observe either the fulfillment or rejection of a promise,\n\t * but to do so without modifying the final value. This is useful to release resources or do some\n\t * clean-up that needs to be done whether the promise was rejected or resolved. See the [full\n\t * specification](https://github.com/kriskowal/q/wiki/API-Reference#promisefinallycallback) for\n\t * more information.\n\t *\n\t * # Chaining promises\n\t *\n\t * Because calling the `then` method of a promise returns a new derived promise, it is easily\n\t * possible to create a chain of promises:\n\t *\n\t * ```js\n\t * promiseB = promiseA.then(function(result) {\n\t * return result + 1;\n\t * });\n\t *\n\t * // promiseB will be resolved immediately after promiseA is resolved and its value\n\t * // will be the result of promiseA incremented by 1\n\t * ```\n\t *\n\t * It is possible to create chains of any length and since a promise can be resolved with another\n\t * promise (which will defer its resolution further), it is possible to pause/defer resolution of\n\t * the promises at any point in the chain. This makes it possible to implement powerful APIs like\n\t * $http's response interceptors.\n\t *\n\t *\n\t * # Differences between Kris Kowal's Q and $q\n\t *\n\t * There are two main differences:\n\t *\n\t * - $q is integrated with the {@link ng.$rootScope.Scope} Scope model observation\n\t * mechanism in angular, which means faster propagation of resolution or rejection into your\n\t * models and avoiding unnecessary browser repaints, which would result in flickering UI.\n\t * - Q has many more features than $q, but that comes at a cost of bytes. $q is tiny, but contains\n\t * all the important functionality needed for common async tasks.\n\t *\n\t * # Testing\n\t *\n\t * ```js\n\t * it('should simulate promise', inject(function($q, $rootScope) {\n\t * var deferred = $q.defer();\n\t * var promise = deferred.promise;\n\t * var resolvedValue;\n\t *\n\t * promise.then(function(value) { resolvedValue = value; });\n\t * expect(resolvedValue).toBeUndefined();\n\t *\n\t * // Simulate resolving of promise\n\t * deferred.resolve(123);\n\t * // Note that the 'then' function does not get called synchronously.\n\t * // This is because we want the promise API to always be async, whether or not\n\t * // it got called synchronously or asynchronously.\n\t * expect(resolvedValue).toBeUndefined();\n\t *\n\t * // Propagate promise resolution to 'then' functions using $apply().\n\t * $rootScope.$apply();\n\t * expect(resolvedValue).toEqual(123);\n\t * }));\n\t * ```\n\t *\n\t * @param {function(function, function)} resolver Function which is responsible for resolving or\n\t * rejecting the newly created promise. The first parameter is a function which resolves the\n\t * promise, the second parameter is a function which rejects the promise.\n\t *\n\t * @returns {Promise} The newly created promise.\n\t */\n\tfunction $QProvider() {\n\t\n\t this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) {\n\t return qFactory(function(callback) {\n\t $rootScope.$evalAsync(callback);\n\t }, $exceptionHandler);\n\t }];\n\t}\n\t\n\tfunction $$QProvider() {\n\t this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) {\n\t return qFactory(function(callback) {\n\t $browser.defer(callback);\n\t }, $exceptionHandler);\n\t }];\n\t}\n\t\n\t/**\n\t * Constructs a promise manager.\n\t *\n\t * @param {function(function)} nextTick Function for executing functions in the next turn.\n\t * @param {function(...*)} exceptionHandler Function into which unexpected exceptions are passed for\n\t * debugging purposes.\n\t * @returns {object} Promise manager.\n\t */\n\tfunction qFactory(nextTick, exceptionHandler) {\n\t var $qMinErr = minErr('$q', TypeError);\n\t function callOnce(self, resolveFn, rejectFn) {\n\t var called = false;\n\t function wrap(fn) {\n\t return function(value) {\n\t if (called) return;\n\t called = true;\n\t fn.call(self, value);\n\t };\n\t }\n\t\n\t return [wrap(resolveFn), wrap(rejectFn)];\n\t }\n\t\n\t /**\n\t * @ngdoc method\n\t * @name ng.$q#defer\n\t * @kind function\n\t *\n\t * @description\n\t * Creates a `Deferred` object which represents a task which will finish in the future.\n\t *\n\t * @returns {Deferred} Returns a new instance of deferred.\n\t */\n\t var defer = function() {\n\t return new Deferred();\n\t };\n\t\n\t function Promise() {\n\t this.$$state = { status: 0 };\n\t }\n\t\n\t extend(Promise.prototype, {\n\t then: function(onFulfilled, onRejected, progressBack) {\n\t if (isUndefined(onFulfilled) && isUndefined(onRejected) && isUndefined(progressBack)) {\n\t return this;\n\t }\n\t var result = new Deferred();\n\t\n\t this.$$state.pending = this.$$state.pending || [];\n\t this.$$state.pending.push([result, onFulfilled, onRejected, progressBack]);\n\t if (this.$$state.status > 0) scheduleProcessQueue(this.$$state);\n\t\n\t return result.promise;\n\t },\n\t\n\t \"catch\": function(callback) {\n\t return this.then(null, callback);\n\t },\n\t\n\t \"finally\": function(callback, progressBack) {\n\t return this.then(function(value) {\n\t return handleCallback(value, true, callback);\n\t }, function(error) {\n\t return handleCallback(error, false, callback);\n\t }, progressBack);\n\t }\n\t });\n\t\n\t //Faster, more basic than angular.bind http://jsperf.com/angular-bind-vs-custom-vs-native\n\t function simpleBind(context, fn) {\n\t return function(value) {\n\t fn.call(context, value);\n\t };\n\t }\n\t\n\t function processQueue(state) {\n\t var fn, deferred, pending;\n\t\n\t pending = state.pending;\n\t state.processScheduled = false;\n\t state.pending = undefined;\n\t for (var i = 0, ii = pending.length; i < ii; ++i) {\n\t deferred = pending[i][0];\n\t fn = pending[i][state.status];\n\t try {\n\t if (isFunction(fn)) {\n\t deferred.resolve(fn(state.value));\n\t } else if (state.status === 1) {\n\t deferred.resolve(state.value);\n\t } else {\n\t deferred.reject(state.value);\n\t }\n\t } catch (e) {\n\t deferred.reject(e);\n\t exceptionHandler(e);\n\t }\n\t }\n\t }\n\t\n\t function scheduleProcessQueue(state) {\n\t if (state.processScheduled || !state.pending) return;\n\t state.processScheduled = true;\n\t nextTick(function() { processQueue(state); });\n\t }\n\t\n\t function Deferred() {\n\t this.promise = new Promise();\n\t //Necessary to support unbound execution :/\n\t this.resolve = simpleBind(this, this.resolve);\n\t this.reject = simpleBind(this, this.reject);\n\t this.notify = simpleBind(this, this.notify);\n\t }\n\t\n\t extend(Deferred.prototype, {\n\t resolve: function(val) {\n\t if (this.promise.$$state.status) return;\n\t if (val === this.promise) {\n\t this.$$reject($qMinErr(\n\t 'qcycle',\n\t \"Expected promise to be resolved with value other than itself '{0}'\",\n\t val));\n\t } else {\n\t this.$$resolve(val);\n\t }\n\t\n\t },\n\t\n\t $$resolve: function(val) {\n\t var then, fns;\n\t\n\t fns = callOnce(this, this.$$resolve, this.$$reject);\n\t try {\n\t if ((isObject(val) || isFunction(val))) then = val && val.then;\n\t if (isFunction(then)) {\n\t this.promise.$$state.status = -1;\n\t then.call(val, fns[0], fns[1], this.notify);\n\t } else {\n\t this.promise.$$state.value = val;\n\t this.promise.$$state.status = 1;\n\t scheduleProcessQueue(this.promise.$$state);\n\t }\n\t } catch (e) {\n\t fns[1](e);\n\t exceptionHandler(e);\n\t }\n\t },\n\t\n\t reject: function(reason) {\n\t if (this.promise.$$state.status) return;\n\t this.$$reject(reason);\n\t },\n\t\n\t $$reject: function(reason) {\n\t this.promise.$$state.value = reason;\n\t this.promise.$$state.status = 2;\n\t scheduleProcessQueue(this.promise.$$state);\n\t },\n\t\n\t notify: function(progress) {\n\t var callbacks = this.promise.$$state.pending;\n\t\n\t if ((this.promise.$$state.status <= 0) && callbacks && callbacks.length) {\n\t nextTick(function() {\n\t var callback, result;\n\t for (var i = 0, ii = callbacks.length; i < ii; i++) {\n\t result = callbacks[i][0];\n\t callback = callbacks[i][3];\n\t try {\n\t result.notify(isFunction(callback) ? callback(progress) : progress);\n\t } catch (e) {\n\t exceptionHandler(e);\n\t }\n\t }\n\t });\n\t }\n\t }\n\t });\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $q#reject\n\t * @kind function\n\t *\n\t * @description\n\t * Creates a promise that is resolved as rejected with the specified `reason`. This api should be\n\t * used to forward rejection in a chain of promises. If you are dealing with the last promise in\n\t * a promise chain, you don't need to worry about it.\n\t *\n\t * When comparing deferreds/promises to the familiar behavior of try/catch/throw, think of\n\t * `reject` as the `throw` keyword in JavaScript. This also means that if you \"catch\" an error via\n\t * a promise error callback and you want to forward the error to the promise derived from the\n\t * current promise, you have to \"rethrow\" the error by returning a rejection constructed via\n\t * `reject`.\n\t *\n\t * ```js\n\t * promiseB = promiseA.then(function(result) {\n\t * // success: do something and resolve promiseB\n\t * // with the old or a new result\n\t * return result;\n\t * }, function(reason) {\n\t * // error: handle the error if possible and\n\t * // resolve promiseB with newPromiseOrValue,\n\t * // otherwise forward the rejection to promiseB\n\t * if (canHandle(reason)) {\n\t * // handle the error and recover\n\t * return newPromiseOrValue;\n\t * }\n\t * return $q.reject(reason);\n\t * });\n\t * ```\n\t *\n\t * @param {*} reason Constant, message, exception or an object representing the rejection reason.\n\t * @returns {Promise} Returns a promise that was already resolved as rejected with the `reason`.\n\t */\n\t var reject = function(reason) {\n\t var result = new Deferred();\n\t result.reject(reason);\n\t return result.promise;\n\t };\n\t\n\t var makePromise = function makePromise(value, resolved) {\n\t var result = new Deferred();\n\t if (resolved) {\n\t result.resolve(value);\n\t } else {\n\t result.reject(value);\n\t }\n\t return result.promise;\n\t };\n\t\n\t var handleCallback = function handleCallback(value, isResolved, callback) {\n\t var callbackOutput = null;\n\t try {\n\t if (isFunction(callback)) callbackOutput = callback();\n\t } catch (e) {\n\t return makePromise(e, false);\n\t }\n\t if (isPromiseLike(callbackOutput)) {\n\t return callbackOutput.then(function() {\n\t return makePromise(value, isResolved);\n\t }, function(error) {\n\t return makePromise(error, false);\n\t });\n\t } else {\n\t return makePromise(value, isResolved);\n\t }\n\t };\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $q#when\n\t * @kind function\n\t *\n\t * @description\n\t * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise.\n\t * This is useful when you are dealing with an object that might or might not be a promise, or if\n\t * the promise comes from a source that can't be trusted.\n\t *\n\t * @param {*} value Value or a promise\n\t * @param {Function=} successCallback\n\t * @param {Function=} errorCallback\n\t * @param {Function=} progressCallback\n\t * @returns {Promise} Returns a promise of the passed value or promise\n\t */\n\t\n\t\n\t var when = function(value, callback, errback, progressBack) {\n\t var result = new Deferred();\n\t result.resolve(value);\n\t return result.promise.then(callback, errback, progressBack);\n\t };\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $q#resolve\n\t * @kind function\n\t *\n\t * @description\n\t * Alias of {@link ng.$q#when when} to maintain naming consistency with ES6.\n\t *\n\t * @param {*} value Value or a promise\n\t * @param {Function=} successCallback\n\t * @param {Function=} errorCallback\n\t * @param {Function=} progressCallback\n\t * @returns {Promise} Returns a promise of the passed value or promise\n\t */\n\t var resolve = when;\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $q#all\n\t * @kind function\n\t *\n\t * @description\n\t * Combines multiple promises into a single promise that is resolved when all of the input\n\t * promises are resolved.\n\t *\n\t * @param {Array.|Object.} promises An array or hash of promises.\n\t * @returns {Promise} Returns a single promise that will be resolved with an array/hash of values,\n\t * each value corresponding to the promise at the same index/key in the `promises` array/hash.\n\t * If any of the promises is resolved with a rejection, this resulting promise will be rejected\n\t * with the same rejection value.\n\t */\n\t\n\t function all(promises) {\n\t var deferred = new Deferred(),\n\t counter = 0,\n\t results = isArray(promises) ? [] : {};\n\t\n\t forEach(promises, function(promise, key) {\n\t counter++;\n\t when(promise).then(function(value) {\n\t if (results.hasOwnProperty(key)) return;\n\t results[key] = value;\n\t if (!(--counter)) deferred.resolve(results);\n\t }, function(reason) {\n\t if (results.hasOwnProperty(key)) return;\n\t deferred.reject(reason);\n\t });\n\t });\n\t\n\t if (counter === 0) {\n\t deferred.resolve(results);\n\t }\n\t\n\t return deferred.promise;\n\t }\n\t\n\t var $Q = function Q(resolver) {\n\t if (!isFunction(resolver)) {\n\t throw $qMinErr('norslvr', \"Expected resolverFn, got '{0}'\", resolver);\n\t }\n\t\n\t if (!(this instanceof Q)) {\n\t // More useful when $Q is the Promise itself.\n\t return new Q(resolver);\n\t }\n\t\n\t var deferred = new Deferred();\n\t\n\t function resolveFn(value) {\n\t deferred.resolve(value);\n\t }\n\t\n\t function rejectFn(reason) {\n\t deferred.reject(reason);\n\t }\n\t\n\t resolver(resolveFn, rejectFn);\n\t\n\t return deferred.promise;\n\t };\n\t\n\t $Q.defer = defer;\n\t $Q.reject = reject;\n\t $Q.when = when;\n\t $Q.resolve = resolve;\n\t $Q.all = all;\n\t\n\t return $Q;\n\t}\n\t\n\tfunction $$RAFProvider() { //rAF\n\t this.$get = ['$window', '$timeout', function($window, $timeout) {\n\t var requestAnimationFrame = $window.requestAnimationFrame ||\n\t $window.webkitRequestAnimationFrame;\n\t\n\t var cancelAnimationFrame = $window.cancelAnimationFrame ||\n\t $window.webkitCancelAnimationFrame ||\n\t $window.webkitCancelRequestAnimationFrame;\n\t\n\t var rafSupported = !!requestAnimationFrame;\n\t var raf = rafSupported\n\t ? function(fn) {\n\t var id = requestAnimationFrame(fn);\n\t return function() {\n\t cancelAnimationFrame(id);\n\t };\n\t }\n\t : function(fn) {\n\t var timer = $timeout(fn, 16.66, false); // 1000 / 60 = 16.666\n\t return function() {\n\t $timeout.cancel(timer);\n\t };\n\t };\n\t\n\t raf.supported = rafSupported;\n\t\n\t return raf;\n\t }];\n\t}\n\t\n\t/**\n\t * DESIGN NOTES\n\t *\n\t * The design decisions behind the scope are heavily favored for speed and memory consumption.\n\t *\n\t * The typical use of scope is to watch the expressions, which most of the time return the same\n\t * value as last time so we optimize the operation.\n\t *\n\t * Closures construction is expensive in terms of speed as well as memory:\n\t * - No closures, instead use prototypical inheritance for API\n\t * - Internal state needs to be stored on scope directly, which means that private state is\n\t * exposed as $$____ properties\n\t *\n\t * Loop operations are optimized by using while(count--) { ... }\n\t * - This means that in order to keep the same order of execution as addition we have to add\n\t * items to the array at the beginning (unshift) instead of at the end (push)\n\t *\n\t * Child scopes are created and removed often\n\t * - Using an array would be slow since inserts in the middle are expensive; so we use linked lists\n\t *\n\t * There are fewer watches than observers. This is why you don't want the observer to be implemented\n\t * in the same way as watch. Watch requires return of the initialization function which is expensive\n\t * to construct.\n\t */\n\t\n\t\n\t/**\n\t * @ngdoc provider\n\t * @name $rootScopeProvider\n\t * @description\n\t *\n\t * Provider for the $rootScope service.\n\t */\n\t\n\t/**\n\t * @ngdoc method\n\t * @name $rootScopeProvider#digestTtl\n\t * @description\n\t *\n\t * Sets the number of `$digest` iterations the scope should attempt to execute before giving up and\n\t * assuming that the model is unstable.\n\t *\n\t * The current default is 10 iterations.\n\t *\n\t * In complex applications it's possible that the dependencies between `$watch`s will result in\n\t * several digest iterations. However if an application needs more than the default 10 digest\n\t * iterations for its model to stabilize then you should investigate what is causing the model to\n\t * continuously change during the digest.\n\t *\n\t * Increasing the TTL could have performance implications, so you should not change it without\n\t * proper justification.\n\t *\n\t * @param {number} limit The number of digest iterations.\n\t */\n\t\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $rootScope\n\t * @description\n\t *\n\t * Every application has a single root {@link ng.$rootScope.Scope scope}.\n\t * All other scopes are descendant scopes of the root scope. Scopes provide separation\n\t * between the model and the view, via a mechanism for watching the model for changes.\n\t * They also provide event emission/broadcast and subscription facility. See the\n\t * {@link guide/scope developer guide on scopes}.\n\t */\n\tfunction $RootScopeProvider() {\n\t var TTL = 10;\n\t var $rootScopeMinErr = minErr('$rootScope');\n\t var lastDirtyWatch = null;\n\t var applyAsyncId = null;\n\t\n\t this.digestTtl = function(value) {\n\t if (arguments.length) {\n\t TTL = value;\n\t }\n\t return TTL;\n\t };\n\t\n\t function createChildScopeClass(parent) {\n\t function ChildScope() {\n\t this.$$watchers = this.$$nextSibling =\n\t this.$$childHead = this.$$childTail = null;\n\t this.$$listeners = {};\n\t this.$$listenerCount = {};\n\t this.$$watchersCount = 0;\n\t this.$id = nextUid();\n\t this.$$ChildScope = null;\n\t }\n\t ChildScope.prototype = parent;\n\t return ChildScope;\n\t }\n\t\n\t this.$get = ['$injector', '$exceptionHandler', '$parse', '$browser',\n\t function($injector, $exceptionHandler, $parse, $browser) {\n\t\n\t function destroyChildScope($event) {\n\t $event.currentScope.$$destroyed = true;\n\t }\n\t\n\t function cleanUpScope($scope) {\n\t\n\t if (msie === 9) {\n\t // There is a memory leak in IE9 if all child scopes are not disconnected\n\t // completely when a scope is destroyed. So this code will recurse up through\n\t // all this scopes children\n\t //\n\t // See issue https://github.com/angular/angular.js/issues/10706\n\t $scope.$$childHead && cleanUpScope($scope.$$childHead);\n\t $scope.$$nextSibling && cleanUpScope($scope.$$nextSibling);\n\t }\n\t\n\t // The code below works around IE9 and V8's memory leaks\n\t //\n\t // See:\n\t // - https://code.google.com/p/v8/issues/detail?id=2073#c26\n\t // - https://github.com/angular/angular.js/issues/6794#issuecomment-38648909\n\t // - https://github.com/angular/angular.js/issues/1313#issuecomment-10378451\n\t\n\t $scope.$parent = $scope.$$nextSibling = $scope.$$prevSibling = $scope.$$childHead =\n\t $scope.$$childTail = $scope.$root = $scope.$$watchers = null;\n\t }\n\t\n\t /**\n\t * @ngdoc type\n\t * @name $rootScope.Scope\n\t *\n\t * @description\n\t * A root scope can be retrieved using the {@link ng.$rootScope $rootScope} key from the\n\t * {@link auto.$injector $injector}. Child scopes are created using the\n\t * {@link ng.$rootScope.Scope#$new $new()} method. (Most scopes are created automatically when\n\t * compiled HTML template is executed.) See also the {@link guide/scope Scopes guide} for\n\t * an in-depth introduction and usage examples.\n\t *\n\t *\n\t * # Inheritance\n\t * A scope can inherit from a parent scope, as in this example:\n\t * ```js\n\t var parent = $rootScope;\n\t var child = parent.$new();\n\t\n\t parent.salutation = \"Hello\";\n\t expect(child.salutation).toEqual('Hello');\n\t\n\t child.salutation = \"Welcome\";\n\t expect(child.salutation).toEqual('Welcome');\n\t expect(parent.salutation).toEqual('Hello');\n\t * ```\n\t *\n\t * When interacting with `Scope` in tests, additional helper methods are available on the\n\t * instances of `Scope` type. See {@link ngMock.$rootScope.Scope ngMock Scope} for additional\n\t * details.\n\t *\n\t *\n\t * @param {Object.=} providers Map of service factory which need to be\n\t * provided for the current scope. Defaults to {@link ng}.\n\t * @param {Object.=} instanceCache Provides pre-instantiated services which should\n\t * append/override services provided by `providers`. This is handy\n\t * when unit-testing and having the need to override a default\n\t * service.\n\t * @returns {Object} Newly created scope.\n\t *\n\t */\n\t function Scope() {\n\t this.$id = nextUid();\n\t this.$$phase = this.$parent = this.$$watchers =\n\t this.$$nextSibling = this.$$prevSibling =\n\t this.$$childHead = this.$$childTail = null;\n\t this.$root = this;\n\t this.$$destroyed = false;\n\t this.$$listeners = {};\n\t this.$$listenerCount = {};\n\t this.$$watchersCount = 0;\n\t this.$$isolateBindings = null;\n\t }\n\t\n\t /**\n\t * @ngdoc property\n\t * @name $rootScope.Scope#$id\n\t *\n\t * @description\n\t * Unique scope ID (monotonically increasing) useful for debugging.\n\t */\n\t\n\t /**\n\t * @ngdoc property\n\t * @name $rootScope.Scope#$parent\n\t *\n\t * @description\n\t * Reference to the parent scope.\n\t */\n\t\n\t /**\n\t * @ngdoc property\n\t * @name $rootScope.Scope#$root\n\t *\n\t * @description\n\t * Reference to the root scope.\n\t */\n\t\n\t Scope.prototype = {\n\t constructor: Scope,\n\t /**\n\t * @ngdoc method\n\t * @name $rootScope.Scope#$new\n\t * @kind function\n\t *\n\t * @description\n\t * Creates a new child {@link ng.$rootScope.Scope scope}.\n\t *\n\t * The parent scope will propagate the {@link ng.$rootScope.Scope#$digest $digest()} event.\n\t * The scope can be removed from the scope hierarchy using {@link ng.$rootScope.Scope#$destroy $destroy()}.\n\t *\n\t * {@link ng.$rootScope.Scope#$destroy $destroy()} must be called on a scope when it is\n\t * desired for the scope and its child scopes to be permanently detached from the parent and\n\t * thus stop participating in model change detection and listener notification by invoking.\n\t *\n\t * @param {boolean} isolate If true, then the scope does not prototypically inherit from the\n\t * parent scope. The scope is isolated, as it can not see parent scope properties.\n\t * When creating widgets, it is useful for the widget to not accidentally read parent\n\t * state.\n\t *\n\t * @param {Scope} [parent=this] The {@link ng.$rootScope.Scope `Scope`} that will be the `$parent`\n\t * of the newly created scope. Defaults to `this` scope if not provided.\n\t * This is used when creating a transclude scope to correctly place it\n\t * in the scope hierarchy while maintaining the correct prototypical\n\t * inheritance.\n\t *\n\t * @returns {Object} The newly created child scope.\n\t *\n\t */\n\t $new: function(isolate, parent) {\n\t var child;\n\t\n\t parent = parent || this;\n\t\n\t if (isolate) {\n\t child = new Scope();\n\t child.$root = this.$root;\n\t } else {\n\t // Only create a child scope class if somebody asks for one,\n\t // but cache it to allow the VM to optimize lookups.\n\t if (!this.$$ChildScope) {\n\t this.$$ChildScope = createChildScopeClass(this);\n\t }\n\t child = new this.$$ChildScope();\n\t }\n\t child.$parent = parent;\n\t child.$$prevSibling = parent.$$childTail;\n\t if (parent.$$childHead) {\n\t parent.$$childTail.$$nextSibling = child;\n\t parent.$$childTail = child;\n\t } else {\n\t parent.$$childHead = parent.$$childTail = child;\n\t }\n\t\n\t // When the new scope is not isolated or we inherit from `this`, and\n\t // the parent scope is destroyed, the property `$$destroyed` is inherited\n\t // prototypically. In all other cases, this property needs to be set\n\t // when the parent scope is destroyed.\n\t // The listener needs to be added after the parent is set\n\t if (isolate || parent != this) child.$on('$destroy', destroyChildScope);\n\t\n\t return child;\n\t },\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $rootScope.Scope#$watch\n\t * @kind function\n\t *\n\t * @description\n\t * Registers a `listener` callback to be executed whenever the `watchExpression` changes.\n\t *\n\t * - The `watchExpression` is called on every call to {@link ng.$rootScope.Scope#$digest\n\t * $digest()} and should return the value that will be watched. (`watchExpression` should not change\n\t * its value when executed multiple times with the same input because it may be executed multiple\n\t * times by {@link ng.$rootScope.Scope#$digest $digest()}. That is, `watchExpression` should be\n\t * [idempotent](http://en.wikipedia.org/wiki/Idempotence).\n\t * - The `listener` is called only when the value from the current `watchExpression` and the\n\t * previous call to `watchExpression` are not equal (with the exception of the initial run,\n\t * see below). Inequality is determined according to reference inequality,\n\t * [strict comparison](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators)\n\t * via the `!==` Javascript operator, unless `objectEquality == true`\n\t * (see next point)\n\t * - When `objectEquality == true`, inequality of the `watchExpression` is determined\n\t * according to the {@link angular.equals} function. To save the value of the object for\n\t * later comparison, the {@link angular.copy} function is used. This therefore means that\n\t * watching complex objects will have adverse memory and performance implications.\n\t * - The watch `listener` may change the model, which may trigger other `listener`s to fire.\n\t * This is achieved by rerunning the watchers until no changes are detected. The rerun\n\t * iteration limit is 10 to prevent an infinite loop deadlock.\n\t *\n\t *\n\t * If you want to be notified whenever {@link ng.$rootScope.Scope#$digest $digest} is called,\n\t * you can register a `watchExpression` function with no `listener`. (Be prepared for\n\t * multiple calls to your `watchExpression` because it will execute multiple times in a\n\t * single {@link ng.$rootScope.Scope#$digest $digest} cycle if a change is detected.)\n\t *\n\t * After a watcher is registered with the scope, the `listener` fn is called asynchronously\n\t * (via {@link ng.$rootScope.Scope#$evalAsync $evalAsync}) to initialize the\n\t * watcher. In rare cases, this is undesirable because the listener is called when the result\n\t * of `watchExpression` didn't change. To detect this scenario within the `listener` fn, you\n\t * can compare the `newVal` and `oldVal`. If these two values are identical (`===`) then the\n\t * listener was called due to initialization.\n\t *\n\t *\n\t *\n\t * # Example\n\t * ```js\n\t // let's assume that scope was dependency injected as the $rootScope\n\t var scope = $rootScope;\n\t scope.name = 'misko';\n\t scope.counter = 0;\n\t\n\t expect(scope.counter).toEqual(0);\n\t scope.$watch('name', function(newValue, oldValue) {\n\t scope.counter = scope.counter + 1;\n\t });\n\t expect(scope.counter).toEqual(0);\n\t\n\t scope.$digest();\n\t // the listener is always called during the first $digest loop after it was registered\n\t expect(scope.counter).toEqual(1);\n\t\n\t scope.$digest();\n\t // but now it will not be called unless the value changes\n\t expect(scope.counter).toEqual(1);\n\t\n\t scope.name = 'adam';\n\t scope.$digest();\n\t expect(scope.counter).toEqual(2);\n\t\n\t\n\t\n\t // Using a function as a watchExpression\n\t var food;\n\t scope.foodCounter = 0;\n\t expect(scope.foodCounter).toEqual(0);\n\t scope.$watch(\n\t // This function returns the value being watched. It is called for each turn of the $digest loop\n\t function() { return food; },\n\t // This is the change listener, called when the value returned from the above function changes\n\t function(newValue, oldValue) {\n\t if ( newValue !== oldValue ) {\n\t // Only increment the counter if the value changed\n\t scope.foodCounter = scope.foodCounter + 1;\n\t }\n\t }\n\t );\n\t // No digest has been run so the counter will be zero\n\t expect(scope.foodCounter).toEqual(0);\n\t\n\t // Run the digest but since food has not changed count will still be zero\n\t scope.$digest();\n\t expect(scope.foodCounter).toEqual(0);\n\t\n\t // Update food and run digest. Now the counter will increment\n\t food = 'cheeseburger';\n\t scope.$digest();\n\t expect(scope.foodCounter).toEqual(1);\n\t\n\t * ```\n\t *\n\t *\n\t *\n\t * @param {(function()|string)} watchExpression Expression that is evaluated on each\n\t * {@link ng.$rootScope.Scope#$digest $digest} cycle. A change in the return value triggers\n\t * a call to the `listener`.\n\t *\n\t * - `string`: Evaluated as {@link guide/expression expression}\n\t * - `function(scope)`: called with current `scope` as a parameter.\n\t * @param {function(newVal, oldVal, scope)} listener Callback called whenever the value\n\t * of `watchExpression` changes.\n\t *\n\t * - `newVal` contains the current value of the `watchExpression`\n\t * - `oldVal` contains the previous value of the `watchExpression`\n\t * - `scope` refers to the current scope\n\t * @param {boolean=} objectEquality Compare for object equality using {@link angular.equals} instead of\n\t * comparing for reference equality.\n\t * @returns {function()} Returns a deregistration function for this listener.\n\t */\n\t $watch: function(watchExp, listener, objectEquality, prettyPrintExpression) {\n\t var get = $parse(watchExp);\n\t\n\t if (get.$$watchDelegate) {\n\t return get.$$watchDelegate(this, listener, objectEquality, get, watchExp);\n\t }\n\t var scope = this,\n\t array = scope.$$watchers,\n\t watcher = {\n\t fn: listener,\n\t last: initWatchVal,\n\t get: get,\n\t exp: prettyPrintExpression || watchExp,\n\t eq: !!objectEquality\n\t };\n\t\n\t lastDirtyWatch = null;\n\t\n\t if (!isFunction(listener)) {\n\t watcher.fn = noop;\n\t }\n\t\n\t if (!array) {\n\t array = scope.$$watchers = [];\n\t }\n\t // we use unshift since we use a while loop in $digest for speed.\n\t // the while loop reads in reverse order.\n\t array.unshift(watcher);\n\t incrementWatchersCount(this, 1);\n\t\n\t return function deregisterWatch() {\n\t if (arrayRemove(array, watcher) >= 0) {\n\t incrementWatchersCount(scope, -1);\n\t }\n\t lastDirtyWatch = null;\n\t };\n\t },\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $rootScope.Scope#$watchGroup\n\t * @kind function\n\t *\n\t * @description\n\t * A variant of {@link ng.$rootScope.Scope#$watch $watch()} where it watches an array of `watchExpressions`.\n\t * If any one expression in the collection changes the `listener` is executed.\n\t *\n\t * - The items in the `watchExpressions` array are observed via standard $watch operation and are examined on every\n\t * call to $digest() to see if any items changes.\n\t * - The `listener` is called whenever any expression in the `watchExpressions` array changes.\n\t *\n\t * @param {Array.} watchExpressions Array of expressions that will be individually\n\t * watched using {@link ng.$rootScope.Scope#$watch $watch()}\n\t *\n\t * @param {function(newValues, oldValues, scope)} listener Callback called whenever the return value of any\n\t * expression in `watchExpressions` changes\n\t * The `newValues` array contains the current values of the `watchExpressions`, with the indexes matching\n\t * those of `watchExpression`\n\t * and the `oldValues` array contains the previous values of the `watchExpressions`, with the indexes matching\n\t * those of `watchExpression`\n\t * The `scope` refers to the current scope.\n\t * @returns {function()} Returns a de-registration function for all listeners.\n\t */\n\t $watchGroup: function(watchExpressions, listener) {\n\t var oldValues = new Array(watchExpressions.length);\n\t var newValues = new Array(watchExpressions.length);\n\t var deregisterFns = [];\n\t var self = this;\n\t var changeReactionScheduled = false;\n\t var firstRun = true;\n\t\n\t if (!watchExpressions.length) {\n\t // No expressions means we call the listener ASAP\n\t var shouldCall = true;\n\t self.$evalAsync(function() {\n\t if (shouldCall) listener(newValues, newValues, self);\n\t });\n\t return function deregisterWatchGroup() {\n\t shouldCall = false;\n\t };\n\t }\n\t\n\t if (watchExpressions.length === 1) {\n\t // Special case size of one\n\t return this.$watch(watchExpressions[0], function watchGroupAction(value, oldValue, scope) {\n\t newValues[0] = value;\n\t oldValues[0] = oldValue;\n\t listener(newValues, (value === oldValue) ? newValues : oldValues, scope);\n\t });\n\t }\n\t\n\t forEach(watchExpressions, function(expr, i) {\n\t var unwatchFn = self.$watch(expr, function watchGroupSubAction(value, oldValue) {\n\t newValues[i] = value;\n\t oldValues[i] = oldValue;\n\t if (!changeReactionScheduled) {\n\t changeReactionScheduled = true;\n\t self.$evalAsync(watchGroupAction);\n\t }\n\t });\n\t deregisterFns.push(unwatchFn);\n\t });\n\t\n\t function watchGroupAction() {\n\t changeReactionScheduled = false;\n\t\n\t if (firstRun) {\n\t firstRun = false;\n\t listener(newValues, newValues, self);\n\t } else {\n\t listener(newValues, oldValues, self);\n\t }\n\t }\n\t\n\t return function deregisterWatchGroup() {\n\t while (deregisterFns.length) {\n\t deregisterFns.shift()();\n\t }\n\t };\n\t },\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $rootScope.Scope#$watchCollection\n\t * @kind function\n\t *\n\t * @description\n\t * Shallow watches the properties of an object and fires whenever any of the properties change\n\t * (for arrays, this implies watching the array items; for object maps, this implies watching\n\t * the properties). If a change is detected, the `listener` callback is fired.\n\t *\n\t * - The `obj` collection is observed via standard $watch operation and is examined on every\n\t * call to $digest() to see if any items have been added, removed, or moved.\n\t * - The `listener` is called whenever anything within the `obj` has changed. Examples include\n\t * adding, removing, and moving items belonging to an object or array.\n\t *\n\t *\n\t * # Example\n\t * ```js\n\t $scope.names = ['igor', 'matias', 'misko', 'james'];\n\t $scope.dataCount = 4;\n\t\n\t $scope.$watchCollection('names', function(newNames, oldNames) {\n\t $scope.dataCount = newNames.length;\n\t });\n\t\n\t expect($scope.dataCount).toEqual(4);\n\t $scope.$digest();\n\t\n\t //still at 4 ... no changes\n\t expect($scope.dataCount).toEqual(4);\n\t\n\t $scope.names.pop();\n\t $scope.$digest();\n\t\n\t //now there's been a change\n\t expect($scope.dataCount).toEqual(3);\n\t * ```\n\t *\n\t *\n\t * @param {string|function(scope)} obj Evaluated as {@link guide/expression expression}. The\n\t * expression value should evaluate to an object or an array which is observed on each\n\t * {@link ng.$rootScope.Scope#$digest $digest} cycle. Any shallow change within the\n\t * collection will trigger a call to the `listener`.\n\t *\n\t * @param {function(newCollection, oldCollection, scope)} listener a callback function called\n\t * when a change is detected.\n\t * - The `newCollection` object is the newly modified data obtained from the `obj` expression\n\t * - The `oldCollection` object is a copy of the former collection data.\n\t * Due to performance considerations, the`oldCollection` value is computed only if the\n\t * `listener` function declares two or more arguments.\n\t * - The `scope` argument refers to the current scope.\n\t *\n\t * @returns {function()} Returns a de-registration function for this listener. When the\n\t * de-registration function is executed, the internal watch operation is terminated.\n\t */\n\t $watchCollection: function(obj, listener) {\n\t $watchCollectionInterceptor.$stateful = true;\n\t\n\t var self = this;\n\t // the current value, updated on each dirty-check run\n\t var newValue;\n\t // a shallow copy of the newValue from the last dirty-check run,\n\t // updated to match newValue during dirty-check run\n\t var oldValue;\n\t // a shallow copy of the newValue from when the last change happened\n\t var veryOldValue;\n\t // only track veryOldValue if the listener is asking for it\n\t var trackVeryOldValue = (listener.length > 1);\n\t var changeDetected = 0;\n\t var changeDetector = $parse(obj, $watchCollectionInterceptor);\n\t var internalArray = [];\n\t var internalObject = {};\n\t var initRun = true;\n\t var oldLength = 0;\n\t\n\t function $watchCollectionInterceptor(_value) {\n\t newValue = _value;\n\t var newLength, key, bothNaN, newItem, oldItem;\n\t\n\t // If the new value is undefined, then return undefined as the watch may be a one-time watch\n\t if (isUndefined(newValue)) return;\n\t\n\t if (!isObject(newValue)) { // if primitive\n\t if (oldValue !== newValue) {\n\t oldValue = newValue;\n\t changeDetected++;\n\t }\n\t } else if (isArrayLike(newValue)) {\n\t if (oldValue !== internalArray) {\n\t // we are transitioning from something which was not an array into array.\n\t oldValue = internalArray;\n\t oldLength = oldValue.length = 0;\n\t changeDetected++;\n\t }\n\t\n\t newLength = newValue.length;\n\t\n\t if (oldLength !== newLength) {\n\t // if lengths do not match we need to trigger change notification\n\t changeDetected++;\n\t oldValue.length = oldLength = newLength;\n\t }\n\t // copy the items to oldValue and look for changes.\n\t for (var i = 0; i < newLength; i++) {\n\t oldItem = oldValue[i];\n\t newItem = newValue[i];\n\t\n\t bothNaN = (oldItem !== oldItem) && (newItem !== newItem);\n\t if (!bothNaN && (oldItem !== newItem)) {\n\t changeDetected++;\n\t oldValue[i] = newItem;\n\t }\n\t }\n\t } else {\n\t if (oldValue !== internalObject) {\n\t // we are transitioning from something which was not an object into object.\n\t oldValue = internalObject = {};\n\t oldLength = 0;\n\t changeDetected++;\n\t }\n\t // copy the items to oldValue and look for changes.\n\t newLength = 0;\n\t for (key in newValue) {\n\t if (hasOwnProperty.call(newValue, key)) {\n\t newLength++;\n\t newItem = newValue[key];\n\t oldItem = oldValue[key];\n\t\n\t if (key in oldValue) {\n\t bothNaN = (oldItem !== oldItem) && (newItem !== newItem);\n\t if (!bothNaN && (oldItem !== newItem)) {\n\t changeDetected++;\n\t oldValue[key] = newItem;\n\t }\n\t } else {\n\t oldLength++;\n\t oldValue[key] = newItem;\n\t changeDetected++;\n\t }\n\t }\n\t }\n\t if (oldLength > newLength) {\n\t // we used to have more keys, need to find them and destroy them.\n\t changeDetected++;\n\t for (key in oldValue) {\n\t if (!hasOwnProperty.call(newValue, key)) {\n\t oldLength--;\n\t delete oldValue[key];\n\t }\n\t }\n\t }\n\t }\n\t return changeDetected;\n\t }\n\t\n\t function $watchCollectionAction() {\n\t if (initRun) {\n\t initRun = false;\n\t listener(newValue, newValue, self);\n\t } else {\n\t listener(newValue, veryOldValue, self);\n\t }\n\t\n\t // make a copy for the next time a collection is changed\n\t if (trackVeryOldValue) {\n\t if (!isObject(newValue)) {\n\t //primitive\n\t veryOldValue = newValue;\n\t } else if (isArrayLike(newValue)) {\n\t veryOldValue = new Array(newValue.length);\n\t for (var i = 0; i < newValue.length; i++) {\n\t veryOldValue[i] = newValue[i];\n\t }\n\t } else { // if object\n\t veryOldValue = {};\n\t for (var key in newValue) {\n\t if (hasOwnProperty.call(newValue, key)) {\n\t veryOldValue[key] = newValue[key];\n\t }\n\t }\n\t }\n\t }\n\t }\n\t\n\t return this.$watch(changeDetector, $watchCollectionAction);\n\t },\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $rootScope.Scope#$digest\n\t * @kind function\n\t *\n\t * @description\n\t * Processes all of the {@link ng.$rootScope.Scope#$watch watchers} of the current scope and\n\t * its children. Because a {@link ng.$rootScope.Scope#$watch watcher}'s listener can change\n\t * the model, the `$digest()` keeps calling the {@link ng.$rootScope.Scope#$watch watchers}\n\t * until no more listeners are firing. This means that it is possible to get into an infinite\n\t * loop. This function will throw `'Maximum iteration limit exceeded.'` if the number of\n\t * iterations exceeds 10.\n\t *\n\t * Usually, you don't call `$digest()` directly in\n\t * {@link ng.directive:ngController controllers} or in\n\t * {@link ng.$compileProvider#directive directives}.\n\t * Instead, you should call {@link ng.$rootScope.Scope#$apply $apply()} (typically from within\n\t * a {@link ng.$compileProvider#directive directive}), which will force a `$digest()`.\n\t *\n\t * If you want to be notified whenever `$digest()` is called,\n\t * you can register a `watchExpression` function with\n\t * {@link ng.$rootScope.Scope#$watch $watch()} with no `listener`.\n\t *\n\t * In unit tests, you may need to call `$digest()` to simulate the scope life cycle.\n\t *\n\t * # Example\n\t * ```js\n\t var scope = ...;\n\t scope.name = 'misko';\n\t scope.counter = 0;\n\t\n\t expect(scope.counter).toEqual(0);\n\t scope.$watch('name', function(newValue, oldValue) {\n\t scope.counter = scope.counter + 1;\n\t });\n\t expect(scope.counter).toEqual(0);\n\t\n\t scope.$digest();\n\t // the listener is always called during the first $digest loop after it was registered\n\t expect(scope.counter).toEqual(1);\n\t\n\t scope.$digest();\n\t // but now it will not be called unless the value changes\n\t expect(scope.counter).toEqual(1);\n\t\n\t scope.name = 'adam';\n\t scope.$digest();\n\t expect(scope.counter).toEqual(2);\n\t * ```\n\t *\n\t */\n\t $digest: function() {\n\t var watch, value, last, fn, get,\n\t watchers,\n\t length,\n\t dirty, ttl = TTL,\n\t next, current, target = this,\n\t watchLog = [],\n\t logIdx, logMsg, asyncTask;\n\t\n\t beginPhase('$digest');\n\t // Check for changes to browser url that happened in sync before the call to $digest\n\t $browser.$$checkUrlChange();\n\t\n\t if (this === $rootScope && applyAsyncId !== null) {\n\t // If this is the root scope, and $applyAsync has scheduled a deferred $apply(), then\n\t // cancel the scheduled $apply and flush the queue of expressions to be evaluated.\n\t $browser.defer.cancel(applyAsyncId);\n\t flushApplyAsync();\n\t }\n\t\n\t lastDirtyWatch = null;\n\t\n\t do { // \"while dirty\" loop\n\t dirty = false;\n\t current = target;\n\t\n\t while (asyncQueue.length) {\n\t try {\n\t asyncTask = asyncQueue.shift();\n\t asyncTask.scope.$eval(asyncTask.expression, asyncTask.locals);\n\t } catch (e) {\n\t $exceptionHandler(e);\n\t }\n\t lastDirtyWatch = null;\n\t }\n\t\n\t traverseScopesLoop:\n\t do { // \"traverse the scopes\" loop\n\t if ((watchers = current.$$watchers)) {\n\t // process our watches\n\t length = watchers.length;\n\t while (length--) {\n\t try {\n\t watch = watchers[length];\n\t // Most common watches are on primitives, in which case we can short\n\t // circuit it with === operator, only when === fails do we use .equals\n\t if (watch) {\n\t get = watch.get;\n\t if ((value = get(current)) !== (last = watch.last) &&\n\t !(watch.eq\n\t ? equals(value, last)\n\t : (typeof value === 'number' && typeof last === 'number'\n\t && isNaN(value) && isNaN(last)))) {\n\t dirty = true;\n\t lastDirtyWatch = watch;\n\t watch.last = watch.eq ? copy(value, null) : value;\n\t fn = watch.fn;\n\t fn(value, ((last === initWatchVal) ? value : last), current);\n\t if (ttl < 5) {\n\t logIdx = 4 - ttl;\n\t if (!watchLog[logIdx]) watchLog[logIdx] = [];\n\t watchLog[logIdx].push({\n\t msg: isFunction(watch.exp) ? 'fn: ' + (watch.exp.name || watch.exp.toString()) : watch.exp,\n\t newVal: value,\n\t oldVal: last\n\t });\n\t }\n\t } else if (watch === lastDirtyWatch) {\n\t // If the most recently dirty watcher is now clean, short circuit since the remaining watchers\n\t // have already been tested.\n\t dirty = false;\n\t break traverseScopesLoop;\n\t }\n\t }\n\t } catch (e) {\n\t $exceptionHandler(e);\n\t }\n\t }\n\t }\n\t\n\t // Insanity Warning: scope depth-first traversal\n\t // yes, this code is a bit crazy, but it works and we have tests to prove it!\n\t // this piece should be kept in sync with the traversal in $broadcast\n\t if (!(next = ((current.$$watchersCount && current.$$childHead) ||\n\t (current !== target && current.$$nextSibling)))) {\n\t while (current !== target && !(next = current.$$nextSibling)) {\n\t current = current.$parent;\n\t }\n\t }\n\t } while ((current = next));\n\t\n\t // `break traverseScopesLoop;` takes us to here\n\t\n\t if ((dirty || asyncQueue.length) && !(ttl--)) {\n\t clearPhase();\n\t throw $rootScopeMinErr('infdig',\n\t '{0} $digest() iterations reached. Aborting!\\n' +\n\t 'Watchers fired in the last 5 iterations: {1}',\n\t TTL, watchLog);\n\t }\n\t\n\t } while (dirty || asyncQueue.length);\n\t\n\t clearPhase();\n\t\n\t while (postDigestQueue.length) {\n\t try {\n\t postDigestQueue.shift()();\n\t } catch (e) {\n\t $exceptionHandler(e);\n\t }\n\t }\n\t },\n\t\n\t\n\t /**\n\t * @ngdoc event\n\t * @name $rootScope.Scope#$destroy\n\t * @eventType broadcast on scope being destroyed\n\t *\n\t * @description\n\t * Broadcasted when a scope and its children are being destroyed.\n\t *\n\t * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to\n\t * clean up DOM bindings before an element is removed from the DOM.\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $rootScope.Scope#$destroy\n\t * @kind function\n\t *\n\t * @description\n\t * Removes the current scope (and all of its children) from the parent scope. Removal implies\n\t * that calls to {@link ng.$rootScope.Scope#$digest $digest()} will no longer\n\t * propagate to the current scope and its children. Removal also implies that the current\n\t * scope is eligible for garbage collection.\n\t *\n\t * The `$destroy()` is usually used by directives such as\n\t * {@link ng.directive:ngRepeat ngRepeat} for managing the\n\t * unrolling of the loop.\n\t *\n\t * Just before a scope is destroyed, a `$destroy` event is broadcasted on this scope.\n\t * Application code can register a `$destroy` event handler that will give it a chance to\n\t * perform any necessary cleanup.\n\t *\n\t * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to\n\t * clean up DOM bindings before an element is removed from the DOM.\n\t */\n\t $destroy: function() {\n\t // We can't destroy a scope that has been already destroyed.\n\t if (this.$$destroyed) return;\n\t var parent = this.$parent;\n\t\n\t this.$broadcast('$destroy');\n\t this.$$destroyed = true;\n\t\n\t if (this === $rootScope) {\n\t //Remove handlers attached to window when $rootScope is removed\n\t $browser.$$applicationDestroyed();\n\t }\n\t\n\t incrementWatchersCount(this, -this.$$watchersCount);\n\t for (var eventName in this.$$listenerCount) {\n\t decrementListenerCount(this, this.$$listenerCount[eventName], eventName);\n\t }\n\t\n\t // sever all the references to parent scopes (after this cleanup, the current scope should\n\t // not be retained by any of our references and should be eligible for garbage collection)\n\t if (parent && parent.$$childHead == this) parent.$$childHead = this.$$nextSibling;\n\t if (parent && parent.$$childTail == this) parent.$$childTail = this.$$prevSibling;\n\t if (this.$$prevSibling) this.$$prevSibling.$$nextSibling = this.$$nextSibling;\n\t if (this.$$nextSibling) this.$$nextSibling.$$prevSibling = this.$$prevSibling;\n\t\n\t // Disable listeners, watchers and apply/digest methods\n\t this.$destroy = this.$digest = this.$apply = this.$evalAsync = this.$applyAsync = noop;\n\t this.$on = this.$watch = this.$watchGroup = function() { return noop; };\n\t this.$$listeners = {};\n\t\n\t // Disconnect the next sibling to prevent `cleanUpScope` destroying those too\n\t this.$$nextSibling = null;\n\t cleanUpScope(this);\n\t },\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $rootScope.Scope#$eval\n\t * @kind function\n\t *\n\t * @description\n\t * Executes the `expression` on the current scope and returns the result. Any exceptions in\n\t * the expression are propagated (uncaught). This is useful when evaluating Angular\n\t * expressions.\n\t *\n\t * # Example\n\t * ```js\n\t var scope = ng.$rootScope.Scope();\n\t scope.a = 1;\n\t scope.b = 2;\n\t\n\t expect(scope.$eval('a+b')).toEqual(3);\n\t expect(scope.$eval(function(scope){ return scope.a + scope.b; })).toEqual(3);\n\t * ```\n\t *\n\t * @param {(string|function())=} expression An angular expression to be executed.\n\t *\n\t * - `string`: execute using the rules as defined in {@link guide/expression expression}.\n\t * - `function(scope)`: execute the function with the current `scope` parameter.\n\t *\n\t * @param {(object)=} locals Local variables object, useful for overriding values in scope.\n\t * @returns {*} The result of evaluating the expression.\n\t */\n\t $eval: function(expr, locals) {\n\t return $parse(expr)(this, locals);\n\t },\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $rootScope.Scope#$evalAsync\n\t * @kind function\n\t *\n\t * @description\n\t * Executes the expression on the current scope at a later point in time.\n\t *\n\t * The `$evalAsync` makes no guarantees as to when the `expression` will be executed, only\n\t * that:\n\t *\n\t * - it will execute after the function that scheduled the evaluation (preferably before DOM\n\t * rendering).\n\t * - at least one {@link ng.$rootScope.Scope#$digest $digest cycle} will be performed after\n\t * `expression` execution.\n\t *\n\t * Any exceptions from the execution of the expression are forwarded to the\n\t * {@link ng.$exceptionHandler $exceptionHandler} service.\n\t *\n\t * __Note:__ if this function is called outside of a `$digest` cycle, a new `$digest` cycle\n\t * will be scheduled. However, it is encouraged to always call code that changes the model\n\t * from within an `$apply` call. That includes code evaluated via `$evalAsync`.\n\t *\n\t * @param {(string|function())=} expression An angular expression to be executed.\n\t *\n\t * - `string`: execute using the rules as defined in {@link guide/expression expression}.\n\t * - `function(scope)`: execute the function with the current `scope` parameter.\n\t *\n\t * @param {(object)=} locals Local variables object, useful for overriding values in scope.\n\t */\n\t $evalAsync: function(expr, locals) {\n\t // if we are outside of an $digest loop and this is the first time we are scheduling async\n\t // task also schedule async auto-flush\n\t if (!$rootScope.$$phase && !asyncQueue.length) {\n\t $browser.defer(function() {\n\t if (asyncQueue.length) {\n\t $rootScope.$digest();\n\t }\n\t });\n\t }\n\t\n\t asyncQueue.push({scope: this, expression: $parse(expr), locals: locals});\n\t },\n\t\n\t $$postDigest: function(fn) {\n\t postDigestQueue.push(fn);\n\t },\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $rootScope.Scope#$apply\n\t * @kind function\n\t *\n\t * @description\n\t * `$apply()` is used to execute an expression in angular from outside of the angular\n\t * framework. (For example from browser DOM events, setTimeout, XHR or third party libraries).\n\t * Because we are calling into the angular framework we need to perform proper scope life\n\t * cycle of {@link ng.$exceptionHandler exception handling},\n\t * {@link ng.$rootScope.Scope#$digest executing watches}.\n\t *\n\t * ## Life cycle\n\t *\n\t * # Pseudo-Code of `$apply()`\n\t * ```js\n\t function $apply(expr) {\n\t try {\n\t return $eval(expr);\n\t } catch (e) {\n\t $exceptionHandler(e);\n\t } finally {\n\t $root.$digest();\n\t }\n\t }\n\t * ```\n\t *\n\t *\n\t * Scope's `$apply()` method transitions through the following stages:\n\t *\n\t * 1. The {@link guide/expression expression} is executed using the\n\t * {@link ng.$rootScope.Scope#$eval $eval()} method.\n\t * 2. Any exceptions from the execution of the expression are forwarded to the\n\t * {@link ng.$exceptionHandler $exceptionHandler} service.\n\t * 3. The {@link ng.$rootScope.Scope#$watch watch} listeners are fired immediately after the\n\t * expression was executed using the {@link ng.$rootScope.Scope#$digest $digest()} method.\n\t *\n\t *\n\t * @param {(string|function())=} exp An angular expression to be executed.\n\t *\n\t * - `string`: execute using the rules as defined in {@link guide/expression expression}.\n\t * - `function(scope)`: execute the function with current `scope` parameter.\n\t *\n\t * @returns {*} The result of evaluating the expression.\n\t */\n\t $apply: function(expr) {\n\t try {\n\t beginPhase('$apply');\n\t try {\n\t return this.$eval(expr);\n\t } finally {\n\t clearPhase();\n\t }\n\t } catch (e) {\n\t $exceptionHandler(e);\n\t } finally {\n\t try {\n\t $rootScope.$digest();\n\t } catch (e) {\n\t $exceptionHandler(e);\n\t throw e;\n\t }\n\t }\n\t },\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $rootScope.Scope#$applyAsync\n\t * @kind function\n\t *\n\t * @description\n\t * Schedule the invocation of $apply to occur at a later time. The actual time difference\n\t * varies across browsers, but is typically around ~10 milliseconds.\n\t *\n\t * This can be used to queue up multiple expressions which need to be evaluated in the same\n\t * digest.\n\t *\n\t * @param {(string|function())=} exp An angular expression to be executed.\n\t *\n\t * - `string`: execute using the rules as defined in {@link guide/expression expression}.\n\t * - `function(scope)`: execute the function with current `scope` parameter.\n\t */\n\t $applyAsync: function(expr) {\n\t var scope = this;\n\t expr && applyAsyncQueue.push($applyAsyncExpression);\n\t expr = $parse(expr);\n\t scheduleApplyAsync();\n\t\n\t function $applyAsyncExpression() {\n\t scope.$eval(expr);\n\t }\n\t },\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $rootScope.Scope#$on\n\t * @kind function\n\t *\n\t * @description\n\t * Listens on events of a given type. See {@link ng.$rootScope.Scope#$emit $emit} for\n\t * discussion of event life cycle.\n\t *\n\t * The event listener function format is: `function(event, args...)`. The `event` object\n\t * passed into the listener has the following attributes:\n\t *\n\t * - `targetScope` - `{Scope}`: the scope on which the event was `$emit`-ed or\n\t * `$broadcast`-ed.\n\t * - `currentScope` - `{Scope}`: the scope that is currently handling the event. Once the\n\t * event propagates through the scope hierarchy, this property is set to null.\n\t * - `name` - `{string}`: name of the event.\n\t * - `stopPropagation` - `{function=}`: calling `stopPropagation` function will cancel\n\t * further event propagation (available only for events that were `$emit`-ed).\n\t * - `preventDefault` - `{function}`: calling `preventDefault` sets `defaultPrevented` flag\n\t * to true.\n\t * - `defaultPrevented` - `{boolean}`: true if `preventDefault` was called.\n\t *\n\t * @param {string} name Event name to listen on.\n\t * @param {function(event, ...args)} listener Function to call when the event is emitted.\n\t * @returns {function()} Returns a deregistration function for this listener.\n\t */\n\t $on: function(name, listener) {\n\t var namedListeners = this.$$listeners[name];\n\t if (!namedListeners) {\n\t this.$$listeners[name] = namedListeners = [];\n\t }\n\t namedListeners.push(listener);\n\t\n\t var current = this;\n\t do {\n\t if (!current.$$listenerCount[name]) {\n\t current.$$listenerCount[name] = 0;\n\t }\n\t current.$$listenerCount[name]++;\n\t } while ((current = current.$parent));\n\t\n\t var self = this;\n\t return function() {\n\t var indexOfListener = namedListeners.indexOf(listener);\n\t if (indexOfListener !== -1) {\n\t namedListeners[indexOfListener] = null;\n\t decrementListenerCount(self, 1, name);\n\t }\n\t };\n\t },\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $rootScope.Scope#$emit\n\t * @kind function\n\t *\n\t * @description\n\t * Dispatches an event `name` upwards through the scope hierarchy notifying the\n\t * registered {@link ng.$rootScope.Scope#$on} listeners.\n\t *\n\t * The event life cycle starts at the scope on which `$emit` was called. All\n\t * {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get\n\t * notified. Afterwards, the event traverses upwards toward the root scope and calls all\n\t * registered listeners along the way. The event will stop propagating if one of the listeners\n\t * cancels it.\n\t *\n\t * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed\n\t * onto the {@link ng.$exceptionHandler $exceptionHandler} service.\n\t *\n\t * @param {string} name Event name to emit.\n\t * @param {...*} args Optional one or more arguments which will be passed onto the event listeners.\n\t * @return {Object} Event object (see {@link ng.$rootScope.Scope#$on}).\n\t */\n\t $emit: function(name, args) {\n\t var empty = [],\n\t namedListeners,\n\t scope = this,\n\t stopPropagation = false,\n\t event = {\n\t name: name,\n\t targetScope: scope,\n\t stopPropagation: function() {stopPropagation = true;},\n\t preventDefault: function() {\n\t event.defaultPrevented = true;\n\t },\n\t defaultPrevented: false\n\t },\n\t listenerArgs = concat([event], arguments, 1),\n\t i, length;\n\t\n\t do {\n\t namedListeners = scope.$$listeners[name] || empty;\n\t event.currentScope = scope;\n\t for (i = 0, length = namedListeners.length; i < length; i++) {\n\t\n\t // if listeners were deregistered, defragment the array\n\t if (!namedListeners[i]) {\n\t namedListeners.splice(i, 1);\n\t i--;\n\t length--;\n\t continue;\n\t }\n\t try {\n\t //allow all listeners attached to the current scope to run\n\t namedListeners[i].apply(null, listenerArgs);\n\t } catch (e) {\n\t $exceptionHandler(e);\n\t }\n\t }\n\t //if any listener on the current scope stops propagation, prevent bubbling\n\t if (stopPropagation) {\n\t event.currentScope = null;\n\t return event;\n\t }\n\t //traverse upwards\n\t scope = scope.$parent;\n\t } while (scope);\n\t\n\t event.currentScope = null;\n\t\n\t return event;\n\t },\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $rootScope.Scope#$broadcast\n\t * @kind function\n\t *\n\t * @description\n\t * Dispatches an event `name` downwards to all child scopes (and their children) notifying the\n\t * registered {@link ng.$rootScope.Scope#$on} listeners.\n\t *\n\t * The event life cycle starts at the scope on which `$broadcast` was called. All\n\t * {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get\n\t * notified. Afterwards, the event propagates to all direct and indirect scopes of the current\n\t * scope and calls all registered listeners along the way. The event cannot be canceled.\n\t *\n\t * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed\n\t * onto the {@link ng.$exceptionHandler $exceptionHandler} service.\n\t *\n\t * @param {string} name Event name to broadcast.\n\t * @param {...*} args Optional one or more arguments which will be passed onto the event listeners.\n\t * @return {Object} Event object, see {@link ng.$rootScope.Scope#$on}\n\t */\n\t $broadcast: function(name, args) {\n\t var target = this,\n\t current = target,\n\t next = target,\n\t event = {\n\t name: name,\n\t targetScope: target,\n\t preventDefault: function() {\n\t event.defaultPrevented = true;\n\t },\n\t defaultPrevented: false\n\t };\n\t\n\t if (!target.$$listenerCount[name]) return event;\n\t\n\t var listenerArgs = concat([event], arguments, 1),\n\t listeners, i, length;\n\t\n\t //down while you can, then up and next sibling or up and next sibling until back at root\n\t while ((current = next)) {\n\t event.currentScope = current;\n\t listeners = current.$$listeners[name] || [];\n\t for (i = 0, length = listeners.length; i < length; i++) {\n\t // if listeners were deregistered, defragment the array\n\t if (!listeners[i]) {\n\t listeners.splice(i, 1);\n\t i--;\n\t length--;\n\t continue;\n\t }\n\t\n\t try {\n\t listeners[i].apply(null, listenerArgs);\n\t } catch (e) {\n\t $exceptionHandler(e);\n\t }\n\t }\n\t\n\t // Insanity Warning: scope depth-first traversal\n\t // yes, this code is a bit crazy, but it works and we have tests to prove it!\n\t // this piece should be kept in sync with the traversal in $digest\n\t // (though it differs due to having the extra check for $$listenerCount)\n\t if (!(next = ((current.$$listenerCount[name] && current.$$childHead) ||\n\t (current !== target && current.$$nextSibling)))) {\n\t while (current !== target && !(next = current.$$nextSibling)) {\n\t current = current.$parent;\n\t }\n\t }\n\t }\n\t\n\t event.currentScope = null;\n\t return event;\n\t }\n\t };\n\t\n\t var $rootScope = new Scope();\n\t\n\t //The internal queues. Expose them on the $rootScope for debugging/testing purposes.\n\t var asyncQueue = $rootScope.$$asyncQueue = [];\n\t var postDigestQueue = $rootScope.$$postDigestQueue = [];\n\t var applyAsyncQueue = $rootScope.$$applyAsyncQueue = [];\n\t\n\t return $rootScope;\n\t\n\t\n\t function beginPhase(phase) {\n\t if ($rootScope.$$phase) {\n\t throw $rootScopeMinErr('inprog', '{0} already in progress', $rootScope.$$phase);\n\t }\n\t\n\t $rootScope.$$phase = phase;\n\t }\n\t\n\t function clearPhase() {\n\t $rootScope.$$phase = null;\n\t }\n\t\n\t function incrementWatchersCount(current, count) {\n\t do {\n\t current.$$watchersCount += count;\n\t } while ((current = current.$parent));\n\t }\n\t\n\t function decrementListenerCount(current, count, name) {\n\t do {\n\t current.$$listenerCount[name] -= count;\n\t\n\t if (current.$$listenerCount[name] === 0) {\n\t delete current.$$listenerCount[name];\n\t }\n\t } while ((current = current.$parent));\n\t }\n\t\n\t /**\n\t * function used as an initial value for watchers.\n\t * because it's unique we can easily tell it apart from other values\n\t */\n\t function initWatchVal() {}\n\t\n\t function flushApplyAsync() {\n\t while (applyAsyncQueue.length) {\n\t try {\n\t applyAsyncQueue.shift()();\n\t } catch (e) {\n\t $exceptionHandler(e);\n\t }\n\t }\n\t applyAsyncId = null;\n\t }\n\t\n\t function scheduleApplyAsync() {\n\t if (applyAsyncId === null) {\n\t applyAsyncId = $browser.defer(function() {\n\t $rootScope.$apply(flushApplyAsync);\n\t });\n\t }\n\t }\n\t }];\n\t}\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $rootElement\n\t *\n\t * @description\n\t * The root element of Angular application. This is either the element where {@link\n\t * ng.directive:ngApp ngApp} was declared or the element passed into\n\t * {@link angular.bootstrap}. The element represents the root element of application. It is also the\n\t * location where the application's {@link auto.$injector $injector} service gets\n\t * published, and can be retrieved using `$rootElement.injector()`.\n\t */\n\t\n\t\n\t// the implementation is in angular.bootstrap\n\t\n\t/**\n\t * @description\n\t * Private service to sanitize uris for links and images. Used by $compile and $sanitize.\n\t */\n\tfunction $$SanitizeUriProvider() {\n\t var aHrefSanitizationWhitelist = /^\\s*(https?|ftp|mailto|tel|file):/,\n\t imgSrcSanitizationWhitelist = /^\\s*((https?|ftp|file|blob):|data:image\\/)/;\n\t\n\t /**\n\t * @description\n\t * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n\t * urls during a[href] sanitization.\n\t *\n\t * The sanitization is a security measure aimed at prevent XSS attacks via html links.\n\t *\n\t * Any url about to be assigned to a[href] via data-binding is first normalized and turned into\n\t * an absolute url. Afterwards, the url is matched against the `aHrefSanitizationWhitelist`\n\t * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n\t * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n\t *\n\t * @param {RegExp=} regexp New regexp to whitelist urls with.\n\t * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n\t * chaining otherwise.\n\t */\n\t this.aHrefSanitizationWhitelist = function(regexp) {\n\t if (isDefined(regexp)) {\n\t aHrefSanitizationWhitelist = regexp;\n\t return this;\n\t }\n\t return aHrefSanitizationWhitelist;\n\t };\n\t\n\t\n\t /**\n\t * @description\n\t * Retrieves or overrides the default regular expression that is used for whitelisting of safe\n\t * urls during img[src] sanitization.\n\t *\n\t * The sanitization is a security measure aimed at prevent XSS attacks via html links.\n\t *\n\t * Any url about to be assigned to img[src] via data-binding is first normalized and turned into\n\t * an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationWhitelist`\n\t * regular expression. If a match is found, the original url is written into the dom. Otherwise,\n\t * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.\n\t *\n\t * @param {RegExp=} regexp New regexp to whitelist urls with.\n\t * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for\n\t * chaining otherwise.\n\t */\n\t this.imgSrcSanitizationWhitelist = function(regexp) {\n\t if (isDefined(regexp)) {\n\t imgSrcSanitizationWhitelist = regexp;\n\t return this;\n\t }\n\t return imgSrcSanitizationWhitelist;\n\t };\n\t\n\t this.$get = function() {\n\t return function sanitizeUri(uri, isImage) {\n\t var regex = isImage ? imgSrcSanitizationWhitelist : aHrefSanitizationWhitelist;\n\t var normalizedVal;\n\t normalizedVal = urlResolve(uri).href;\n\t if (normalizedVal !== '' && !normalizedVal.match(regex)) {\n\t return 'unsafe:' + normalizedVal;\n\t }\n\t return uri;\n\t };\n\t };\n\t}\n\t\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\t * Any commits to this file should be reviewed with security in mind. *\n\t * Changes to this file can potentially create security vulnerabilities. *\n\t * An approval from 2 Core members with history of modifying *\n\t * this file is required. *\n\t * *\n\t * Does the change somehow allow for arbitrary javascript to be executed? *\n\t * Or allows for someone to change the prototype of built-in objects? *\n\t * Or gives undesired access to variables likes document or window? *\n\t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n\t\n\tvar $sceMinErr = minErr('$sce');\n\t\n\tvar SCE_CONTEXTS = {\n\t HTML: 'html',\n\t CSS: 'css',\n\t URL: 'url',\n\t // RESOURCE_URL is a subtype of URL used in contexts where a privileged resource is sourced from a\n\t // url. (e.g. ng-include, script src, templateUrl)\n\t RESOURCE_URL: 'resourceUrl',\n\t JS: 'js'\n\t};\n\t\n\t// Helper functions follow.\n\t\n\tfunction adjustMatcher(matcher) {\n\t if (matcher === 'self') {\n\t return matcher;\n\t } else if (isString(matcher)) {\n\t // Strings match exactly except for 2 wildcards - '*' and '**'.\n\t // '*' matches any character except those from the set ':/.?&'.\n\t // '**' matches any character (like .* in a RegExp).\n\t // More than 2 *'s raises an error as it's ill defined.\n\t if (matcher.indexOf('***') > -1) {\n\t throw $sceMinErr('iwcard',\n\t 'Illegal sequence *** in string matcher. String: {0}', matcher);\n\t }\n\t matcher = escapeForRegexp(matcher).\n\t replace('\\\\*\\\\*', '.*').\n\t replace('\\\\*', '[^:/.?&;]*');\n\t return new RegExp('^' + matcher + '$');\n\t } else if (isRegExp(matcher)) {\n\t // The only other type of matcher allowed is a Regexp.\n\t // Match entire URL / disallow partial matches.\n\t // Flags are reset (i.e. no global, ignoreCase or multiline)\n\t return new RegExp('^' + matcher.source + '$');\n\t } else {\n\t throw $sceMinErr('imatcher',\n\t 'Matchers may only be \"self\", string patterns or RegExp objects');\n\t }\n\t}\n\t\n\t\n\tfunction adjustMatchers(matchers) {\n\t var adjustedMatchers = [];\n\t if (isDefined(matchers)) {\n\t forEach(matchers, function(matcher) {\n\t adjustedMatchers.push(adjustMatcher(matcher));\n\t });\n\t }\n\t return adjustedMatchers;\n\t}\n\t\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $sceDelegate\n\t * @kind function\n\t *\n\t * @description\n\t *\n\t * `$sceDelegate` is a service that is used by the `$sce` service to provide {@link ng.$sce Strict\n\t * Contextual Escaping (SCE)} services to AngularJS.\n\t *\n\t * Typically, you would configure or override the {@link ng.$sceDelegate $sceDelegate} instead of\n\t * the `$sce` service to customize the way Strict Contextual Escaping works in AngularJS. This is\n\t * because, while the `$sce` provides numerous shorthand methods, etc., you really only need to\n\t * override 3 core functions (`trustAs`, `getTrusted` and `valueOf`) to replace the way things\n\t * work because `$sce` delegates to `$sceDelegate` for these operations.\n\t *\n\t * Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} to configure this service.\n\t *\n\t * The default instance of `$sceDelegate` should work out of the box with little pain. While you\n\t * can override it completely to change the behavior of `$sce`, the common case would\n\t * involve configuring the {@link ng.$sceDelegateProvider $sceDelegateProvider} instead by setting\n\t * your own whitelists and blacklists for trusting URLs used for loading AngularJS resources such as\n\t * templates. Refer {@link ng.$sceDelegateProvider#resourceUrlWhitelist\n\t * $sceDelegateProvider.resourceUrlWhitelist} and {@link\n\t * ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist}\n\t */\n\t\n\t/**\n\t * @ngdoc provider\n\t * @name $sceDelegateProvider\n\t * @description\n\t *\n\t * The `$sceDelegateProvider` provider allows developers to configure the {@link ng.$sceDelegate\n\t * $sceDelegate} service. This allows one to get/set the whitelists and blacklists used to ensure\n\t * that the URLs used for sourcing Angular templates are safe. Refer {@link\n\t * ng.$sceDelegateProvider#resourceUrlWhitelist $sceDelegateProvider.resourceUrlWhitelist} and\n\t * {@link ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist}\n\t *\n\t * For the general details about this service in Angular, read the main page for {@link ng.$sce\n\t * Strict Contextual Escaping (SCE)}.\n\t *\n\t * **Example**: Consider the following case. \n\t *\n\t * - your app is hosted at url `http://myapp.example.com/`\n\t * - but some of your templates are hosted on other domains you control such as\n\t * `http://srv01.assets.example.com/`,  `http://srv02.assets.example.com/`, etc.\n\t * - and you have an open redirect at `http://myapp.example.com/clickThru?...`.\n\t *\n\t * Here is what a secure configuration for this scenario might look like:\n\t *\n\t * ```\n\t * angular.module('myApp', []).config(function($sceDelegateProvider) {\n\t * $sceDelegateProvider.resourceUrlWhitelist([\n\t * // Allow same origin resource loads.\n\t * 'self',\n\t * // Allow loading from our assets domain. Notice the difference between * and **.\n\t * 'http://srv*.assets.example.com/**'\n\t * ]);\n\t *\n\t * // The blacklist overrides the whitelist so the open redirect here is blocked.\n\t * $sceDelegateProvider.resourceUrlBlacklist([\n\t * 'http://myapp.example.com/clickThru**'\n\t * ]);\n\t * });\n\t * ```\n\t */\n\t\n\tfunction $SceDelegateProvider() {\n\t this.SCE_CONTEXTS = SCE_CONTEXTS;\n\t\n\t // Resource URLs can also be trusted by policy.\n\t var resourceUrlWhitelist = ['self'],\n\t resourceUrlBlacklist = [];\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sceDelegateProvider#resourceUrlWhitelist\n\t * @kind function\n\t *\n\t * @param {Array=} whitelist When provided, replaces the resourceUrlWhitelist with the value\n\t * provided. This must be an array or null. A snapshot of this array is used so further\n\t * changes to the array are ignored.\n\t *\n\t * Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items\n\t * allowed in this array.\n\t *\n\t *
\n\t * **Note:** an empty whitelist array will block all URLs!\n\t *
\n\t *\n\t * @return {Array} the currently set whitelist array.\n\t *\n\t * The **default value** when no whitelist has been explicitly set is `['self']` allowing only\n\t * same origin resource requests.\n\t *\n\t * @description\n\t * Sets/Gets the whitelist of trusted resource URLs.\n\t */\n\t this.resourceUrlWhitelist = function(value) {\n\t if (arguments.length) {\n\t resourceUrlWhitelist = adjustMatchers(value);\n\t }\n\t return resourceUrlWhitelist;\n\t };\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sceDelegateProvider#resourceUrlBlacklist\n\t * @kind function\n\t *\n\t * @param {Array=} blacklist When provided, replaces the resourceUrlBlacklist with the value\n\t * provided. This must be an array or null. A snapshot of this array is used so further\n\t * changes to the array are ignored.\n\t *\n\t * Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items\n\t * allowed in this array.\n\t *\n\t * The typical usage for the blacklist is to **block\n\t * [open redirects](http://cwe.mitre.org/data/definitions/601.html)** served by your domain as\n\t * these would otherwise be trusted but actually return content from the redirected domain.\n\t *\n\t * Finally, **the blacklist overrides the whitelist** and has the final say.\n\t *\n\t * @return {Array} the currently set blacklist array.\n\t *\n\t * The **default value** when no whitelist has been explicitly set is the empty array (i.e. there\n\t * is no blacklist.)\n\t *\n\t * @description\n\t * Sets/Gets the blacklist of trusted resource URLs.\n\t */\n\t\n\t this.resourceUrlBlacklist = function(value) {\n\t if (arguments.length) {\n\t resourceUrlBlacklist = adjustMatchers(value);\n\t }\n\t return resourceUrlBlacklist;\n\t };\n\t\n\t this.$get = ['$injector', function($injector) {\n\t\n\t var htmlSanitizer = function htmlSanitizer(html) {\n\t throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.');\n\t };\n\t\n\t if ($injector.has('$sanitize')) {\n\t htmlSanitizer = $injector.get('$sanitize');\n\t }\n\t\n\t\n\t function matchUrl(matcher, parsedUrl) {\n\t if (matcher === 'self') {\n\t return urlIsSameOrigin(parsedUrl);\n\t } else {\n\t // definitely a regex. See adjustMatchers()\n\t return !!matcher.exec(parsedUrl.href);\n\t }\n\t }\n\t\n\t function isResourceUrlAllowedByPolicy(url) {\n\t var parsedUrl = urlResolve(url.toString());\n\t var i, n, allowed = false;\n\t // Ensure that at least one item from the whitelist allows this url.\n\t for (i = 0, n = resourceUrlWhitelist.length; i < n; i++) {\n\t if (matchUrl(resourceUrlWhitelist[i], parsedUrl)) {\n\t allowed = true;\n\t break;\n\t }\n\t }\n\t if (allowed) {\n\t // Ensure that no item from the blacklist blocked this url.\n\t for (i = 0, n = resourceUrlBlacklist.length; i < n; i++) {\n\t if (matchUrl(resourceUrlBlacklist[i], parsedUrl)) {\n\t allowed = false;\n\t break;\n\t }\n\t }\n\t }\n\t return allowed;\n\t }\n\t\n\t function generateHolderType(Base) {\n\t var holderType = function TrustedValueHolderType(trustedValue) {\n\t this.$$unwrapTrustedValue = function() {\n\t return trustedValue;\n\t };\n\t };\n\t if (Base) {\n\t holderType.prototype = new Base();\n\t }\n\t holderType.prototype.valueOf = function sceValueOf() {\n\t return this.$$unwrapTrustedValue();\n\t };\n\t holderType.prototype.toString = function sceToString() {\n\t return this.$$unwrapTrustedValue().toString();\n\t };\n\t return holderType;\n\t }\n\t\n\t var trustedValueHolderBase = generateHolderType(),\n\t byType = {};\n\t\n\t byType[SCE_CONTEXTS.HTML] = generateHolderType(trustedValueHolderBase);\n\t byType[SCE_CONTEXTS.CSS] = generateHolderType(trustedValueHolderBase);\n\t byType[SCE_CONTEXTS.URL] = generateHolderType(trustedValueHolderBase);\n\t byType[SCE_CONTEXTS.JS] = generateHolderType(trustedValueHolderBase);\n\t byType[SCE_CONTEXTS.RESOURCE_URL] = generateHolderType(byType[SCE_CONTEXTS.URL]);\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sceDelegate#trustAs\n\t *\n\t * @description\n\t * Returns an object that is trusted by angular for use in specified strict\n\t * contextual escaping contexts (such as ng-bind-html, ng-include, any src\n\t * attribute interpolation, any dom event binding attribute interpolation\n\t * such as for onclick, etc.) that uses the provided value.\n\t * See {@link ng.$sce $sce} for enabling strict contextual escaping.\n\t *\n\t * @param {string} type The kind of context in which this value is safe for use. e.g. url,\n\t * resourceUrl, html, js and css.\n\t * @param {*} value The value that that should be considered trusted/safe.\n\t * @returns {*} A value that can be used to stand in for the provided `value` in places\n\t * where Angular expects a $sce.trustAs() return value.\n\t */\n\t function trustAs(type, trustedValue) {\n\t var Constructor = (byType.hasOwnProperty(type) ? byType[type] : null);\n\t if (!Constructor) {\n\t throw $sceMinErr('icontext',\n\t 'Attempted to trust a value in invalid context. Context: {0}; Value: {1}',\n\t type, trustedValue);\n\t }\n\t if (trustedValue === null || isUndefined(trustedValue) || trustedValue === '') {\n\t return trustedValue;\n\t }\n\t // All the current contexts in SCE_CONTEXTS happen to be strings. In order to avoid trusting\n\t // mutable objects, we ensure here that the value passed in is actually a string.\n\t if (typeof trustedValue !== 'string') {\n\t throw $sceMinErr('itype',\n\t 'Attempted to trust a non-string value in a content requiring a string: Context: {0}',\n\t type);\n\t }\n\t return new Constructor(trustedValue);\n\t }\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sceDelegate#valueOf\n\t *\n\t * @description\n\t * If the passed parameter had been returned by a prior call to {@link ng.$sceDelegate#trustAs\n\t * `$sceDelegate.trustAs`}, returns the value that had been passed to {@link\n\t * ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}.\n\t *\n\t * If the passed parameter is not a value that had been returned by {@link\n\t * ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}, returns it as-is.\n\t *\n\t * @param {*} value The result of a prior {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}\n\t * call or anything else.\n\t * @returns {*} The `value` that was originally provided to {@link ng.$sceDelegate#trustAs\n\t * `$sceDelegate.trustAs`} if `value` is the result of such a call. Otherwise, returns\n\t * `value` unchanged.\n\t */\n\t function valueOf(maybeTrusted) {\n\t if (maybeTrusted instanceof trustedValueHolderBase) {\n\t return maybeTrusted.$$unwrapTrustedValue();\n\t } else {\n\t return maybeTrusted;\n\t }\n\t }\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sceDelegate#getTrusted\n\t *\n\t * @description\n\t * Takes the result of a {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`} call and\n\t * returns the originally supplied value if the queried context type is a supertype of the\n\t * created type. If this condition isn't satisfied, throws an exception.\n\t *\n\t * @param {string} type The kind of context in which this value is to be used.\n\t * @param {*} maybeTrusted The result of a prior {@link ng.$sceDelegate#trustAs\n\t * `$sceDelegate.trustAs`} call.\n\t * @returns {*} The value the was originally provided to {@link ng.$sceDelegate#trustAs\n\t * `$sceDelegate.trustAs`} if valid in this context. Otherwise, throws an exception.\n\t */\n\t function getTrusted(type, maybeTrusted) {\n\t if (maybeTrusted === null || isUndefined(maybeTrusted) || maybeTrusted === '') {\n\t return maybeTrusted;\n\t }\n\t var constructor = (byType.hasOwnProperty(type) ? byType[type] : null);\n\t if (constructor && maybeTrusted instanceof constructor) {\n\t return maybeTrusted.$$unwrapTrustedValue();\n\t }\n\t // If we get here, then we may only take one of two actions.\n\t // 1. sanitize the value for the requested type, or\n\t // 2. throw an exception.\n\t if (type === SCE_CONTEXTS.RESOURCE_URL) {\n\t if (isResourceUrlAllowedByPolicy(maybeTrusted)) {\n\t return maybeTrusted;\n\t } else {\n\t throw $sceMinErr('insecurl',\n\t 'Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}',\n\t maybeTrusted.toString());\n\t }\n\t } else if (type === SCE_CONTEXTS.HTML) {\n\t return htmlSanitizer(maybeTrusted);\n\t }\n\t throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.');\n\t }\n\t\n\t return { trustAs: trustAs,\n\t getTrusted: getTrusted,\n\t valueOf: valueOf };\n\t }];\n\t}\n\t\n\t\n\t/**\n\t * @ngdoc provider\n\t * @name $sceProvider\n\t * @description\n\t *\n\t * The $sceProvider provider allows developers to configure the {@link ng.$sce $sce} service.\n\t * - enable/disable Strict Contextual Escaping (SCE) in a module\n\t * - override the default implementation with a custom delegate\n\t *\n\t * Read more about {@link ng.$sce Strict Contextual Escaping (SCE)}.\n\t */\n\t\n\t/* jshint maxlen: false*/\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $sce\n\t * @kind function\n\t *\n\t * @description\n\t *\n\t * `$sce` is a service that provides Strict Contextual Escaping services to AngularJS.\n\t *\n\t * # Strict Contextual Escaping\n\t *\n\t * Strict Contextual Escaping (SCE) is a mode in which AngularJS requires bindings in certain\n\t * contexts to result in a value that is marked as safe to use for that context. One example of\n\t * such a context is binding arbitrary html controlled by the user via `ng-bind-html`. We refer\n\t * to these contexts as privileged or SCE contexts.\n\t *\n\t * As of version 1.2, Angular ships with SCE enabled by default.\n\t *\n\t * Note: When enabled (the default), IE<11 in quirks mode is not supported. In this mode, IE<11 allow\n\t * one to execute arbitrary javascript by the use of the expression() syntax. Refer\n\t * to learn more about them.\n\t * You can ensure your document is in standards mode and not quirks mode by adding ``\n\t * to the top of your HTML document.\n\t *\n\t * SCE assists in writing code in way that (a) is secure by default and (b) makes auditing for\n\t * security vulnerabilities such as XSS, clickjacking, etc. a lot easier.\n\t *\n\t * Here's an example of a binding in a privileged context:\n\t *\n\t * ```\n\t * \n\t *
\n\t * ```\n\t *\n\t * Notice that `ng-bind-html` is bound to `userHtml` controlled by the user. With SCE\n\t * disabled, this application allows the user to render arbitrary HTML into the DIV.\n\t * In a more realistic example, one may be rendering user comments, blog articles, etc. via\n\t * bindings. (HTML is just one example of a context where rendering user controlled input creates\n\t * security vulnerabilities.)\n\t *\n\t * For the case of HTML, you might use a library, either on the client side, or on the server side,\n\t * to sanitize unsafe HTML before binding to the value and rendering it in the document.\n\t *\n\t * How would you ensure that every place that used these types of bindings was bound to a value that\n\t * was sanitized by your library (or returned as safe for rendering by your server?) How can you\n\t * ensure that you didn't accidentally delete the line that sanitized the value, or renamed some\n\t * properties/fields and forgot to update the binding to the sanitized value?\n\t *\n\t * To be secure by default, you want to ensure that any such bindings are disallowed unless you can\n\t * determine that something explicitly says it's safe to use a value for binding in that\n\t * context. You can then audit your code (a simple grep would do) to ensure that this is only done\n\t * for those values that you can easily tell are safe - because they were received from your server,\n\t * sanitized by your library, etc. You can organize your codebase to help with this - perhaps\n\t * allowing only the files in a specific directory to do this. Ensuring that the internal API\n\t * exposed by that code doesn't markup arbitrary values as safe then becomes a more manageable task.\n\t *\n\t * In the case of AngularJS' SCE service, one uses {@link ng.$sce#trustAs $sce.trustAs}\n\t * (and shorthand methods such as {@link ng.$sce#trustAsHtml $sce.trustAsHtml}, etc.) to\n\t * obtain values that will be accepted by SCE / privileged contexts.\n\t *\n\t *\n\t * ## How does it work?\n\t *\n\t * In privileged contexts, directives and code will bind to the result of {@link ng.$sce#getTrusted\n\t * $sce.getTrusted(context, value)} rather than to the value directly. Directives use {@link\n\t * ng.$sce#parseAs $sce.parseAs} rather than `$parse` to watch attribute bindings, which performs the\n\t * {@link ng.$sce#getTrusted $sce.getTrusted} behind the scenes on non-constant literals.\n\t *\n\t * As an example, {@link ng.directive:ngBindHtml ngBindHtml} uses {@link\n\t * ng.$sce#parseAsHtml $sce.parseAsHtml(binding expression)}. Here's the actual code (slightly\n\t * simplified):\n\t *\n\t * ```\n\t * var ngBindHtmlDirective = ['$sce', function($sce) {\n\t * return function(scope, element, attr) {\n\t * scope.$watch($sce.parseAsHtml(attr.ngBindHtml), function(value) {\n\t * element.html(value || '');\n\t * });\n\t * };\n\t * }];\n\t * ```\n\t *\n\t * ## Impact on loading templates\n\t *\n\t * This applies both to the {@link ng.directive:ngInclude `ng-include`} directive as well as\n\t * `templateUrl`'s specified by {@link guide/directive directives}.\n\t *\n\t * By default, Angular only loads templates from the same domain and protocol as the application\n\t * document. This is done by calling {@link ng.$sce#getTrustedResourceUrl\n\t * $sce.getTrustedResourceUrl} on the template URL. To load templates from other domains and/or\n\t * protocols, you may either {@link ng.$sceDelegateProvider#resourceUrlWhitelist whitelist\n\t * them} or {@link ng.$sce#trustAsResourceUrl wrap it} into a trusted value.\n\t *\n\t * *Please note*:\n\t * The browser's\n\t * [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest)\n\t * and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/)\n\t * policy apply in addition to this and may further restrict whether the template is successfully\n\t * loaded. This means that without the right CORS policy, loading templates from a different domain\n\t * won't work on all browsers. Also, loading templates from `file://` URL does not work on some\n\t * browsers.\n\t *\n\t * ## This feels like too much overhead\n\t *\n\t * It's important to remember that SCE only applies to interpolation expressions.\n\t *\n\t * If your expressions are constant literals, they're automatically trusted and you don't need to\n\t * call `$sce.trustAs` on them (remember to include the `ngSanitize` module) (e.g.\n\t * `
implicitly trusted'\">
`) just works.\n\t *\n\t * Additionally, `a[href]` and `img[src]` automatically sanitize their URLs and do not pass them\n\t * through {@link ng.$sce#getTrusted $sce.getTrusted}. SCE doesn't play a role here.\n\t *\n\t * The included {@link ng.$sceDelegate $sceDelegate} comes with sane defaults to allow you to load\n\t * templates in `ng-include` from your application's domain without having to even know about SCE.\n\t * It blocks loading templates from other domains or loading templates over http from an https\n\t * served document. You can change these by setting your own custom {@link\n\t * ng.$sceDelegateProvider#resourceUrlWhitelist whitelists} and {@link\n\t * ng.$sceDelegateProvider#resourceUrlBlacklist blacklists} for matching such URLs.\n\t *\n\t * This significantly reduces the overhead. It is far easier to pay the small overhead and have an\n\t * application that's secure and can be audited to verify that with much more ease than bolting\n\t * security onto an application later.\n\t *\n\t * \n\t * ## What trusted context types are supported?\n\t *\n\t * | Context | Notes |\n\t * |---------------------|----------------|\n\t * | `$sce.HTML` | For HTML that's safe to source into the application. The {@link ng.directive:ngBindHtml ngBindHtml} directive uses this context for bindings. If an unsafe value is encountered and the {@link ngSanitize $sanitize} module is present this will sanitize the value instead of throwing an error. |\n\t * | `$sce.CSS` | For CSS that's safe to source into the application. Currently unused. Feel free to use it in your own directives. |\n\t * | `$sce.URL` | For URLs that are safe to follow as links. Currently unused (`
Note that `$sce.RESOURCE_URL` makes a stronger statement about the URL than `$sce.URL` does and therefore contexts requiring values trusted for `$sce.RESOURCE_URL` can be used anywhere that values trusted for `$sce.URL` are required. |\n\t * | `$sce.JS` | For JavaScript that is safe to execute in your application's context. Currently unused. Feel free to use it in your own directives. |\n\t *\n\t * ## Format of items in {@link ng.$sceDelegateProvider#resourceUrlWhitelist resourceUrlWhitelist}/{@link ng.$sceDelegateProvider#resourceUrlBlacklist Blacklist}
\n\t *\n\t * Each element in these arrays must be one of the following:\n\t *\n\t * - **'self'**\n\t * - The special **string**, `'self'`, can be used to match against all URLs of the **same\n\t * domain** as the application document using the **same protocol**.\n\t * - **String** (except the special value `'self'`)\n\t * - The string is matched against the full *normalized / absolute URL* of the resource\n\t * being tested (substring matches are not good enough.)\n\t * - There are exactly **two wildcard sequences** - `*` and `**`. All other characters\n\t * match themselves.\n\t * - `*`: matches zero or more occurrences of any character other than one of the following 6\n\t * characters: '`:`', '`/`', '`.`', '`?`', '`&`' and '`;`'. It's a useful wildcard for use\n\t * in a whitelist.\n\t * - `**`: matches zero or more occurrences of *any* character. As such, it's not\n\t * appropriate for use in a scheme, domain, etc. as it would match too much. (e.g.\n\t * http://**.example.com/ would match http://evil.com/?ignore=.example.com/ and that might\n\t * not have been the intention.) Its usage at the very end of the path is ok. (e.g.\n\t * http://foo.example.com/templates/**).\n\t * - **RegExp** (*see caveat below*)\n\t * - *Caveat*: While regular expressions are powerful and offer great flexibility, their syntax\n\t * (and all the inevitable escaping) makes them *harder to maintain*. It's easy to\n\t * accidentally introduce a bug when one updates a complex expression (imho, all regexes should\n\t * have good test coverage). For instance, the use of `.` in the regex is correct only in a\n\t * small number of cases. A `.` character in the regex used when matching the scheme or a\n\t * subdomain could be matched against a `:` or literal `.` that was likely not intended. It\n\t * is highly recommended to use the string patterns and only fall back to regular expressions\n\t * as a last resort.\n\t * - The regular expression must be an instance of RegExp (i.e. not a string.) It is\n\t * matched against the **entire** *normalized / absolute URL* of the resource being tested\n\t * (even when the RegExp did not have the `^` and `$` codes.) In addition, any flags\n\t * present on the RegExp (such as multiline, global, ignoreCase) are ignored.\n\t * - If you are generating your JavaScript from some other templating engine (not\n\t * recommended, e.g. in issue [#4006](https://github.com/angular/angular.js/issues/4006)),\n\t * remember to escape your regular expression (and be aware that you might need more than\n\t * one level of escaping depending on your templating engine and the way you interpolated\n\t * the value.) Do make use of your platform's escaping mechanism as it might be good\n\t * enough before coding your own. E.g. Ruby has\n\t * [Regexp.escape(str)](http://www.ruby-doc.org/core-2.0.0/Regexp.html#method-c-escape)\n\t * and Python has [re.escape](http://docs.python.org/library/re.html#re.escape).\n\t * Javascript lacks a similar built in function for escaping. Take a look at Google\n\t * Closure library's [goog.string.regExpEscape(s)](\n\t * http://docs.closure-library.googlecode.com/git/closure_goog_string_string.js.source.html#line962).\n\t *\n\t * Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} for an example.\n\t *\n\t * ## Show me an example using SCE.\n\t *\n\t * \n\t * \n\t *
\n\t *

\n\t * User comments
\n\t * By default, HTML that isn't explicitly trusted (e.g. Alice's comment) is sanitized when\n\t * $sanitize is available. If $sanitize isn't available, this results in an error instead of an\n\t * exploit.\n\t *
\n\t *
\n\t * {{userComment.name}}:\n\t * \n\t *
\n\t *
\n\t *
\n\t *
\n\t *
\n\t *\n\t * \n\t * angular.module('mySceApp', ['ngSanitize'])\n\t * .controller('AppController', ['$http', '$templateCache', '$sce',\n\t * function($http, $templateCache, $sce) {\n\t * var self = this;\n\t * $http.get(\"test_data.json\", {cache: $templateCache}).success(function(userComments) {\n\t * self.userComments = userComments;\n\t * });\n\t * self.explicitlyTrustedHtml = $sce.trustAsHtml(\n\t * 'Hover over this text.');\n\t * }]);\n\t * \n\t *\n\t * \n\t * [\n\t * { \"name\": \"Alice\",\n\t * \"htmlComment\":\n\t * \"Is anyone reading this?\"\n\t * },\n\t * { \"name\": \"Bob\",\n\t * \"htmlComment\": \"Yes! Am I the only other one?\"\n\t * }\n\t * ]\n\t * \n\t *\n\t * \n\t * describe('SCE doc demo', function() {\n\t * it('should sanitize untrusted values', function() {\n\t * expect(element.all(by.css('.htmlComment')).first().getInnerHtml())\n\t * .toBe('Is anyone reading this?');\n\t * });\n\t *\n\t * it('should NOT sanitize explicitly trusted values', function() {\n\t * expect(element(by.id('explicitlyTrustedHtml')).getInnerHtml()).toBe(\n\t * 'Hover over this text.');\n\t * });\n\t * });\n\t * \n\t *
\n\t *\n\t *\n\t *\n\t * ## Can I disable SCE completely?\n\t *\n\t * Yes, you can. However, this is strongly discouraged. SCE gives you a lot of security benefits\n\t * for little coding overhead. It will be much harder to take an SCE disabled application and\n\t * either secure it on your own or enable SCE at a later stage. It might make sense to disable SCE\n\t * for cases where you have a lot of existing code that was written before SCE was introduced and\n\t * you're migrating them a module at a time.\n\t *\n\t * That said, here's how you can completely disable SCE:\n\t *\n\t * ```\n\t * angular.module('myAppWithSceDisabledmyApp', []).config(function($sceProvider) {\n\t * // Completely disable SCE. For demonstration purposes only!\n\t * // Do not use in new projects.\n\t * $sceProvider.enabled(false);\n\t * });\n\t * ```\n\t *\n\t */\n\t/* jshint maxlen: 100 */\n\t\n\tfunction $SceProvider() {\n\t var enabled = true;\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sceProvider#enabled\n\t * @kind function\n\t *\n\t * @param {boolean=} value If provided, then enables/disables SCE.\n\t * @return {boolean} true if SCE is enabled, false otherwise.\n\t *\n\t * @description\n\t * Enables/disables SCE and returns the current value.\n\t */\n\t this.enabled = function(value) {\n\t if (arguments.length) {\n\t enabled = !!value;\n\t }\n\t return enabled;\n\t };\n\t\n\t\n\t /* Design notes on the default implementation for SCE.\n\t *\n\t * The API contract for the SCE delegate\n\t * -------------------------------------\n\t * The SCE delegate object must provide the following 3 methods:\n\t *\n\t * - trustAs(contextEnum, value)\n\t * This method is used to tell the SCE service that the provided value is OK to use in the\n\t * contexts specified by contextEnum. It must return an object that will be accepted by\n\t * getTrusted() for a compatible contextEnum and return this value.\n\t *\n\t * - valueOf(value)\n\t * For values that were not produced by trustAs(), return them as is. For values that were\n\t * produced by trustAs(), return the corresponding input value to trustAs. Basically, if\n\t * trustAs is wrapping the given values into some type, this operation unwraps it when given\n\t * such a value.\n\t *\n\t * - getTrusted(contextEnum, value)\n\t * This function should return the a value that is safe to use in the context specified by\n\t * contextEnum or throw and exception otherwise.\n\t *\n\t * NOTE: This contract deliberately does NOT state that values returned by trustAs() must be\n\t * opaque or wrapped in some holder object. That happens to be an implementation detail. For\n\t * instance, an implementation could maintain a registry of all trusted objects by context. In\n\t * such a case, trustAs() would return the same object that was passed in. getTrusted() would\n\t * return the same object passed in if it was found in the registry under a compatible context or\n\t * throw an exception otherwise. An implementation might only wrap values some of the time based\n\t * on some criteria. getTrusted() might return a value and not throw an exception for special\n\t * constants or objects even if not wrapped. All such implementations fulfill this contract.\n\t *\n\t *\n\t * A note on the inheritance model for SCE contexts\n\t * ------------------------------------------------\n\t * I've used inheritance and made RESOURCE_URL wrapped types a subtype of URL wrapped types. This\n\t * is purely an implementation details.\n\t *\n\t * The contract is simply this:\n\t *\n\t * getTrusted($sce.RESOURCE_URL, value) succeeding implies that getTrusted($sce.URL, value)\n\t * will also succeed.\n\t *\n\t * Inheritance happens to capture this in a natural way. In some future, we\n\t * may not use inheritance anymore. That is OK because no code outside of\n\t * sce.js and sceSpecs.js would need to be aware of this detail.\n\t */\n\t\n\t this.$get = ['$parse', '$sceDelegate', function(\n\t $parse, $sceDelegate) {\n\t // Prereq: Ensure that we're not running in IE<11 quirks mode. In that mode, IE < 11 allow\n\t // the \"expression(javascript expression)\" syntax which is insecure.\n\t if (enabled && msie < 8) {\n\t throw $sceMinErr('iequirks',\n\t 'Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks ' +\n\t 'mode. You can fix this by adding the text to the top of your HTML ' +\n\t 'document. See http://docs.angularjs.org/api/ng.$sce for more information.');\n\t }\n\t\n\t var sce = shallowCopy(SCE_CONTEXTS);\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sce#isEnabled\n\t * @kind function\n\t *\n\t * @return {Boolean} true if SCE is enabled, false otherwise. If you want to set the value, you\n\t * have to do it at module config time on {@link ng.$sceProvider $sceProvider}.\n\t *\n\t * @description\n\t * Returns a boolean indicating if SCE is enabled.\n\t */\n\t sce.isEnabled = function() {\n\t return enabled;\n\t };\n\t sce.trustAs = $sceDelegate.trustAs;\n\t sce.getTrusted = $sceDelegate.getTrusted;\n\t sce.valueOf = $sceDelegate.valueOf;\n\t\n\t if (!enabled) {\n\t sce.trustAs = sce.getTrusted = function(type, value) { return value; };\n\t sce.valueOf = identity;\n\t }\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sce#parseAs\n\t *\n\t * @description\n\t * Converts Angular {@link guide/expression expression} into a function. This is like {@link\n\t * ng.$parse $parse} and is identical when the expression is a literal constant. Otherwise, it\n\t * wraps the expression in a call to {@link ng.$sce#getTrusted $sce.getTrusted(*type*,\n\t * *result*)}\n\t *\n\t * @param {string} type The kind of SCE context in which this result will be used.\n\t * @param {string} expression String expression to compile.\n\t * @returns {function(context, locals)} a function which represents the compiled expression:\n\t *\n\t * * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t * are evaluated against (typically a scope object).\n\t * * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t * `context`.\n\t */\n\t sce.parseAs = function sceParseAs(type, expr) {\n\t var parsed = $parse(expr);\n\t if (parsed.literal && parsed.constant) {\n\t return parsed;\n\t } else {\n\t return $parse(expr, function(value) {\n\t return sce.getTrusted(type, value);\n\t });\n\t }\n\t };\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sce#trustAs\n\t *\n\t * @description\n\t * Delegates to {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}. As such,\n\t * returns an object that is trusted by angular for use in specified strict contextual\n\t * escaping contexts (such as ng-bind-html, ng-include, any src attribute\n\t * interpolation, any dom event binding attribute interpolation such as for onclick, etc.)\n\t * that uses the provided value. See * {@link ng.$sce $sce} for enabling strict contextual\n\t * escaping.\n\t *\n\t * @param {string} type The kind of context in which this value is safe for use. e.g. url,\n\t * resourceUrl, html, js and css.\n\t * @param {*} value The value that that should be considered trusted/safe.\n\t * @returns {*} A value that can be used to stand in for the provided `value` in places\n\t * where Angular expects a $sce.trustAs() return value.\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sce#trustAsHtml\n\t *\n\t * @description\n\t * Shorthand method. `$sce.trustAsHtml(value)` →\n\t * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.HTML, value)`}\n\t *\n\t * @param {*} value The value to trustAs.\n\t * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedHtml\n\t * $sce.getTrustedHtml(value)} to obtain the original value. (privileged directives\n\t * only accept expressions that are either literal constants or are the\n\t * return value of {@link ng.$sce#trustAs $sce.trustAs}.)\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sce#trustAsUrl\n\t *\n\t * @description\n\t * Shorthand method. `$sce.trustAsUrl(value)` →\n\t * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.URL, value)`}\n\t *\n\t * @param {*} value The value to trustAs.\n\t * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedUrl\n\t * $sce.getTrustedUrl(value)} to obtain the original value. (privileged directives\n\t * only accept expressions that are either literal constants or are the\n\t * return value of {@link ng.$sce#trustAs $sce.trustAs}.)\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sce#trustAsResourceUrl\n\t *\n\t * @description\n\t * Shorthand method. `$sce.trustAsResourceUrl(value)` →\n\t * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.RESOURCE_URL, value)`}\n\t *\n\t * @param {*} value The value to trustAs.\n\t * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedResourceUrl\n\t * $sce.getTrustedResourceUrl(value)} to obtain the original value. (privileged directives\n\t * only accept expressions that are either literal constants or are the return\n\t * value of {@link ng.$sce#trustAs $sce.trustAs}.)\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sce#trustAsJs\n\t *\n\t * @description\n\t * Shorthand method. `$sce.trustAsJs(value)` →\n\t * {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.JS, value)`}\n\t *\n\t * @param {*} value The value to trustAs.\n\t * @returns {*} An object that can be passed to {@link ng.$sce#getTrustedJs\n\t * $sce.getTrustedJs(value)} to obtain the original value. (privileged directives\n\t * only accept expressions that are either literal constants or are the\n\t * return value of {@link ng.$sce#trustAs $sce.trustAs}.)\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sce#getTrusted\n\t *\n\t * @description\n\t * Delegates to {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted`}. As such,\n\t * takes the result of a {@link ng.$sce#trustAs `$sce.trustAs`}() call and returns the\n\t * originally supplied value if the queried context type is a supertype of the created type.\n\t * If this condition isn't satisfied, throws an exception.\n\t *\n\t * @param {string} type The kind of context in which this value is to be used.\n\t * @param {*} maybeTrusted The result of a prior {@link ng.$sce#trustAs `$sce.trustAs`}\n\t * call.\n\t * @returns {*} The value the was originally provided to\n\t * {@link ng.$sce#trustAs `$sce.trustAs`} if valid in this context.\n\t * Otherwise, throws an exception.\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sce#getTrustedHtml\n\t *\n\t * @description\n\t * Shorthand method. `$sce.getTrustedHtml(value)` →\n\t * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.HTML, value)`}\n\t *\n\t * @param {*} value The value to pass to `$sce.getTrusted`.\n\t * @returns {*} The return value of `$sce.getTrusted($sce.HTML, value)`\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sce#getTrustedCss\n\t *\n\t * @description\n\t * Shorthand method. `$sce.getTrustedCss(value)` →\n\t * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.CSS, value)`}\n\t *\n\t * @param {*} value The value to pass to `$sce.getTrusted`.\n\t * @returns {*} The return value of `$sce.getTrusted($sce.CSS, value)`\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sce#getTrustedUrl\n\t *\n\t * @description\n\t * Shorthand method. `$sce.getTrustedUrl(value)` →\n\t * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.URL, value)`}\n\t *\n\t * @param {*} value The value to pass to `$sce.getTrusted`.\n\t * @returns {*} The return value of `$sce.getTrusted($sce.URL, value)`\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sce#getTrustedResourceUrl\n\t *\n\t * @description\n\t * Shorthand method. `$sce.getTrustedResourceUrl(value)` →\n\t * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.RESOURCE_URL, value)`}\n\t *\n\t * @param {*} value The value to pass to `$sceDelegate.getTrusted`.\n\t * @returns {*} The return value of `$sce.getTrusted($sce.RESOURCE_URL, value)`\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sce#getTrustedJs\n\t *\n\t * @description\n\t * Shorthand method. `$sce.getTrustedJs(value)` →\n\t * {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.JS, value)`}\n\t *\n\t * @param {*} value The value to pass to `$sce.getTrusted`.\n\t * @returns {*} The return value of `$sce.getTrusted($sce.JS, value)`\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sce#parseAsHtml\n\t *\n\t * @description\n\t * Shorthand method. `$sce.parseAsHtml(expression string)` →\n\t * {@link ng.$sce#parseAs `$sce.parseAs($sce.HTML, value)`}\n\t *\n\t * @param {string} expression String expression to compile.\n\t * @returns {function(context, locals)} a function which represents the compiled expression:\n\t *\n\t * * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t * are evaluated against (typically a scope object).\n\t * * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t * `context`.\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sce#parseAsCss\n\t *\n\t * @description\n\t * Shorthand method. `$sce.parseAsCss(value)` →\n\t * {@link ng.$sce#parseAs `$sce.parseAs($sce.CSS, value)`}\n\t *\n\t * @param {string} expression String expression to compile.\n\t * @returns {function(context, locals)} a function which represents the compiled expression:\n\t *\n\t * * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t * are evaluated against (typically a scope object).\n\t * * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t * `context`.\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sce#parseAsUrl\n\t *\n\t * @description\n\t * Shorthand method. `$sce.parseAsUrl(value)` →\n\t * {@link ng.$sce#parseAs `$sce.parseAs($sce.URL, value)`}\n\t *\n\t * @param {string} expression String expression to compile.\n\t * @returns {function(context, locals)} a function which represents the compiled expression:\n\t *\n\t * * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t * are evaluated against (typically a scope object).\n\t * * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t * `context`.\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sce#parseAsResourceUrl\n\t *\n\t * @description\n\t * Shorthand method. `$sce.parseAsResourceUrl(value)` →\n\t * {@link ng.$sce#parseAs `$sce.parseAs($sce.RESOURCE_URL, value)`}\n\t *\n\t * @param {string} expression String expression to compile.\n\t * @returns {function(context, locals)} a function which represents the compiled expression:\n\t *\n\t * * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t * are evaluated against (typically a scope object).\n\t * * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t * `context`.\n\t */\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $sce#parseAsJs\n\t *\n\t * @description\n\t * Shorthand method. `$sce.parseAsJs(value)` →\n\t * {@link ng.$sce#parseAs `$sce.parseAs($sce.JS, value)`}\n\t *\n\t * @param {string} expression String expression to compile.\n\t * @returns {function(context, locals)} a function which represents the compiled expression:\n\t *\n\t * * `context` – `{object}` – an object against which any expressions embedded in the strings\n\t * are evaluated against (typically a scope object).\n\t * * `locals` – `{object=}` – local variables context object, useful for overriding values in\n\t * `context`.\n\t */\n\t\n\t // Shorthand delegations.\n\t var parse = sce.parseAs,\n\t getTrusted = sce.getTrusted,\n\t trustAs = sce.trustAs;\n\t\n\t forEach(SCE_CONTEXTS, function(enumValue, name) {\n\t var lName = lowercase(name);\n\t sce[camelCase(\"parse_as_\" + lName)] = function(expr) {\n\t return parse(enumValue, expr);\n\t };\n\t sce[camelCase(\"get_trusted_\" + lName)] = function(value) {\n\t return getTrusted(enumValue, value);\n\t };\n\t sce[camelCase(\"trust_as_\" + lName)] = function(value) {\n\t return trustAs(enumValue, value);\n\t };\n\t });\n\t\n\t return sce;\n\t }];\n\t}\n\t\n\t/**\n\t * !!! This is an undocumented \"private\" service !!!\n\t *\n\t * @name $sniffer\n\t * @requires $window\n\t * @requires $document\n\t *\n\t * @property {boolean} history Does the browser support html5 history api ?\n\t * @property {boolean} transitions Does the browser support CSS transition events ?\n\t * @property {boolean} animations Does the browser support CSS animation events ?\n\t *\n\t * @description\n\t * This is very simple implementation of testing browser's features.\n\t */\n\tfunction $SnifferProvider() {\n\t this.$get = ['$window', '$document', function($window, $document) {\n\t var eventSupport = {},\n\t android =\n\t toInt((/android (\\d+)/.exec(lowercase(($window.navigator || {}).userAgent)) || [])[1]),\n\t boxee = /Boxee/i.test(($window.navigator || {}).userAgent),\n\t document = $document[0] || {},\n\t vendorPrefix,\n\t vendorRegex = /^(Moz|webkit|ms)(?=[A-Z])/,\n\t bodyStyle = document.body && document.body.style,\n\t transitions = false,\n\t animations = false,\n\t match;\n\t\n\t if (bodyStyle) {\n\t for (var prop in bodyStyle) {\n\t if (match = vendorRegex.exec(prop)) {\n\t vendorPrefix = match[0];\n\t vendorPrefix = vendorPrefix.substr(0, 1).toUpperCase() + vendorPrefix.substr(1);\n\t break;\n\t }\n\t }\n\t\n\t if (!vendorPrefix) {\n\t vendorPrefix = ('WebkitOpacity' in bodyStyle) && 'webkit';\n\t }\n\t\n\t transitions = !!(('transition' in bodyStyle) || (vendorPrefix + 'Transition' in bodyStyle));\n\t animations = !!(('animation' in bodyStyle) || (vendorPrefix + 'Animation' in bodyStyle));\n\t\n\t if (android && (!transitions || !animations)) {\n\t transitions = isString(bodyStyle.webkitTransition);\n\t animations = isString(bodyStyle.webkitAnimation);\n\t }\n\t }\n\t\n\t\n\t return {\n\t // Android has history.pushState, but it does not update location correctly\n\t // so let's not use the history API at all.\n\t // http://code.google.com/p/android/issues/detail?id=17471\n\t // https://github.com/angular/angular.js/issues/904\n\t\n\t // older webkit browser (533.9) on Boxee box has exactly the same problem as Android has\n\t // so let's not use the history API also\n\t // We are purposefully using `!(android < 4)` to cover the case when `android` is undefined\n\t // jshint -W018\n\t history: !!($window.history && $window.history.pushState && !(android < 4) && !boxee),\n\t // jshint +W018\n\t hasEvent: function(event) {\n\t // IE9 implements 'input' event it's so fubared that we rather pretend that it doesn't have\n\t // it. In particular the event is not fired when backspace or delete key are pressed or\n\t // when cut operation is performed.\n\t // IE10+ implements 'input' event but it erroneously fires under various situations,\n\t // e.g. when placeholder changes, or a form is focused.\n\t if (event === 'input' && msie <= 11) return false;\n\t\n\t if (isUndefined(eventSupport[event])) {\n\t var divElm = document.createElement('div');\n\t eventSupport[event] = 'on' + event in divElm;\n\t }\n\t\n\t return eventSupport[event];\n\t },\n\t csp: csp(),\n\t vendorPrefix: vendorPrefix,\n\t transitions: transitions,\n\t animations: animations,\n\t android: android\n\t };\n\t }];\n\t}\n\t\n\tvar $compileMinErr = minErr('$compile');\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $templateRequest\n\t *\n\t * @description\n\t * The `$templateRequest` service runs security checks then downloads the provided template using\n\t * `$http` and, upon success, stores the contents inside of `$templateCache`. If the HTTP request\n\t * fails or the response data of the HTTP request is empty, a `$compile` error will be thrown (the\n\t * exception can be thwarted by setting the 2nd parameter of the function to true). Note that the\n\t * contents of `$templateCache` are trusted, so the call to `$sce.getTrustedUrl(tpl)` is omitted\n\t * when `tpl` is of type string and `$templateCache` has the matching entry.\n\t *\n\t * @param {string|TrustedResourceUrl} tpl The HTTP request template URL\n\t * @param {boolean=} ignoreRequestError Whether or not to ignore the exception when the request fails or the template is empty\n\t *\n\t * @return {Promise} a promise for the HTTP response data of the given URL.\n\t *\n\t * @property {number} totalPendingRequests total amount of pending template requests being downloaded.\n\t */\n\tfunction $TemplateRequestProvider() {\n\t this.$get = ['$templateCache', '$http', '$q', '$sce', function($templateCache, $http, $q, $sce) {\n\t function handleRequestFn(tpl, ignoreRequestError) {\n\t handleRequestFn.totalPendingRequests++;\n\t\n\t // We consider the template cache holds only trusted templates, so\n\t // there's no need to go through whitelisting again for keys that already\n\t // are included in there. This also makes Angular accept any script\n\t // directive, no matter its name. However, we still need to unwrap trusted\n\t // types.\n\t if (!isString(tpl) || isUndefined($templateCache.get(tpl))) {\n\t tpl = $sce.getTrustedResourceUrl(tpl);\n\t }\n\t\n\t var transformResponse = $http.defaults && $http.defaults.transformResponse;\n\t\n\t if (isArray(transformResponse)) {\n\t transformResponse = transformResponse.filter(function(transformer) {\n\t return transformer !== defaultHttpResponseTransform;\n\t });\n\t } else if (transformResponse === defaultHttpResponseTransform) {\n\t transformResponse = null;\n\t }\n\t\n\t var httpOptions = {\n\t cache: $templateCache,\n\t transformResponse: transformResponse\n\t };\n\t\n\t return $http.get(tpl, httpOptions)\n\t ['finally'](function() {\n\t handleRequestFn.totalPendingRequests--;\n\t })\n\t .then(function(response) {\n\t $templateCache.put(tpl, response.data);\n\t return response.data;\n\t }, handleError);\n\t\n\t function handleError(resp) {\n\t if (!ignoreRequestError) {\n\t throw $compileMinErr('tpload', 'Failed to load template: {0} (HTTP status: {1} {2})',\n\t tpl, resp.status, resp.statusText);\n\t }\n\t return $q.reject(resp);\n\t }\n\t }\n\t\n\t handleRequestFn.totalPendingRequests = 0;\n\t\n\t return handleRequestFn;\n\t }];\n\t}\n\t\n\tfunction $$TestabilityProvider() {\n\t this.$get = ['$rootScope', '$browser', '$location',\n\t function($rootScope, $browser, $location) {\n\t\n\t /**\n\t * @name $testability\n\t *\n\t * @description\n\t * The private $$testability service provides a collection of methods for use when debugging\n\t * or by automated test and debugging tools.\n\t */\n\t var testability = {};\n\t\n\t /**\n\t * @name $$testability#findBindings\n\t *\n\t * @description\n\t * Returns an array of elements that are bound (via ng-bind or {{}})\n\t * to expressions matching the input.\n\t *\n\t * @param {Element} element The element root to search from.\n\t * @param {string} expression The binding expression to match.\n\t * @param {boolean} opt_exactMatch If true, only returns exact matches\n\t * for the expression. Filters and whitespace are ignored.\n\t */\n\t testability.findBindings = function(element, expression, opt_exactMatch) {\n\t var bindings = element.getElementsByClassName('ng-binding');\n\t var matches = [];\n\t forEach(bindings, function(binding) {\n\t var dataBinding = angular.element(binding).data('$binding');\n\t if (dataBinding) {\n\t forEach(dataBinding, function(bindingName) {\n\t if (opt_exactMatch) {\n\t var matcher = new RegExp('(^|\\\\s)' + escapeForRegexp(expression) + '(\\\\s|\\\\||$)');\n\t if (matcher.test(bindingName)) {\n\t matches.push(binding);\n\t }\n\t } else {\n\t if (bindingName.indexOf(expression) != -1) {\n\t matches.push(binding);\n\t }\n\t }\n\t });\n\t }\n\t });\n\t return matches;\n\t };\n\t\n\t /**\n\t * @name $$testability#findModels\n\t *\n\t * @description\n\t * Returns an array of elements that are two-way found via ng-model to\n\t * expressions matching the input.\n\t *\n\t * @param {Element} element The element root to search from.\n\t * @param {string} expression The model expression to match.\n\t * @param {boolean} opt_exactMatch If true, only returns exact matches\n\t * for the expression.\n\t */\n\t testability.findModels = function(element, expression, opt_exactMatch) {\n\t var prefixes = ['ng-', 'data-ng-', 'ng\\\\:'];\n\t for (var p = 0; p < prefixes.length; ++p) {\n\t var attributeEquals = opt_exactMatch ? '=' : '*=';\n\t var selector = '[' + prefixes[p] + 'model' + attributeEquals + '\"' + expression + '\"]';\n\t var elements = element.querySelectorAll(selector);\n\t if (elements.length) {\n\t return elements;\n\t }\n\t }\n\t };\n\t\n\t /**\n\t * @name $$testability#getLocation\n\t *\n\t * @description\n\t * Shortcut for getting the location in a browser agnostic way. Returns\n\t * the path, search, and hash. (e.g. /path?a=b#hash)\n\t */\n\t testability.getLocation = function() {\n\t return $location.url();\n\t };\n\t\n\t /**\n\t * @name $$testability#setLocation\n\t *\n\t * @description\n\t * Shortcut for navigating to a location without doing a full page reload.\n\t *\n\t * @param {string} url The location url (path, search and hash,\n\t * e.g. /path?a=b#hash) to go to.\n\t */\n\t testability.setLocation = function(url) {\n\t if (url !== $location.url()) {\n\t $location.url(url);\n\t $rootScope.$digest();\n\t }\n\t };\n\t\n\t /**\n\t * @name $$testability#whenStable\n\t *\n\t * @description\n\t * Calls the callback when $timeout and $http requests are completed.\n\t *\n\t * @param {function} callback\n\t */\n\t testability.whenStable = function(callback) {\n\t $browser.notifyWhenNoOutstandingRequests(callback);\n\t };\n\t\n\t return testability;\n\t }];\n\t}\n\t\n\tfunction $TimeoutProvider() {\n\t this.$get = ['$rootScope', '$browser', '$q', '$$q', '$exceptionHandler',\n\t function($rootScope, $browser, $q, $$q, $exceptionHandler) {\n\t\n\t var deferreds = {};\n\t\n\t\n\t /**\n\t * @ngdoc service\n\t * @name $timeout\n\t *\n\t * @description\n\t * Angular's wrapper for `window.setTimeout`. The `fn` function is wrapped into a try/catch\n\t * block and delegates any exceptions to\n\t * {@link ng.$exceptionHandler $exceptionHandler} service.\n\t *\n\t * The return value of calling `$timeout` is a promise, which will be resolved when\n\t * the delay has passed and the timeout function, if provided, is executed.\n\t *\n\t * To cancel a timeout request, call `$timeout.cancel(promise)`.\n\t *\n\t * In tests you can use {@link ngMock.$timeout `$timeout.flush()`} to\n\t * synchronously flush the queue of deferred functions.\n\t *\n\t * If you only want a promise that will be resolved after some specified delay\n\t * then you can call `$timeout` without the `fn` function.\n\t *\n\t * @param {function()=} fn A function, whose execution should be delayed.\n\t * @param {number=} [delay=0] Delay in milliseconds.\n\t * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise\n\t * will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.\n\t * @param {...*=} Pass additional parameters to the executed function.\n\t * @returns {Promise} Promise that will be resolved when the timeout is reached. The promise\n\t * will be resolved with the return value of the `fn` function.\n\t *\n\t */\n\t function timeout(fn, delay, invokeApply) {\n\t if (!isFunction(fn)) {\n\t invokeApply = delay;\n\t delay = fn;\n\t fn = noop;\n\t }\n\t\n\t var args = sliceArgs(arguments, 3),\n\t skipApply = (isDefined(invokeApply) && !invokeApply),\n\t deferred = (skipApply ? $$q : $q).defer(),\n\t promise = deferred.promise,\n\t timeoutId;\n\t\n\t timeoutId = $browser.defer(function() {\n\t try {\n\t deferred.resolve(fn.apply(null, args));\n\t } catch (e) {\n\t deferred.reject(e);\n\t $exceptionHandler(e);\n\t }\n\t finally {\n\t delete deferreds[promise.$$timeoutId];\n\t }\n\t\n\t if (!skipApply) $rootScope.$apply();\n\t }, delay);\n\t\n\t promise.$$timeoutId = timeoutId;\n\t deferreds[timeoutId] = deferred;\n\t\n\t return promise;\n\t }\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $timeout#cancel\n\t *\n\t * @description\n\t * Cancels a task associated with the `promise`. As a result of this, the promise will be\n\t * resolved with a rejection.\n\t *\n\t * @param {Promise=} promise Promise returned by the `$timeout` function.\n\t * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully\n\t * canceled.\n\t */\n\t timeout.cancel = function(promise) {\n\t if (promise && promise.$$timeoutId in deferreds) {\n\t deferreds[promise.$$timeoutId].reject('canceled');\n\t delete deferreds[promise.$$timeoutId];\n\t return $browser.defer.cancel(promise.$$timeoutId);\n\t }\n\t return false;\n\t };\n\t\n\t return timeout;\n\t }];\n\t}\n\t\n\t// NOTE: The usage of window and document instead of $window and $document here is\n\t// deliberate. This service depends on the specific behavior of anchor nodes created by the\n\t// browser (resolving and parsing URLs) that is unlikely to be provided by mock objects and\n\t// cause us to break tests. In addition, when the browser resolves a URL for XHR, it\n\t// doesn't know about mocked locations and resolves URLs to the real document - which is\n\t// exactly the behavior needed here. There is little value is mocking these out for this\n\t// service.\n\tvar urlParsingNode = document.createElement(\"a\");\n\tvar originUrl = urlResolve(window.location.href);\n\t\n\t\n\t/**\n\t *\n\t * Implementation Notes for non-IE browsers\n\t * ----------------------------------------\n\t * Assigning a URL to the href property of an anchor DOM node, even one attached to the DOM,\n\t * results both in the normalizing and parsing of the URL. Normalizing means that a relative\n\t * URL will be resolved into an absolute URL in the context of the application document.\n\t * Parsing means that the anchor node's host, hostname, protocol, port, pathname and related\n\t * properties are all populated to reflect the normalized URL. This approach has wide\n\t * compatibility - Safari 1+, Mozilla 1+, Opera 7+,e etc. See\n\t * http://www.aptana.com/reference/html/api/HTMLAnchorElement.html\n\t *\n\t * Implementation Notes for IE\n\t * ---------------------------\n\t * IE <= 10 normalizes the URL when assigned to the anchor node similar to the other\n\t * browsers. However, the parsed components will not be set if the URL assigned did not specify\n\t * them. (e.g. if you assign a.href = \"foo\", then a.protocol, a.host, etc. will be empty.) We\n\t * work around that by performing the parsing in a 2nd step by taking a previously normalized\n\t * URL (e.g. by assigning to a.href) and assigning it a.href again. This correctly populates the\n\t * properties such as protocol, hostname, port, etc.\n\t *\n\t * References:\n\t * http://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement\n\t * http://www.aptana.com/reference/html/api/HTMLAnchorElement.html\n\t * http://url.spec.whatwg.org/#urlutils\n\t * https://github.com/angular/angular.js/pull/2902\n\t * http://james.padolsey.com/javascript/parsing-urls-with-the-dom/\n\t *\n\t * @kind function\n\t * @param {string} url The URL to be parsed.\n\t * @description Normalizes and parses a URL.\n\t * @returns {object} Returns the normalized URL as a dictionary.\n\t *\n\t * | member name | Description |\n\t * |---------------|----------------|\n\t * | href | A normalized version of the provided URL if it was not an absolute URL |\n\t * | protocol | The protocol including the trailing colon |\n\t * | host | The host and port (if the port is non-default) of the normalizedUrl |\n\t * | search | The search params, minus the question mark |\n\t * | hash | The hash string, minus the hash symbol\n\t * | hostname | The hostname\n\t * | port | The port, without \":\"\n\t * | pathname | The pathname, beginning with \"/\"\n\t *\n\t */\n\tfunction urlResolve(url) {\n\t var href = url;\n\t\n\t if (msie) {\n\t // Normalize before parse. Refer Implementation Notes on why this is\n\t // done in two steps on IE.\n\t urlParsingNode.setAttribute(\"href\", href);\n\t href = urlParsingNode.href;\n\t }\n\t\n\t urlParsingNode.setAttribute('href', href);\n\t\n\t // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n\t return {\n\t href: urlParsingNode.href,\n\t protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n\t host: urlParsingNode.host,\n\t search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n\t hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n\t hostname: urlParsingNode.hostname,\n\t port: urlParsingNode.port,\n\t pathname: (urlParsingNode.pathname.charAt(0) === '/')\n\t ? urlParsingNode.pathname\n\t : '/' + urlParsingNode.pathname\n\t };\n\t}\n\t\n\t/**\n\t * Parse a request URL and determine whether this is a same-origin request as the application document.\n\t *\n\t * @param {string|object} requestUrl The url of the request as a string that will be resolved\n\t * or a parsed URL object.\n\t * @returns {boolean} Whether the request is for the same origin as the application document.\n\t */\n\tfunction urlIsSameOrigin(requestUrl) {\n\t var parsed = (isString(requestUrl)) ? urlResolve(requestUrl) : requestUrl;\n\t return (parsed.protocol === originUrl.protocol &&\n\t parsed.host === originUrl.host);\n\t}\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $window\n\t *\n\t * @description\n\t * A reference to the browser's `window` object. While `window`\n\t * is globally available in JavaScript, it causes testability problems, because\n\t * it is a global variable. In angular we always refer to it through the\n\t * `$window` service, so it may be overridden, removed or mocked for testing.\n\t *\n\t * Expressions, like the one defined for the `ngClick` directive in the example\n\t * below, are evaluated with respect to the current scope. Therefore, there is\n\t * no risk of inadvertently coding in a dependency on a global value in such an\n\t * expression.\n\t *\n\t * @example\n\t \n\t \n\t \n\t
\n\t \n\t \n\t
\n\t
\n\t \n\t it('should display the greeting in the input box', function() {\n\t element(by.model('greeting')).sendKeys('Hello, E2E Tests');\n\t // If we click the button it will block the test runner\n\t // element(':button').click();\n\t });\n\t \n\t
\n\t */\n\tfunction $WindowProvider() {\n\t this.$get = valueFn(window);\n\t}\n\t\n\t/**\n\t * @name $$cookieReader\n\t * @requires $document\n\t *\n\t * @description\n\t * This is a private service for reading cookies used by $http and ngCookies\n\t *\n\t * @return {Object} a key/value map of the current cookies\n\t */\n\tfunction $$CookieReader($document) {\n\t var rawDocument = $document[0] || {};\n\t var lastCookies = {};\n\t var lastCookieString = '';\n\t\n\t function safeDecodeURIComponent(str) {\n\t try {\n\t return decodeURIComponent(str);\n\t } catch (e) {\n\t return str;\n\t }\n\t }\n\t\n\t return function() {\n\t var cookieArray, cookie, i, index, name;\n\t var currentCookieString = rawDocument.cookie || '';\n\t\n\t if (currentCookieString !== lastCookieString) {\n\t lastCookieString = currentCookieString;\n\t cookieArray = lastCookieString.split('; ');\n\t lastCookies = {};\n\t\n\t for (i = 0; i < cookieArray.length; i++) {\n\t cookie = cookieArray[i];\n\t index = cookie.indexOf('=');\n\t if (index > 0) { //ignore nameless cookies\n\t name = safeDecodeURIComponent(cookie.substring(0, index));\n\t // the first value that is seen for a cookie is the most\n\t // specific one. values for the same cookie name that\n\t // follow are for less specific paths.\n\t if (isUndefined(lastCookies[name])) {\n\t lastCookies[name] = safeDecodeURIComponent(cookie.substring(index + 1));\n\t }\n\t }\n\t }\n\t }\n\t return lastCookies;\n\t };\n\t}\n\t\n\t$$CookieReader.$inject = ['$document'];\n\t\n\tfunction $$CookieReaderProvider() {\n\t this.$get = $$CookieReader;\n\t}\n\t\n\t/* global currencyFilter: true,\n\t dateFilter: true,\n\t filterFilter: true,\n\t jsonFilter: true,\n\t limitToFilter: true,\n\t lowercaseFilter: true,\n\t numberFilter: true,\n\t orderByFilter: true,\n\t uppercaseFilter: true,\n\t */\n\t\n\t/**\n\t * @ngdoc provider\n\t * @name $filterProvider\n\t * @description\n\t *\n\t * Filters are just functions which transform input to an output. However filters need to be\n\t * Dependency Injected. To achieve this a filter definition consists of a factory function which is\n\t * annotated with dependencies and is responsible for creating a filter function.\n\t *\n\t *
\n\t * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.\n\t * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace\n\t * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores\n\t * (`myapp_subsection_filterx`).\n\t *
\n\t *\n\t * ```js\n\t * // Filter registration\n\t * function MyModule($provide, $filterProvider) {\n\t * // create a service to demonstrate injection (not always needed)\n\t * $provide.value('greet', function(name){\n\t * return 'Hello ' + name + '!';\n\t * });\n\t *\n\t * // register a filter factory which uses the\n\t * // greet service to demonstrate DI.\n\t * $filterProvider.register('greet', function(greet){\n\t * // return the filter function which uses the greet service\n\t * // to generate salutation\n\t * return function(text) {\n\t * // filters need to be forgiving so check input validity\n\t * return text && greet(text) || text;\n\t * };\n\t * });\n\t * }\n\t * ```\n\t *\n\t * The filter function is registered with the `$injector` under the filter name suffix with\n\t * `Filter`.\n\t *\n\t * ```js\n\t * it('should be the same instance', inject(\n\t * function($filterProvider) {\n\t * $filterProvider.register('reverse', function(){\n\t * return ...;\n\t * });\n\t * },\n\t * function($filter, reverseFilter) {\n\t * expect($filter('reverse')).toBe(reverseFilter);\n\t * });\n\t * ```\n\t *\n\t *\n\t * For more information about how angular filters work, and how to create your own filters, see\n\t * {@link guide/filter Filters} in the Angular Developer Guide.\n\t */\n\t\n\t/**\n\t * @ngdoc service\n\t * @name $filter\n\t * @kind function\n\t * @description\n\t * Filters are used for formatting data displayed to the user.\n\t *\n\t * The general syntax in templates is as follows:\n\t *\n\t * {{ expression [| filter_name[:parameter_value] ... ] }}\n\t *\n\t * @param {String} name Name of the filter function to retrieve\n\t * @return {Function} the filter function\n\t * @example\n\t \n\t \n\t
\n\t

{{ originalText }}

\n\t

{{ filteredText }}

\n\t
\n\t
\n\t\n\t \n\t angular.module('filterExample', [])\n\t .controller('MainCtrl', function($scope, $filter) {\n\t $scope.originalText = 'hello';\n\t $scope.filteredText = $filter('uppercase')($scope.originalText);\n\t });\n\t \n\t
\n\t */\n\t$FilterProvider.$inject = ['$provide'];\n\tfunction $FilterProvider($provide) {\n\t var suffix = 'Filter';\n\t\n\t /**\n\t * @ngdoc method\n\t * @name $filterProvider#register\n\t * @param {string|Object} name Name of the filter function, or an object map of filters where\n\t * the keys are the filter names and the values are the filter factories.\n\t *\n\t *
\n\t * **Note:** Filter names must be valid angular {@link expression} identifiers, such as `uppercase` or `orderBy`.\n\t * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace\n\t * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores\n\t * (`myapp_subsection_filterx`).\n\t *
\n\t * @param {Function} factory If the first argument was a string, a factory function for the filter to be registered.\n\t * @returns {Object} Registered filter instance, or if a map of filters was provided then a map\n\t * of the registered filter instances.\n\t */\n\t function register(name, factory) {\n\t if (isObject(name)) {\n\t var filters = {};\n\t forEach(name, function(filter, key) {\n\t filters[key] = register(key, filter);\n\t });\n\t return filters;\n\t } else {\n\t return $provide.factory(name + suffix, factory);\n\t }\n\t }\n\t this.register = register;\n\t\n\t this.$get = ['$injector', function($injector) {\n\t return function(name) {\n\t return $injector.get(name + suffix);\n\t };\n\t }];\n\t\n\t ////////////////////////////////////////\n\t\n\t /* global\n\t currencyFilter: false,\n\t dateFilter: false,\n\t filterFilter: false,\n\t jsonFilter: false,\n\t limitToFilter: false,\n\t lowercaseFilter: false,\n\t numberFilter: false,\n\t orderByFilter: false,\n\t uppercaseFilter: false,\n\t */\n\t\n\t register('currency', currencyFilter);\n\t register('date', dateFilter);\n\t register('filter', filterFilter);\n\t register('json', jsonFilter);\n\t register('limitTo', limitToFilter);\n\t register('lowercase', lowercaseFilter);\n\t register('number', numberFilter);\n\t register('orderBy', orderByFilter);\n\t register('uppercase', uppercaseFilter);\n\t}\n\t\n\t/**\n\t * @ngdoc filter\n\t * @name filter\n\t * @kind function\n\t *\n\t * @description\n\t * Selects a subset of items from `array` and returns it as a new array.\n\t *\n\t * @param {Array} array The source array.\n\t * @param {string|Object|function()} expression The predicate to be used for selecting items from\n\t * `array`.\n\t *\n\t * Can be one of:\n\t *\n\t * - `string`: The string is used for matching against the contents of the `array`. All strings or\n\t * objects with string properties in `array` that match this string will be returned. This also\n\t * applies to nested object properties.\n\t * The predicate can be negated by prefixing the string with `!`.\n\t *\n\t * - `Object`: A pattern object can be used to filter specific properties on objects contained\n\t * by `array`. For example `{name:\"M\", phone:\"1\"}` predicate will return an array of items\n\t * which have property `name` containing \"M\" and property `phone` containing \"1\". A special\n\t * property name `$` can be used (as in `{$:\"text\"}`) to accept a match against any\n\t * property of the object or its nested object properties. That's equivalent to the simple\n\t * substring match with a `string` as described above. The predicate can be negated by prefixing\n\t * the string with `!`.\n\t * For example `{name: \"!M\"}` predicate will return an array of items which have property `name`\n\t * not containing \"M\".\n\t *\n\t * Note that a named property will match properties on the same level only, while the special\n\t * `$` property will match properties on the same level or deeper. E.g. an array item like\n\t * `{name: {first: 'John', last: 'Doe'}}` will **not** be matched by `{name: 'John'}`, but\n\t * **will** be matched by `{$: 'John'}`.\n\t *\n\t * - `function(value, index, array)`: A predicate function can be used to write arbitrary filters.\n\t * The function is called for each element of the array, with the element, its index, and\n\t * the entire array itself as arguments.\n\t *\n\t * The final result is an array of those elements that the predicate returned true for.\n\t *\n\t * @param {function(actual, expected)|true|undefined} comparator Comparator which is used in\n\t * determining if the expected value (from the filter expression) and actual value (from\n\t * the object in the array) should be considered a match.\n\t *\n\t * Can be one of:\n\t *\n\t * - `function(actual, expected)`:\n\t * The function will be given the object value and the predicate value to compare and\n\t * should return true if both values should be considered equal.\n\t *\n\t * - `true`: A shorthand for `function(actual, expected) { return angular.equals(actual, expected)}`.\n\t * This is essentially strict comparison of expected and actual.\n\t *\n\t * - `false|undefined`: A short hand for a function which will look for a substring match in case\n\t * insensitive way.\n\t *\n\t * Primitive values are converted to strings. Objects are not compared against primitives,\n\t * unless they have a custom `toString` method (e.g. `Date` objects).\n\t *\n\t * @example\n\t \n\t \n\t
\n\t\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
NamePhone
{{friend.name}}{{friend.phone}}
\n\t
\n\t
\n\t
\n\t
\n\t
\n\t \n\t \n\t \n\t \n\t \n\t \n\t
NamePhone
{{friendObj.name}}{{friendObj.phone}}
\n\t
\n\t \n\t var expectFriendNames = function(expectedNames, key) {\n\t element.all(by.repeater(key + ' in friends').column(key + '.name')).then(function(arr) {\n\t arr.forEach(function(wd, i) {\n\t expect(wd.getText()).toMatch(expectedNames[i]);\n\t });\n\t });\n\t };\n\t\n\t it('should search across all fields when filtering with a string', function() {\n\t var searchText = element(by.model('searchText'));\n\t searchText.clear();\n\t searchText.sendKeys('m');\n\t expectFriendNames(['Mary', 'Mike', 'Adam'], 'friend');\n\t\n\t searchText.clear();\n\t searchText.sendKeys('76');\n\t expectFriendNames(['John', 'Julie'], 'friend');\n\t });\n\t\n\t it('should search in specific fields when filtering with a predicate object', function() {\n\t var searchAny = element(by.model('search.$'));\n\t searchAny.clear();\n\t searchAny.sendKeys('i');\n\t expectFriendNames(['Mary', 'Mike', 'Julie', 'Juliette'], 'friendObj');\n\t });\n\t it('should use a equal comparison when comparator is true', function() {\n\t var searchName = element(by.model('search.name'));\n\t var strict = element(by.model('strict'));\n\t searchName.clear();\n\t searchName.sendKeys('Julie');\n\t strict.click();\n\t expectFriendNames(['Julie'], 'friendObj');\n\t });\n\t \n\t
\n\t */\n\tfunction filterFilter() {\n\t return function(array, expression, comparator) {\n\t if (!isArrayLike(array)) {\n\t if (array == null) {\n\t return array;\n\t } else {\n\t throw minErr('filter')('notarray', 'Expected array but received: {0}', array);\n\t }\n\t }\n\t\n\t var expressionType = getTypeForFilter(expression);\n\t var predicateFn;\n\t var matchAgainstAnyProp;\n\t\n\t switch (expressionType) {\n\t case 'function':\n\t predicateFn = expression;\n\t break;\n\t case 'boolean':\n\t case 'null':\n\t case 'number':\n\t case 'string':\n\t matchAgainstAnyProp = true;\n\t //jshint -W086\n\t case 'object':\n\t //jshint +W086\n\t predicateFn = createPredicateFn(expression, comparator, matchAgainstAnyProp);\n\t break;\n\t default:\n\t return array;\n\t }\n\t\n\t return Array.prototype.filter.call(array, predicateFn);\n\t };\n\t}\n\t\n\t// Helper functions for `filterFilter`\n\tfunction createPredicateFn(expression, comparator, matchAgainstAnyProp) {\n\t var shouldMatchPrimitives = isObject(expression) && ('$' in expression);\n\t var predicateFn;\n\t\n\t if (comparator === true) {\n\t comparator = equals;\n\t } else if (!isFunction(comparator)) {\n\t comparator = function(actual, expected) {\n\t if (isUndefined(actual)) {\n\t // No substring matching against `undefined`\n\t return false;\n\t }\n\t if ((actual === null) || (expected === null)) {\n\t // No substring matching against `null`; only match against `null`\n\t return actual === expected;\n\t }\n\t if (isObject(expected) || (isObject(actual) && !hasCustomToString(actual))) {\n\t // Should not compare primitives against objects, unless they have custom `toString` method\n\t return false;\n\t }\n\t\n\t actual = lowercase('' + actual);\n\t expected = lowercase('' + expected);\n\t return actual.indexOf(expected) !== -1;\n\t };\n\t }\n\t\n\t predicateFn = function(item) {\n\t if (shouldMatchPrimitives && !isObject(item)) {\n\t return deepCompare(item, expression.$, comparator, false);\n\t }\n\t return deepCompare(item, expression, comparator, matchAgainstAnyProp);\n\t };\n\t\n\t return predicateFn;\n\t}\n\t\n\tfunction deepCompare(actual, expected, comparator, matchAgainstAnyProp, dontMatchWholeObject) {\n\t var actualType = getTypeForFilter(actual);\n\t var expectedType = getTypeForFilter(expected);\n\t\n\t if ((expectedType === 'string') && (expected.charAt(0) === '!')) {\n\t return !deepCompare(actual, expected.substring(1), comparator, matchAgainstAnyProp);\n\t } else if (isArray(actual)) {\n\t // In case `actual` is an array, consider it a match\n\t // if ANY of it's items matches `expected`\n\t return actual.some(function(item) {\n\t return deepCompare(item, expected, comparator, matchAgainstAnyProp);\n\t });\n\t }\n\t\n\t switch (actualType) {\n\t case 'object':\n\t var key;\n\t if (matchAgainstAnyProp) {\n\t for (key in actual) {\n\t if ((key.charAt(0) !== '$') && deepCompare(actual[key], expected, comparator, true)) {\n\t return true;\n\t }\n\t }\n\t return dontMatchWholeObject ? false : deepCompare(actual, expected, comparator, false);\n\t } else if (expectedType === 'object') {\n\t for (key in expected) {\n\t var expectedVal = expected[key];\n\t if (isFunction(expectedVal) || isUndefined(expectedVal)) {\n\t continue;\n\t }\n\t\n\t var matchAnyProperty = key === '$';\n\t var actualVal = matchAnyProperty ? actual : actual[key];\n\t if (!deepCompare(actualVal, expectedVal, comparator, matchAnyProperty, matchAnyProperty)) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t } else {\n\t return comparator(actual, expected);\n\t }\n\t break;\n\t case 'function':\n\t return false;\n\t default:\n\t return comparator(actual, expected);\n\t }\n\t}\n\t\n\t// Used for easily differentiating between `null` and actual `object`\n\tfunction getTypeForFilter(val) {\n\t return (val === null) ? 'null' : typeof val;\n\t}\n\t\n\tvar MAX_DIGITS = 22;\n\tvar DECIMAL_SEP = '.';\n\tvar ZERO_CHAR = '0';\n\t\n\t/**\n\t * @ngdoc filter\n\t * @name currency\n\t * @kind function\n\t *\n\t * @description\n\t * Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default\n\t * symbol for current locale is used.\n\t *\n\t * @param {number} amount Input to filter.\n\t * @param {string=} symbol Currency symbol or identifier to be displayed.\n\t * @param {number=} fractionSize Number of decimal places to round the amount to, defaults to default max fraction size for current locale\n\t * @returns {string} Formatted number.\n\t *\n\t *\n\t * @example\n\t \n\t \n\t \n\t
\n\t
\n\t default currency symbol ($): {{amount | currency}}
\n\t custom currency identifier (USD$): {{amount | currency:\"USD$\"}}\n\t no fractions (0): {{amount | currency:\"USD$\":0}}\n\t
\n\t
\n\t \n\t it('should init with 1234.56', function() {\n\t expect(element(by.id('currency-default')).getText()).toBe('$1,234.56');\n\t expect(element(by.id('currency-custom')).getText()).toBe('USD$1,234.56');\n\t expect(element(by.id('currency-no-fractions')).getText()).toBe('USD$1,235');\n\t });\n\t it('should update', function() {\n\t if (browser.params.browser == 'safari') {\n\t // Safari does not understand the minus key. See\n\t // https://github.com/angular/protractor/issues/481\n\t return;\n\t }\n\t element(by.model('amount')).clear();\n\t element(by.model('amount')).sendKeys('-1234');\n\t expect(element(by.id('currency-default')).getText()).toBe('-$1,234.00');\n\t expect(element(by.id('currency-custom')).getText()).toBe('-USD$1,234.00');\n\t expect(element(by.id('currency-no-fractions')).getText()).toBe('-USD$1,234');\n\t });\n\t \n\t
\n\t */\n\tcurrencyFilter.$inject = ['$locale'];\n\tfunction currencyFilter($locale) {\n\t var formats = $locale.NUMBER_FORMATS;\n\t return function(amount, currencySymbol, fractionSize) {\n\t if (isUndefined(currencySymbol)) {\n\t currencySymbol = formats.CURRENCY_SYM;\n\t }\n\t\n\t if (isUndefined(fractionSize)) {\n\t fractionSize = formats.PATTERNS[1].maxFrac;\n\t }\n\t\n\t // if null or undefined pass it through\n\t return (amount == null)\n\t ? amount\n\t : formatNumber(amount, formats.PATTERNS[1], formats.GROUP_SEP, formats.DECIMAL_SEP, fractionSize).\n\t replace(/\\u00A4/g, currencySymbol);\n\t };\n\t}\n\t\n\t/**\n\t * @ngdoc filter\n\t * @name number\n\t * @kind function\n\t *\n\t * @description\n\t * Formats a number as text.\n\t *\n\t * If the input is null or undefined, it will just be returned.\n\t * If the input is infinite (Infinity or -Infinity), the Infinity symbol '∞' or '-∞' is returned, respectively.\n\t * If the input is not a number an empty string is returned.\n\t *\n\t *\n\t * @param {number|string} number Number to format.\n\t * @param {(number|string)=} fractionSize Number of decimal places to round the number to.\n\t * If this is not provided then the fraction size is computed from the current locale's number\n\t * formatting pattern. In the case of the default locale, it will be 3.\n\t * @returns {string} Number rounded to `fractionSize` appropriately formatted based on the current\n\t * locale (e.g., in the en_US locale it will have \".\" as the decimal separator and\n\t * include \",\" group separators after each third digit).\n\t *\n\t * @example\n\t \n\t \n\t \n\t
\n\t
\n\t Default formatting: {{val | number}}
\n\t No fractions: {{val | number:0}}
\n\t Negative number: {{-val | number:4}}\n\t
\n\t
\n\t \n\t it('should format numbers', function() {\n\t expect(element(by.id('number-default')).getText()).toBe('1,234.568');\n\t expect(element(by.binding('val | number:0')).getText()).toBe('1,235');\n\t expect(element(by.binding('-val | number:4')).getText()).toBe('-1,234.5679');\n\t });\n\t\n\t it('should update', function() {\n\t element(by.model('val')).clear();\n\t element(by.model('val')).sendKeys('3374.333');\n\t expect(element(by.id('number-default')).getText()).toBe('3,374.333');\n\t expect(element(by.binding('val | number:0')).getText()).toBe('3,374');\n\t expect(element(by.binding('-val | number:4')).getText()).toBe('-3,374.3330');\n\t });\n\t \n\t
\n\t */\n\tnumberFilter.$inject = ['$locale'];\n\tfunction numberFilter($locale) {\n\t var formats = $locale.NUMBER_FORMATS;\n\t return function(number, fractionSize) {\n\t\n\t // if null or undefined pass it through\n\t return (number == null)\n\t ? number\n\t : formatNumber(number, formats.PATTERNS[0], formats.GROUP_SEP, formats.DECIMAL_SEP,\n\t fractionSize);\n\t };\n\t}\n\t\n\t/**\n\t * Parse a number (as a string) into three components that can be used\n\t * for formatting the number.\n\t *\n\t * (Significant bits of this parse algorithm came from https://github.com/MikeMcl/big.js/)\n\t *\n\t * @param {string} numStr The number to parse\n\t * @return {object} An object describing this number, containing the following keys:\n\t * - d : an array of digits containing leading zeros as necessary\n\t * - i : the number of the digits in `d` that are to the left of the decimal point\n\t * - e : the exponent for numbers that would need more than `MAX_DIGITS` digits in `d`\n\t *\n\t */\n\tfunction parse(numStr) {\n\t var exponent = 0, digits, numberOfIntegerDigits;\n\t var i, j, zeros;\n\t\n\t // Decimal point?\n\t if ((numberOfIntegerDigits = numStr.indexOf(DECIMAL_SEP)) > -1) {\n\t numStr = numStr.replace(DECIMAL_SEP, '');\n\t }\n\t\n\t // Exponential form?\n\t if ((i = numStr.search(/e/i)) > 0) {\n\t // Work out the exponent.\n\t if (numberOfIntegerDigits < 0) numberOfIntegerDigits = i;\n\t numberOfIntegerDigits += +numStr.slice(i + 1);\n\t numStr = numStr.substring(0, i);\n\t } else if (numberOfIntegerDigits < 0) {\n\t // There was no decimal point or exponent so it is an integer.\n\t numberOfIntegerDigits = numStr.length;\n\t }\n\t\n\t // Count the number of leading zeros.\n\t for (i = 0; numStr.charAt(i) == ZERO_CHAR; i++) {/* jshint noempty: false */}\n\t\n\t if (i == (zeros = numStr.length)) {\n\t // The digits are all zero.\n\t digits = [0];\n\t numberOfIntegerDigits = 1;\n\t } else {\n\t // Count the number of trailing zeros\n\t zeros--;\n\t while (numStr.charAt(zeros) == ZERO_CHAR) zeros--;\n\t\n\t // Trailing zeros are insignificant so ignore them\n\t numberOfIntegerDigits -= i;\n\t digits = [];\n\t // Convert string to array of digits without leading/trailing zeros.\n\t for (j = 0; i <= zeros; i++, j++) {\n\t digits[j] = +numStr.charAt(i);\n\t }\n\t }\n\t\n\t // If the number overflows the maximum allowed digits then use an exponent.\n\t if (numberOfIntegerDigits > MAX_DIGITS) {\n\t digits = digits.splice(0, MAX_DIGITS - 1);\n\t exponent = numberOfIntegerDigits - 1;\n\t numberOfIntegerDigits = 1;\n\t }\n\t\n\t return { d: digits, e: exponent, i: numberOfIntegerDigits };\n\t}\n\t\n\t/**\n\t * Round the parsed number to the specified number of decimal places\n\t * This function changed the parsedNumber in-place\n\t */\n\tfunction roundNumber(parsedNumber, fractionSize, minFrac, maxFrac) {\n\t var digits = parsedNumber.d;\n\t var fractionLen = digits.length - parsedNumber.i;\n\t\n\t // determine fractionSize if it is not specified; `+fractionSize` converts it to a number\n\t fractionSize = (isUndefined(fractionSize)) ? Math.min(Math.max(minFrac, fractionLen), maxFrac) : +fractionSize;\n\t\n\t // The index of the digit to where rounding is to occur\n\t var roundAt = fractionSize + parsedNumber.i;\n\t var digit = digits[roundAt];\n\t\n\t if (roundAt > 0) {\n\t digits.splice(roundAt);\n\t } else {\n\t // We rounded to zero so reset the parsedNumber\n\t parsedNumber.i = 1;\n\t digits.length = roundAt = fractionSize + 1;\n\t for (var i=0; i < roundAt; i++) digits[i] = 0;\n\t }\n\t\n\t if (digit >= 5) digits[roundAt - 1]++;\n\t\n\t // Pad out with zeros to get the required fraction length\n\t for (; fractionLen < fractionSize; fractionLen++) digits.push(0);\n\t\n\t\n\t // Do any carrying, e.g. a digit was rounded up to 10\n\t var carry = digits.reduceRight(function(carry, d, i, digits) {\n\t d = d + carry;\n\t digits[i] = d % 10;\n\t return Math.floor(d / 10);\n\t }, 0);\n\t if (carry) {\n\t digits.unshift(carry);\n\t parsedNumber.i++;\n\t }\n\t}\n\t\n\t/**\n\t * Format a number into a string\n\t * @param {number} number The number to format\n\t * @param {{\n\t * minFrac, // the minimum number of digits required in the fraction part of the number\n\t * maxFrac, // the maximum number of digits required in the fraction part of the number\n\t * gSize, // number of digits in each group of separated digits\n\t * lgSize, // number of digits in the last group of digits before the decimal separator\n\t * negPre, // the string to go in front of a negative number (e.g. `-` or `(`))\n\t * posPre, // the string to go in front of a positive number\n\t * negSuf, // the string to go after a negative number (e.g. `)`)\n\t * posSuf // the string to go after a positive number\n\t * }} pattern\n\t * @param {string} groupSep The string to separate groups of number (e.g. `,`)\n\t * @param {string} decimalSep The string to act as the decimal separator (e.g. `.`)\n\t * @param {[type]} fractionSize The size of the fractional part of the number\n\t * @return {string} The number formatted as a string\n\t */\n\tfunction formatNumber(number, pattern, groupSep, decimalSep, fractionSize) {\n\t\n\t if (!(isString(number) || isNumber(number)) || isNaN(number)) return '';\n\t\n\t var isInfinity = !isFinite(number);\n\t var isZero = false;\n\t var numStr = Math.abs(number) + '',\n\t formattedText = '',\n\t parsedNumber;\n\t\n\t if (isInfinity) {\n\t formattedText = '\\u221e';\n\t } else {\n\t parsedNumber = parse(numStr);\n\t\n\t roundNumber(parsedNumber, fractionSize, pattern.minFrac, pattern.maxFrac);\n\t\n\t var digits = parsedNumber.d;\n\t var integerLen = parsedNumber.i;\n\t var exponent = parsedNumber.e;\n\t var decimals = [];\n\t isZero = digits.reduce(function(isZero, d) { return isZero && !d; }, true);\n\t\n\t // pad zeros for small numbers\n\t while (integerLen < 0) {\n\t digits.unshift(0);\n\t integerLen++;\n\t }\n\t\n\t // extract decimals digits\n\t if (integerLen > 0) {\n\t decimals = digits.splice(integerLen, digits.length);\n\t } else {\n\t decimals = digits;\n\t digits = [0];\n\t }\n\t\n\t // format the integer digits with grouping separators\n\t var groups = [];\n\t if (digits.length >= pattern.lgSize) {\n\t groups.unshift(digits.splice(-pattern.lgSize, digits.length).join(''));\n\t }\n\t while (digits.length > pattern.gSize) {\n\t groups.unshift(digits.splice(-pattern.gSize, digits.length).join(''));\n\t }\n\t if (digits.length) {\n\t groups.unshift(digits.join(''));\n\t }\n\t formattedText = groups.join(groupSep);\n\t\n\t // append the decimal digits\n\t if (decimals.length) {\n\t formattedText += decimalSep + decimals.join('');\n\t }\n\t\n\t if (exponent) {\n\t formattedText += 'e+' + exponent;\n\t }\n\t }\n\t if (number < 0 && !isZero) {\n\t return pattern.negPre + formattedText + pattern.negSuf;\n\t } else {\n\t return pattern.posPre + formattedText + pattern.posSuf;\n\t }\n\t}\n\t\n\tfunction padNumber(num, digits, trim) {\n\t var neg = '';\n\t if (num < 0) {\n\t neg = '-';\n\t num = -num;\n\t }\n\t num = '' + num;\n\t while (num.length < digits) num = ZERO_CHAR + num;\n\t if (trim) {\n\t num = num.substr(num.length - digits);\n\t }\n\t return neg + num;\n\t}\n\t\n\t\n\tfunction dateGetter(name, size, offset, trim) {\n\t offset = offset || 0;\n\t return function(date) {\n\t var value = date['get' + name]();\n\t if (offset > 0 || value > -offset) {\n\t value += offset;\n\t }\n\t if (value === 0 && offset == -12) value = 12;\n\t return padNumber(value, size, trim);\n\t };\n\t}\n\t\n\tfunction dateStrGetter(name, shortForm) {\n\t return function(date, formats) {\n\t var value = date['get' + name]();\n\t var get = uppercase(shortForm ? ('SHORT' + name) : name);\n\t\n\t return formats[get][value];\n\t };\n\t}\n\t\n\tfunction timeZoneGetter(date, formats, offset) {\n\t var zone = -1 * offset;\n\t var paddedZone = (zone >= 0) ? \"+\" : \"\";\n\t\n\t paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) +\n\t padNumber(Math.abs(zone % 60), 2);\n\t\n\t return paddedZone;\n\t}\n\t\n\tfunction getFirstThursdayOfYear(year) {\n\t // 0 = index of January\n\t var dayOfWeekOnFirst = (new Date(year, 0, 1)).getDay();\n\t // 4 = index of Thursday (+1 to account for 1st = 5)\n\t // 11 = index of *next* Thursday (+1 account for 1st = 12)\n\t return new Date(year, 0, ((dayOfWeekOnFirst <= 4) ? 5 : 12) - dayOfWeekOnFirst);\n\t}\n\t\n\tfunction getThursdayThisWeek(datetime) {\n\t return new Date(datetime.getFullYear(), datetime.getMonth(),\n\t // 4 = index of Thursday\n\t datetime.getDate() + (4 - datetime.getDay()));\n\t}\n\t\n\tfunction weekGetter(size) {\n\t return function(date) {\n\t var firstThurs = getFirstThursdayOfYear(date.getFullYear()),\n\t thisThurs = getThursdayThisWeek(date);\n\t\n\t var diff = +thisThurs - +firstThurs,\n\t result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week\n\t\n\t return padNumber(result, size);\n\t };\n\t}\n\t\n\tfunction ampmGetter(date, formats) {\n\t return date.getHours() < 12 ? formats.AMPMS[0] : formats.AMPMS[1];\n\t}\n\t\n\tfunction eraGetter(date, formats) {\n\t return date.getFullYear() <= 0 ? formats.ERAS[0] : formats.ERAS[1];\n\t}\n\t\n\tfunction longEraGetter(date, formats) {\n\t return date.getFullYear() <= 0 ? formats.ERANAMES[0] : formats.ERANAMES[1];\n\t}\n\t\n\tvar DATE_FORMATS = {\n\t yyyy: dateGetter('FullYear', 4),\n\t yy: dateGetter('FullYear', 2, 0, true),\n\t y: dateGetter('FullYear', 1),\n\t MMMM: dateStrGetter('Month'),\n\t MMM: dateStrGetter('Month', true),\n\t MM: dateGetter('Month', 2, 1),\n\t M: dateGetter('Month', 1, 1),\n\t dd: dateGetter('Date', 2),\n\t d: dateGetter('Date', 1),\n\t HH: dateGetter('Hours', 2),\n\t H: dateGetter('Hours', 1),\n\t hh: dateGetter('Hours', 2, -12),\n\t h: dateGetter('Hours', 1, -12),\n\t mm: dateGetter('Minutes', 2),\n\t m: dateGetter('Minutes', 1),\n\t ss: dateGetter('Seconds', 2),\n\t s: dateGetter('Seconds', 1),\n\t // while ISO 8601 requires fractions to be prefixed with `.` or `,`\n\t // we can be just safely rely on using `sss` since we currently don't support single or two digit fractions\n\t sss: dateGetter('Milliseconds', 3),\n\t EEEE: dateStrGetter('Day'),\n\t EEE: dateStrGetter('Day', true),\n\t a: ampmGetter,\n\t Z: timeZoneGetter,\n\t ww: weekGetter(2),\n\t w: weekGetter(1),\n\t G: eraGetter,\n\t GG: eraGetter,\n\t GGG: eraGetter,\n\t GGGG: longEraGetter\n\t};\n\t\n\tvar DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,\n\t NUMBER_STRING = /^\\-?\\d+$/;\n\t\n\t/**\n\t * @ngdoc filter\n\t * @name date\n\t * @kind function\n\t *\n\t * @description\n\t * Formats `date` to a string based on the requested `format`.\n\t *\n\t * `format` string can be composed of the following elements:\n\t *\n\t * * `'yyyy'`: 4 digit representation of year (e.g. AD 1 => 0001, AD 2010 => 2010)\n\t * * `'yy'`: 2 digit representation of year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)\n\t * * `'y'`: 1 digit representation of year, e.g. (AD 1 => 1, AD 199 => 199)\n\t * * `'MMMM'`: Month in year (January-December)\n\t * * `'MMM'`: Month in year (Jan-Dec)\n\t * * `'MM'`: Month in year, padded (01-12)\n\t * * `'M'`: Month in year (1-12)\n\t * * `'dd'`: Day in month, padded (01-31)\n\t * * `'d'`: Day in month (1-31)\n\t * * `'EEEE'`: Day in Week,(Sunday-Saturday)\n\t * * `'EEE'`: Day in Week, (Sun-Sat)\n\t * * `'HH'`: Hour in day, padded (00-23)\n\t * * `'H'`: Hour in day (0-23)\n\t * * `'hh'`: Hour in AM/PM, padded (01-12)\n\t * * `'h'`: Hour in AM/PM, (1-12)\n\t * * `'mm'`: Minute in hour, padded (00-59)\n\t * * `'m'`: Minute in hour (0-59)\n\t * * `'ss'`: Second in minute, padded (00-59)\n\t * * `'s'`: Second in minute (0-59)\n\t * * `'sss'`: Millisecond in second, padded (000-999)\n\t * * `'a'`: AM/PM marker\n\t * * `'Z'`: 4 digit (+sign) representation of the timezone offset (-1200-+1200)\n\t * * `'ww'`: Week of year, padded (00-53). Week 01 is the week with the first Thursday of the year\n\t * * `'w'`: Week of year (0-53). Week 1 is the week with the first Thursday of the year\n\t * * `'G'`, `'GG'`, `'GGG'`: The abbreviated form of the era string (e.g. 'AD')\n\t * * `'GGGG'`: The long form of the era string (e.g. 'Anno Domini')\n\t *\n\t * `format` string can also be one of the following predefined\n\t * {@link guide/i18n localizable formats}:\n\t *\n\t * * `'medium'`: equivalent to `'MMM d, y h:mm:ss a'` for en_US locale\n\t * (e.g. Sep 3, 2010 12:05:08 PM)\n\t * * `'short'`: equivalent to `'M/d/yy h:mm a'` for en_US locale (e.g. 9/3/10 12:05 PM)\n\t * * `'fullDate'`: equivalent to `'EEEE, MMMM d, y'` for en_US locale\n\t * (e.g. Friday, September 3, 2010)\n\t * * `'longDate'`: equivalent to `'MMMM d, y'` for en_US locale (e.g. September 3, 2010)\n\t * * `'mediumDate'`: equivalent to `'MMM d, y'` for en_US locale (e.g. Sep 3, 2010)\n\t * * `'shortDate'`: equivalent to `'M/d/yy'` for en_US locale (e.g. 9/3/10)\n\t * * `'mediumTime'`: equivalent to `'h:mm:ss a'` for en_US locale (e.g. 12:05:08 PM)\n\t * * `'shortTime'`: equivalent to `'h:mm a'` for en_US locale (e.g. 12:05 PM)\n\t *\n\t * `format` string can contain literal values. These need to be escaped by surrounding with single quotes (e.g.\n\t * `\"h 'in the morning'\"`). In order to output a single quote, escape it - i.e., two single quotes in a sequence\n\t * (e.g. `\"h 'o''clock'\"`).\n\t *\n\t * @param {(Date|number|string)} date Date to format either as Date object, milliseconds (string or\n\t * number) or various ISO 8601 datetime string formats (e.g. yyyy-MM-ddTHH:mm:ss.sssZ and its\n\t * shorter versions like yyyy-MM-ddTHH:mmZ, yyyy-MM-dd or yyyyMMddTHHmmssZ). If no timezone is\n\t * specified in the string input, the time is considered to be in the local timezone.\n\t * @param {string=} format Formatting rules (see Description). If not specified,\n\t * `mediumDate` is used.\n\t * @param {string=} timezone Timezone to be used for formatting. It understands UTC/GMT and the\n\t * continental US time zone abbreviations, but for general use, use a time zone offset, for\n\t * example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian)\n\t * If not specified, the timezone of the browser will be used.\n\t * @returns {string} Formatted string or the input if input is not recognized as date/millis.\n\t *\n\t * @example\n\t \n\t \n\t {{1288323623006 | date:'medium'}}:\n\t {{1288323623006 | date:'medium'}}
\n\t {{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}:\n\t {{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}
\n\t {{1288323623006 | date:'MM/dd/yyyy @ h:mma'}}:\n\t {{'1288323623006' | date:'MM/dd/yyyy @ h:mma'}}
\n\t {{1288323623006 | date:\"MM/dd/yyyy 'at' h:mma\"}}:\n\t {{'1288323623006' | date:\"MM/dd/yyyy 'at' h:mma\"}}
\n\t
\n\t \n\t it('should format date', function() {\n\t expect(element(by.binding(\"1288323623006 | date:'medium'\")).getText()).\n\t toMatch(/Oct 2\\d, 2010 \\d{1,2}:\\d{2}:\\d{2} (AM|PM)/);\n\t expect(element(by.binding(\"1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'\")).getText()).\n\t toMatch(/2010\\-10\\-2\\d \\d{2}:\\d{2}:\\d{2} (\\-|\\+)?\\d{4}/);\n\t expect(element(by.binding(\"'1288323623006' | date:'MM/dd/yyyy @ h:mma'\")).getText()).\n\t toMatch(/10\\/2\\d\\/2010 @ \\d{1,2}:\\d{2}(AM|PM)/);\n\t expect(element(by.binding(\"'1288323623006' | date:\\\"MM/dd/yyyy 'at' h:mma\\\"\")).getText()).\n\t toMatch(/10\\/2\\d\\/2010 at \\d{1,2}:\\d{2}(AM|PM)/);\n\t });\n\t \n\t
\n\t */\n\tdateFilter.$inject = ['$locale'];\n\tfunction dateFilter($locale) {\n\t\n\t\n\t var R_ISO8601_STR = /^(\\d{4})-?(\\d\\d)-?(\\d\\d)(?:T(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:\\.(\\d+))?)?)?(Z|([+-])(\\d\\d):?(\\d\\d))?)?$/;\n\t // 1 2 3 4 5 6 7 8 9 10 11\n\t function jsonStringToDate(string) {\n\t var match;\n\t if (match = string.match(R_ISO8601_STR)) {\n\t var date = new Date(0),\n\t tzHour = 0,\n\t tzMin = 0,\n\t dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear,\n\t timeSetter = match[8] ? date.setUTCHours : date.setHours;\n\t\n\t if (match[9]) {\n\t tzHour = toInt(match[9] + match[10]);\n\t tzMin = toInt(match[9] + match[11]);\n\t }\n\t dateSetter.call(date, toInt(match[1]), toInt(match[2]) - 1, toInt(match[3]));\n\t var h = toInt(match[4] || 0) - tzHour;\n\t var m = toInt(match[5] || 0) - tzMin;\n\t var s = toInt(match[6] || 0);\n\t var ms = Math.round(parseFloat('0.' + (match[7] || 0)) * 1000);\n\t timeSetter.call(date, h, m, s, ms);\n\t return date;\n\t }\n\t return string;\n\t }\n\t\n\t\n\t return function(date, format, timezone) {\n\t var text = '',\n\t parts = [],\n\t fn, match;\n\t\n\t format = format || 'mediumDate';\n\t format = $locale.DATETIME_FORMATS[format] || format;\n\t if (isString(date)) {\n\t date = NUMBER_STRING.test(date) ? toInt(date) : jsonStringToDate(date);\n\t }\n\t\n\t if (isNumber(date)) {\n\t date = new Date(date);\n\t }\n\t\n\t if (!isDate(date) || !isFinite(date.getTime())) {\n\t return date;\n\t }\n\t\n\t while (format) {\n\t match = DATE_FORMATS_SPLIT.exec(format);\n\t if (match) {\n\t parts = concat(parts, match, 1);\n\t format = parts.pop();\n\t } else {\n\t parts.push(format);\n\t format = null;\n\t }\n\t }\n\t\n\t var dateTimezoneOffset = date.getTimezoneOffset();\n\t if (timezone) {\n\t dateTimezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);\n\t date = convertTimezoneToLocal(date, timezone, true);\n\t }\n\t forEach(parts, function(value) {\n\t fn = DATE_FORMATS[value];\n\t text += fn ? fn(date, $locale.DATETIME_FORMATS, dateTimezoneOffset)\n\t : value === \"''\" ? \"'\" : value.replace(/(^'|'$)/g, '').replace(/''/g, \"'\");\n\t });\n\t\n\t return text;\n\t };\n\t}\n\t\n\t\n\t/**\n\t * @ngdoc filter\n\t * @name json\n\t * @kind function\n\t *\n\t * @description\n\t * Allows you to convert a JavaScript object into JSON string.\n\t *\n\t * This filter is mostly useful for debugging. When using the double curly {{value}} notation\n\t * the binding is automatically converted to JSON.\n\t *\n\t * @param {*} object Any JavaScript object (including arrays and primitive types) to filter.\n\t * @param {number=} spacing The number of spaces to use per indentation, defaults to 2.\n\t * @returns {string} JSON string.\n\t *\n\t *\n\t * @example\n\t \n\t \n\t
{{ {'name':'value'} | json }}
\n\t
{{ {'name':'value'} | json:4 }}
\n\t
\n\t \n\t it('should jsonify filtered objects', function() {\n\t expect(element(by.id('default-spacing')).getText()).toMatch(/\\{\\n \"name\": ?\"value\"\\n}/);\n\t expect(element(by.id('custom-spacing')).getText()).toMatch(/\\{\\n \"name\": ?\"value\"\\n}/);\n\t });\n\t \n\t
\n\t *\n\t */\n\tfunction jsonFilter() {\n\t return function(object, spacing) {\n\t if (isUndefined(spacing)) {\n\t spacing = 2;\n\t }\n\t return toJson(object, spacing);\n\t };\n\t}\n\t\n\t\n\t/**\n\t * @ngdoc filter\n\t * @name lowercase\n\t * @kind function\n\t * @description\n\t * Converts string to lowercase.\n\t * @see angular.lowercase\n\t */\n\tvar lowercaseFilter = valueFn(lowercase);\n\t\n\t\n\t/**\n\t * @ngdoc filter\n\t * @name uppercase\n\t * @kind function\n\t * @description\n\t * Converts string to uppercase.\n\t * @see angular.uppercase\n\t */\n\tvar uppercaseFilter = valueFn(uppercase);\n\t\n\t/**\n\t * @ngdoc filter\n\t * @name limitTo\n\t * @kind function\n\t *\n\t * @description\n\t * Creates a new array or string containing only a specified number of elements. The elements\n\t * are taken from either the beginning or the end of the source array, string or number, as specified by\n\t * the value and sign (positive or negative) of `limit`. If a number is used as input, it is\n\t * converted to a string.\n\t *\n\t * @param {Array|string|number} input Source array, string or number to be limited.\n\t * @param {string|number} limit The length of the returned array or string. If the `limit` number\n\t * is positive, `limit` number of items from the beginning of the source array/string are copied.\n\t * If the number is negative, `limit` number of items from the end of the source array/string\n\t * are copied. The `limit` will be trimmed if it exceeds `array.length`. If `limit` is undefined,\n\t * the input will be returned unchanged.\n\t * @param {(string|number)=} begin Index at which to begin limitation. As a negative index, `begin`\n\t * indicates an offset from the end of `input`. Defaults to `0`.\n\t * @returns {Array|string} A new sub-array or substring of length `limit` or less if input array\n\t * had less than `limit` elements.\n\t *\n\t * @example\n\t \n\t \n\t \n\t
\n\t \n\t

Output numbers: {{ numbers | limitTo:numLimit }}

\n\t \n\t

Output letters: {{ letters | limitTo:letterLimit }}

\n\t \n\t

Output long number: {{ longNumber | limitTo:longNumberLimit }}

\n\t
\n\t
\n\t \n\t var numLimitInput = element(by.model('numLimit'));\n\t var letterLimitInput = element(by.model('letterLimit'));\n\t var longNumberLimitInput = element(by.model('longNumberLimit'));\n\t var limitedNumbers = element(by.binding('numbers | limitTo:numLimit'));\n\t var limitedLetters = element(by.binding('letters | limitTo:letterLimit'));\n\t var limitedLongNumber = element(by.binding('longNumber | limitTo:longNumberLimit'));\n\t\n\t it('should limit the number array to first three items', function() {\n\t expect(numLimitInput.getAttribute('value')).toBe('3');\n\t expect(letterLimitInput.getAttribute('value')).toBe('3');\n\t expect(longNumberLimitInput.getAttribute('value')).toBe('3');\n\t expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3]');\n\t expect(limitedLetters.getText()).toEqual('Output letters: abc');\n\t expect(limitedLongNumber.getText()).toEqual('Output long number: 234');\n\t });\n\t\n\t // There is a bug in safari and protractor that doesn't like the minus key\n\t // it('should update the output when -3 is entered', function() {\n\t // numLimitInput.clear();\n\t // numLimitInput.sendKeys('-3');\n\t // letterLimitInput.clear();\n\t // letterLimitInput.sendKeys('-3');\n\t // longNumberLimitInput.clear();\n\t // longNumberLimitInput.sendKeys('-3');\n\t // expect(limitedNumbers.getText()).toEqual('Output numbers: [7,8,9]');\n\t // expect(limitedLetters.getText()).toEqual('Output letters: ghi');\n\t // expect(limitedLongNumber.getText()).toEqual('Output long number: 342');\n\t // });\n\t\n\t it('should not exceed the maximum size of input array', function() {\n\t numLimitInput.clear();\n\t numLimitInput.sendKeys('100');\n\t letterLimitInput.clear();\n\t letterLimitInput.sendKeys('100');\n\t longNumberLimitInput.clear();\n\t longNumberLimitInput.sendKeys('100');\n\t expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3,4,5,6,7,8,9]');\n\t expect(limitedLetters.getText()).toEqual('Output letters: abcdefghi');\n\t expect(limitedLongNumber.getText()).toEqual('Output long number: 2345432342');\n\t });\n\t \n\t
\n\t*/\n\tfunction limitToFilter() {\n\t return function(input, limit, begin) {\n\t if (Math.abs(Number(limit)) === Infinity) {\n\t limit = Number(limit);\n\t } else {\n\t limit = toInt(limit);\n\t }\n\t if (isNaN(limit)) return input;\n\t\n\t if (isNumber(input)) input = input.toString();\n\t if (!isArray(input) && !isString(input)) return input;\n\t\n\t begin = (!begin || isNaN(begin)) ? 0 : toInt(begin);\n\t begin = (begin < 0) ? Math.max(0, input.length + begin) : begin;\n\t\n\t if (limit >= 0) {\n\t return input.slice(begin, begin + limit);\n\t } else {\n\t if (begin === 0) {\n\t return input.slice(limit, input.length);\n\t } else {\n\t return input.slice(Math.max(0, begin + limit), begin);\n\t }\n\t }\n\t };\n\t}\n\t\n\t/**\n\t * @ngdoc filter\n\t * @name orderBy\n\t * @kind function\n\t *\n\t * @description\n\t * Orders a specified `array` by the `expression` predicate. It is ordered alphabetically\n\t * for strings and numerically for numbers. Note: if you notice numbers are not being sorted\n\t * as expected, make sure they are actually being saved as numbers and not strings.\n\t *\n\t * @param {Array} array The array to sort.\n\t * @param {function(*)|string|Array.<(function(*)|string)>=} expression A predicate to be\n\t * used by the comparator to determine the order of elements.\n\t *\n\t * Can be one of:\n\t *\n\t * - `function`: Getter function. The result of this function will be sorted using the\n\t * `<`, `===`, `>` operator.\n\t * - `string`: An Angular expression. The result of this expression is used to compare elements\n\t * (for example `name` to sort by a property called `name` or `name.substr(0, 3)` to sort by\n\t * 3 first characters of a property called `name`). The result of a constant expression\n\t * is interpreted as a property name to be used in comparisons (for example `\"special name\"`\n\t * to sort object by the value of their `special name` property). An expression can be\n\t * optionally prefixed with `+` or `-` to control ascending or descending sort order\n\t * (for example, `+name` or `-name`). If no property is provided, (e.g. `'+'`) then the array\n\t * element itself is used to compare where sorting.\n\t * - `Array`: An array of function or string predicates. The first predicate in the array\n\t * is used for sorting, but when two items are equivalent, the next predicate is used.\n\t *\n\t * If the predicate is missing or empty then it defaults to `'+'`.\n\t *\n\t * @param {boolean=} reverse Reverse the order of the array.\n\t * @returns {Array} Sorted copy of the source array.\n\t *\n\t *\n\t * @example\n\t * The example below demonstrates a simple ngRepeat, where the data is sorted\n\t * by age in descending order (predicate is set to `'-age'`).\n\t * `reverse` is not set, which means it defaults to `false`.\n\t \n\t \n\t
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
NamePhone NumberAge
{{friend.name}}{{friend.phone}}{{friend.age}}
\n\t
\n\t
\n\t \n\t angular.module('orderByExample', [])\n\t .controller('ExampleController', ['$scope', function($scope) {\n\t $scope.friends =\n\t [{name:'John', phone:'555-1212', age:10},\n\t {name:'Mary', phone:'555-9876', age:19},\n\t {name:'Mike', phone:'555-4321', age:21},\n\t {name:'Adam', phone:'555-5678', age:35},\n\t {name:'Julie', phone:'555-8765', age:29}];\n\t }]);\n\t \n\t
\n\t *\n\t * The predicate and reverse parameters can be controlled dynamically through scope properties,\n\t * as shown in the next example.\n\t * @example\n\t \n\t \n\t
\n\t
Sorting predicate = {{predicate}}; reverse = {{reverse}}
\n\t
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
{{friend.name}}{{friend.phone}}{{friend.age}}
\n\t
\n\t
\n\t \n\t angular.module('orderByExample', [])\n\t .controller('ExampleController', ['$scope', function($scope) {\n\t $scope.friends =\n\t [{name:'John', phone:'555-1212', age:10},\n\t {name:'Mary', phone:'555-9876', age:19},\n\t {name:'Mike', phone:'555-4321', age:21},\n\t {name:'Adam', phone:'555-5678', age:35},\n\t {name:'Julie', phone:'555-8765', age:29}];\n\t $scope.predicate = 'age';\n\t $scope.reverse = true;\n\t $scope.order = function(predicate) {\n\t $scope.reverse = ($scope.predicate === predicate) ? !$scope.reverse : false;\n\t $scope.predicate = predicate;\n\t };\n\t }]);\n\t \n\t \n\t .sortorder:after {\n\t content: '\\25b2';\n\t }\n\t .sortorder.reverse:after {\n\t content: '\\25bc';\n\t }\n\t \n\t
\n\t *\n\t * It's also possible to call the orderBy filter manually, by injecting `$filter`, retrieving the\n\t * filter routine with `$filter('orderBy')`, and calling the returned filter routine with the\n\t * desired parameters.\n\t *\n\t * Example:\n\t *\n\t * @example\n\t \n\t \n\t
\n\t
Sorting predicate = {{predicate}}; reverse = {{reverse}}
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
{{friend.name}}{{friend.phone}}{{friend.age}}
\n\t
\n\t
\n\t\n\t \n\t angular.module('orderByExample', [])\n\t .controller('ExampleController', ['$scope', '$filter', function($scope, $filter) {\n\t var orderBy = $filter('orderBy');\n\t $scope.friends = [\n\t { name: 'John', phone: '555-1212', age: 10 },\n\t { name: 'Mary', phone: '555-9876', age: 19 },\n\t { name: 'Mike', phone: '555-4321', age: 21 },\n\t { name: 'Adam', phone: '555-5678', age: 35 },\n\t { name: 'Julie', phone: '555-8765', age: 29 }\n\t ];\n\t $scope.order = function(predicate) {\n\t $scope.predicate = predicate;\n\t $scope.reverse = ($scope.predicate === predicate) ? !$scope.reverse : false;\n\t $scope.friends = orderBy($scope.friends, predicate, $scope.reverse);\n\t };\n\t $scope.order('age', true);\n\t }]);\n\t \n\t\n\t \n\t .sortorder:after {\n\t content: '\\25b2';\n\t }\n\t .sortorder.reverse:after {\n\t content: '\\25bc';\n\t }\n\t \n\t
\n\t */\n\torderByFilter.$inject = ['$parse'];\n\tfunction orderByFilter($parse) {\n\t return function(array, sortPredicate, reverseOrder) {\n\t\n\t if (!(isArrayLike(array))) return array;\n\t\n\t if (!isArray(sortPredicate)) { sortPredicate = [sortPredicate]; }\n\t if (sortPredicate.length === 0) { sortPredicate = ['+']; }\n\t\n\t var predicates = processPredicates(sortPredicate, reverseOrder);\n\t // Add a predicate at the end that evaluates to the element index. This makes the\n\t // sort stable as it works as a tie-breaker when all the input predicates cannot\n\t // distinguish between two elements.\n\t predicates.push({ get: function() { return {}; }, descending: reverseOrder ? -1 : 1});\n\t\n\t // The next three lines are a version of a Swartzian Transform idiom from Perl\n\t // (sometimes called the Decorate-Sort-Undecorate idiom)\n\t // See https://en.wikipedia.org/wiki/Schwartzian_transform\n\t var compareValues = Array.prototype.map.call(array, getComparisonObject);\n\t compareValues.sort(doComparison);\n\t array = compareValues.map(function(item) { return item.value; });\n\t\n\t return array;\n\t\n\t function getComparisonObject(value, index) {\n\t return {\n\t value: value,\n\t predicateValues: predicates.map(function(predicate) {\n\t return getPredicateValue(predicate.get(value), index);\n\t })\n\t };\n\t }\n\t\n\t function doComparison(v1, v2) {\n\t var result = 0;\n\t for (var index=0, length = predicates.length; index < length; ++index) {\n\t result = compare(v1.predicateValues[index], v2.predicateValues[index]) * predicates[index].descending;\n\t if (result) break;\n\t }\n\t return result;\n\t }\n\t };\n\t\n\t function processPredicates(sortPredicate, reverseOrder) {\n\t reverseOrder = reverseOrder ? -1 : 1;\n\t return sortPredicate.map(function(predicate) {\n\t var descending = 1, get = identity;\n\t\n\t if (isFunction(predicate)) {\n\t get = predicate;\n\t } else if (isString(predicate)) {\n\t if ((predicate.charAt(0) == '+' || predicate.charAt(0) == '-')) {\n\t descending = predicate.charAt(0) == '-' ? -1 : 1;\n\t predicate = predicate.substring(1);\n\t }\n\t if (predicate !== '') {\n\t get = $parse(predicate);\n\t if (get.constant) {\n\t var key = get();\n\t get = function(value) { return value[key]; };\n\t }\n\t }\n\t }\n\t return { get: get, descending: descending * reverseOrder };\n\t });\n\t }\n\t\n\t function isPrimitive(value) {\n\t switch (typeof value) {\n\t case 'number': /* falls through */\n\t case 'boolean': /* falls through */\n\t case 'string':\n\t return true;\n\t default:\n\t return false;\n\t }\n\t }\n\t\n\t function objectValue(value, index) {\n\t // If `valueOf` is a valid function use that\n\t if (typeof value.valueOf === 'function') {\n\t value = value.valueOf();\n\t if (isPrimitive(value)) return value;\n\t }\n\t // If `toString` is a valid function and not the one from `Object.prototype` use that\n\t if (hasCustomToString(value)) {\n\t value = value.toString();\n\t if (isPrimitive(value)) return value;\n\t }\n\t // We have a basic object so we use the position of the object in the collection\n\t return index;\n\t }\n\t\n\t function getPredicateValue(value, index) {\n\t var type = typeof value;\n\t if (value === null) {\n\t type = 'string';\n\t value = 'null';\n\t } else if (type === 'string') {\n\t value = value.toLowerCase();\n\t } else if (type === 'object') {\n\t value = objectValue(value, index);\n\t }\n\t return { value: value, type: type };\n\t }\n\t\n\t function compare(v1, v2) {\n\t var result = 0;\n\t if (v1.type === v2.type) {\n\t if (v1.value !== v2.value) {\n\t result = v1.value < v2.value ? -1 : 1;\n\t }\n\t } else {\n\t result = v1.type < v2.type ? -1 : 1;\n\t }\n\t return result;\n\t }\n\t}\n\t\n\tfunction ngDirective(directive) {\n\t if (isFunction(directive)) {\n\t directive = {\n\t link: directive\n\t };\n\t }\n\t directive.restrict = directive.restrict || 'AC';\n\t return valueFn(directive);\n\t}\n\t\n\t/**\n\t * @ngdoc directive\n\t * @name a\n\t * @restrict E\n\t *\n\t * @description\n\t * Modifies the default behavior of the html A tag so that the default action is prevented when\n\t * the href attribute is empty.\n\t *\n\t * This change permits the easy creation of action links with the `ngClick` directive\n\t * without changing the location or causing page reloads, e.g.:\n\t * `Add Item`\n\t */\n\tvar htmlAnchorDirective = valueFn({\n\t restrict: 'E',\n\t compile: function(element, attr) {\n\t if (!attr.href && !attr.xlinkHref) {\n\t return function(scope, element) {\n\t // If the linked element is not an anchor tag anymore, do nothing\n\t if (element[0].nodeName.toLowerCase() !== 'a') return;\n\t\n\t // SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute.\n\t var href = toString.call(element.prop('href')) === '[object SVGAnimatedString]' ?\n\t 'xlink:href' : 'href';\n\t element.on('click', function(event) {\n\t // if we have no href url, then don't navigate anywhere.\n\t if (!element.attr(href)) {\n\t event.preventDefault();\n\t }\n\t });\n\t };\n\t }\n\t }\n\t});\n\t\n\t/**\n\t * @ngdoc directive\n\t * @name ngHref\n\t * @restrict A\n\t * @priority 99\n\t *\n\t * @description\n\t * Using Angular markup like `{{hash}}` in an href attribute will\n\t * make the link go to the wrong URL if the user clicks it before\n\t * Angular has a chance to replace the `{{hash}}` markup with its\n\t * value. Until Angular replaces the markup the link will be broken\n\t * and will most likely return a 404 error. The `ngHref` directive\n\t * solves this problem.\n\t *\n\t * The wrong way to write it:\n\t * ```html\n\t * link1\n\t * ```\n\t *\n\t * The correct way to write it:\n\t * ```html\n\t * link1\n\t * ```\n\t *\n\t * @element A\n\t * @param {template} ngHref any string which can contain `{{}}` markup.\n\t *\n\t * @example\n\t * This example shows various combinations of `href`, `ng-href` and `ng-click` attributes\n\t * in links and their different behaviors:\n\t \n\t \n\t
\n\t link 1 (link, don't reload)
\n\t link 2 (link, don't reload)
\n\t link 3 (link, reload!)
\n\t anchor (link, don't reload)
\n\t anchor (no link)
\n\t link (link, change location)\n\t
\n\t \n\t it('should execute ng-click but not reload when href without value', function() {\n\t element(by.id('link-1')).click();\n\t expect(element(by.model('value')).getAttribute('value')).toEqual('1');\n\t expect(element(by.id('link-1')).getAttribute('href')).toBe('');\n\t });\n\t\n\t it('should execute ng-click but not reload when href empty string', function() {\n\t element(by.id('link-2')).click();\n\t expect(element(by.model('value')).getAttribute('value')).toEqual('2');\n\t expect(element(by.id('link-2')).getAttribute('href')).toBe('');\n\t });\n\t\n\t it('should execute ng-click and change url when ng-href specified', function() {\n\t expect(element(by.id('link-3')).getAttribute('href')).toMatch(/\\/123$/);\n\t\n\t element(by.id('link-3')).click();\n\t\n\t // At this point, we navigate away from an Angular page, so we need\n\t // to use browser.driver to get the base webdriver.\n\t\n\t browser.wait(function() {\n\t return browser.driver.getCurrentUrl().then(function(url) {\n\t return url.match(/\\/123$/);\n\t });\n\t }, 5000, 'page should navigate to /123');\n\t });\n\t\n\t it('should execute ng-click but not reload when href empty string and name specified', function() {\n\t element(by.id('link-4')).click();\n\t expect(element(by.model('value')).getAttribute('value')).toEqual('4');\n\t expect(element(by.id('link-4')).getAttribute('href')).toBe('');\n\t });\n\t\n\t it('should execute ng-click but not reload when no href but name specified', function() {\n\t element(by.id('link-5')).click();\n\t expect(element(by.model('value')).getAttribute('value')).toEqual('5');\n\t expect(element(by.id('link-5')).getAttribute('href')).toBe(null);\n\t });\n\t\n\t it('should only change url when only ng-href', function() {\n\t element(by.model('value')).clear();\n\t element(by.model('value')).sendKeys('6');\n\t expect(element(by.id('link-6')).getAttribute('href')).toMatch(/\\/6$/);\n\t\n\t element(by.id('link-6')).click();\n\t\n\t // At this point, we navigate away from an Angular page, so we need\n\t // to use browser.driver to get the base webdriver.\n\t browser.wait(function() {\n\t return browser.driver.getCurrentUrl().then(function(url) {\n\t return url.match(/\\/6$/);\n\t });\n\t }, 5000, 'page should navigate to /6');\n\t });\n\t \n\t
\n\t */\n\t\n\t/**\n\t * @ngdoc directive\n\t * @name ngSrc\n\t * @restrict A\n\t * @priority 99\n\t *\n\t * @description\n\t * Using Angular markup like `{{hash}}` in a `src` attribute doesn't\n\t * work right: The browser will fetch from the URL with the literal\n\t * text `{{hash}}` until Angular replaces the expression inside\n\t * `{{hash}}`. The `ngSrc` directive solves this problem.\n\t *\n\t * The buggy way to write it:\n\t * ```html\n\t * \"Description\"/\n\t * ```\n\t *\n\t * The correct way to write it:\n\t * ```html\n\t * \"Description\"\n\t * ```\n\t *\n\t * @element IMG\n\t * @param {template} ngSrc any string which can contain `{{}}` markup.\n\t */\n\t\n\t/**\n\t * @ngdoc directive\n\t * @name ngSrcset\n\t * @restrict A\n\t * @priority 99\n\t *\n\t * @description\n\t * Using Angular markup like `{{hash}}` in a `srcset` attribute doesn't\n\t * work right: The browser will fetch from the URL with the literal\n\t * text `{{hash}}` until Angular replaces the expression inside\n\t * `{{hash}}`. The `ngSrcset` directive solves this problem.\n\t *\n\t * The buggy way to write it:\n\t * ```html\n\t * \"Description\"/\n\t * ```\n\t *\n\t * The correct way to write it:\n\t * ```html\n\t * \"Description\"\n\t * ```\n\t *\n\t * @element IMG\n\t * @param {template} ngSrcset any string which can contain `{{}}` markup.\n\t */\n\t\n\t/**\n\t * @ngdoc directive\n\t * @name ngDisabled\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t *\n\t * This directive sets the `disabled` attribute on the element if the\n\t * {@link guide/expression expression} inside `ngDisabled` evaluates to truthy.\n\t *\n\t * A special directive is necessary because we cannot use interpolation inside the `disabled`\n\t * attribute. See the {@link guide/interpolation interpolation guide} for more info.\n\t *\n\t * @example\n\t \n\t \n\t
\n\t \n\t
\n\t \n\t it('should toggle button', function() {\n\t expect(element(by.css('button')).getAttribute('disabled')).toBeFalsy();\n\t element(by.model('checked')).click();\n\t expect(element(by.css('button')).getAttribute('disabled')).toBeTruthy();\n\t });\n\t \n\t
\n\t *\n\t * @element INPUT\n\t * @param {expression} ngDisabled If the {@link guide/expression expression} is truthy,\n\t * then the `disabled` attribute will be set on the element\n\t */\n\t\n\t\n\t/**\n\t * @ngdoc directive\n\t * @name ngChecked\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t * Sets the `checked` attribute on the element, if the expression inside `ngChecked` is truthy.\n\t *\n\t * Note that this directive should not be used together with {@link ngModel `ngModel`},\n\t * as this can lead to unexpected behavior.\n\t *\n\t * A special directive is necessary because we cannot use interpolation inside the `checked`\n\t * attribute. See the {@link guide/interpolation interpolation guide} for more info.\n\t *\n\t * @example\n\t \n\t \n\t
\n\t \n\t
\n\t \n\t it('should check both checkBoxes', function() {\n\t expect(element(by.id('checkSlave')).getAttribute('checked')).toBeFalsy();\n\t element(by.model('master')).click();\n\t expect(element(by.id('checkSlave')).getAttribute('checked')).toBeTruthy();\n\t });\n\t \n\t
\n\t *\n\t * @element INPUT\n\t * @param {expression} ngChecked If the {@link guide/expression expression} is truthy,\n\t * then the `checked` attribute will be set on the element\n\t */\n\t\n\t\n\t/**\n\t * @ngdoc directive\n\t * @name ngReadonly\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t *\n\t * Sets the `readOnly` attribute on the element, if the expression inside `ngReadonly` is truthy.\n\t *\n\t * A special directive is necessary because we cannot use interpolation inside the `readOnly`\n\t * attribute. See the {@link guide/interpolation interpolation guide} for more info.\n\t *\n\t * @example\n\t \n\t \n\t
\n\t \n\t
\n\t \n\t it('should toggle readonly attr', function() {\n\t expect(element(by.css('[type=\"text\"]')).getAttribute('readonly')).toBeFalsy();\n\t element(by.model('checked')).click();\n\t expect(element(by.css('[type=\"text\"]')).getAttribute('readonly')).toBeTruthy();\n\t });\n\t \n\t
\n\t *\n\t * @element INPUT\n\t * @param {expression} ngReadonly If the {@link guide/expression expression} is truthy,\n\t * then special attribute \"readonly\" will be set on the element\n\t */\n\t\n\t\n\t/**\n\t * @ngdoc directive\n\t * @name ngSelected\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t *\n\t * Sets the `selected` attribute on the element, if the expression inside `ngSelected` is truthy.\n\t *\n\t * A special directive is necessary because we cannot use interpolation inside the `selected`\n\t * attribute. See the {@link guide/interpolation interpolation guide} for more info.\n\t *\n\t * @example\n\t \n\t \n\t
\n\t \n\t
\n\t \n\t it('should select Greetings!', function() {\n\t expect(element(by.id('greet')).getAttribute('selected')).toBeFalsy();\n\t element(by.model('selected')).click();\n\t expect(element(by.id('greet')).getAttribute('selected')).toBeTruthy();\n\t });\n\t \n\t
\n\t *\n\t * @element OPTION\n\t * @param {expression} ngSelected If the {@link guide/expression expression} is truthy,\n\t * then special attribute \"selected\" will be set on the element\n\t */\n\t\n\t/**\n\t * @ngdoc directive\n\t * @name ngOpen\n\t * @restrict A\n\t * @priority 100\n\t *\n\t * @description\n\t *\n\t * Sets the `open` attribute on the element, if the expression inside `ngOpen` is truthy.\n\t *\n\t * A special directive is necessary because we cannot use interpolation inside the `open`\n\t * attribute. See the {@link guide/interpolation interpolation guide} for more info.\n\t *\n\t * @example\n\t \n\t \n\t
\n\t
\n\t Show/Hide me\n\t
\n\t
\n\t \n\t it('should toggle open', function() {\n\t expect(element(by.id('details')).getAttribute('open')).toBeFalsy();\n\t element(by.model('open')).click();\n\t expect(element(by.id('details')).getAttribute('open')).toBeTruthy();\n\t });\n\t \n\t
\n\t *\n\t * @element DETAILS\n\t * @param {expression} ngOpen If the {@link guide/expression expression} is truthy,\n\t * then special attribute \"open\" will be set on the element\n\t */\n\t\n\tvar ngAttributeAliasDirectives = {};\n\t\n\t// boolean attrs are evaluated\n\tforEach(BOOLEAN_ATTR, function(propName, attrName) {\n\t // binding to multiple is not supported\n\t if (propName == \"multiple\") return;\n\t\n\t function defaultLinkFn(scope, element, attr) {\n\t scope.$watch(attr[normalized], function ngBooleanAttrWatchAction(value) {\n\t attr.$set(attrName, !!value);\n\t });\n\t }\n\t\n\t var normalized = directiveNormalize('ng-' + attrName);\n\t var linkFn = defaultLinkFn;\n\t\n\t if (propName === 'checked') {\n\t linkFn = function(scope, element, attr) {\n\t // ensuring ngChecked doesn't interfere with ngModel when both are set on the same input\n\t if (attr.ngModel !== attr[normalized]) {\n\t defaultLinkFn(scope, element, attr);\n\t }\n\t };\n\t }\n\t\n\t ngAttributeAliasDirectives[normalized] = function() {\n\t return {\n\t restrict: 'A',\n\t priority: 100,\n\t link: linkFn\n\t };\n\t };\n\t});\n\t\n\t// aliased input attrs are evaluated\n\tforEach(ALIASED_ATTR, function(htmlAttr, ngAttr) {\n\t ngAttributeAliasDirectives[ngAttr] = function() {\n\t return {\n\t priority: 100,\n\t link: function(scope, element, attr) {\n\t //special case ngPattern when a literal regular expression value\n\t //is used as the expression (this way we don't have to watch anything).\n\t if (ngAttr === \"ngPattern\" && attr.ngPattern.charAt(0) == \"/\") {\n\t var match = attr.ngPattern.match(REGEX_STRING_REGEXP);\n\t if (match) {\n\t attr.$set(\"ngPattern\", new RegExp(match[1], match[2]));\n\t return;\n\t }\n\t }\n\t\n\t scope.$watch(attr[ngAttr], function ngAttrAliasWatchAction(value) {\n\t attr.$set(ngAttr, value);\n\t });\n\t }\n\t };\n\t };\n\t});\n\t\n\t// ng-src, ng-srcset, ng-href are interpolated\n\tforEach(['src', 'srcset', 'href'], function(attrName) {\n\t var normalized = directiveNormalize('ng-' + attrName);\n\t ngAttributeAliasDirectives[normalized] = function() {\n\t return {\n\t priority: 99, // it needs to run after the attributes are interpolated\n\t link: function(scope, element, attr) {\n\t var propName = attrName,\n\t name = attrName;\n\t\n\t if (attrName === 'href' &&\n\t toString.call(element.prop('href')) === '[object SVGAnimatedString]') {\n\t name = 'xlinkHref';\n\t attr.$attr[name] = 'xlink:href';\n\t propName = null;\n\t }\n\t\n\t attr.$observe(normalized, function(value) {\n\t if (!value) {\n\t if (attrName === 'href') {\n\t attr.$set(name, null);\n\t }\n\t return;\n\t }\n\t\n\t attr.$set(name, value);\n\t\n\t // on IE, if \"ng:src\" directive declaration is used and \"src\" attribute doesn't exist\n\t // then calling element.setAttribute('src', 'foo') doesn't do anything, so we need\n\t // to set the property as well to achieve the desired effect.\n\t // we use attr[attrName] value since $set can sanitize the url.\n\t if (msie && propName) element.prop(propName, attr[name]);\n\t });\n\t }\n\t };\n\t };\n\t});\n\t\n\t/* global -nullFormCtrl, -SUBMITTED_CLASS, addSetValidityMethod: true\n\t */\n\tvar nullFormCtrl = {\n\t $addControl: noop,\n\t $$renameControl: nullFormRenameControl,\n\t $removeControl: noop,\n\t $setValidity: noop,\n\t $setDirty: noop,\n\t $setPristine: noop,\n\t $setSubmitted: noop\n\t},\n\tSUBMITTED_CLASS = 'ng-submitted';\n\t\n\tfunction nullFormRenameControl(control, name) {\n\t control.$name = name;\n\t}\n\t\n\t/**\n\t * @ngdoc type\n\t * @name form.FormController\n\t *\n\t * @property {boolean} $pristine True if user has not interacted with the form yet.\n\t * @property {boolean} $dirty True if user has already interacted with the form.\n\t * @property {boolean} $valid True if all of the containing forms and controls are valid.\n\t * @property {boolean} $invalid True if at least one containing control or form is invalid.\n\t * @property {boolean} $pending True if at least one containing control or form is pending.\n\t * @property {boolean} $submitted True if user has submitted the form even if its invalid.\n\t *\n\t * @property {Object} $error Is an object hash, containing references to controls or\n\t * forms with failing validators, where:\n\t *\n\t * - keys are validation tokens (error names),\n\t * - values are arrays of controls or forms that have a failing validator for given error name.\n\t *\n\t * Built-in validation tokens:\n\t *\n\t * - `email`\n\t * - `max`\n\t * - `maxlength`\n\t * - `min`\n\t * - `minlength`\n\t * - `number`\n\t * - `pattern`\n\t * - `required`\n\t * - `url`\n\t * - `date`\n\t * - `datetimelocal`\n\t * - `time`\n\t * - `week`\n\t * - `month`\n\t *\n\t * @description\n\t * `FormController` keeps track of all its controls and nested forms as well as the state of them,\n\t * such as being valid/invalid or dirty/pristine.\n\t *\n\t * Each {@link ng.directive:form form} directive creates an instance\n\t * of `FormController`.\n\t *\n\t */\n\t//asks for $scope to fool the BC controller module\n\tFormController.$inject = ['$element', '$attrs', '$scope', '$animate', '$interpolate'];\n\tfunction FormController(element, attrs, $scope, $animate, $interpolate) {\n\t var form = this,\n\t controls = [];\n\t\n\t // init state\n\t form.$error = {};\n\t form.$$success = {};\n\t form.$pending = undefined;\n\t form.$name = $interpolate(attrs.name || attrs.ngForm || '')($scope);\n\t form.$dirty = false;\n\t form.$pristine = true;\n\t form.$valid = true;\n\t form.$invalid = false;\n\t form.$submitted = false;\n\t form.$$parentForm = nullFormCtrl;\n\t\n\t /**\n\t * @ngdoc method\n\t * @name form.FormController#$rollbackViewValue\n\t *\n\t * @description\n\t * Rollback all form controls pending updates to the `$modelValue`.\n\t *\n\t * Updates may be pending by a debounced event or because the input is waiting for a some future\n\t * event defined in `ng-model-options`. This method is typically needed by the reset button of\n\t * a form that uses `ng-model-options` to pend updates.\n\t */\n\t form.$rollbackViewValue = function() {\n\t forEach(controls, function(control) {\n\t control.$rollbackViewValue();\n\t });\n\t };\n\t\n\t /**\n\t * @ngdoc method\n\t * @name form.FormController#$commitViewValue\n\t *\n\t * @description\n\t * Commit all form controls pending updates to the `$modelValue`.\n\t *\n\t * Updates may be pending by a debounced event or because the input is waiting for a some future\n\t * event defined in `ng-model-options`. This method is rarely needed as `NgModelController`\n\t * usually handles calling this in response to input events.\n\t */\n\t form.$commitViewValue = function() {\n\t forEach(controls, function(control) {\n\t control.$commitViewValue();\n\t });\n\t };\n\t\n\t /**\n\t * @ngdoc method\n\t * @name form.FormController#$addControl\n\t * @param {object} control control object, either a {@link form.FormController} or an\n\t * {@link ngModel.NgModelController}\n\t *\n\t * @description\n\t * Register a control with the form. Input elements using ngModelController do this automatically\n\t * when they are linked.\n\t *\n\t * Note that the current state of the control will not be reflected on the new parent form. This\n\t * is not an issue with normal use, as freshly compiled and linked controls are in a `$pristine`\n\t * state.\n\t *\n\t * However, if the method is used programmatically, for example by adding dynamically created controls,\n\t * or controls that have been previously removed without destroying their corresponding DOM element,\n\t * it's the developers responsiblity to make sure the current state propagates to the parent form.\n\t *\n\t * For example, if an input control is added that is already `$dirty` and has `$error` properties,\n\t * calling `$setDirty()` and `$validate()` afterwards will propagate the state to the parent form.\n\t */\n\t form.$addControl = function(control) {\n\t // Breaking change - before, inputs whose name was \"hasOwnProperty\" were quietly ignored\n\t // and not added to the scope. Now we throw an error.\n\t assertNotHasOwnProperty(control.$name, 'input');\n\t controls.push(control);\n\t\n\t if (control.$name) {\n\t form[control.$name] = control;\n\t }\n\t\n\t control.$$parentForm = form;\n\t };\n\t\n\t // Private API: rename a form control\n\t form.$$renameControl = function(control, newName) {\n\t var oldName = control.$name;\n\t\n\t if (form[oldName] === control) {\n\t delete form[oldName];\n\t }\n\t form[newName] = control;\n\t control.$name = newName;\n\t };\n\t\n\t /**\n\t * @ngdoc method\n\t * @name form.FormController#$removeControl\n\t * @param {object} control control object, either a {@link form.FormController} or an\n\t * {@link ngModel.NgModelController}\n\t *\n\t * @description\n\t * Deregister a control from the form.\n\t *\n\t * Input elements using ngModelController do this automatically when they are destroyed.\n\t *\n\t * Note that only the removed control's validation state (`$errors`etc.) will be removed from the\n\t * form. `$dirty`, `$submitted` states will not be changed, because the expected behavior can be\n\t * different from case to case. For example, removing the only `$dirty` control from a form may or\n\t * may not mean that the form is still `$dirty`.\n\t */\n\t form.$removeControl = function(control) {\n\t if (control.$name && form[control.$name] === control) {\n\t delete form[control.$name];\n\t }\n\t forEach(form.$pending, function(value, name) {\n\t form.$setValidity(name, null, control);\n\t });\n\t forEach(form.$error, function(value, name) {\n\t form.$setValidity(name, null, control);\n\t });\n\t forEach(form.$$success, function(value, name) {\n\t form.$setValidity(name, null, control);\n\t });\n\t\n\t arrayRemove(controls, control);\n\t control.$$parentForm = nullFormCtrl;\n\t };\n\t\n\t\n\t /**\n\t * @ngdoc method\n\t * @name form.FormController#$setValidity\n\t *\n\t * @description\n\t * Sets the validity of a form control.\n\t *\n\t * This method will also propagate to parent forms.\n\t */\n\t addSetValidityMethod({\n\t ctrl: this,\n\t $element: element,\n\t set: function(object, property, controller) {\n\t var list = object[property];\n\t if (!list) {\n\t object[property] = [controller];\n\t } else {\n\t var index = list.indexOf(controller);\n\t if (index === -1) {\n\t list.push(controller);\n\t }\n\t }\n\t },\n\t unset: function(object, property, controller) {\n\t var list = object[property];\n\t if (!list) {\n\t return;\n\t }\n\t arrayRemove(list, controller);\n\t if (list.length === 0) {\n\t delete object[property];\n\t }\n\t },\n\t $animate: $animate\n\t });\n\t\n\t /**\n\t * @ngdoc method\n\t * @name form.FormController#$setDirty\n\t *\n\t * @description\n\t * Sets the form to a dirty state.\n\t *\n\t * This method can be called to add the 'ng-dirty' class and set the form to a dirty\n\t * state (ng-dirty class). This method will also propagate to parent forms.\n\t */\n\t form.$setDirty = function() {\n\t $animate.removeClass(element, PRISTINE_CLASS);\n\t $animate.addClass(element, DIRTY_CLASS);\n\t form.$dirty = true;\n\t form.$pristine = false;\n\t form.$$parentForm.$setDirty();\n\t };\n\t\n\t /**\n\t * @ngdoc method\n\t * @name form.FormController#$setPristine\n\t *\n\t * @description\n\t * Sets the form to its pristine state.\n\t *\n\t * This method can be called to remove the 'ng-dirty' class and set the form to its pristine\n\t * state (ng-pristine class). This method will also propagate to all the controls contained\n\t * in this form.\n\t *\n\t * Setting a form back to a pristine state is often useful when we want to 'reuse' a form after\n\t * saving or resetting it.\n\t */\n\t form.$setPristine = function() {\n\t $animate.setClass(element, PRISTINE_CLASS, DIRTY_CLASS + ' ' + SUBMITTED_CLASS);\n\t form.$dirty = false;\n\t form.$pristine = true;\n\t form.$submitted = false;\n\t forEach(controls, function(control) {\n\t control.$setPristine();\n\t });\n\t };\n\t\n\t /**\n\t * @ngdoc method\n\t * @name form.FormController#$setUntouched\n\t *\n\t * @description\n\t * Sets the form to its untouched state.\n\t *\n\t * This method can be called to remove the 'ng-touched' class and set the form controls to their\n\t * untouched state (ng-untouched class).\n\t *\n\t * Setting a form controls back to their untouched state is often useful when setting the form\n\t * back to its pristine state.\n\t */\n\t form.$setUntouched = function() {\n\t forEach(controls, function(control) {\n\t control.$setUntouched();\n\t });\n\t };\n\t\n\t /**\n\t * @ngdoc method\n\t * @name form.FormController#$setSubmitted\n\t *\n\t * @description\n\t * Sets the form to its submitted state.\n\t */\n\t form.$setSubmitted = function() {\n\t $animate.addClass(element, SUBMITTED_CLASS);\n\t form.$submitted = true;\n\t form.$$parentForm.$setSubmitted();\n\t };\n\t}\n\t\n\t/**\n\t * @ngdoc directive\n\t * @name ngForm\n\t * @restrict EAC\n\t *\n\t * @description\n\t * Nestable alias of {@link ng.directive:form `form`} directive. HTML\n\t * does not allow nesting of form elements. It is useful to nest forms, for example if the validity of a\n\t * sub-group of controls needs to be determined.\n\t *\n\t * Note: the purpose of `ngForm` is to group controls,\n\t * but not to be a replacement for the `
` tag with all of its capabilities\n\t * (e.g. posting to the server, ...).\n\t *\n\t * @param {string=} ngForm|name Name of the form. If specified, the form controller will be published into\n\t * related scope, under this name.\n\t *\n\t */\n\t\n\t /**\n\t * @ngdoc directive\n\t * @name form\n\t * @restrict E\n\t *\n\t * @description\n\t * Directive that instantiates\n\t * {@link form.FormController FormController}.\n\t *\n\t * If the `name` attribute is specified, the form controller is published onto the current scope under\n\t * this name.\n\t *\n\t * # Alias: {@link ng.directive:ngForm `ngForm`}\n\t *\n\t * In Angular, forms can be nested. This means that the outer form is valid when all of the child\n\t * forms are valid as well. However, browsers do not allow nesting of `` elements, so\n\t * Angular provides the {@link ng.directive:ngForm `ngForm`} directive, which behaves identically to\n\t * `form` but can be nested. Nested forms can be useful, for example, if the validity of a sub-group\n\t * of controls needs to be determined.\n\t *\n\t * # CSS classes\n\t * - `ng-valid` is set if the form is valid.\n\t * - `ng-invalid` is set if the form is invalid.\n\t * - `ng-pending` is set if the form is pending.\n\t * - `ng-pristine` is set if the form is pristine.\n\t * - `ng-dirty` is set if the form is dirty.\n\t * - `ng-submitted` is set if the form was submitted.\n\t *\n\t * Keep in mind that ngAnimate can detect each of these classes when added and removed.\n\t *\n\t *\n\t * # Submitting a form and preventing the default action\n\t *\n\t * Since the role of forms in client-side Angular applications is different than in classical\n\t * roundtrip apps, it is desirable for the browser not to translate the form submission into a full\n\t * page reload that sends the data to the server. Instead some javascript logic should be triggered\n\t * to handle the form submission in an application-specific way.\n\t *\n\t * For this reason, Angular prevents the default action (form submission to the server) unless the\n\t * `` element has an `action` attribute specified.\n\t *\n\t * You can use one of the following two ways to specify what javascript method should be called when\n\t * a form is submitted:\n\t *\n\t * - {@link ng.directive:ngSubmit ngSubmit} directive on the form element\n\t * - {@link ng.directive:ngClick ngClick} directive on the first\n\t * button or input field of type submit (input[type=submit])\n\t *\n\t * To prevent double execution of the handler, use only one of the {@link ng.directive:ngSubmit ngSubmit}\n\t * or {@link ng.directive:ngClick ngClick} directives.\n\t * This is because of the following form submission rules in the HTML specification:\n\t *\n\t * - If a form has only one input field then hitting enter in this field triggers form submit\n\t * (`ngSubmit`)\n\t * - if a form has 2+ input fields and no buttons or input[type=submit] then hitting enter\n\t * doesn't trigger submit\n\t * - if a form has one or more input fields and one or more buttons or input[type=submit] then\n\t * hitting enter in any of the input fields will trigger the click handler on the *first* button or\n\t * input[type=submit] (`ngClick`) *and* a submit handler on the enclosing form (`ngSubmit`)\n\t *\n\t * Any pending `ngModelOptions` changes will take place immediately when an enclosing form is\n\t * submitted. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`\n\t * to have access to the updated model.\n\t *\n\t * ## Animation Hooks\n\t *\n\t * Animations in ngForm are triggered when any of the associated CSS classes are added and removed.\n\t * These classes are: `.ng-pristine`, `.ng-dirty`, `.ng-invalid` and `.ng-valid` as well as any\n\t * other validations that are performed within the form. Animations in ngForm are similar to how\n\t * they work in ngClass and animations can be hooked into using CSS transitions, keyframes as well\n\t * as JS animations.\n\t *\n\t * The following example shows a simple way to utilize CSS transitions to style a form element\n\t * that has been rendered as invalid after it has been validated:\n\t *\n\t *
\n\t * //be sure to include ngAnimate as a module to hook into more\n\t * //advanced animations\n\t * .my-form {\n\t *   transition:0.5s linear all;\n\t *   background: white;\n\t * }\n\t * .my-form.ng-invalid {\n\t *   background: red;\n\t *   color:white;\n\t * }\n\t * 
\n\t *\n\t * @example\n\t \n\t \n\t \n\t \n\t \n\t userType: \n\t Required!
\n\t userType = {{userType}}
\n\t myForm.input.$valid = {{myForm.input.$valid}}
\n\t myForm.input.$error = {{myForm.input.$error}}
\n\t myForm.$valid = {{myForm.$valid}}
\n\t myForm.$error.required = {{!!myForm.$error.required}}
\n\t \n\t
\n\t \n\t it('should initialize to model', function() {\n\t var userType = element(by.binding('userType'));\n\t var valid = element(by.binding('myForm.input.$valid'));\n\t\n\t expect(userType.getText()).toContain('guest');\n\t expect(valid.getText()).toContain('true');\n\t });\n\t\n\t it('should be invalid if empty', function() {\n\t var userType = element(by.binding('userType'));\n\t var valid = element(by.binding('myForm.input.$valid'));\n\t var userInput = element(by.model('userType'));\n\t\n\t userInput.clear();\n\t userInput.sendKeys('');\n\t\n\t expect(userType.getText()).toEqual('userType =');\n\t expect(valid.getText()).toContain('false');\n\t });\n\t \n\t
\n\t *\n\t * @param {string=} name Name of the form. If specified, the form controller will be published into\n\t * related scope, under this name.\n\t */\n\tvar formDirectiveFactory = function(isNgForm) {\n\t return ['$timeout', '$parse', function($timeout, $parse) {\n\t var formDirective = {\n\t name: 'form',\n\t restrict: isNgForm ? 'EAC' : 'E',\n\t require: ['form', '^^?form'], //first is the form's own ctrl, second is an optional parent form\n\t controller: FormController,\n\t compile: function ngFormCompile(formElement, attr) {\n\t // Setup initial state of the control\n\t formElement.addClass(PRISTINE_CLASS).addClass(VALID_CLASS);\n\t\n\t var nameAttr = attr.name ? 'name' : (isNgForm && attr.ngForm ? 'ngForm' : false);\n\t\n\t return {\n\t pre: function ngFormPreLink(scope, formElement, attr, ctrls) {\n\t var controller = ctrls[0];\n\t\n\t // if `action` attr is not present on the form, prevent the default action (submission)\n\t if (!('action' in attr)) {\n\t // we can't use jq events because if a form is destroyed during submission the default\n\t // action is not prevented. see #1238\n\t //\n\t // IE 9 is not affected because it doesn't fire a submit event and try to do a full\n\t // page reload if the form was destroyed by submission of the form via a click handler\n\t // on a button in the form. Looks like an IE9 specific bug.\n\t var handleFormSubmission = function(event) {\n\t scope.$apply(function() {\n\t controller.$commitViewValue();\n\t controller.$setSubmitted();\n\t });\n\t\n\t event.preventDefault();\n\t };\n\t\n\t addEventListenerFn(formElement[0], 'submit', handleFormSubmission);\n\t\n\t // unregister the preventDefault listener so that we don't not leak memory but in a\n\t // way that will achieve the prevention of the default action.\n\t formElement.on('$destroy', function() {\n\t $timeout(function() {\n\t removeEventListenerFn(formElement[0], 'submit', handleFormSubmission);\n\t }, 0, false);\n\t });\n\t }\n\t\n\t var parentFormCtrl = ctrls[1] || controller.$$parentForm;\n\t parentFormCtrl.$addControl(controller);\n\t\n\t var setter = nameAttr ? getSetter(controller.$name) : noop;\n\t\n\t if (nameAttr) {\n\t setter(scope, controller);\n\t attr.$observe(nameAttr, function(newValue) {\n\t if (controller.$name === newValue) return;\n\t setter(scope, undefined);\n\t controller.$$parentForm.$$renameControl(controller, newValue);\n\t setter = getSetter(controller.$name);\n\t setter(scope, controller);\n\t });\n\t }\n\t formElement.on('$destroy', function() {\n\t controller.$$parentForm.$removeControl(controller);\n\t setter(scope, undefined);\n\t extend(controller, nullFormCtrl); //stop propagating child destruction handlers upwards\n\t });\n\t }\n\t };\n\t }\n\t };\n\t\n\t return formDirective;\n\t\n\t function getSetter(expression) {\n\t if (expression === '') {\n\t //create an assignable expression, so forms with an empty name can be renamed later\n\t return $parse('this[\"\"]').assign;\n\t }\n\t return $parse(expression).assign || noop;\n\t }\n\t }];\n\t};\n\t\n\tvar formDirective = formDirectiveFactory();\n\tvar ngFormDirective = formDirectiveFactory(true);\n\t\n\t/* global VALID_CLASS: false,\n\t INVALID_CLASS: false,\n\t PRISTINE_CLASS: false,\n\t DIRTY_CLASS: false,\n\t UNTOUCHED_CLASS: false,\n\t TOUCHED_CLASS: false,\n\t ngModelMinErr: false,\n\t*/\n\t\n\t// Regex code is obtained from SO: https://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime#answer-3143231\n\tvar ISO_DATE_REGEXP = /\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)/;\n\t// See valid URLs in RFC3987 (http://tools.ietf.org/html/rfc3987)\n\t// Note: We are being more lenient, because browsers are too.\n\t// 1. Scheme\n\t// 2. Slashes\n\t// 3. Username\n\t// 4. Password\n\t// 5. Hostname\n\t// 6. Port\n\t// 7. Path\n\t// 8. Query\n\t// 9. Fragment\n\t// 1111111111111111 222 333333 44444 555555555555555555555555 666 77777777 8888888 999\n\tvar URL_REGEXP = /^[a-z][a-z\\d.+-]*:\\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\\s:/?#]+|\\[[a-f\\d:]+\\])(?::\\d+)?(?:\\/[^?#]*)?(?:\\?[^#]*)?(?:#.*)?$/i;\n\tvar EMAIL_REGEXP = /^[a-z0-9!#$%&'*+\\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i;\n\tvar NUMBER_REGEXP = /^\\s*(\\-|\\+)?(\\d+|(\\d*(\\.\\d*)))([eE][+-]?\\d+)?\\s*$/;\n\tvar DATE_REGEXP = /^(\\d{4})-(\\d{2})-(\\d{2})$/;\n\tvar DATETIMELOCAL_REGEXP = /^(\\d{4})-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d)(?::(\\d\\d)(\\.\\d{1,3})?)?$/;\n\tvar WEEK_REGEXP = /^(\\d{4})-W(\\d\\d)$/;\n\tvar MONTH_REGEXP = /^(\\d{4})-(\\d\\d)$/;\n\tvar TIME_REGEXP = /^(\\d\\d):(\\d\\d)(?::(\\d\\d)(\\.\\d{1,3})?)?$/;\n\t\n\tvar PARTIAL_VALIDATION_EVENTS = 'keydown wheel mousedown';\n\tvar PARTIAL_VALIDATION_TYPES = createMap();\n\tforEach('date,datetime-local,month,time,week'.split(','), function(type) {\n\t PARTIAL_VALIDATION_TYPES[type] = true;\n\t});\n\t\n\tvar inputType = {\n\t\n\t /**\n\t * @ngdoc input\n\t * @name input[text]\n\t *\n\t * @description\n\t * Standard HTML text input with angular data binding, inherited by most of the `input` elements.\n\t *\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} required Adds `required` validation error key if the value is not entered.\n\t * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t * `required` when you want to data-bind to the `required` attribute.\n\t * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t * minlength.\n\t * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n\t * any length.\n\t * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n\t * that contains the regular expression body that will be converted to a regular expression\n\t * as in the ngPattern directive.\n\t * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t * a RegExp found by evaluating the Angular expression given in the attribute value.\n\t * If the expression evaluates to a RegExp object, then this is used directly.\n\t * If the expression evaluates to a string, then it will be converted to a RegExp\n\t * after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n\t * `new RegExp('^abc$')`.
\n\t * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n\t * start at the index of the last search's match, thus not taking the whole input value into\n\t * account.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t * interaction with the input element.\n\t * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.\n\t * This parameter is ignored for input[type=password] controls, which will never trim the\n\t * input.\n\t *\n\t * @example\n\t \n\t \n\t \n\t
\n\t \n\t
\n\t \n\t Required!\n\t \n\t Single word only!\n\t
\n\t text = {{example.text}}
\n\t myForm.input.$valid = {{myForm.input.$valid}}
\n\t myForm.input.$error = {{myForm.input.$error}}
\n\t myForm.$valid = {{myForm.$valid}}
\n\t myForm.$error.required = {{!!myForm.$error.required}}
\n\t
\n\t
\n\t \n\t var text = element(by.binding('example.text'));\n\t var valid = element(by.binding('myForm.input.$valid'));\n\t var input = element(by.model('example.text'));\n\t\n\t it('should initialize to model', function() {\n\t expect(text.getText()).toContain('guest');\n\t expect(valid.getText()).toContain('true');\n\t });\n\t\n\t it('should be invalid if empty', function() {\n\t input.clear();\n\t input.sendKeys('');\n\t\n\t expect(text.getText()).toEqual('text =');\n\t expect(valid.getText()).toContain('false');\n\t });\n\t\n\t it('should be invalid if multi word', function() {\n\t input.clear();\n\t input.sendKeys('hello world');\n\t\n\t expect(valid.getText()).toContain('false');\n\t });\n\t \n\t
\n\t */\n\t 'text': textInputType,\n\t\n\t /**\n\t * @ngdoc input\n\t * @name input[date]\n\t *\n\t * @description\n\t * Input with date validation and transformation. In browsers that do not yet support\n\t * the HTML5 date input, a text element will be used. In that case, text must be entered in a valid ISO-8601\n\t * date format (yyyy-MM-dd), for example: `2009-01-06`. Since many\n\t * modern browsers do not yet support this input type, it is important to provide cues to users on the\n\t * expected input format via a placeholder or label.\n\t *\n\t * The model must always be a Date object, otherwise Angular will throw an error.\n\t * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t *\n\t * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. This must be a\n\t * valid ISO date string (yyyy-MM-dd). You can also use interpolation inside this attribute\n\t * (e.g. `min=\"{{minDate | date:'yyyy-MM-dd'}}\"`). Note that `min` will also add native HTML5\n\t * constraint validation.\n\t * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. This must be\n\t * a valid ISO date string (yyyy-MM-dd). You can also use interpolation inside this attribute\n\t * (e.g. `max=\"{{maxDate | date:'yyyy-MM-dd'}}\"`). Note that `max` will also add native HTML5\n\t * constraint validation.\n\t * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO date string\n\t * the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n\t * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO date string\n\t * the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n\t * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t * `required` when you want to data-bind to the `required` attribute.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t * interaction with the input element.\n\t *\n\t * @example\n\t \n\t \n\t \n\t
\n\t \n\t \n\t
\n\t \n\t Required!\n\t \n\t Not a valid date!\n\t
\n\t value = {{example.value | date: \"yyyy-MM-dd\"}}
\n\t myForm.input.$valid = {{myForm.input.$valid}}
\n\t myForm.input.$error = {{myForm.input.$error}}
\n\t myForm.$valid = {{myForm.$valid}}
\n\t myForm.$error.required = {{!!myForm.$error.required}}
\n\t
\n\t
\n\t \n\t var value = element(by.binding('example.value | date: \"yyyy-MM-dd\"'));\n\t var valid = element(by.binding('myForm.input.$valid'));\n\t var input = element(by.model('example.value'));\n\t\n\t // currently protractor/webdriver does not support\n\t // sending keys to all known HTML5 input controls\n\t // for various browsers (see https://github.com/angular/protractor/issues/562).\n\t function setInput(val) {\n\t // set the value of the element and force validation.\n\t var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t \"ipt.value = '\" + val + \"';\" +\n\t \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t browser.executeScript(scr);\n\t }\n\t\n\t it('should initialize to model', function() {\n\t expect(value.getText()).toContain('2013-10-22');\n\t expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t });\n\t\n\t it('should be invalid if empty', function() {\n\t setInput('');\n\t expect(value.getText()).toEqual('value =');\n\t expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t });\n\t\n\t it('should be invalid if over max', function() {\n\t setInput('2015-01-01');\n\t expect(value.getText()).toContain('');\n\t expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t });\n\t \n\t
\n\t */\n\t 'date': createDateInputType('date', DATE_REGEXP,\n\t createDateParser(DATE_REGEXP, ['yyyy', 'MM', 'dd']),\n\t 'yyyy-MM-dd'),\n\t\n\t /**\n\t * @ngdoc input\n\t * @name input[datetime-local]\n\t *\n\t * @description\n\t * Input with datetime validation and transformation. In browsers that do not yet support\n\t * the HTML5 date input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n\t * local datetime format (yyyy-MM-ddTHH:mm:ss), for example: `2010-12-28T14:57:00`.\n\t *\n\t * The model must always be a Date object, otherwise Angular will throw an error.\n\t * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t *\n\t * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n\t * This must be a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss). You can also use interpolation\n\t * inside this attribute (e.g. `min=\"{{minDatetimeLocal | date:'yyyy-MM-ddTHH:mm:ss'}}\"`).\n\t * Note that `min` will also add native HTML5 constraint validation.\n\t * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n\t * This must be a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss). You can also use interpolation\n\t * inside this attribute (e.g. `max=\"{{maxDatetimeLocal | date:'yyyy-MM-ddTHH:mm:ss'}}\"`).\n\t * Note that `max` will also add native HTML5 constraint validation.\n\t * @param {(date|string)=} ngMin Sets the `min` validation error key to the Date / ISO datetime string\n\t * the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n\t * @param {(date|string)=} ngMax Sets the `max` validation error key to the Date / ISO datetime string\n\t * the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n\t * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t * `required` when you want to data-bind to the `required` attribute.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t * interaction with the input element.\n\t *\n\t * @example\n\t \n\t \n\t \n\t
\n\t \n\t \n\t
\n\t \n\t Required!\n\t \n\t Not a valid date!\n\t
\n\t value = {{example.value | date: \"yyyy-MM-ddTHH:mm:ss\"}}
\n\t myForm.input.$valid = {{myForm.input.$valid}}
\n\t myForm.input.$error = {{myForm.input.$error}}
\n\t myForm.$valid = {{myForm.$valid}}
\n\t myForm.$error.required = {{!!myForm.$error.required}}
\n\t
\n\t
\n\t \n\t var value = element(by.binding('example.value | date: \"yyyy-MM-ddTHH:mm:ss\"'));\n\t var valid = element(by.binding('myForm.input.$valid'));\n\t var input = element(by.model('example.value'));\n\t\n\t // currently protractor/webdriver does not support\n\t // sending keys to all known HTML5 input controls\n\t // for various browsers (https://github.com/angular/protractor/issues/562).\n\t function setInput(val) {\n\t // set the value of the element and force validation.\n\t var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t \"ipt.value = '\" + val + \"';\" +\n\t \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t browser.executeScript(scr);\n\t }\n\t\n\t it('should initialize to model', function() {\n\t expect(value.getText()).toContain('2010-12-28T14:57:00');\n\t expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t });\n\t\n\t it('should be invalid if empty', function() {\n\t setInput('');\n\t expect(value.getText()).toEqual('value =');\n\t expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t });\n\t\n\t it('should be invalid if over max', function() {\n\t setInput('2015-01-01T23:59:00');\n\t expect(value.getText()).toContain('');\n\t expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t });\n\t \n\t
\n\t */\n\t 'datetime-local': createDateInputType('datetimelocal', DATETIMELOCAL_REGEXP,\n\t createDateParser(DATETIMELOCAL_REGEXP, ['yyyy', 'MM', 'dd', 'HH', 'mm', 'ss', 'sss']),\n\t 'yyyy-MM-ddTHH:mm:ss.sss'),\n\t\n\t /**\n\t * @ngdoc input\n\t * @name input[time]\n\t *\n\t * @description\n\t * Input with time validation and transformation. In browsers that do not yet support\n\t * the HTML5 date input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n\t * local time format (HH:mm:ss), for example: `14:57:00`. Model must be a Date object. This binding will always output a\n\t * Date object to the model of January 1, 1970, or local date `new Date(1970, 0, 1, HH, mm, ss)`.\n\t *\n\t * The model must always be a Date object, otherwise Angular will throw an error.\n\t * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t *\n\t * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n\t * This must be a valid ISO time format (HH:mm:ss). You can also use interpolation inside this\n\t * attribute (e.g. `min=\"{{minTime | date:'HH:mm:ss'}}\"`). Note that `min` will also add\n\t * native HTML5 constraint validation.\n\t * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n\t * This must be a valid ISO time format (HH:mm:ss). You can also use interpolation inside this\n\t * attribute (e.g. `max=\"{{maxTime | date:'HH:mm:ss'}}\"`). Note that `max` will also add\n\t * native HTML5 constraint validation.\n\t * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO time string the\n\t * `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n\t * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO time string the\n\t * `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n\t * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t * `required` when you want to data-bind to the `required` attribute.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t * interaction with the input element.\n\t *\n\t * @example\n\t \n\t \n\t \n\t
\n\t \n\t \n\t
\n\t \n\t Required!\n\t \n\t Not a valid date!\n\t
\n\t value = {{example.value | date: \"HH:mm:ss\"}}
\n\t myForm.input.$valid = {{myForm.input.$valid}}
\n\t myForm.input.$error = {{myForm.input.$error}}
\n\t myForm.$valid = {{myForm.$valid}}
\n\t myForm.$error.required = {{!!myForm.$error.required}}
\n\t
\n\t
\n\t \n\t var value = element(by.binding('example.value | date: \"HH:mm:ss\"'));\n\t var valid = element(by.binding('myForm.input.$valid'));\n\t var input = element(by.model('example.value'));\n\t\n\t // currently protractor/webdriver does not support\n\t // sending keys to all known HTML5 input controls\n\t // for various browsers (https://github.com/angular/protractor/issues/562).\n\t function setInput(val) {\n\t // set the value of the element and force validation.\n\t var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t \"ipt.value = '\" + val + \"';\" +\n\t \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t browser.executeScript(scr);\n\t }\n\t\n\t it('should initialize to model', function() {\n\t expect(value.getText()).toContain('14:57:00');\n\t expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t });\n\t\n\t it('should be invalid if empty', function() {\n\t setInput('');\n\t expect(value.getText()).toEqual('value =');\n\t expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t });\n\t\n\t it('should be invalid if over max', function() {\n\t setInput('23:59:00');\n\t expect(value.getText()).toContain('');\n\t expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t });\n\t \n\t
\n\t */\n\t 'time': createDateInputType('time', TIME_REGEXP,\n\t createDateParser(TIME_REGEXP, ['HH', 'mm', 'ss', 'sss']),\n\t 'HH:mm:ss.sss'),\n\t\n\t /**\n\t * @ngdoc input\n\t * @name input[week]\n\t *\n\t * @description\n\t * Input with week-of-the-year validation and transformation to Date. In browsers that do not yet support\n\t * the HTML5 week input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n\t * week format (yyyy-W##), for example: `2013-W02`.\n\t *\n\t * The model must always be a Date object, otherwise Angular will throw an error.\n\t * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t *\n\t * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n\t * This must be a valid ISO week format (yyyy-W##). You can also use interpolation inside this\n\t * attribute (e.g. `min=\"{{minWeek | date:'yyyy-Www'}}\"`). Note that `min` will also add\n\t * native HTML5 constraint validation.\n\t * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n\t * This must be a valid ISO week format (yyyy-W##). You can also use interpolation inside this\n\t * attribute (e.g. `max=\"{{maxWeek | date:'yyyy-Www'}}\"`). Note that `max` will also add\n\t * native HTML5 constraint validation.\n\t * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO week string\n\t * the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n\t * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO week string\n\t * the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n\t * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t * `required` when you want to data-bind to the `required` attribute.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t * interaction with the input element.\n\t *\n\t * @example\n\t \n\t \n\t \n\t
\n\t \n\t
\n\t \n\t Required!\n\t \n\t Not a valid date!\n\t
\n\t value = {{example.value | date: \"yyyy-Www\"}}
\n\t myForm.input.$valid = {{myForm.input.$valid}}
\n\t myForm.input.$error = {{myForm.input.$error}}
\n\t myForm.$valid = {{myForm.$valid}}
\n\t myForm.$error.required = {{!!myForm.$error.required}}
\n\t
\n\t
\n\t \n\t var value = element(by.binding('example.value | date: \"yyyy-Www\"'));\n\t var valid = element(by.binding('myForm.input.$valid'));\n\t var input = element(by.model('example.value'));\n\t\n\t // currently protractor/webdriver does not support\n\t // sending keys to all known HTML5 input controls\n\t // for various browsers (https://github.com/angular/protractor/issues/562).\n\t function setInput(val) {\n\t // set the value of the element and force validation.\n\t var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t \"ipt.value = '\" + val + \"';\" +\n\t \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t browser.executeScript(scr);\n\t }\n\t\n\t it('should initialize to model', function() {\n\t expect(value.getText()).toContain('2013-W01');\n\t expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t });\n\t\n\t it('should be invalid if empty', function() {\n\t setInput('');\n\t expect(value.getText()).toEqual('value =');\n\t expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t });\n\t\n\t it('should be invalid if over max', function() {\n\t setInput('2015-W01');\n\t expect(value.getText()).toContain('');\n\t expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t });\n\t \n\t
\n\t */\n\t 'week': createDateInputType('week', WEEK_REGEXP, weekParser, 'yyyy-Www'),\n\t\n\t /**\n\t * @ngdoc input\n\t * @name input[month]\n\t *\n\t * @description\n\t * Input with month validation and transformation. In browsers that do not yet support\n\t * the HTML5 month input, a text element will be used. In that case, the text must be entered in a valid ISO-8601\n\t * month format (yyyy-MM), for example: `2009-01`.\n\t *\n\t * The model must always be a Date object, otherwise Angular will throw an error.\n\t * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.\n\t * If the model is not set to the first of the month, the next view to model update will set it\n\t * to the first of the month.\n\t *\n\t * The timezone to be used to read/write the `Date` instance in the model can be defined using\n\t * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n\t * This must be a valid ISO month format (yyyy-MM). You can also use interpolation inside this\n\t * attribute (e.g. `min=\"{{minMonth | date:'yyyy-MM'}}\"`). Note that `min` will also add\n\t * native HTML5 constraint validation.\n\t * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n\t * This must be a valid ISO month format (yyyy-MM). You can also use interpolation inside this\n\t * attribute (e.g. `max=\"{{maxMonth | date:'yyyy-MM'}}\"`). Note that `max` will also add\n\t * native HTML5 constraint validation.\n\t * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO week string\n\t * the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.\n\t * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO week string\n\t * the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.\n\t\n\t * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t * `required` when you want to data-bind to the `required` attribute.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t * interaction with the input element.\n\t *\n\t * @example\n\t \n\t \n\t \n\t
\n\t \n\t \n\t
\n\t \n\t Required!\n\t \n\t Not a valid month!\n\t
\n\t value = {{example.value | date: \"yyyy-MM\"}}
\n\t myForm.input.$valid = {{myForm.input.$valid}}
\n\t myForm.input.$error = {{myForm.input.$error}}
\n\t myForm.$valid = {{myForm.$valid}}
\n\t myForm.$error.required = {{!!myForm.$error.required}}
\n\t
\n\t
\n\t \n\t var value = element(by.binding('example.value | date: \"yyyy-MM\"'));\n\t var valid = element(by.binding('myForm.input.$valid'));\n\t var input = element(by.model('example.value'));\n\t\n\t // currently protractor/webdriver does not support\n\t // sending keys to all known HTML5 input controls\n\t // for various browsers (https://github.com/angular/protractor/issues/562).\n\t function setInput(val) {\n\t // set the value of the element and force validation.\n\t var scr = \"var ipt = document.getElementById('exampleInput'); \" +\n\t \"ipt.value = '\" + val + \"';\" +\n\t \"angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('\" + val + \"'); });\";\n\t browser.executeScript(scr);\n\t }\n\t\n\t it('should initialize to model', function() {\n\t expect(value.getText()).toContain('2013-10');\n\t expect(valid.getText()).toContain('myForm.input.$valid = true');\n\t });\n\t\n\t it('should be invalid if empty', function() {\n\t setInput('');\n\t expect(value.getText()).toEqual('value =');\n\t expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t });\n\t\n\t it('should be invalid if over max', function() {\n\t setInput('2015-01');\n\t expect(value.getText()).toContain('');\n\t expect(valid.getText()).toContain('myForm.input.$valid = false');\n\t });\n\t \n\t
\n\t */\n\t 'month': createDateInputType('month', MONTH_REGEXP,\n\t createDateParser(MONTH_REGEXP, ['yyyy', 'MM']),\n\t 'yyyy-MM'),\n\t\n\t /**\n\t * @ngdoc input\n\t * @name input[number]\n\t *\n\t * @description\n\t * Text input with number validation and transformation. Sets the `number` validation\n\t * error if not a valid number.\n\t *\n\t *
\n\t * The model must always be of type `number` otherwise Angular will throw an error.\n\t * Be aware that a string containing a number is not enough. See the {@link ngModel:numfmt}\n\t * error docs for more information and an example of how to convert your model if necessary.\n\t *
\n\t *\n\t * ## Issues with HTML5 constraint validation\n\t *\n\t * In browsers that follow the\n\t * [HTML5 specification](https://html.spec.whatwg.org/multipage/forms.html#number-state-%28type=number%29),\n\t * `input[number]` does not work as expected with {@link ngModelOptions `ngModelOptions.allowInvalid`}.\n\t * If a non-number is entered in the input, the browser will report the value as an empty string,\n\t * which means the view / model values in `ngModel` and subsequently the scope value\n\t * will also be an empty string.\n\t *\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.\n\t * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.\n\t * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t * `required` when you want to data-bind to the `required` attribute.\n\t * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t * minlength.\n\t * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n\t * any length.\n\t * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n\t * that contains the regular expression body that will be converted to a regular expression\n\t * as in the ngPattern directive.\n\t * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t * a RegExp found by evaluating the Angular expression given in the attribute value.\n\t * If the expression evaluates to a RegExp object, then this is used directly.\n\t * If the expression evaluates to a string, then it will be converted to a RegExp\n\t * after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n\t * `new RegExp('^abc$')`.
\n\t * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n\t * start at the index of the last search's match, thus not taking the whole input value into\n\t * account.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t * interaction with the input element.\n\t *\n\t * @example\n\t \n\t \n\t \n\t
\n\t \n\t
\n\t \n\t Required!\n\t \n\t Not valid number!\n\t
\n\t value = {{example.value}}
\n\t myForm.input.$valid = {{myForm.input.$valid}}
\n\t myForm.input.$error = {{myForm.input.$error}}
\n\t myForm.$valid = {{myForm.$valid}}
\n\t myForm.$error.required = {{!!myForm.$error.required}}
\n\t
\n\t
\n\t \n\t var value = element(by.binding('example.value'));\n\t var valid = element(by.binding('myForm.input.$valid'));\n\t var input = element(by.model('example.value'));\n\t\n\t it('should initialize to model', function() {\n\t expect(value.getText()).toContain('12');\n\t expect(valid.getText()).toContain('true');\n\t });\n\t\n\t it('should be invalid if empty', function() {\n\t input.clear();\n\t input.sendKeys('');\n\t expect(value.getText()).toEqual('value =');\n\t expect(valid.getText()).toContain('false');\n\t });\n\t\n\t it('should be invalid if over max', function() {\n\t input.clear();\n\t input.sendKeys('123');\n\t expect(value.getText()).toEqual('value =');\n\t expect(valid.getText()).toContain('false');\n\t });\n\t \n\t
\n\t */\n\t 'number': numberInputType,\n\t\n\t\n\t /**\n\t * @ngdoc input\n\t * @name input[url]\n\t *\n\t * @description\n\t * Text input with URL validation. Sets the `url` validation error key if the content is not a\n\t * valid URL.\n\t *\n\t *
\n\t * **Note:** `input[url]` uses a regex to validate urls that is derived from the regex\n\t * used in Chromium. If you need stricter validation, you can use `ng-pattern` or modify\n\t * the built-in validators (see the {@link guide/forms Forms guide})\n\t *
\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t * `required` when you want to data-bind to the `required` attribute.\n\t * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t * minlength.\n\t * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n\t * any length.\n\t * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n\t * that contains the regular expression body that will be converted to a regular expression\n\t * as in the ngPattern directive.\n\t * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t * a RegExp found by evaluating the Angular expression given in the attribute value.\n\t * If the expression evaluates to a RegExp object, then this is used directly.\n\t * If the expression evaluates to a string, then it will be converted to a RegExp\n\t * after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n\t * `new RegExp('^abc$')`.
\n\t * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n\t * start at the index of the last search's match, thus not taking the whole input value into\n\t * account.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t * interaction with the input element.\n\t *\n\t * @example\n\t \n\t \n\t \n\t
\n\t
\n\t \n\t var text = element(by.binding('url.text'));\n\t var valid = element(by.binding('myForm.input.$valid'));\n\t var input = element(by.model('url.text'));\n\t\n\t it('should initialize to model', function() {\n\t expect(text.getText()).toContain('http://google.com');\n\t expect(valid.getText()).toContain('true');\n\t });\n\t\n\t it('should be invalid if empty', function() {\n\t input.clear();\n\t input.sendKeys('');\n\t\n\t expect(text.getText()).toEqual('text =');\n\t expect(valid.getText()).toContain('false');\n\t });\n\t\n\t it('should be invalid if not url', function() {\n\t input.clear();\n\t input.sendKeys('box');\n\t\n\t expect(valid.getText()).toContain('false');\n\t });\n\t \n\t
\n\t */\n\t 'url': urlInputType,\n\t\n\t\n\t /**\n\t * @ngdoc input\n\t * @name input[email]\n\t *\n\t * @description\n\t * Text input with email validation. Sets the `email` validation error key if not a valid email\n\t * address.\n\t *\n\t *
\n\t * **Note:** `input[email]` uses a regex to validate email addresses that is derived from the regex\n\t * used in Chromium. If you need stricter validation (e.g. requiring a top-level domain), you can\n\t * use `ng-pattern` or modify the built-in validators (see the {@link guide/forms Forms guide})\n\t *
\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t * `required` when you want to data-bind to the `required` attribute.\n\t * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t * minlength.\n\t * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of\n\t * any length.\n\t * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string\n\t * that contains the regular expression body that will be converted to a regular expression\n\t * as in the ngPattern directive.\n\t * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t * a RegExp found by evaluating the Angular expression given in the attribute value.\n\t * If the expression evaluates to a RegExp object, then this is used directly.\n\t * If the expression evaluates to a string, then it will be converted to a RegExp\n\t * after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n\t * `new RegExp('^abc$')`.
\n\t * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n\t * start at the index of the last search's match, thus not taking the whole input value into\n\t * account.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t * interaction with the input element.\n\t *\n\t * @example\n\t \n\t \n\t \n\t
\n\t \n\t
\n\t \n\t Required!\n\t \n\t Not valid email!\n\t
\n\t text = {{email.text}}
\n\t myForm.input.$valid = {{myForm.input.$valid}}
\n\t myForm.input.$error = {{myForm.input.$error}}
\n\t myForm.$valid = {{myForm.$valid}}
\n\t myForm.$error.required = {{!!myForm.$error.required}}
\n\t myForm.$error.email = {{!!myForm.$error.email}}
\n\t
\n\t
\n\t \n\t var text = element(by.binding('email.text'));\n\t var valid = element(by.binding('myForm.input.$valid'));\n\t var input = element(by.model('email.text'));\n\t\n\t it('should initialize to model', function() {\n\t expect(text.getText()).toContain('me@example.com');\n\t expect(valid.getText()).toContain('true');\n\t });\n\t\n\t it('should be invalid if empty', function() {\n\t input.clear();\n\t input.sendKeys('');\n\t expect(text.getText()).toEqual('text =');\n\t expect(valid.getText()).toContain('false');\n\t });\n\t\n\t it('should be invalid if not email', function() {\n\t input.clear();\n\t input.sendKeys('xxx');\n\t\n\t expect(valid.getText()).toContain('false');\n\t });\n\t \n\t
\n\t */\n\t 'email': emailInputType,\n\t\n\t\n\t /**\n\t * @ngdoc input\n\t * @name input[radio]\n\t *\n\t * @description\n\t * HTML radio button.\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string} value The value to which the `ngModel` expression should be set when selected.\n\t * Note that `value` only supports `string` values, i.e. the scope model needs to be a string,\n\t * too. Use `ngValue` if you need complex models (`number`, `object`, ...).\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t * interaction with the input element.\n\t * @param {string} ngValue Angular expression to which `ngModel` will be be set when the radio\n\t * is selected. Should be used instead of the `value` attribute if you need\n\t * a non-string `ngModel` (`boolean`, `array`, ...).\n\t *\n\t * @example\n\t \n\t \n\t \n\t
\n\t
\n\t
\n\t
\n\t color = {{color.name | json}}
\n\t
\n\t Note that `ng-value=\"specialValue\"` sets radio item's value to be the value of `$scope.specialValue`.\n\t
\n\t \n\t it('should change state', function() {\n\t var color = element(by.binding('color.name'));\n\t\n\t expect(color.getText()).toContain('blue');\n\t\n\t element.all(by.model('color.name')).get(0).click();\n\t\n\t expect(color.getText()).toContain('red');\n\t });\n\t \n\t
\n\t */\n\t 'radio': radioInputType,\n\t\n\t\n\t /**\n\t * @ngdoc input\n\t * @name input[checkbox]\n\t *\n\t * @description\n\t * HTML checkbox.\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {expression=} ngTrueValue The value to which the expression should be set when selected.\n\t * @param {expression=} ngFalseValue The value to which the expression should be set when not selected.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t * interaction with the input element.\n\t *\n\t * @example\n\t \n\t \n\t \n\t
\n\t
\n\t
\n\t value1 = {{checkboxModel.value1}}
\n\t value2 = {{checkboxModel.value2}}
\n\t
\n\t
\n\t \n\t it('should change state', function() {\n\t var value1 = element(by.binding('checkboxModel.value1'));\n\t var value2 = element(by.binding('checkboxModel.value2'));\n\t\n\t expect(value1.getText()).toContain('true');\n\t expect(value2.getText()).toContain('YES');\n\t\n\t element(by.model('checkboxModel.value1')).click();\n\t element(by.model('checkboxModel.value2')).click();\n\t\n\t expect(value1.getText()).toContain('false');\n\t expect(value2.getText()).toContain('NO');\n\t });\n\t \n\t
\n\t */\n\t 'checkbox': checkboxInputType,\n\t\n\t 'hidden': noop,\n\t 'button': noop,\n\t 'submit': noop,\n\t 'reset': noop,\n\t 'file': noop\n\t};\n\t\n\tfunction stringBasedInputType(ctrl) {\n\t ctrl.$formatters.push(function(value) {\n\t return ctrl.$isEmpty(value) ? value : value.toString();\n\t });\n\t}\n\t\n\tfunction textInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\t stringBasedInputType(ctrl);\n\t}\n\t\n\tfunction baseInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t var type = lowercase(element[0].type);\n\t\n\t // In composition mode, users are still inputing intermediate text buffer,\n\t // hold the listener until composition is done.\n\t // More about composition events: https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent\n\t if (!$sniffer.android) {\n\t var composing = false;\n\t\n\t element.on('compositionstart', function(data) {\n\t composing = true;\n\t });\n\t\n\t element.on('compositionend', function() {\n\t composing = false;\n\t listener();\n\t });\n\t }\n\t\n\t var timeout;\n\t\n\t var listener = function(ev) {\n\t if (timeout) {\n\t $browser.defer.cancel(timeout);\n\t timeout = null;\n\t }\n\t if (composing) return;\n\t var value = element.val(),\n\t event = ev && ev.type;\n\t\n\t // By default we will trim the value\n\t // If the attribute ng-trim exists we will avoid trimming\n\t // If input type is 'password', the value is never trimmed\n\t if (type !== 'password' && (!attr.ngTrim || attr.ngTrim !== 'false')) {\n\t value = trim(value);\n\t }\n\t\n\t // If a control is suffering from bad input (due to native validators), browsers discard its\n\t // value, so it may be necessary to revalidate (by calling $setViewValue again) even if the\n\t // control's value is the same empty value twice in a row.\n\t if (ctrl.$viewValue !== value || (value === '' && ctrl.$$hasNativeValidators)) {\n\t ctrl.$setViewValue(value, event);\n\t }\n\t };\n\t\n\t // if the browser does support \"input\" event, we are fine - except on IE9 which doesn't fire the\n\t // input event on backspace, delete or cut\n\t if ($sniffer.hasEvent('input')) {\n\t element.on('input', listener);\n\t } else {\n\t var deferListener = function(ev, input, origValue) {\n\t if (!timeout) {\n\t timeout = $browser.defer(function() {\n\t timeout = null;\n\t if (!input || input.value !== origValue) {\n\t listener(ev);\n\t }\n\t });\n\t }\n\t };\n\t\n\t element.on('keydown', function(event) {\n\t var key = event.keyCode;\n\t\n\t // ignore\n\t // command modifiers arrows\n\t if (key === 91 || (15 < key && key < 19) || (37 <= key && key <= 40)) return;\n\t\n\t deferListener(event, this, this.value);\n\t });\n\t\n\t // if user modifies input value using context menu in IE, we need \"paste\" and \"cut\" events to catch it\n\t if ($sniffer.hasEvent('paste')) {\n\t element.on('paste cut', deferListener);\n\t }\n\t }\n\t\n\t // if user paste into input using mouse on older browser\n\t // or form autocomplete on newer browser, we need \"change\" event to catch it\n\t element.on('change', listener);\n\t\n\t // Some native input types (date-family) have the ability to change validity without\n\t // firing any input/change events.\n\t // For these event types, when native validators are present and the browser supports the type,\n\t // check for validity changes on various DOM events.\n\t if (PARTIAL_VALIDATION_TYPES[type] && ctrl.$$hasNativeValidators && type === attr.type) {\n\t element.on(PARTIAL_VALIDATION_EVENTS, function(ev) {\n\t if (!timeout) {\n\t var validity = this[VALIDITY_STATE_PROPERTY];\n\t var origBadInput = validity.badInput;\n\t var origTypeMismatch = validity.typeMismatch;\n\t timeout = $browser.defer(function() {\n\t timeout = null;\n\t if (validity.badInput !== origBadInput || validity.typeMismatch !== origTypeMismatch) {\n\t listener(ev);\n\t }\n\t });\n\t }\n\t });\n\t }\n\t\n\t ctrl.$render = function() {\n\t // Workaround for Firefox validation #12102.\n\t var value = ctrl.$isEmpty(ctrl.$viewValue) ? '' : ctrl.$viewValue;\n\t if (element.val() !== value) {\n\t element.val(value);\n\t }\n\t };\n\t}\n\t\n\tfunction weekParser(isoWeek, existingDate) {\n\t if (isDate(isoWeek)) {\n\t return isoWeek;\n\t }\n\t\n\t if (isString(isoWeek)) {\n\t WEEK_REGEXP.lastIndex = 0;\n\t var parts = WEEK_REGEXP.exec(isoWeek);\n\t if (parts) {\n\t var year = +parts[1],\n\t week = +parts[2],\n\t hours = 0,\n\t minutes = 0,\n\t seconds = 0,\n\t milliseconds = 0,\n\t firstThurs = getFirstThursdayOfYear(year),\n\t addDays = (week - 1) * 7;\n\t\n\t if (existingDate) {\n\t hours = existingDate.getHours();\n\t minutes = existingDate.getMinutes();\n\t seconds = existingDate.getSeconds();\n\t milliseconds = existingDate.getMilliseconds();\n\t }\n\t\n\t return new Date(year, 0, firstThurs.getDate() + addDays, hours, minutes, seconds, milliseconds);\n\t }\n\t }\n\t\n\t return NaN;\n\t}\n\t\n\tfunction createDateParser(regexp, mapping) {\n\t return function(iso, date) {\n\t var parts, map;\n\t\n\t if (isDate(iso)) {\n\t return iso;\n\t }\n\t\n\t if (isString(iso)) {\n\t // When a date is JSON'ified to wraps itself inside of an extra\n\t // set of double quotes. This makes the date parsing code unable\n\t // to match the date string and parse it as a date.\n\t if (iso.charAt(0) == '\"' && iso.charAt(iso.length - 1) == '\"') {\n\t iso = iso.substring(1, iso.length - 1);\n\t }\n\t if (ISO_DATE_REGEXP.test(iso)) {\n\t return new Date(iso);\n\t }\n\t regexp.lastIndex = 0;\n\t parts = regexp.exec(iso);\n\t\n\t if (parts) {\n\t parts.shift();\n\t if (date) {\n\t map = {\n\t yyyy: date.getFullYear(),\n\t MM: date.getMonth() + 1,\n\t dd: date.getDate(),\n\t HH: date.getHours(),\n\t mm: date.getMinutes(),\n\t ss: date.getSeconds(),\n\t sss: date.getMilliseconds() / 1000\n\t };\n\t } else {\n\t map = { yyyy: 1970, MM: 1, dd: 1, HH: 0, mm: 0, ss: 0, sss: 0 };\n\t }\n\t\n\t forEach(parts, function(part, index) {\n\t if (index < mapping.length) {\n\t map[mapping[index]] = +part;\n\t }\n\t });\n\t return new Date(map.yyyy, map.MM - 1, map.dd, map.HH, map.mm, map.ss || 0, map.sss * 1000 || 0);\n\t }\n\t }\n\t\n\t return NaN;\n\t };\n\t}\n\t\n\tfunction createDateInputType(type, regexp, parseDate, format) {\n\t return function dynamicDateInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter) {\n\t badInputChecker(scope, element, attr, ctrl);\n\t baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\t var timezone = ctrl && ctrl.$options && ctrl.$options.timezone;\n\t var previousDate;\n\t\n\t ctrl.$$parserName = type;\n\t ctrl.$parsers.push(function(value) {\n\t if (ctrl.$isEmpty(value)) return null;\n\t if (regexp.test(value)) {\n\t // Note: We cannot read ctrl.$modelValue, as there might be a different\n\t // parser/formatter in the processing chain so that the model\n\t // contains some different data format!\n\t var parsedDate = parseDate(value, previousDate);\n\t if (timezone) {\n\t parsedDate = convertTimezoneToLocal(parsedDate, timezone);\n\t }\n\t return parsedDate;\n\t }\n\t return undefined;\n\t });\n\t\n\t ctrl.$formatters.push(function(value) {\n\t if (value && !isDate(value)) {\n\t throw ngModelMinErr('datefmt', 'Expected `{0}` to be a date', value);\n\t }\n\t if (isValidDate(value)) {\n\t previousDate = value;\n\t if (previousDate && timezone) {\n\t previousDate = convertTimezoneToLocal(previousDate, timezone, true);\n\t }\n\t return $filter('date')(value, format, timezone);\n\t } else {\n\t previousDate = null;\n\t return '';\n\t }\n\t });\n\t\n\t if (isDefined(attr.min) || attr.ngMin) {\n\t var minVal;\n\t ctrl.$validators.min = function(value) {\n\t return !isValidDate(value) || isUndefined(minVal) || parseDate(value) >= minVal;\n\t };\n\t attr.$observe('min', function(val) {\n\t minVal = parseObservedDateValue(val);\n\t ctrl.$validate();\n\t });\n\t }\n\t\n\t if (isDefined(attr.max) || attr.ngMax) {\n\t var maxVal;\n\t ctrl.$validators.max = function(value) {\n\t return !isValidDate(value) || isUndefined(maxVal) || parseDate(value) <= maxVal;\n\t };\n\t attr.$observe('max', function(val) {\n\t maxVal = parseObservedDateValue(val);\n\t ctrl.$validate();\n\t });\n\t }\n\t\n\t function isValidDate(value) {\n\t // Invalid Date: getTime() returns NaN\n\t return value && !(value.getTime && value.getTime() !== value.getTime());\n\t }\n\t\n\t function parseObservedDateValue(val) {\n\t return isDefined(val) && !isDate(val) ? parseDate(val) || undefined : val;\n\t }\n\t };\n\t}\n\t\n\tfunction badInputChecker(scope, element, attr, ctrl) {\n\t var node = element[0];\n\t var nativeValidation = ctrl.$$hasNativeValidators = isObject(node.validity);\n\t if (nativeValidation) {\n\t ctrl.$parsers.push(function(value) {\n\t var validity = element.prop(VALIDITY_STATE_PROPERTY) || {};\n\t // Detect bug in FF35 for input[email] (https://bugzilla.mozilla.org/show_bug.cgi?id=1064430):\n\t // - also sets validity.badInput (should only be validity.typeMismatch).\n\t // - see http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#e-mail-state-(type=email)\n\t // - can ignore this case as we can still read out the erroneous email...\n\t return validity.badInput && !validity.typeMismatch ? undefined : value;\n\t });\n\t }\n\t}\n\t\n\tfunction numberInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t badInputChecker(scope, element, attr, ctrl);\n\t baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\t\n\t ctrl.$$parserName = 'number';\n\t ctrl.$parsers.push(function(value) {\n\t if (ctrl.$isEmpty(value)) return null;\n\t if (NUMBER_REGEXP.test(value)) return parseFloat(value);\n\t return undefined;\n\t });\n\t\n\t ctrl.$formatters.push(function(value) {\n\t if (!ctrl.$isEmpty(value)) {\n\t if (!isNumber(value)) {\n\t throw ngModelMinErr('numfmt', 'Expected `{0}` to be a number', value);\n\t }\n\t value = value.toString();\n\t }\n\t return value;\n\t });\n\t\n\t if (isDefined(attr.min) || attr.ngMin) {\n\t var minVal;\n\t ctrl.$validators.min = function(value) {\n\t return ctrl.$isEmpty(value) || isUndefined(minVal) || value >= minVal;\n\t };\n\t\n\t attr.$observe('min', function(val) {\n\t if (isDefined(val) && !isNumber(val)) {\n\t val = parseFloat(val, 10);\n\t }\n\t minVal = isNumber(val) && !isNaN(val) ? val : undefined;\n\t // TODO(matsko): implement validateLater to reduce number of validations\n\t ctrl.$validate();\n\t });\n\t }\n\t\n\t if (isDefined(attr.max) || attr.ngMax) {\n\t var maxVal;\n\t ctrl.$validators.max = function(value) {\n\t return ctrl.$isEmpty(value) || isUndefined(maxVal) || value <= maxVal;\n\t };\n\t\n\t attr.$observe('max', function(val) {\n\t if (isDefined(val) && !isNumber(val)) {\n\t val = parseFloat(val, 10);\n\t }\n\t maxVal = isNumber(val) && !isNaN(val) ? val : undefined;\n\t // TODO(matsko): implement validateLater to reduce number of validations\n\t ctrl.$validate();\n\t });\n\t }\n\t}\n\t\n\tfunction urlInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t // Note: no badInputChecker here by purpose as `url` is only a validation\n\t // in browsers, i.e. we can always read out input.value even if it is not valid!\n\t baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\t stringBasedInputType(ctrl);\n\t\n\t ctrl.$$parserName = 'url';\n\t ctrl.$validators.url = function(modelValue, viewValue) {\n\t var value = modelValue || viewValue;\n\t return ctrl.$isEmpty(value) || URL_REGEXP.test(value);\n\t };\n\t}\n\t\n\tfunction emailInputType(scope, element, attr, ctrl, $sniffer, $browser) {\n\t // Note: no badInputChecker here by purpose as `url` is only a validation\n\t // in browsers, i.e. we can always read out input.value even if it is not valid!\n\t baseInputType(scope, element, attr, ctrl, $sniffer, $browser);\n\t stringBasedInputType(ctrl);\n\t\n\t ctrl.$$parserName = 'email';\n\t ctrl.$validators.email = function(modelValue, viewValue) {\n\t var value = modelValue || viewValue;\n\t return ctrl.$isEmpty(value) || EMAIL_REGEXP.test(value);\n\t };\n\t}\n\t\n\tfunction radioInputType(scope, element, attr, ctrl) {\n\t // make the name unique, if not defined\n\t if (isUndefined(attr.name)) {\n\t element.attr('name', nextUid());\n\t }\n\t\n\t var listener = function(ev) {\n\t if (element[0].checked) {\n\t ctrl.$setViewValue(attr.value, ev && ev.type);\n\t }\n\t };\n\t\n\t element.on('click', listener);\n\t\n\t ctrl.$render = function() {\n\t var value = attr.value;\n\t element[0].checked = (value == ctrl.$viewValue);\n\t };\n\t\n\t attr.$observe('value', ctrl.$render);\n\t}\n\t\n\tfunction parseConstantExpr($parse, context, name, expression, fallback) {\n\t var parseFn;\n\t if (isDefined(expression)) {\n\t parseFn = $parse(expression);\n\t if (!parseFn.constant) {\n\t throw ngModelMinErr('constexpr', 'Expected constant expression for `{0}`, but saw ' +\n\t '`{1}`.', name, expression);\n\t }\n\t return parseFn(context);\n\t }\n\t return fallback;\n\t}\n\t\n\tfunction checkboxInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter, $parse) {\n\t var trueValue = parseConstantExpr($parse, scope, 'ngTrueValue', attr.ngTrueValue, true);\n\t var falseValue = parseConstantExpr($parse, scope, 'ngFalseValue', attr.ngFalseValue, false);\n\t\n\t var listener = function(ev) {\n\t ctrl.$setViewValue(element[0].checked, ev && ev.type);\n\t };\n\t\n\t element.on('click', listener);\n\t\n\t ctrl.$render = function() {\n\t element[0].checked = ctrl.$viewValue;\n\t };\n\t\n\t // Override the standard `$isEmpty` because the $viewValue of an empty checkbox is always set to `false`\n\t // This is because of the parser below, which compares the `$modelValue` with `trueValue` to convert\n\t // it to a boolean.\n\t ctrl.$isEmpty = function(value) {\n\t return value === false;\n\t };\n\t\n\t ctrl.$formatters.push(function(value) {\n\t return equals(value, trueValue);\n\t });\n\t\n\t ctrl.$parsers.push(function(value) {\n\t return value ? trueValue : falseValue;\n\t });\n\t}\n\t\n\t\n\t/**\n\t * @ngdoc directive\n\t * @name textarea\n\t * @restrict E\n\t *\n\t * @description\n\t * HTML textarea element control with angular data-binding. The data-binding and validation\n\t * properties of this element are exactly the same as those of the\n\t * {@link ng.directive:input input element}.\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to\n\t * the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of\n\t * `required` when you want to data-bind to the `required` attribute.\n\t * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t * minlength.\n\t * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any\n\t * length.\n\t * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t * a RegExp found by evaluating the Angular expression given in the attribute value.\n\t * If the expression evaluates to a RegExp object, then this is used directly.\n\t * If the expression evaluates to a string, then it will be converted to a RegExp\n\t * after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n\t * `new RegExp('^abc$')`.
\n\t * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n\t * start at the index of the last search's match, thus not taking the whole input value into\n\t * account.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t * interaction with the input element.\n\t * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.\n\t */\n\t\n\t\n\t/**\n\t * @ngdoc directive\n\t * @name input\n\t * @restrict E\n\t *\n\t * @description\n\t * HTML input element control. When used together with {@link ngModel `ngModel`}, it provides data-binding,\n\t * input state control, and validation.\n\t * Input control follows HTML5 input types and polyfills the HTML5 validation behavior for older browsers.\n\t *\n\t *
\n\t * **Note:** Not every feature offered is available for all input types.\n\t * Specifically, data binding and event handling via `ng-model` is unsupported for `input[file]`.\n\t *
\n\t *\n\t * @param {string} ngModel Assignable angular expression to data-bind to.\n\t * @param {string=} name Property name of the form under which the control is published.\n\t * @param {string=} required Sets `required` validation error key if the value is not entered.\n\t * @param {boolean=} ngRequired Sets `required` attribute if set to true\n\t * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than\n\t * minlength.\n\t * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than\n\t * maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any\n\t * length.\n\t * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match\n\t * a RegExp found by evaluating the Angular expression given in the attribute value.\n\t * If the expression evaluates to a RegExp object, then this is used directly.\n\t * If the expression evaluates to a string, then it will be converted to a RegExp\n\t * after wrapping it in `^` and `$` characters. For instance, `\"abc\"` will be converted to\n\t * `new RegExp('^abc$')`.
\n\t * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to\n\t * start at the index of the last search's match, thus not taking the whole input value into\n\t * account.\n\t * @param {string=} ngChange Angular expression to be executed when input changes due to user\n\t * interaction with the input element.\n\t * @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.\n\t * This parameter is ignored for input[type=password] controls, which will never trim the\n\t * input.\n\t *\n\t * @example\n\t \n\t \n\t \n\t
\n\t
\n\t \n\t
\n\t \n\t Required!\n\t
\n\t \n\t
\n\t \n\t Too short!\n\t \n\t Too long!\n\t
\n\t
\n\t
\n\t user = {{user}}
\n\t myForm.userName.$valid = {{myForm.userName.$valid}}
\n\t myForm.userName.$error = {{myForm.userName.$error}}
\n\t myForm.lastName.$valid = {{myForm.lastName.$valid}}
\n\t myForm.lastName.$error = {{myForm.lastName.$error}}
\n\t myForm.$valid = {{myForm.$valid}}
\n\t myForm.$error.required = {{!!myForm.$error.required}}
\n\t myForm.$error.minlength = {{!!myForm.$error.minlength}}
\n\t myForm.$error.maxlength = {{!!myForm.$error.maxlength}}
\n\t
\n\t
\n\t \n\t var user = element(by.exactBinding('user'));\n\t var userNameValid = element(by.binding('myForm.userName.$valid'));\n\t var lastNameValid = element(by.binding('myForm.lastName.$valid'));\n\t var lastNameError = element(by.binding('myForm.lastName.$error'));\n\t var formValid = element(by.binding('myForm.$valid'));\n\t var userNameInput = element(by.model('user.name'));\n\t var userLastInput = element(by.model('user.last'));\n\t\n\t it('should initialize to model', function() {\n\t expect(user.getText()).toContain('{\"name\":\"guest\",\"last\":\"visitor\"}');\n\t expect(userNameValid.getText()).toContain('true');\n\t expect(formValid.getText()).toContain('true');\n\t });\n\t\n\t it('should be invalid if empty when required', function() {\n\t userNameInput.clear();\n\t userNameInput.sendKeys('');\n\t\n\t expect(user.getText()).toContain('{\"last\":\"visitor\"}');\n\t expect(userNameValid.getText()).toContain('false');\n\t expect(formValid.getText()).toContain('false');\n\t });\n\t\n\t it('should be valid if empty when min length is set', function() {\n\t userLastInput.clear();\n\t userLastInput.sendKeys('');\n\t\n\t expect(user.getText()).toContain('{\"name\":\"guest\",\"last\":\"\"}');\n\t expect(lastNameValid.getText()).toContain('true');\n\t expect(formValid.getText()).toContain('true');\n\t });\n\t\n\t it('should be invalid if less than required min length', function() {\n\t userLastInput.clear();\n\t userLastInput.sendKeys('xx');\n\t\n\t expect(user.getText()).toContain('{\"name\":\"guest\"}');\n\t expect(lastNameValid.getText()).toContain('false');\n\t expect(lastNameError.getText()).toContain('minlength');\n\t expect(formValid.getText()).toContain('false');\n\t });\n\t\n\t it('should be invalid if longer than max length', function() {\n\t userLastInput.clear();\n\t userLastInput.sendKeys('some ridiculously long name');\n\t\n\t expect(user.getText()).toContain('{\"name\":\"guest\"}');\n\t expect(lastNameValid.getText()).toContain('false');\n\t expect(lastNameError.getText()).toContain('maxlength');\n\t expect(formValid.getText()).toContain('false');\n\t });\n\t \n\t
\n\t */\n\tvar inputDirective = ['$browser', '$sniffer', '$filter', '$parse',\n\t function($browser, $sniffer, $filter, $parse) {\n\t return {\n\t restrict: 'E',\n\t require: ['?ngModel'],\n\t link: {\n\t pre: function(scope, element, attr, ctrls) {\n\t if (ctrls[0]) {\n\t (inputType[lowercase(attr.type)] || inputType.text)(scope, element, attr, ctrls[0], $sniffer,\n\t $browser, $filter, $parse);\n\t }\n\t }\n\t }\n\t };\n\t}];\n\t\n\t\n\t\n\tvar CONSTANT_VALUE_REGEXP = /^(true|false|\\d+)$/;\n\t/**\n\t * @ngdoc directive\n\t * @name ngValue\n\t *\n\t * @description\n\t * Binds the given expression to the value of `