diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index fa50b7a61..000000000 --- a/.editorconfig +++ /dev/null @@ -1,6 +0,0 @@ -; Unix-style newlines -[*] -end_of_line = LF -indent_style = tab -indent_size = 4 -trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 07764a78d..000000000 --- a/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* text eol=lf \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index 47ce62c54..000000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,51 +0,0 @@ - - -__How often can you reproduce it?__ - -- [ ] Always -- [ ] Sometimes -- [ ] Rarely -- [ ] Unable -- [ ] I didn’t try - - - -__Description:__ - - - - - -__Steps to reproduce:__ - -1. Include a JS Bin (or equivalent) link if possible -2. Detail the exact steps taken to produce the problem -3. Include a gif if possible; you can use LICEcap to make a gif: http://www.cockos.com/licecap/ - - - -__Expected results:__ - - - - - -__Actual results:__ - - - - - -__Environment:__ - -| Software | Version -| ---------------------- | ------- -| DocumentJS version | -| node -v | -| npm -v | -| Browser | -| Operating system | \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 9060f7237..000000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/.gitignore b/.gitignore index 94de8a9de..e586613a1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,19 +1,2 @@ -test/docs/* -dist -production.js -*.orig -docs.html -tmp -node_modules -site/static/ -site/static/build/ -site/static/dist/ -site/templates/ -lib/generate/test/out/ -lib/configured/tmp/ -lib/configured/test/tmp/ -lib/configured/test/api/ -lib/configured/test/docs/ -lib/generators/html/test/tmp/ -.DS_Store -.DS_Store? +node_modules/ +documentjs/ diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 9cf949503..000000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -package-lock=false \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 073779e7b..3f9aa1601 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,11 @@ language: node_js node_js: -- 6 -- 8 -script: npm test -sudo: false + - "0.10" + - "node" + - "iojs" +# whitelisting master because it is +# simpler than blacklisting everything +# branched off this one +branches: + only: + - master \ No newline at end of file diff --git a/0.1/docs/DocumentJS.apis.command-line.html b/0.1/docs/DocumentJS.apis.command-line.html new file mode 100644 index 000000000..5b11e8cd9 --- /dev/null +++ b/0.1/docs/DocumentJS.apis.command-line.html @@ -0,0 +1,232 @@ + + + + + + + + + + + + DocumentJS - Command Line APIS + + + + + + + + + +
+ +
+ + + +
+ + + + + + +
+ + + +
+
+

Command Line APIS

+
    +
  • group
  • +
+ + +
+ +
+ + + DocumentJS.apis.command-line + + + +   +
+ + +
+
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + diff --git a/0.1/docs/DocumentJS.apis.config.html b/0.1/docs/DocumentJS.apis.config.html new file mode 100644 index 000000000..5ac1c751f --- /dev/null +++ b/0.1/docs/DocumentJS.apis.config.html @@ -0,0 +1,244 @@ + + + + + + + + + + + + DocumentJS - Configuration APIS + + + + + + + + + +
+ +
+ + + +
+ + + + + + +
+ + + +
+
+

Configuration APIS

+
    +
  • group
  • +
+ + +
+ +
+ + + DocumentJS.apis.config + + + +   +
+ + +
+
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + diff --git a/0.1/docs/DocumentJS.apis.document.html b/0.1/docs/DocumentJS.apis.document.html new file mode 100644 index 000000000..83d5c5ec5 --- /dev/null +++ b/0.1/docs/DocumentJS.apis.document.html @@ -0,0 +1,220 @@ + + + + + + + + + + + + DocumentJS - Document APIS + + + + + + + + + +
+ +
+ + + +
+ + + + + + +
+ + + +
+
+

Document APIS

+
    +
  • group
  • +
+ + +
+ +
+ + + DocumentJS.apis.document + + + +   +
+ + +
+
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + diff --git a/0.1/docs/DocumentJS.apis.generate.documentjs.html b/0.1/docs/DocumentJS.apis.generate.documentjs.html new file mode 100644 index 000000000..2ee1f8297 --- /dev/null +++ b/0.1/docs/DocumentJS.apis.generate.documentjs.html @@ -0,0 +1,577 @@ + + + + + + + + + + + + DocumentJS - documentjs + + + + + + + + + +
+ +
+ + + +
+ + + + + + +
+ + + +
+
+

documentjs

+
    +
  • function
  • +
+ + +
+ +
+ + + DocumentJS.apis.generate.documentjs + + + +   +
+ + +
+
+ + + +
+
+ + + + + +
+

Generates documentation on the command line.

+ +
+ + + + +
+

documentjs [NAME[@PATH]] --watch +

+
+

Reads the local directory's documentjs.json

+ + +

Parameters

+ +
    + +
  1. +

    NAME + {String}Optional

    +
    +

    The name of a version or site that this generation will +be limited too.

    + +
    + + + +
  2. + +
  3. +

    PATH + {String}Optional

    +
    +

    The path to the location of a local repository to stand-in for the +version specified by name.

    + +
    + + + +
  4. + +
  5. +

    --watch=false + {String}Optional

    +
    +

    If watch is specified, the docs will be rerun when a source file +changes.

    + +
    + + + +
  6. + +
  7. +

    --forceBuild=true + {String}Optional

    +
    +

    If watch is specified, the docs will be rerun when a source file +changes.

    + +
    + + + +
  8. + +
+ + + + + + +
+ +
+ + + + + + + +
+ +
+ + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + diff --git a/0.1/docs/DocumentJS.apis.generate.grunt.html b/0.1/docs/DocumentJS.apis.generate.grunt.html new file mode 100644 index 000000000..00c64bc9f --- /dev/null +++ b/0.1/docs/DocumentJS.apis.generate.grunt.html @@ -0,0 +1,586 @@ + + + + + + + + + + + + DocumentJS - grunt + + + + + + + + + +
+ +
+ + + +
+ + + + + + +
+ + + +
+
+

grunt

+
    +
  • function
  • +
+ + +
+ +
+ + + DocumentJS.apis.generate.grunt + + + +   +
+ + +
+
+ + + +
+
+ + + + + +
+

Run the DocumentJS Grunt task.

+ +
+ + + + +
+

grunt documentjs[:NAME[@PATH]] +

+
+

Calls the configured grunt task.

+

If no name or path is given, all +versions and sites will be generated.

+

If no documentjs task is configured, the grunt task will read from +a local documentjs.json.

+ + +

Parameters

+ +
    + +
  1. +

    NAME + {String}Optional

    +
    +

    The name of a version or site that this generation will +be limited too.

    + +
    + + + +
  2. + +
  3. +

    PATH + {String}Optional

    +
    +

    The path to the location of a local repository to stand-in for the +version specified by name.

    + +
    + + + +
  4. + +
+ + + + + + +
+ +
+ + + + + + + +
+

Examples

+

Given a Gruntfile.js like:

+
module.exports = function(grunt){
+  grunt.loadNpmTasks('documentjs');
+  grunt.initConfig({
+    documentjs: {
+      versions: {
+        "1.0" : "...",
+        "1.1" : "...",
+        "2.0" : "..."
+      },
+      sites: {
+        "pages" : { ... }  
+      },
+      ...
+    }
+  });
+};
+
+

Generate all versions and sites like:

+
> grunt documentjs
+
+

Generate the "pages" site like:

+
> grunt documentjs:pages
+
+

Generate the 1.0 docs like:

+
> grunt documentjs:1.0
+
+

Generate the 1.0 docs from a local project like:

+
> grunt documentjs:1.0@../local
+
+ +
+ + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + diff --git a/0.1/docs/DocumentJS.apis.internal.html b/0.1/docs/DocumentJS.apis.internal.html new file mode 100644 index 000000000..ac44453f0 --- /dev/null +++ b/0.1/docs/DocumentJS.apis.internal.html @@ -0,0 +1,280 @@ + + + + + + + + + + + + DocumentJS - Internal APIS + + + + + + + + + +
+ +
+ + + +
+ + + + + + +
+ + + +
+
+

Internal APIS

+
    +
  • group
  • +
+ + +
+ +
+ + + DocumentJS.apis.internal + + + +   +
+ + +
+
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + diff --git a/0.1/docs/DocumentJS.docConfig.html b/0.1/docs/DocumentJS.docConfig.html new file mode 100644 index 000000000..990d61398 --- /dev/null +++ b/0.1/docs/DocumentJS.docConfig.html @@ -0,0 +1,664 @@ + + + + + + + + + + + + DocumentJS - docConfig + + + + + + + + + +
+ +
+ + + +
+ + + + + + +
+ + + +
+
+

docConfig

+
    +
  • typedef
  • +
+ + +
+ +
+ + + DocumentJS.docConfig + + + +

{Object}

+ +   +
+ + +
+
+ + + +
+
+ + + + + +
+

Configures the behavior of DocumentJS. The following are values found within +a documentjs.json or the grunt configuration.

+ +
+ + + + +
+ + +

Object +

+
+ + + + + + +

Properties

+ +
    + +
  1. +

    versions + {Object<String,projectConfig | String>}Optional

    +
    +

    A map of version names +to their source or to a projectConfig that specifies where and how +to install the release. For example:

    +
    {
    +  "versions" : {
    +    "1.8.4": "https://github.com/org/project/tree/v1.8.4",
    +    "2.0.9": "https://github.com/org/project/tree/v2.0.9"
    +    "3.0.0-pre": {
    +      "source": "https://github.com/org/project#major",
    +      "npmInstall": true
    +    }
    +  }
    +}
    +
    +

    Each versions key is a version name and the value is either a projectConfig or +will be made into a projectConfig's source.

    +

    Each version will be downloaded to a location depending on versionDest, defaultDest and +defaultVersion. If the version key equals defaultVersion the project will be installed +using defaultDest; otherwise, the project will be installed using versionDest.

    + +
    + + + +
  2. + +
  3. +

    defaultVersion + {String}Optional

    +
    +

    The default version that will be copied +into the defaultDest location. This is so users can go to http://site.com/api +to find the latest docs and not http://site.com/2.0.1/api.

    + +
    + + + +
  4. + +
  5. +

    defaultDest="./<%=name%>" + {String}Optional

    +
    +

    The location of where the default docs should +be rendered to.

    + +
    + + + +
  6. + +
  7. +

    versionDest="./<%=version%>/<%=name%>" + {String}Optional

    +
    +

    The templated directory name of where each version's download +and docs should be created. The default is "<%= version%>". This means +that a 2.0.1 version name will be downloaded to a 2.0.1 folder. DocumentJS +will then look for that version's documentjs.json and run that.

    + +
    + + + +
  8. + +
  9. +

    sites + {Object<String,siteConfig>}

    +
    +

    A map of site names and +options that configure their behavior.

    + +
    + + + +
  10. + +
  11. +

    siteDefaults + {siteConfig}

    +
    +

    Default values for any sites configs.

    + +
    + + + +
  12. + +
+ + +
+ + + +
+ + + + + + + +
+

Use

+

A docConfig is most commonly found in documentjs.json. It configures +the behavior of DocumentJS. There are two main behaviors that docObject controls:

+
    +
  • The retrieval of other projects or versions to be documented.
  • +
  • The documentation behavior of the current project.
  • +
+

A complex configuration, like the one used for producing CanJS.com, +might looks like:

+
{
+  versions: {
+    "1.1.8" : "https://github.com/bitovi/canjs/tree/1.1-legacy",
+    "2.1.4" : "https://github.com/bitovi/canjs/tree/v2.1.4",
+    "2.2.0-pre" : "https://github.com/bitovi/canjs/tree/minor",
+    "3.0.0-pre" : {
+      "source": "https://github.com/bitovi/canjs/tree/major",
+      "npmInstall" : true
+    }
+  },
+  versionDest: "<%= version %>",
+  defaultVersion: "2.1.4",
+  defaultDest: ".",
+  siteDefaults: {
+    "templates" : "theme/templates"
+  },
+  sites: {
+    pages: {
+      pattern: "_pages/*.md",
+      dest: "."
+    }
+  }
+}
+
+

This configuration will download the listed versions into "./<%= version %>/canjs" except for +2.1.4, which be downloaded to "./canjs". Then each version's documentjs.json will be +generated. Finally, all markdown files in _pages will be generated to ".".

+ +
+ + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + diff --git a/0.1/docs/DocumentJS.guides.configuring.html b/0.1/docs/DocumentJS.guides.configuring.html new file mode 100644 index 000000000..03854e1f1 --- /dev/null +++ b/0.1/docs/DocumentJS.guides.configuring.html @@ -0,0 +1,600 @@ + + + + + + + + + + + + DocumentJS - configuring + + + + + + + + + +
+ +
+ + + +
+ + + + + + +
+ + + +
+
+

configuring

+
    +
  • page
  • +
+ + +
+ +
+ + + DocumentJS.guides.configuring + + + +   +
+ + +
+
+ + + +
+
+ + + + + +
+

Learn how to configure the documentjs.json file for your project.

+ +
+ + + + + + + + + + +
+

In the root folder of your project, a documentjs.json file is used to configure your project's +documentation. docConfig specifies the high-level structure and options allowed in +the documentjs.json file. There are a lot of options. This guide walks you through the +most common setups.

+

Configuring for multiple versions using github pages

+

This configuration assumes you:

+
    +
  • Are using github pages to host your code's documentation.
  • +
  • Have installed as an npm dependency.
  • +
+

You will setup the code of your project to be documented and then +setup an empty gh-pages branch to download and document that code.

+
    +
  1. Create a documentjs.json file in your project's root folder.

    +

    Specify a site that will find your project's +documented files and generate them within a folder. The following will get all .md and +.js files in the lib and docs folders and put them in an api folder +next to your project's folder:

    +
     {
    +   "sites": {
    +     "api": {
    +       "glob": "{lib,docs}/**/*.{js,md}"
    +     }
    +   }
    + }
    +
    +

    Run documentjs and +check that the output looks like:

    +
     project> ./node_modules/.bin/documentjs
    + project> cd ../api
    + api> open index.html
    +
    +

    Make sure to commit and push your project's documentjs.json file.

  2. +
  3. Create and clone a gh-pages branch.

    +

    Create the branch:

    +
     project> git checkout --orphan gh-pages
    +
    +

    Remove files not needed in the static +site. Commit and push the branch:

    +
     project> git rm -rf .
    + project> touch documentjs.json
    + project> git add documentjs.json
    + project> git commit -m "first commit"
    + project> git push origin gh-pages
    +
    +

    Clone the branch so you don't have to switch back and forth constantly:

    +
     project> cd ..
    + dev> git clone -b gh-pages git://github.com/org/project project.com
    + dev> cd project.com
    +
  4. +
+
    +
  1. Install DocumentJS as an npm dependency

    +
     project.com> npm install documentjs --save-dev
    +
  2. +
  3. Create a gh-pages documentjs.json file.

    +

    List the version number of your project and the branch where +you added the first documentjs.json:

    +
     {
    +   "versions": {
    +     "1.0.0": "git://github.com/org/project#master"
    +   }
    + }
    +
    +

    By default, this will download the master into project.com/1.0.0/project +and then run its documentjs.json, +creating project.com/1.0.0/api/index.html. For stable linking and SEO, you +likely want your most recent production documentation +in the same place. For example, you might always want the latest production +API docs at project.com/api/index.html. The defaultVersion lets you specify +a version that should get put in that location.

    +

    Set defaultVersion to the version number of your project:

    +
     {
    +   "versions": {
    +     "1.0.0": "git://github.com/org/project#master"
    +   },
    +   "defaultVersion": "1.0.0"
    + }
    +
    +

    Checkout docConfig's documentation for how to change the location +of the default version, and change the location of other versions, and add +other behaviors.

  4. +
  5. Generate the docs.

    +

    Use documentjs to generate +the docs:

    +
    project.com> ./node_modules/.bin/documentjs
    +
    +

    This will download all versions and generate their docs. This isn't ideal if +you are trying to document a single version. You would have to commit and +push to see changes. Instead, you can swap a specific version to be read from +the filesystem like:

    +
    project.com> node_modules/.bin/documentjs 1.0.0@../documentjs
    +
    +

    This will use the local documentjs folder as the 1.0.0 version.

  6. +
+

Configuring for a simple single version.

+

Coming soon.

+ +
+ + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + diff --git a/0.1/docs/DocumentJS.guides.contributing.html b/0.1/docs/DocumentJS.guides.contributing.html new file mode 100644 index 000000000..c64fcaa8a --- /dev/null +++ b/0.1/docs/DocumentJS.guides.contributing.html @@ -0,0 +1,567 @@ + + + + + + + + + + + + DocumentJS - contributing + + + + + + + + + +
+ +
+ + + +
+ + + + + + +
+ + + +
+
+

contributing

+
    +
  • page
  • +
+ + +
+ +
+ + + DocumentJS.guides.contributing + + + +   +
+ + +
+
+ + + +
+
+ + + + + +
+

Learn how to contribute to DocumentJS.

+ +
+ + + + + + + + + + +
+

Developing

+

To develop DocumentJS, fork and clone DocumentJS. Make sure you +have NodeJS installed. Then:

+
    +
  1. Install npm modules

    +
    > npm install
    +
  2. +
  3. Run tests:

    +
    > npm test
    +
  4. +
+

Code Organization

+

DocumentJS's functionality and code are broken down into the following folders within documentjs/lib:

+
    +
  • find - Gets each file that should be processed.

  • +
  • process - Converts comments and files +into a docObject and puts every docObject in +the docMap.

  • +
  • tags - Tags used by process to add properties to a docObject.

  • +
  • generators/html - Generates an HTML +site given a docMap. This process is futher broken down into:

    +
      +
    • generators/html/build - Compile the templates, static resources, and mustache helpers used to generate the site.
    • +
    • generators/html/write - Uses the compiled templates, static resources, and helpers to write out the site.
    • +
  • +
  • generate - Given options, coordinates between find and the html generator to +produce a site.

  • +
  • configure - Reads documentjs.json and calls out to modules in the previous folders.

  • +
+

Testing

+

To run all tests, run:

+
> npm test
+
+

This runs mocha on test.js like:

+
> mocha test.js --reporter spec
+
+

test.js require's other test files within lib.

+

Website and Documentation

+

DocumentJS's gh-pages branch contains +documentjs.com's code. It uses DocumentJS to produce the website. The best way to +edit the docs it to:

+
    +
  1. Fork/Clone https://github.com/bitovi/documentjs/tree/gh-pages next to the version +of documentjs you want to be documented:

    +
    documentjs> cd ..
    +> git clone git@github.com:bitovi/documentjs -b gh-pages documentjs.com
    +
  2. +
  3. Install NPM dependencies:

    +
    > cd documentjs.com
    +documentjs.com> npm install
    +
  4. +
  5. Generate site the entire site with:

    +
    documentjs.com> npm run-script documentjs
    +
  6. +
  7. Update the site with changes in your local documentjs. Change the version number 0.0.0 accordingly:

    +
    documentjs.com> node node_modules/.bin/documentjs 0.0.0@../documentjs
    +
  8. +
  9. Edit source in documentjs.

  10. +
  11. Regenerate site and check changes

    +
    documentjs.com> node node_modules/.bin/documentjs 0.0.0@../documentjs
    +
  12. +
  13. Checkin and push changes to documentjs.

  14. +
  15. Checkin and push gh-pages branch changes.

  16. +
+ +
+ + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + diff --git a/0.1/docs/DocumentJS.guides.customizing.html b/0.1/docs/DocumentJS.guides.customizing.html new file mode 100644 index 000000000..4be12f1cc --- /dev/null +++ b/0.1/docs/DocumentJS.guides.customizing.html @@ -0,0 +1,693 @@ + + + + + + + + + + + + DocumentJS - customizing + + + + + + + + + +
+ +
+ + + +
+ + + + + + +
+ + + +
+
+

customizing

+
    +
  • page
  • +
+ + +
+ +
+ + + DocumentJS.guides.customizing + + + +   +
+ + +
+
+ + + +
+
+ + + + + +
+

Learn how to change the appearence and JavaScript behavior of your generated html documentation.

+ +
+ + + + + + + + + + +
+

The html generator allows you to completely +customize the look and behavior of the site. You can also supply your +own generators to build other forms of documentation.

+

Customizing the default HTML generator

+

You can customize the templates and helpers +used to render a docObject and customize +the JavaScript and CSS used by the HTML pages. This behavior +is controlled mostly by the siteConfig's +templates and static options. However, some tags like @hide +allow you to alter the behavior slightly.

+

Changing the HTML

+

The html generator uses +Handlebars templates and helpers +to render docObjects. Overwrite the +default templates with the siteConfig templates +option. If you are producing a multi-versioned site, and you want all versions +to have the same template, your website's documentjs.json might +look like:

+
{
+  "versions": { ... }
+  "siteDefaults": {
+    "templates": "theme/templates"
+  }
+} 
+
+

The templates path should be specified relative to the documentjs.json folder.

+

This will use the templates (and helpers) in "theme/templates" to overwrite +the default helpers and templates. The default templates can be found +in documentjs/site/default/templates.

+

documentjs/site/default/templates has the following templates:

+
    +
  • layout.mustache - Contains the outer most content that is the same on every page. +The page's script tags are loaded here.
  • +
  • content.mustache - Rendered within layout.mustache. It calls out to all other templates as partials.
  • +
  • menu.mustache - The sidebar menu.
  • +
  • active-menu.mustache - The part of the sidebar menu that shows the children of the active item.
  • +
  • signature.mustache - Shows a "signature" block. A signature block for a function has the signature of the function and the params listed within it.
  • +
  • title.mustache - The header of each rendered page.
  • +
  • types.mustache - Given a valueData, iterates through each of its types and creates a signature with it.
  • +
+

For example, to make a change to the layout, copy documentjs/site/default/templates/layout.mustache +to theme/templates and make changes in your copy.

+

Adding Helpers

+

You can add and use your own Handlebars helpers by creating a .js file in +your templates directory. For example, you can +create theme/templates/helpers.js. Any .js file will be required +as a module with CommonJS. The module is expect to export a +makeHelpers function like:

+
// theme/templates/helpers.js
+module.exports = function(docMap, options, getCurrent){
+  return {
+    "hello-world" : function(){
+      return "Hello World!"
+    }
+  }
+};
+
+

This allows you to write {{hello-world}} and get back:

+
Hello World!
+
+

This behavior is provided by generators.html.build.helpers.

+

Changing static resources: Styles, Images, and JavaScript

+

The html generator builds a static distributable that +includes the CSS, Images, and JavaScript used by the site. The default content +used to build the site can be found within documentjs/site/default/static.

+

You can overwrite the +default static content with the siteConfig static +option. If you are producing a multi-versioned site, and you want all versions +to have the same static content, your website's documentjs.json might +look like:

+
{
+  "versions": { ... }
+  "siteDefaults": {
+    "static": "theme/static"
+  }
+} 
+
+

After the default and static content have been combined, the static/build.js file +is required with CommonJS and run. static/build.js is expected to export a +builder function that builds the final static content +and copies it to a distributable location.

+

The default builder uses StealJS to build a CanJS and +LESS application. It copies the minfied css and js bundles as well as +all files in the static/fonts, static/img, and static/templates folder to the distributable location.

+

It's likely you don't have to write a custom builder and can instead overwrite the default CSS, Image, and +JS files used by the builder.

+

Changing Styles

+

documentjs/site/default/static/styles contains the default styles. The styles are +broken down functionally:

+
    +
  • styles.less - Loads all other styles.
  • +
  • config.less - Configuration of colors and image location variables.
  • +
  • api.less - Styles for the main content area.
  • +
  • base.less - Styles for html tags.
  • +
  • brand.less - Styles for the logo .brand class.
  • +
  • code.less - Styles for code blocks.
  • +
  • fonts.less - Sets fonts for the page.
  • +
  • ie.less- If internet explorer is used, this style is used.
  • +
  • layout.less - Styles for the layout.mustache template.
  • +
  • reset.less - A css reset.
  • +
  • sidebar.less - Styles for the sidebar.
  • +
+

To change the default styles, copy one of the less files above to your +siteConfig.static's styles folder and make changes.

+

Changing Colors

+

To change colors, copy config.less and change the @brand-color options:

+
 @brand-color-1: #484848;
+
+

Below the @brand-color definitions, you can see how they are mapped to +parts of the application.

+

Adding other styles

+

To add another style, create the less or css file in +your siteConfig.static's styles folder. Then, copy styles.less and import your +stylesheet:

+
@import 'ie.less';
+@import 'mystyles.less'
+
+

Changing Images

+

To change the default images, add your replacement images +to siteConfig.static's img folder. You probably want to create a:

+
    +
  • img/logo.svg - Your project's logo.
  • +
  • img/logo-grey.svg Your project's logo in greyscale.
  • +
+

Changing JavaScript

+

The default builder loads and builds the documentjs/site/default/static/static.js file +using StealJS. This imports various modules and initializes +their behavior. StealJS supports importing ES6, AMD, and CJS modules. To add your own +behavior:

+
    +
  1. Add your JavaScript files to the siteConfig.static folder.

  2. +
  3. Copy documentjs/site/default/static/static.js to siteConfig.static folder.

  4. +
  5. Edit your copy of static.js to import and initialize your JavaScript code:

    +
     steal(
    +   "./your_module.js"
    +   "./content_list.js",
    +   "./frame_helper.js",
    +   "./versions.js",
    +   "./styles/styles.less!",
    +   "./prettify",function(YourModule, ContentList, FrameHelper, ...){
    +     // call your module
    +     YourModule()
    +     // leave the rest of the code
    +     var codes = document.getElementsByTagName("code");
    +     ...
    + });
    +
  6. +
+

Writing your own generator

+

You can create your own generator module which gives you +complete control over how a docMap is converted to +some output.

+

If you do decide to create your own generator, the best place to do that is within +its own project that is registered on npm. To do that, create a github project with +a main.js that exports a generator function like:

+
var Q = require('q'),
+    fs = require('fs'),
+    writeFile = Q.denodify(fs.writeFile),
+    path = require('path');
+    
+module.exports = function(docMapPromise, options){
+   return docMapPromise.then(function(docMap){
+     return writeFile(
+         path.join(options.dest,'docMap.json'), 
+         JSON.stringify(docMap) );
+   });
+};
+
+

Publish this to npm. For this example, we'll assume it's published as "doc-map-json".

+

In a project that wants to use this generator, make sure it's listed +as a devDependency in package.json:

+
{
+  ...
+  "devDependencies": {
+    "documentjs" : ">0.0.0",
+    "doc-map-json": ">0.0.0"
+  }
+}
+
+

In documentjs.json, make sure to list that generator and any options it needs in +your siteConfigs.

+
{
+  "sites": {
+    "api": {
+      "generators": ["html","doc-map-json"],
+      "dest": "docs"
+    }
+  }
+}
+
+ +
+ + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + diff --git a/0.1/docs/DocumentJS.guides.documenting.html b/0.1/docs/DocumentJS.guides.documenting.html new file mode 100644 index 000000000..d91d151bb --- /dev/null +++ b/0.1/docs/DocumentJS.guides.documenting.html @@ -0,0 +1,572 @@ + + + + + + + + + + + + DocumentJS - documenting + + + + + + + + + +
+ +
+ + + +
+ + + + + + +
+ + + +
+
+

documenting

+
    +
  • page
  • +
+ + +
+ +
+ + + DocumentJS.guides.documenting + + + +   +
+ + +
+
+ + + +
+
+ + + + + +
+

Learn how to document your code.

+ +
+ + + + + + + + + + +
+

This guide walks you through adding the right tags to your source +or markdown files to create documentation useful to your users.

+

Every markdown file or comment block like /** */ gets turned into +a docObject. Those docObjects are used to render templates +to generate the output html.

+

Tags like @function within a markdown file or comment block add or change +properties on the docObject. Understanding +the tags behavior is the key to making useful documentation.

+

Types

+

A docObject's most important tag is the one that determines its +type. The following tags are the type tags and what they document:

+
    +
  • @module - A module's export value.
  • +
  • @typedef - Defines a custom type.
  • +
  • @page - A page of information.
  • +
  • @function - A JavaScript function.
  • +
  • @constructor - A JavaScript function intended to be called with new.
  • +
  • @static - Creates a placeholder for static properties on a constructor.
  • +
  • @prototype - Creates a placeholder for prototype properties on a constructor.
  • +
  • @property - Creates a property value on an object.
  • +
+

A module and typedef tag can document other types like a function. For example, +use @module when something is both module and a function.

+

Structuring your documentation

+

DocumentJS is very flexible about how your modules get organized in the sidebar and how they +link to each other. The following describes useful patterns for different types of projects:

+
    +
  • Multi module projects that use a module loader.
  • +
+

Multi module projects that use a module loader

+

This section describe how best to document a project or application that +has many individual modules that you want documented.

+

For this scenario, it's common to use the @module tag. It can be used +to document modules that return:

+
    +
  • A single function. Ex: @module {function} module/name
  • +
  • An object with properties. Ex: @module {{}} module/name
  • +
  • A single constructor function. Ex: @module {function():module/name} module/name
  • +
+

Here's an example multi-module project +and its generated docs. It consists of:

+
    +
  • An overview page with a grouping for modules and guides.
  • +
  • An example of a constructor function.
  • +
  • An example typedef used by the constructor function +to document the constructor function's arguments.
  • +
  • An example function module.
  • +
  • An example object module.
  • +
+

Linking

+

You can link to documentation pages by their name like [NAME TITLE?]. For example, a +function like:

+
@function project.math.add
+
+

Can be linked to like [project.math.add] in description or body text. This will create a link like:

+
<a href="project.math.add.html">project.math.add</a>
+
+

A link title can be provided with a space after the docObject name. +For example [project.math.add add numbers] creates a link like:

+
<a href="project.math.add.html">add numbers</a>
+
+

A title can be provided for all types. For example, you can include a @function title +like:

+
@function project.math.add add
+
+

If a title is provided with the type, but not in a link, the type's title will be used. For example: +[project.math.add] with the previous function will create:

+
<a href="project.math.add.html">add</a>
+
+ +
+ + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + diff --git a/0.1/docs/DocumentJS.guides.generating.html b/0.1/docs/DocumentJS.guides.generating.html new file mode 100644 index 000000000..1e9e52652 --- /dev/null +++ b/0.1/docs/DocumentJS.guides.generating.html @@ -0,0 +1,543 @@ + + + + + + + + + + + + DocumentJS - generating + + + + + + + + + +
+ +
+ + + +
+ + + + + + +
+ + + +
+
+

generating

+
    +
  • page
  • +
+ + +
+ +
+ + + DocumentJS.guides.generating + + + +   +
+ + +
+
+ + + +
+
+ + + + + +
+

Learn how to generate your documentation.

+ +
+ + + + + + + + + + +
+

Generating With Command Line

+

To generate your docs, if you installed DocumentJS globally, run:

+
 > documentjs
+
+

Otherwise, you run:

+
 > ./node_modules/.bin/documentjs
+
+

You can specify a version or site to run like:

+
 > ./node_modules/.bin/documentjs 1.0.0
+
+

You can also specify a local repository to find a version like:

+
 > ./node_modules/.bin/documentjs 1.0.0@../documentjs
+
+

Command Line Options

+

The command line supports the following options that map to various properties +in docConfig, projectConfig, or siteConfig:

+
    +
  • watch - regenerate on changes
  • +
  • forceBuild - rebuild templates and static distributable
  • +
  • debug - turn on debug messages
  • +
  • help - command line information
  • +
+

You can turn on these options like:

+
> ./node_modules/.bin/documentjs --watch
+
+

They are aliased to single characters and groupable so you can turn on watch, forceBuild and +debug like:

+
> ./node_modules/.bin/documentjs --wfd
+
+

Generating With Grunt

+

To generate with grunt run:

+
> grunt documentjs
+
+

This will generate all configured versions and sites. To run a specific site or version +add a :NAME where NAME is the version or site name like:

+
> grunt documentjs:2.0
+
+

You can point a version to a local copy like:

+
> grunt documentjs:2.0@../myproject
+
+ +
+ + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + diff --git a/0.1/docs/DocumentJS.guides.html b/0.1/docs/DocumentJS.guides.html new file mode 100644 index 000000000..0936f1d06 --- /dev/null +++ b/0.1/docs/DocumentJS.guides.html @@ -0,0 +1,280 @@ + + + + + + + + + + + + DocumentJS - guides + + + + + + + + + +
+ +
+ + + +
+ + + + + + +
+ + + +
+
+

guides

+
    +
  • group
  • +
+ + +
+ +
+ + + DocumentJS.guides + + + +   +
+ + +
+
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + diff --git a/0.1/docs/DocumentJS.guides.installing.html b/0.1/docs/DocumentJS.guides.installing.html new file mode 100644 index 000000000..225771d57 --- /dev/null +++ b/0.1/docs/DocumentJS.guides.installing.html @@ -0,0 +1,542 @@ + + + + + + + + + + + + DocumentJS - installing + + + + + + + + + +
+ +
+ + + +
+ + + + + + +
+ + + +
+
+

installing

+
    +
  • page
  • +
+ + +
+ +
+ + + DocumentJS.guides.installing + + + +   +
+ + +
+
+ + + +
+
+ + + + + +
+

Learn how to install DocumentJS.

+ +
+ + + + + + + + + + +
+

There are two primary ways to install DocumentJS so it can be used for a project:

+
    +
  1. Install DocumentJS as a npm package dependency.
  2. +
  3. Install DocumentJS globally.
  4. +
+

Installing globally allows you to use documentjs command +from anywhere. However, it will not be installed +automatically for npm projects. For this reason, we encourage people to install it as +an npm dependency.

+

Prerequisites

+

Install Node.js on your computer.

+

Installing as an npm package dependency

+

In your node project's parent folder, run:

+
> npm install documentjs --save-dev
+
+

Node will copy documentjs's executable to ./node_modules/.bin/documentjs. On linux/mac, you +can run the documentjs command like:

+
> ./node_modules/.bin/documentjs
+
+

Installing globally

+

Run:

+
> npm install documentjs
+
+

Installing for Grunt

+

DocumentJS comes with a Grunt task. Simply import it in your Gruntfile.js and +configure the documentjs task with the docConfig:

+
// Gruntfile.js
+module.exports = function(grunt){
+  grunt.loadNpmTasks('documentjs');
+  grunt.initConfig({
+    documentjs: {
+      versions: { ... },
+      sites: { ... }
+    }
+  });
+};
+
+

Installing for Gulp

+

comming soon

+ +
+ + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + diff --git a/0.1/docs/DocumentJS.projectConfig.html b/0.1/docs/DocumentJS.projectConfig.html new file mode 100644 index 000000000..3a078d454 --- /dev/null +++ b/0.1/docs/DocumentJS.projectConfig.html @@ -0,0 +1,580 @@ + + + + + + + + + + + + DocumentJS - projectConfig + + + + + + + + + +
+ +
+ + + +
+ + + + + + +
+ + + +
+
+

projectConfig

+
    +
  • typedef
  • +
+ + +
+ +
+ + + DocumentJS.projectConfig + + + +

{Object}

+ +   +
+ + +
+
+ + + +
+
+ + + + + +
+

The configuration options for a project to retrieve and document.

+ +
+ + + + +
+ + +

Object +

+
+ + + + + + +

Properties

+ +
    + +
  1. +

    source + {String}

    +
    +

    The source location of the project.

    + +
    + + + +
  2. + +
  3. +

    version + {String}Optional

    +
    +

    The version name of the project. The default value is +this project config's versions key.

    + +
    + + + +
  4. + +
  5. +

    path + {String}Optional

    +
    +

    The location of where the project should be +installed. The default is to use docConfig's versionDest.

    + +
    + + + +
  6. + +
  7. +

    npmInstall=false + {Boolean}Optional

    +
    +

    Use npm to install the resource.

    + +
    + + + +
  8. + +
+ + +
+ + + +
+ + + + + + + +
+ +
+ + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + diff --git a/0.1/docs/DocumentJS.siteConfig.html b/0.1/docs/DocumentJS.siteConfig.html new file mode 100644 index 000000000..f64c783f6 --- /dev/null +++ b/0.1/docs/DocumentJS.siteConfig.html @@ -0,0 +1,695 @@ + + + + + + + + + + + + DocumentJS - siteConfig + + + + + + + + + +
+ +
+ + + +
+ + + + + + +
+ + + +
+
+

siteConfig

+
    +
  • typedef
  • +
+ + +
+ +
+ + + DocumentJS.siteConfig + + + +

{Object}

+ +   +
+ + +
+
+ + + +
+
+ + + + + +
+

The collective configuration

+ +
+ + + + +
+ + +

Object +

+
+ + + + + + +

Properties

+ +
    + +
  1. +

    glob="**/*.{js,md}" + {String | GlobObject}Optional

    +
    +

    Configures the files that will be processed into documentation. The glob +option either specifies a minmatch +pattern like:

    +
    {glob: "*.js"}
    +
    +

    Or a GlobObject that specifies the +a minmatch pattern and +other options like:

    +
    {
    +  glob: {
    +    pattern: "*.js",
    +    cwd: __dirname  
    +  }
    +}
    +
    +

    By default the pattern "**/*.{js,md}" is used, which +searches for all .js and .md files within the project.

    + +
    + + + + + +
  2. + +
  3. +

    dest + {String}Optional

    +
    +

    The location of the folder where DocumentJS should +write the output. Locations should be relative to the parent folder of the +documentjs.json file. If this is not provided, the site name of the configuration +is used.

    + +
    + + + +
  4. + +
  5. +

    parent + {String}Optional

    +
    +

    The primary page which will be treated as the documentation's +homepage. If one is not provided, one will be attempted to be found by:

    + +
    + + + +
  6. + +
  7. +

    pageConfig + {Object}Optional

    +
    +

    An object that is made availalbe to the generated HTML pages.

    + +
    + + + +
  8. + +
  9. +

    generators + {moduleName | Array<moduleName>}Optional

    +
    +

    Generators specifies a generator module or array of modules used to create an +output for documentation. The default generator is "html" which maps +to documentjs's internal html generator.

    +

    You can specify other modules which will be passed a promise containing +the docMap and the options and be expected +to return a promise that resolves when they are complete.

    + +
    + + + + + +
  10. + +
  11. +

    static + {String}

    +
    +

    The location of static content used to overwrite or +add to the default static content.

    + +
    + + + +
  12. + +
  13. +

    minifyBuild=true + {Boolean}Optional

    +
    +

    If set to false the build will not +be minified. This behavior should be implemented by the "build" module.

    + +
    + + + +
  14. + +
  15. +

    forceBuild=false + {Boolean}Optional

    +
    +

    If set to true, rebuilds the +static bundle even if it has already been built.

    + +
    + + + +
  16. + +
  17. +

    templates + {String}Optional

    +
    +

    The location of templates used to overwrite or +add to the default templates.

    + +
    + + + +
  18. + +
+ + +
+ + + +
+ + + + + + + +
+

Use

+

A siteConfig object configures a single call to generate. It +specifies files to be converted to documentation and configures how the output should be +generated. It looks like:

+
{
+  glob: "*.js",
+  dest: "../docs",
+  templates: "theme/templates"
+}
+
+

A siteConfig object is within a docConfig's sites or siteDefaults +objects like:

+
{
+  siteDefaults: {
+    templates: "theme/templates"
+  },
+  sites: {
+    "api": {
+      glob: "*.js",
+      dest: "../docs"
+    }
+  }
+}
+
+ +
+ + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + diff --git a/0.1/docs/andName.html b/0.1/docs/andName.html new file mode 100644 index 000000000..e4a1bd1b7 --- /dev/null +++ b/0.1/docs/andName.html @@ -0,0 +1,320 @@ + + + + + + + + + + + + DocumentJS - andName + + + + + + + + + +
+ +
+ + + +
+ + + + + + +
+ + + +
+
+

andName

+
    +
  • function
  • +
+ + +
+ +
+ + +   +
+ + +
+
+ + + +
+
+ + + + + + + + + + + +
+

helpers.andName(options) +

+
+ + +

Parameters

+ +
    + +
  1. +

    options + {Object}

    +
    + +
    + + +
      + +
    • +
      parents + {Array | String} +
      +
      +

      Allowable parents

      + +
      +
    • + +
    • +
      useName + {Array<String>} +
      +
      +

      use the name if parent is one of these items

      + +
      +
    • + +
    • +
      scope + {DocProps} +
      +
      + +
      +
    • + +
    • +
      docMap + {DocMap} +
      +
      + +
      +
    • + +
    • +
      name + {String} +
      +
      + +
      +
    • + +
    + + +
  2. + +
+ + + + + + +
+ +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + diff --git a/0.1/docs/dist/bundles/static.css b/0.1/docs/dist/bundles/static.css new file mode 100644 index 000000000..cb96ebcc8 --- /dev/null +++ b/0.1/docs/dist/bundles/static.css @@ -0,0 +1 @@ +body{margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:active,a:hover{outline:0}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{max-width:100%;height:auto;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic}#map_canvas img,.google-maps img{max-width:none}button,input,select,textarea{margin:0;font-size:100%;vertical-align:middle}button,input{line-height:normal}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button,input[type=button],input[type=checkbox],input[type=radio],input[type=reset],input[type=submit],label,select{cursor:pointer}textarea{overflow:auto;vertical-align:top}br{float:none;clear:both}*{font-family:"Helvetica Neue-Light","Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;font-weight:300;-webkit-font-smoothing:antialiased}body{background:#eae9e9}body.style-demo{background:#fff;padding:10px}section{margin-bottom:15px}input,textarea{font-size:1em;padding:5px}input[type=submit]{cursor:pointer}:focus{outline:0}form label{display:block;margin-bottom:5px}form input,form select,form textarea{display:block;margin-bottom:10px}option{padding:1px 3px}table{border-spacing:0;margin-bottom:21px;width:100%;border-collapse:separate;border-top:1px solid #ccc;border-left:1px solid #ccc;background:#fff;border-radius:2px}td,th{padding:3px 6px;border-bottom:1px solid #ccc;border-right:1px solid #ccc;text-shadow:0 1px 0 #fff}th{background:#eae9e9}iframe{margin-bottom:20px}iframe body{background-color:#fff}h1,h2,h3,h4,h5,h6{margin:0;margin-bottom:10px}h1{font-size:2.5em}h2{font-size:2em}h3{font-size:1.5em}h4{font-size:1.25em}h5{font-size:1em}h6{font-size:.75em}.p,p{font-size:16px;line-height:24px;margin-top:0;margin-bottom:15px}a{text-decoration:underline;color:#1f54c6;cursor:pointer}a:hover{text-decoration:none}a img{border:none}hr{height:1px;margin-bottom:20px;background:#ccc;border:none}ol,ul{list-style:none}ul{list-style:square;margin:0 0 21px 2.5em}ol{list-style-type:decimal;margin:0 0 21px 3em}ol ol{list-style:upper-roman}ol ol ol{list-style:lower-roman}ol ol ol ol{list-style:upper-alpha}ol ol ol ol ol{list-style:lower-alpha}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dl{margin:0 0 18px 3px}dl dt{font-weight:700;margin:12px 0 0 0}dl dd{margin:6px 0 0 1.5em}b,strong{font-weight:bolder}cite,em{font-style:italic}cite cite,em em{font-style:normal}abbr{cursor:help}acronym{text-transform:uppercase;border-bottom:1px dashed #706f70;cursor:help}big{font-size:120%}small,sub,sup{font-size:80%}sup{vertical-align:baseline;position:relative;bottom:.3em}sub{vertical-align:baseline;position:relative;top:.3em}address{font-style:italic;margin:0 0 21px 0}dd address,li address{margin:0}blockquote{margin:0 2.5em;font-style:normal}blockquote cite,blockquote em{font-style:italic}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}caption{font-size:.9em;font-style:italic;text-align:right}dfn,ins{font-style:italic;text-decoration:none;border-bottom:1px solid #706f70}del,s,strike{text-decoration:line-through}object{margin-bottom:21px}.text-shadow-light{text-shadow:0 1px 0 #fff}div.light{border-radius:3px;padding:10px;background:#ccc}div.light h3{text-shadow:0 1px 0 #fff}div.dark{border-radius:3px;padding:10px;background:#999}div.dark h3{color:#ccc;text-shadow:0 -1px 0 rgba(0,0,0,.5)}.clear{clear:both}.center{margin-right:auto;margin-left:auto;text-align:center}.float-right,.floatright,.pull-right,.pullright{float:right}.float-left,.float-right,.pull-left,.pullleft{float:left}@font-face{font-family:Bitstrap;src:url(../../fonts/bitstrapregular.eot);src:url(../../fonts/bitstrapregular.eot?#iefix) format('embedded-opentype'),url(../../fonts/bitstrapregular.ttf) format('truetype'),url(../../fonts/Bitstrap-Regular.otf) format("otf");font-weight:400;font-style:normal}.icon-font,[class*=" icon-"],[class^=icon-]{font-family:Bitstrap;font-weight:400;font-style:normal;text-decoration:inherit;display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none!important;background-position:0 0;background-repeat:repeat}.icon-font:before,[class*=" icon-"]:before,[class^=icon-]:before{text-decoration:inherit;display:inline-block;speak:none}.icon-breakout:before{content:"\e000"}.icon-menudown:before{content:"\e001"}.icon-bits:before{content:"\e002";position:relative;left:-5px}.icon-twitter:before{content:"\e003"}.icon-canjs:before{content:"\e004"}.icon-app:before{content:"\e005"}.icon-forum:before{content:"\e006"}.icon-chat:before{content:"\e007"}.icon-plugin:before{content:"\e008"}.icon-code:before{content:"\e009"}.icon-article:before{content:"\e010"}.icon-muscle:before{content:"\e011"}.icon-search:before{content:"\e012"}.icon-rocket:before{content:"\e013"}.icon-fork:before{content:"\e014"}.icon-menuright:before{content:"\e017"}.icon-next:before{content:"\e015"}.icon-prev:before{content:"\e016"}.icon-question:before{content:"\e018"}.icon-voteup:before{content:"\e019"}.icon-clock:before{content:"\e020"}.icon-mug:before{content:"\e021"}.icon-shirt:before{content:"\e022"}.icon-sticker:before{content:"\e023"}.icon-bug:before{content:"\e024"}.icon-rss:before{content:"\e025"}.icon-user:before{content:"\e026"}.icon-github:before{content:"\e027"}.icon-award:before{content:"\e028"}.icon-close:before{content:"\e029"}.icon-check:before{content:"\e030"}.icon-google:before{content:"\e031"}.icon-star:before{content:"\e032"}.icon-retweet:before{content:"\e033"}.icon-reply:before{content:"\e034"}.icon-bitovi:before{content:"\e035"}.icon-plus:before{content:"\e036"}.icon-minus:before{content:"\e037"}.icon-logout:before{content:"\e038"}.icon-lookright:before{content:"\e039"}.icon-lookleft:before{content:"\e040"}.icon-flag:before{content:"\e041"}.icon-flexible:before{content:"\e042"}.icon-photo:before{content:"\e043"}.icon-download:before{content:"\e044"}.icon-list:before{content:"\e045"}.icon-play:before{content:"\e046"}.icon-wizard-first:before{content:"\e047"}.icon-wizard:before{content:"\e048"}.icon-wizard-last:before{content:"\e049"}.icon-check:before{content:"\e050"}.icon-jmvc:before{content:"\e052"}.icon-funcunit:before{content:"\e053"}.icon-browsertest:before{content:"\e054"}.icon-arrow:before{content:"\e055"}.arrow:before{content:"";border-color:#706f70 transparent;border-style:solid;border-width:0 5px 5px 5px;display:block;height:0;width:0}.arrow.left:before{border-color:transparent #706f70;border-width:5px 5px 5px 0}.arrow.right:before{border-color:transparent #706f70;border-width:5px 0 5px 5px}.arrow.up:before{border-color:#706f70 transparent;border-width:0 5px 5px 5px}.arrow.down:before{border-color:#706f70 transparent;border-width:5px 5px 0 5px}ul.demo-icons{list-style-type:none;margin:0;padding-left:0}ul.demo-icons li{display:inline-block;text-align:center;margin-bottom:20px;width:24%}ul.demo-icons span{font-size:3em}ul.demo-icons code{font-size:.8em}header{display:block;background-color:#484848;color:#fff;position:relative}header .container{position:relative;height:54px;text-align:left}header .nav{list-style-type:none;padding:0;margin:0 0 0 15px;display:inline-block;position:relative;top:-2px}header .nav>li{display:inline-block;line-height:54px;position:relative}header .nav>li>a{text-transform:uppercase;text-decoration:none;font-weight:700;font-size:12px;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.5);padding:5px 10px;border:1px solid transparent}header .nav>li:hover>a{background-color:rgba(0,0,0,.1);border:1px solid rgba(0,0,0,.3);border-radius:2px}header .nav>li.active>a{background-color:rgba(0,0,0,.35);border:1px solid rgba(0,0,0,.6);border-radius:2px}header .nav>li dropdown-menu:before{position:absolute;content:'';height:15px;width:15px;background:#fff;-moz-transform:rotateZ(-45deg) skewY(5deg) skewX(5deg);-o-transform:rotateZ(-45deg) skewY(5deg) skewX(5deg);-webkit-transform:rotateZ(-45deg) skewY(5deg) skewX(5deg);-ms-transform:rotate(-45deg);transform:rotateZ(-45deg) skewY(5deg) skewX(5deg);border:1px solid #ccc;top:-8px;z-index:-1;display:block;left:40px;border-left-style:none;border-bottom-style:none}header .dropdown-menu{display:none;visibility:collapse;position:absolute;left:0;background-color:#fff;border:1px solid #ccc;border-top:none;z-index:5;margin:0;padding:0;list-style-type:none;top:54px;width:240px}header .dropdown-menu li a{display:block;text-decoration:none;border-bottom:1px solid #eae9e9;color:#706f70;font-size:14px;line-height:32px;padding-left:20px;padding-right:20px}header .dropdown-menu li a:hover:after{content:"\e000";color:#ccc;font:20px/27px Bitstrap;position:absolute;right:10px}header .dropdown-menu li a:hover,header .dropdown-menu li.active a{background-color:#eae9e9;color:#000}header .bitovi-menu{display:inline-block}header .bitovi-menu .dropdown-menu{right:0;left:auto}header .bitovi.icon-bits{color:#fff;text-shadow:0 -1px 0 rgba(0,4,159,.49);display:block;opacity:.2;font-size:26px;line-height:54px;text-align:center;width:50px;height:54px}header .bitovi.icon-bits:before{position:absolute;left:13px}header .bitovi-menu:hover .bitovi.icon-bits{background-color:#fff;border-left:1px solid #ccc;border-right:1px solid #ccc;color:#484848;text-shadow:none;opacity:1}header .logo-menu{position:relative;display:inline-block}header .menu-container{position:relative}header .bitovi-menu:hover .dropdown-menu,header .logo-menu:hover .dropdown-menu,header .menu-container:hover .dropdown-menu{display:block;visibility:visible}header .pull-right{position:absolute;right:0;top:0}footer{background-color:#ccc;color:#484848;padding-top:0;padding-bottom:0;position:relative;text-align:right;height:80px}footer .container{text-align:right;position:relative;height:80px;overflow:hidden}footer li a{font-size:12px;font-weight:700;text-transform:uppercase;text-decoration:none;text-shadow:0 1px 0 #fff;color:#484848;padding:5px 10px;height:80px;line-height:80px}footer li a:hover{text-decoration:underline}footer ul{list-style-type:none;list-style:none;margin:0;position:absolute;right:0;top:0}footer li{display:inline-block}.container{width:960px;margin:0 auto}.brand{display:block;line-height:54px;text-indent:-9999px;height:54px;width:170px;text-align:left;background:url(../../img/logo.svg) no-repeat left center;background-size:170px}footer .brand{background-image:url(../../img/logo-grey.svg);margin-top:13px;line-height:47px}.button,button{background-color:#1f54c6;border:1px solid #18419a;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.5);border-radius:2px;padding:5px 15px;position:relative;font-size:14px;line-height:18px;text-decoration:none}.button.active,.button:hover,button.active,button:hover{background-color:#18419a}code{background-color:#f7f8c3;border-radius:5px;padding:0 5px}code,code *,pre,pre *{font-family:"Courier New",Courier,mono;font-style:normal;font-weight:300}pre{background-color:#fff;border:1px solid #ccc;border-radius:5px;margin:0;margin-bottom:20px;vertical-align:top;overflow:auto;padding:10px 20px}pre code{font-size:14px;line-height:16px;letter-spacing:0;background-color:transparent}pre ol{margin:0 0 0 40px;padding:0}pre ol li{text-indent:0;color:#484848;background-color:#fff;margin:0;list-style:decimal}code.prettyprint{padding:0!important}.pln{color:#484848}@media screen{.str{color:#d14}.kwd{color:#333}.com{color:#998}.typ{color:#458}.lit{color:#458}.pun{color:#333}.opn{color:#333}.clo{color:#333}.tag{color:#navy}.atn{color:#teal}.atv{color:#d14}.dec{color:#333}.var{color:#teal}.fun{color:#teal}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:700}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:700}.lit{color:#044}.clo,.opn,.pun{color:#440}.tag{color:#006;font-weight:700}.atn{color:#404}.atv{color:#060}}pre.prettyprint{font-family:Menlo,"Bitstream Vera Sans Mono","DejaVu Sans Mono",Monaco,Consolas,monospace;font-size:14px;border:1px solid #ccc;padding:10px}pre.prettyprint ol{font-size:14px;margin-bottom:0}ol.linenums{margin-top:0;margin-bottom:0}.simple-tag{display:inline-block;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;background-color:#484848;color:#fff;font-size:12px;margin-left:5px;padding:2px 8px}.docs .title{display:block;border-bottom:1px solid #eae9e9}.docs .title .heading{position:relative;margin:0}.docs .title .heading h1{margin:0;display:inline-block;max-width:550px;word-wrap:break-word}.docs .title .heading .module{position:absolute;right:0;display:inline-block;top:10px}.docs .title .heading ul.tags{margin-bottom:0!important;text-align:left;display:inline-block}.docs .title h2,.docs .title h3{display:inline-block}.docs .title h2{margin:0}.docs .title h2 code{background:0 0;color:#706f70;font-size:18px;font-weight:700}.docs .title .sub-heading,.docs .title ul.links{float:left;display:block;width:50%;box-sizing:border-box;margin:0}.docs .title ul.links{margin-bottom:16px}.docs .title .links,.docs .title .tags{list-style:none;margin:0;text-align:right;padding:0}.docs .title .tags{display:inline-block;margin:0;position:relative;top:-5px}.docs .title .tags li{display:inline-block;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;background-color:#484848;color:#fff;font-size:12px;margin-left:5px;padding:2px 8px}.docs .title .links li{display:inline-block;margin-top:1px}.docs .title .links li:before{content:'|';padding-right:5px;padding-left:3px}.docs .title .links li:first-child:before{content:none;padding:none}.docs h1{margin:0;display:inline-block}.docs .inherits,.docs .module,.docs .title .links li{font-size:14px;color:#999;font-weight:400;font-style:normal}.docs .inherits{display:block}.docs .content.docs{width:662px;margin-top:20px;background-color:#fff;border:1px solid #ccc;padding:20px;border-left-style:none;border-bottom-style:none;font-family:Arial,Helvetica,Geneva,sans-serif;border-radius:0 5px 5px 0}.docs .content.docs ol:not(.linenums),.docs .content.docs ul{margin-left:0;font-size:16px;line-height:24px;margin-top:0;margin-bottom:15px;line-height:18px}.docs .content.docs .iframe_wrapper iframe{width:100%;border:1px solid #ccc}.docs .contents li{line-height:24px}.docs .contents ul li{list-style-type:square}.docs footer{margin-top:20px}.docs .warning{background-color:rgba(217,83,79,.1)}.docs .warning h3{background-color:#d9534f;color:#fff;font-size:18px;line-height:24px;margin:0;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px;padding:3px 15px}.container.api{display:table;table-layout:fixed;border-bottom:1px solid #ccc;padding-top:20px;border-radius:5px}.container.api>*{display:table-cell!important;vertical-align:top}.search-wrapper{position:relative;visibility:hidden;display:none}.search{display:block;border:1px solid #ccc;padding:3px 3px 3px 30px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-moz-box-shadow:inset 2px 2px 4px rgba(0,0,0,.1);-webkit-box-shadow:inset 2px 2px 4px rgba(0,0,0,.1);box-shadow:inset 2px 2px 4px rgba(0,0,0,.1);margin:8px}.search input[type=text]:enabled,.search input[type=text]:focus{border-color:none;outline:0}.search input[type=text]{display:block;border-style:none;background-color:rgba(255,255,254,0);width:100%}.search:before{font-family:Bitstrap;content:"\e012";display:block;position:absolute;left:17px;color:#fff;text-shadow:0 0 3px rgba(0,0,0,.49)}.docs .signature-wrapper{padding:10px 15px 0;border:1px solid #484848;border-radius:0 0 5px 5px}.docs .signature-wrapper:last-child{margin-bottom:0}.docs .signature.collapsed :not(h2){display:none}.docs .primary-options h2,.docs .signature h2{background-color:#484848;color:#eae9e9;font-size:18px;line-height:24px;margin:0;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px;padding:3px 15px;text-shadow:0 -1px 0 rgba(0,0,0,.5)}.docs .primary-options h2 span,.docs .signature h2 span{font-size:10px;font-weight:400;font-style:normal;float:right}.docs .primary-options h2 code,.docs .signature h2 code{background-color:transparent;color:#fff}.docs .primary-options h2 a,.docs .signature h2 a{color:#fff}.small-signature{padding:10px;background-color:#eae9e9;border:1px solid #ccc;margin-bottom:10px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.small-signature a.sig{text-decoration:none;color:#000;display:block;font-weight:700}.small-signature a.sig code,.small-signature a.sig code *{background-color:none;font-weight:700;background-color:transparent}.small-signature a.sig .pln{color:#000}.small-signature p{color:#706f70;line-height:15px;margin-bottom:0;margin-left:10px;margin-right:10px}.docs .parameters,.docs .returns{list-style-type:none;margin:0 0 15px;border:1px solid #ccc;background-color:#eae9e9;padding:0 15px 10px;border-radius:5px}.docs .parameters h4,.docs .returns h4{background-color:#484848;padding:4px 15px;color:#eae9e9;margin:0 -15px 5px}.docs .parameters h4 .optional,.docs .returns h4 .optional{font-size:10px;line-height:19px}.docs .parameters h4 a,.docs .returns h4 a{color:#ccc;text-decoration:none}.docs .parameters h4 a:hover,.docs .returns h4 a:hover{text-decoration:underline}.docs .parameters li:first-child h4,.docs .returns h4{border-radius:5px 5px 0 0}.docs .parameters h5,.docs .returns h5{font-size:14px;font-weight:700;margin:0 0 5px;color:#484848}.docs .parameters h4 code,.docs .returns h4 code{font-style:italic;font-weight:400;background:0 0;background-color:none}.docs .parameters .options{margin-right:50px}.docs .parameters .options .option,.docs .returns .options .option{margin:0 -10px 15px;border-top:1px solid #ccc;list-style-type:none;padding:15px 25px 0 25px}.docs .parameters .optional{font-size:8pt;line-height:20px}.docs .parameters ul.options:last-child,.docs .returns ul.options:last-child{margin-bottom:0}.docs .parameters .description,.docs .returns .description{padding-bottom:15px}.docs .returns .description{margin-top:15px}.docs .parameters :last-child .description,.docs .returns :last-child .description{margin-bottom:0;padding-bottom:0}.docs .demo ul{list-style:none;padding:0}.docs .demo li.tab{display:block;float:left;padding:6px 10px;border-radius:4px 4px 0 0}.docs .demo li.tab:first-of-type{margin-left:5px}.docs .demo li.tab.active{color:#fff;font-weight:700;background-color:#165489;text-shadow:0 -1px 0 rgba(0,0,0,.5)}.docs .demo div.tab-content{clear:both}.docs .demo iframe{width:100%;border:1px solid #ccc;border-radius:6px}.docs body.style-demo{background-color:#fff;padding:10px}#low{width:960px;margin:0 auto;font-size:12px;margin-bottom:15px}.api .group_0{margin-bottom:40px}.sidebar{width:255px;margin-top:20px;background-color:#ccc;position:relative;z-index:1;margin-bottom:15px;border-radius:5px 0 0 5px}.sidebar ul{list-style-type:none;margin:0;padding:0}.sidebar li.active{z-index:20}.sidebar .primary-grouping{padding-bottom:10px}.sidebar #versions,.sidebar .versions{position:absolute;right:5px;top:7px;font-size:15px}.sidebar #versions option,.sidebar .versions option{font-size:15px}@media screen and (-webkit-min-device-pixel-ratio:0){.sidebar #versions{border-color:#999}}.sidebar .api .heading span{text-transform:uppercase;color:#484848;line-height:24px;display:block;font-weight:700}.sidebar .api li{font-size:15px;line-height:24px;text-indent:15px;position:relative}.sidebar .api li a{display:block;border:1px solid #ccc}.sidebar .api ul ul li a:hover{background:#ccc}.sidebar .api li li li li a{font-size:13px;color:#706f70}.sidebar .api>li>ul{display:none}.sidebar .api>li.active{position:relative;z-index:0}.sidebar .api>li.active>ul{display:block}.sidebar .api li.active.collapsed>:not(a){display:none}.sidebar .api li li li{text-indent:30px}.sidebar .api li li li li{text-indent:45px}.sidebar .api ul.projects{padding-top:10px}.sidebar .api a,.sidebar .api a:hover{text-decoration:none;color:#484848;font-style:normal}.sidebar .api li.active{z-index:20}.sidebar .api>li.active>a{font-size:17px;font-weight:400;line-height:40px;color:#706f70;display:block;border:none}.sidebar .api>li>a:hover{color:#000}.sidebar .api li li.parent{text-indent:30px}.sidebar .api li li li.parent{text-indent:40px}.sidebar .api li li.parent:before{left:20px}.sidebar .api li li li.parent li{text-indent:50px}.sidebar .api li.parent:before{content:"";border-color:transparent #999;border-style:solid;border-width:.3em 0 .3em .5em;display:block;height:0;width:0;position:absolute;top:10px;left:30px}.sidebar .api li.parent.expanded:before{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);z-index:1}.sidebar .api .sidebar .api li li.active>a:hover,.sidebar .api li li.active>a{position:relative;display:block;height:25px;margin-left:1px}.sidebar .api li li.active>a:hover{background:0 0}.sidebar .api li li.active>a:after{position:absolute;content:' ';right:-12px;top:-7px;height:14px;width:14px;z-index:1;width:0;height:0;border-top:20px solid transparent;border-bottom:20px solid transparent;border-left:20px solid #ccc}.sidebar .api li li.active>a:before{position:absolute;content:'';display:block;border-left:4px solid #484848;width:5px;height:20px;left:5px;top:4px}.sidebar .api li li li.active>a:before{left:20px}.sidebar .api li.active>a.sidebar-title{font-size:24px;background-color:#484848;border-radius:5px 0 0 0;margin-bottom:20px}.sidebar .api li.active:nth-child(2)>a.sidebar-title,.sidebar .api li.active:nth-child(3)>a.sidebar-title,.sidebar .api li.active:nth-child(4)>a.sidebar-title,.sidebar .api li.active:nth-child(5)>a.sidebar-title{font-size:18px;border-radius:0;margin:-20px 0 20px 0}.sidebar .api li.active:nth-child(2)>a.sidebar-title{background:#626262}.sidebar .api li.active:nth-child(3)>a.sidebar-title{background:#7b7b7b}.sidebar .api li.active:nth-child(4)>a.sidebar-title{background:#949494}.sidebar .api li.active:nth-child(5)>a.sidebar-title{background:#aeaeae}.sidebar .api.cascading>.active>a{color:#fff;background:#484848;border:none}.sidebar .api.cascading>.parent{z-index:1;text-indent:15px;margin-left:0;margin-right:0}.sidebar .api.cascading>.active:before,.sidebar .api.cascading>.active:nth-child(2):before,.sidebar .api.cascading>.active:nth-child(3):before,.sidebar .api.cascading>.active:nth-child(4):before,.sidebar .api.cascading>.active:nth-child(5):before{position:absolute;content:' ';left:10px;top:30px;z-index:-1;width:0;height:0;border-left:20px solid transparent;border-right:20px solid transparent;border-top:20px solid #484848}.sidebar .api.cascading>.active:nth-child(2):before{border-top:20px solid #626262}.sidebar .api.cascading>.active:nth-child(3):before{border-top:20px solid #7b7b7b}.sidebar .api.cascading>.active:nth-child(4):before{border-top:20px solid #949494}.sidebar .api.cascading>.active:nth-child(5):before{border-top:20px solid #aeaeae}.sidebar .api.cascading>li:nth-child(1){z-index:20}.sidebar .api.cascading>li:nth-child(2){z-index:19}.sidebar .api.cascading>li:nth-child(3){z-index:18}.sidebar .api.cascading>li:nth-child(4){z-index:17}.sidebar .api.cascading>li:nth-child(5){z-index:16}.sidebar .api.cascading>li:nth-child(6){z-index:15}.sidebar .api.cascading>li:nth-child(7){z-index:14}.sidebar .api.cascading>li:nth-child(8){z-index:13}.sidebar .api.cascading>li:nth-child(9){z-index:12}.sidebar .api.cascading>li:nth-child(10){z-index:11}.swatches-list{list-style:none;margin:10px}.swatches-list li{width:20%;float:left;height:100px;text-align:center;margin:1px}.swatch-color{width:100%;height:50px;display:block;margin-bottom:5px}.guides .sidebar{width:255px;margin-top:20px}.guides .content{margin-top:20px;padding:20px;width:662px;background-color:#fff;border:1px solid #ccc;border-left-style:none;border-bottom-style:none}.guides .content ol:not(.linenums),.guides .content ul{margin-left:0;font-size:16px;line-height:24px;margin-top:0;margin-bottom:15px;line-height:18px}.guides .container.api{margin-bottom:20px}.ie .search:before{font-family:Bitstrap;content:"\e012";display:block;position:absolute;left:17px;color:#ccc}.ie .sidebar .api li li.active>a,.ie .sidebar .api li li.active>a:before,.ie .sidebar .api li li.active>a:hover{background-image:none;background-color:#fff;background:#fff}.ie .sidebar .api li li.active>a:before{display:none} \ No newline at end of file diff --git a/0.1/docs/dist/bundles/static.js b/0.1/docs/dist/bundles/static.js new file mode 100644 index 000000000..9ac3b7a00 --- /dev/null +++ b/0.1/docs/dist/bundles/static.js @@ -0,0 +1 @@ +System.bundles={"bundles/static.css!":["styles/styles.less!steal-less@1.3.4#less"]},define("npm-utils",function(e,t,n){!function(e,t,n,r){function a(e){var t=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/]*(?::[^:@\/]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return t?{href:t[0]||"",protocol:t[1]||"",authority:t[2]||"",host:t[3]||"",hostname:t[4]||"",port:t[5]||"",pathname:t[6]||"",search:t[7]||"",hash:t[8]||""}:null}var i=Array.prototype.slice,o=/.+@.+\..+\..+#.+/,s=/#\{[^\}]+\}|#\?.+$/,c=/(git|http(s?)):\/\//,l="function"==typeof Set,u={extend:function(e,t,n,r){var a,o=r;if(n)if(o||(o=l?new Set:[]),l){if(o.has(t))return t;o.add(t)}else{if(-1!==o.indexOf(t))return t;o.push(t)}for(var s in t)a=t[s],n?u.isArray(a)?e[s]=i.call(a):u.isPlainObject(a)?e[s]=u.extend({},a,n,o):e[s]=t[s]:e[s]=t[s];return e},map:function(e,t){for(var n=0,r=e.length,a=[];n=0)return n>=0?e.substr(0,n):e},findDep:function(e,t,n){if(e.npm&&t&&!u.path.startsWithDotSlash(n)){var r=n+"@"+t.resolutions[n];return e.npm[r]}},findDepWalking:function(e,t,n){if(e.npm&&t&&!u.path.startsWithDotSlash(n))for(var r=u.path.depPackageDir(t.fileUrl,n);r;){var a=e.npmPaths[r];if(a)return a;var i=u.path.parentNodeModuleAddress(r);if(!i)return;r=i+"/"+n}},findByName:function(e,t){if(e.npm&&!u.path.startsWithDotSlash(t))return e.npm[t]},findByNameAndVersion:function(e,t,n){if(e.npm&&!u.path.startsWithDotSlash(t)){var r=t+"@"+n;return e.npm[r]}},findByUrl:function(e,t){if(e.npm){var n=u.pkg.folderAddress(t);return e.npmPaths[n]}},directoriesLib:function(e){var t,n=u.pkg.config(e),r=n&&n.directories&&n.directories.lib,a=[".","/"];if(r){for(;t=a.shift();)r[0]===t&&(r=r.substr(1));return r}},hasDirectoriesLib:function(e){var t=u.pkg.config(e);return t&&t.directories&&!!t.directories.lib},findPackageInfo:function(e,t){var n=e.pkgInfo;if(n){var r;return u.forEach(n,function(e){t.name===e.name&&t.version===e.version&&(r=e)}),r}},saveResolution:function(e,t,n){u.pkg.findPackageInfo(e,t).resolutions[n.name]=t.resolutions[n.name]=n.version},config:function(e){return e.steal||e.system}},path:{makeRelative:function(e){return u.path.isRelative(e)&&"/"!==e.substr(0,1)?e:"./"+e},removeJS:function(e){return e.replace(/\.js(!|$)/,function(e,t){return t})},removePackage:function(e){return e.replace(/\/package\.json.*/,"")},addJS:function(e){return/\.js(on)?$/.test(e)?e:e+".js"},isRelative:function(e){return"."===e.substr(0,1)},isInHomeDir:function(e,t){return e.substr(0,2)===u.pkg.homeAlias(t)+"/"},joinURIs:function(e,t){var n=a(t||""),r=a(e||"");return n&&r?(n.protocol||r.protocol)+(n.protocol||n.authority?n.authority:r.authority)+function(e){var t=[];return e.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?t.pop():t.push(e)}),t.join("").replace(/^\//,"/"===e.charAt(0)?"/":"")}(n.protocol||n.authority||"/"===n.pathname.charAt(0)?n.pathname:n.pathname?(r.authority&&!r.pathname?"/":"")+r.pathname.slice(0,r.pathname.lastIndexOf("/")+1)+n.pathname:r.pathname)+(n.protocol||n.authority||n.pathname?n.search:n.search||r.search)+n.hash:null},startsWithDotSlash:function(e){return"./"===e.substr(0,2)},removeDotSlash:function(e){return u.path.startsWithDotSlash(e)?e.substr(2):e},endsWithSlash:function(e){return"/"===e[e.length-1]},addEndingSlash:function(e){return u.path.endsWithSlash(e)?e:e+"/"},depPackage:function(e,t){var n=e.replace(/\/package\.json.*/,"");return(n?n+"/":"")+"node_modules/"+t+"/package.json"},peerPackage:function(e,t){var n=e.replace(/\/package\.json.*/,"");return n.substr(0,n.lastIndexOf("/"))+"/"+t+"/package.json"},depPackageDir:function(e,t){return u.path.depPackage(e,t).replace(/\/package\.json.*/,"")},peerNodeModuleAddress:function(e){var t=e.lastIndexOf("/node_modules/");if(t>=0)return e.substr(0,t+"/node_modules/".length-1)},parentNodeModuleAddress:function(e){var t=e.lastIndexOf("/node_modules/"),n=e.lastIndexOf("/node_modules/",t-1);if(n>=0)return e.substr(0,n+"/node_modules/".length-1)},pkgDir:function(e){var t=e.lastIndexOf("/node_modules/"),n=e.indexOf("/",t+"/node_modules/".length);if("@"===e[t+"/node_modules/".length]&&(n=e.indexOf("/",n+1)),t>=0)return n>=0?e.substr(0,n):e},basename:function(e){var t=e.split("/");return t[t.length-1]},relativeTo:function(e,t){for(var n=e.split("/"),r=1;"."===t[r];)n.pop(),r++;return n.join("/")},isPackageRootDir:function(e){return-1===e.indexOf("/")}},json:{transform:function(e,t,n){n.steal=u.pkg.config(n);var r=e.jsonOptions&&e.jsonOptions.transform;return r?r.call(e,t,n):n}},includeInBuild:!0};r.exports=u}(0,0,0,n)}),define("npm-extension",["require","exports","module","@steal","./npm-utils"],function(e,t,n){!function(e,t,n,r){"format cjs";var a=t("@steal"),i=t("./npm-utils");n.includeInBuild=!0;var o="object"==typeof process&&"[object process]"==={}.toString.call(process),s="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,c="undefined"!=typeof window&&!o&&!s;n.addExtension=function(e){function t(e,t){var n=this,r="function"==typeof t.name?t.name(n,e):e.name+t.name,a=i.extend({},e);return a.name=r,a.metadata={dryRun:!0},Promise.resolve(n.locate(a)).then(function(e){return a.address=e,n.fetch(a)}).then(function(t){e.metadata.address=a.address,n.npmParentMap[e.name]=a.name;var r=n.npmContext&&n.npmContext.npmLoad;return r&&(r.saveLoadIfNeeded(n.npmContext),o||i.warnOnce("Some 404s were encountered while loading. Don't panic! These will only happen in dev and are harmless.")),t})}e._extensions&&e._extensions.push(n.addExtension);var r=e.normalize;e.normalize=function(e,t,n,a){function o(e){y.version=e.version,y.modulePath||(y.modulePath=i.pkg.main(e));var t=r.call(T,i.moduleName.create(y),c,n,a);return d&&t.then(function(e){w&&w.forwardSlashMap&&(w.forwardSlashMap[e]=!0)}),t}var s=e,c=t;c&&this.npmParentMap&&this.npmParentMap[c]&&(c=this.npmParentMap[c]);var l=i.path.isRelative(s),u=i.moduleName.isNpm(c),d=i.path.endsWithSlash(s);if(c&&l&&!u)return r.call(this,s,c,n,a);if(i.moduleName.isConditional(s))return r.call(this,s,c,n,a);if("object"==typeof this.map[c]&&this.map[c][s])return r.call(this,s,c,n,a);var p=i.pkg.findByModuleNameOrAddress(this,c,n);if(!p)return r.call(this,s,c,n,a);var f="../"===s||"./"===s;if(u&&f){var h=i.moduleName.parse(c).modulePath||"",m=i.path.relativeTo(h,s);i.path.isPackageRootDir(m)?s=p.name+"#"+i.path.removeJS(p.main):s+="index"}var v,g,y=i.moduleName.parseFromPackage(this,p,s,c),b=i.pkg.isRoot(this,p),x=y.packageName===p.name;u&&l&&x&&(v=p);var w=this.npmContext,k=w&&w.crawl,j=!!k;if(!v)if(k){if((L=l?null:k.matchedVersion(w,p.name,p.version))&&(g=(S=k.getFullDependencyMap(this,L,b))[y.packageName])){var _=p.resolutions&&p.resolutions[g.name]||g.version,C=k.matchedVersion(this.npmContext,g.name,_);C&&(v=i.pkg.findByUrl(this,C.fileUrl))}}else v=b?i.pkg.findDepWalking(this,p,y.packageName):i.pkg.findDep(this,p,y.packageName);if(x&&(v=i.pkg.findByNameAndVersion(this,y.packageName,p.version)),y.isGlobal,v||(v=i.pkg.findByName(this,y.packageName)),j&&v&&g&&!k.pkgSatisfies(v,g.version)?v=void 0:j&&v&&i.pkg.saveResolution(w,p,v),!v){var E=this.globalBrowser[y.packageName];E&&(y.packageName=E.moduleName,v=i.pkg.findByName(this,y.packageName))}if(!v&&b&&s===p.main&&i.pkg.hasDirectoriesLib(p))return y.version=p.version,y.packageName=p.name,y.modulePath=i.pkg.main(p),r.call(this,i.moduleName.create(y),c,n,a);var T=this;if(v)return o(v);if(k){var L=k.matchedVersion(this.npmContext,p.name,p.version);if(L){var S=k.getFullDependencyMap(this,L,b);if(!(v=S[y.packageName])){var N=k.findPackageAndParents(this.npmContext,y.packageName);N&&(v=N.package)}}}if(!v){if(p.browser&&p.browser[s])return r.call(this,p.browser[s],c,n,a);var O=i.pkg.config(p);if(O&&O.map&&"string"==typeof O.map[s]){var A=O.map[s],D=O.envs&&O.envs[T.env];return D&&D.map&&"string"==typeof D.map[s]&&(A=D.map[s]),T.normalize(A,c,n,a)}return r.call(this,s,c,n,a)}return k.dep(this.npmContext,L,p,v,b).then(o)};var s=e.locate;e.locate=function(t){var n=i.moduleName.parse(t.name),r=this,o=t.metadata.parsedModuleName=n;if(t.metadata.npmPackage=i.pkg.findByNameAndVersion(this,o.packageName,o.version),n.version&&this.npm&&!r.paths[t.name]){var l=this.npm[i.moduleName.nameAndVersion(n)];if(l)return s.call(this,t).then(function(o){var s=o,u=i.path.joinURIs(e.baseURL,t.name);if(c&&(u=u.replace(/#/g,"%23")),s!==u+".js"&&s!==u)return s;var d=i.pkg.rootDir(l,i.pkg.isRoot(r,l));if(n.modulePath){var p=i.path.joinURIs(i.path.addEndingSlash(d),n.plugin?n.modulePath:i.path.addJS(n.modulePath));s=void 0!==a?i.path.joinURIs(r.baseURL,p):p}return s})}return s.call(this,t)};var l=e.fetch;e.fetch=function(e){if(e.metadata.dryRun)return l.apply(this,arguments);var n=this,r=(n.npmContext,Promise.resolve(l.apply(this,arguments)));return i.moduleName.isNpm(e.name)&&(r=r.then(null,function(r){function a(r,i){if(!r.length)throw i;var o=r.shift();if(!o.test(e))throw i;return Promise.resolve(t.call(n,e,o)).then(null,function(e){return a(r,e)})}return 404!==r.statusCode?Promise.reject(r):(n.npmContext||(n.npmContext={forwardSlashMap:{}}),a([].slice.call(f),r).then(null,function(e){return Promise.reject(r)}))})),r.catch(function(t){if(404===t.statusCode&&i.moduleName.isBareIdentifier(e.name)&&!i.pkg.isRoot(n,e.metadata.npmPackage)){var r=new Error(["Could not load '"+e.name+"'","Is this an npm module not saved in your package.json?"].join("\n"));throw r.statusCode=t.statusCode,r}throw t})};var u=function(e,t){var n=i.pkg.findByName(e,t.split("/")[0]);if(n){var r=i.moduleName.parse(t,n.name);return r.version=n.version,r.modulePath||(r.modulePath=i.pkg.main(n)),i.moduleName.create(r)}return t},d={map:function(e){var t,n={};for(var r in e)t=e[r],n[u(this,r)]="object"==typeof t?d.map(t):u(this,t);return n},meta:function(e){var t={};for(var n in e)t[u(this,n)]=e[n];return t},paths:function(e){var t={};for(var n in e)t[u(this,n)]=e[n];return t}},p=e.config;e.config=function(e){var t=this;if(t.npmContext){var n=t.npmContext,r=n.versions.__default,a=n.convert.steal(n,r,e,!0);return n.convert.updateConfigOnPackageLoad(a,!1,!0,n.applyBuildConfig),void p.apply(t,arguments)}for(var i in e)d[i]&&(e[i]=d[i].call(t,e[i]));p.apply(t,arguments)},a.addNpmPackages=function(e){for(var t=e||[],n=this.loader,r=0;r0&&t-1 in e))}function r(e,t,n){if(ne.isFunction(t))return ne.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return ne.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ce.test(t))return ne.filter(t,e,n);t=ne.filter(t,e)}return ne.grep(e,function(e){return ne.inArray(e,t)>=0!==n})}function i(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}function o(e){var t=ve[e]={};return ne.each(e.match(ge)||[],function(e,n){t[n]=!0}),t}function a(){de.addEventListener?(de.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(de.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(de.addEventListener||"load"===event.type||"complete"===de.readyState)&&(a(),ne.ready())}function l(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(Te,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:we.test(n)?ne.parseJSON(n):n)}catch(e){}ne.data(e,t,n)}else n=void 0}return n}function u(e){var t;for(t in e)if(("data"!==t||!ne.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,r){if(ne.acceptData(e)){var i,o,a=ne.expando,s=e.nodeType,l=s?ne.cache:e,u=s?e[a]:e[a]&&a;if(u&&l[u]&&(r||l[u].data)||void 0!==n||"string"!=typeof t)return u||(u=s?e[a]=V.pop()||ne.guid++:a),l[u]||(l[u]=s?{}:{toJSON:ne.noop}),"object"!=typeof t&&"function"!=typeof t||(r?l[u]=ne.extend(l[u],t):l[u].data=ne.extend(l[u].data,t)),o=l[u],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[ne.camelCase(t)]=n),"string"==typeof t?null==(i=o[t])&&(i=o[ne.camelCase(t)]):i=o,i}}function f(e,t,n){if(ne.acceptData(e)){var r,i,o=e.nodeType,a=o?ne.cache:e,s=o?e[ne.expando]:ne.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){i=(t=ne.isArray(t)?t.concat(ne.map(t,ne.camelCase)):t in r?[t]:(t=ne.camelCase(t))in r?[t]:t.split(" ")).length;for(;i--;)delete r[t[i]];if(n?!u(r):!ne.isEmptyObject(r))return}(n||(delete a[s].data,u(a[s])))&&(o?ne.cleanData([e],!0):te.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function d(){return!0}function p(){return!1}function h(){try{return de.activeElement}catch(e){}}function m(e){var t=qe.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function g(e,t){var n,r,i=0,o=typeof e.getElementsByTagName!==xe?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==xe?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||ne.nodeName(r,t)?o.push(r):ne.merge(o,g(r,t));return void 0===t||t&&ne.nodeName(e,t)?ne.merge([e],o):o}function v(e){Se.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t){return ne.nodeName(e,"table")&&ne.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function b(e){return e.type=(null!==ne.find.attr(e,"type"))+"/"+e.type,e}function x(e){var t=Ie.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function w(e,t){for(var n,r=0;null!=(n=e[r]);r++)ne._data(n,"globalEval",!t||ne._data(t[r],"globalEval"))}function T(e,t){if(1===t.nodeType&&ne.hasData(e)){var n,r,i,o=ne._data(e),a=ne._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r")).appendTo(t.documentElement))[0].contentWindow||Je[0].contentDocument).document).write(),t.close(),n=N(e,t),Je.detach()),Ye[e]=n),n}function k(e,t){return{get:function(){var n=e();if(null!=n){if(!n)return(this.get=t).apply(this,arguments);delete this.get}}}}function S(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=lt.length;i--;)if((t=lt[i]+n)in e)return t;return r}function A(e,t){for(var n,r,i,o=[],a=0,s=e.length;a=0&&n=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==ne.type(e)||e.nodeType||ne.isWindow(e))return!1;try{if(e.constructor&&!ee.call(e,"constructor")&&!ee.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(te.ownLast)for(t in e)return ee.call(e,t);for(t in e);return void 0===t||ee.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?K[Z.call(e)]||"object":typeof e},globalEval:function(t){t&&ne.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ie,"ms-").replace(oe,ae)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,r){var i=0,o=e.length,a=n(e);if(r){if(a)for(;ix.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[O]=!0,e}function i(e){var t=j.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=e.length;r--;)x.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||X)-(~e.sourceIndex||X);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function l(e){return e&&void 0!==e.getElementsByTagName&&e}function u(){}function c(e){for(var t=0,n=e.length,r="";t1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function p(e,n,r){for(var i=0,o=n.length;i-1&&(r[u]=!(a[u]=f))}}else b=h(b===a?b.splice(g,b.length):b),o?o(null,a,b,l):G.apply(a,b)})}function g(e){for(var t,n,r,i=e.length,o=x.relative[e[0].type],a=o||x.relative[" "],s=o?1:0,l=f(function(e){return e===t},a,!0),u=f(function(e){return K(t,e)>-1},a,!0),p=[function(e,n,r){var i=!o&&(r||n!==k)||((t=n).nodeType?l(e,n,r):u(e,n,r));return t=null,i}];s1&&d(p),s>1&&c(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ae,"$1"),n,s0,o=e.length>0,a=function(r,a,s,l,u){var c,f,d,p=0,m="0",g=r&&[],v=[],y=k,b=r||o&&x.find.TAG("*",u),w=P+=null==y?1:Math.random()||.1,T=b.length;for(u&&(k=a!==j&&a);m!==T&&null!=(c=b[m]);m++){if(o&&c){for(f=0;d=e[f++];)if(d(c,a,s)){l.push(c);break}u&&(P=w)}i&&((c=!d&&c)&&p--,r&&g.push(c))}if(p+=m,i&&m!==p){for(f=0;d=n[f++];)d(g,v,a,s);if(r){if(p>0)for(;m--;)g[m]||v[m]||(v[m]=J.call(l));v=h(v)}G.apply(l,v),u&&!r&&v.length>0&&p+n.length>1&&t.uniqueSort(l)}return u&&(P=w,k=y),g};return i?r(a):a}var y,b,x,w,T,C,N,E,k,S,A,D,j,L,H,q,_,M,F,O="sizzle"+1*new Date,B=e.document,P=0,R=0,W=n(),$=n(),z=n(),I=function(e,t){return e===t&&(A=!0),0},X=1<<31,U={}.hasOwnProperty,V=[],J=V.pop,Y=V.push,G=V.push,Q=V.slice,K=function(e,t){for(var n=0,r=e.length;n+~]|"+ee+")"+ee+"*"),ue=new RegExp("="+ee+"*([^\\\\]\'\\"]*?)"+ee+"*\\\\]","g"),ce=new RegExp(ie),fe=new RegExp("^"+ne+"$"),de={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\\\.("+te+")"),TAG:new RegExp("^("+te.replace("w","w*")+")"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+ie),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\("+ee+"*(even|odd|(([+-]|)(\\\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\\\d+)|))"+ee+"*\\\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\("+ee+"*((?:-\\\\d)?\\\\d*)"+ee+"*\\\\)|)(?=[^-]|$)","i")},pe=/^(?:input|select|textarea|button)$/i,he=/^h\\d$/i,me=/^[^{]+\\{\\s*\\[native \\w/,ge=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,ve=/[+~]/,ye=/\'|\\\\/g,be=new RegExp("\\\\\\\\([\\\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),xe=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},we=function(){D()};try{G.apply(V=Q.call(B.childNodes),B.childNodes),V[B.childNodes.length].nodeType}catch(e){G={apply:V.length?function(e,t){Y.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}b=t.support={},T=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},D=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:B;return r!==j&&9===r.nodeType&&r.documentElement?(j=r,L=r.documentElement,(n=r.defaultView)&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",we,!1):n.attachEvent&&n.attachEvent("onunload",we)),H=!T(r),b.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=i(function(e){return e.appendChild(r.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=me.test(r.getElementsByClassName),b.getById=i(function(e){return L.appendChild(e).id=O,!r.getElementsByName||!r.getElementsByName(O).length}),b.getById?(x.find.ID=function(e,t){if(void 0!==t.getElementById&&H){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},x.filter.ID=function(e){var t=e.replace(be,xe);return function(e){return e.getAttribute("id")===t}}):(delete x.find.ID,x.filter.ID=function(e){var t=e.replace(be,xe);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),x.find.TAG=b.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):b.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},x.find.CLASS=b.getElementsByClassName&&function(e,t){if(H)return t.getElementsByClassName(e)},_=[],q=[],(b.qsa=me.test(r.querySelectorAll))&&(i(function(e){L.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^=\'\']").length&&q.push("[*^$]="+ee+"*(?:\'\'|\\"\\")"),e.querySelectorAll("[selected]").length||q.push("\\\\["+ee+"*(?:value|"+Z+")"),e.querySelectorAll("[id~="+O+"-]").length||q.push("~="),e.querySelectorAll(":checked").length||q.push(":checked"),e.querySelectorAll("a#"+O+"+*").length||q.push(".#.+[+~]")}),i(function(e){var t=r.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&q.push("name"+ee+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),q.push(",.*:")})),(b.matchesSelector=me.test(M=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&i(function(e){b.disconnectedMatch=M.call(e,"div"),M.call(e,"[s!=\'\']:x"),_.push("!=",ie)}),q=q.length&&new RegExp(q.join("|")),_=_.length&&new RegExp(_.join("|")),t=me.test(L.compareDocumentPosition),F=t||me.test(L.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!b.sortDetached&&t.compareDocumentPosition(e)===n?e===r||e.ownerDocument===B&&F(B,e)?-1:t===r||t.ownerDocument===B&&F(B,t)?1:S?K(S,e)-K(S,t):0:4&n?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,i=0,o=e.parentNode,s=t.parentNode,l=[e],u=[t];if(!o||!s)return e===r?-1:t===r?1:o?-1:s?1:S?K(S,e)-K(S,t):0;if(o===s)return a(e,t);for(n=e;n=n.parentNode;)l.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;l[i]===u[i];)i++;return i?a(l[i],u[i]):l[i]===B?-1:u[i]===B?1:0},r):j},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==j&&D(e),n=n.replace(ue,"=\'$1\']"),b.matchesSelector&&H&&(!_||!_.test(n))&&(!q||!q.test(n)))try{var r=M.call(e,n);if(r||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,j,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==j&&D(e),F(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==j&&D(e);var n=x.attrHandle[t.toLowerCase()],r=n&&U.call(x.attrHandle,t.toLowerCase())?n(e,t,!H):void 0;return void 0!==r?r:b.attributes||!H?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(A=!b.detectDuplicates,S=!b.sortStable&&e.slice(0),e.sort(I),A){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return S=null,e},w=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=w(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=w(t);return n},(x=t.selectors={cacheLength:50,createPseudo:r,match:de,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,xe),e[3]=(e[3]||e[4]||e[5]||"").replace(be,xe),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return de.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=C(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,xe).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(oe," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,f,d,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(p=(u=(c=g[O]||(g[O]={}))[e]||[])[0]===P&&u[1],d=u[0]===P&&u[2],f=p&&g.childNodes[p];f=++p&&f&&f[m]||(d=p=0)||h.pop();)if(1===f.nodeType&&++d&&f===t){c[e]=[P,p,d];break}}else if(y&&(u=(t[O]||(t[O]={}))[e])&&u[0]===P)d=u[1];else for(;(f=++p&&f&&f[m]||(d=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++d||(y&&((f[O]||(f[O]={}))[e]=[P,d]),f!==t)););return(d-=i)===r||d%r==0&&d/r>=0}}},PSEUDO:function(e,n){var i,o=x.pseudos[e]||x.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[O]?o(n):o.length>1?(i=[e,e,"",n],x.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)e[r=K(e,i[a])]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=N(e.replace(ae,"$1"));return i[O]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(be,xe),function(t){return(t.textContent||t.innerText||w(t)).indexOf(e)>-1}}),lang:r(function(e){return fe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,xe).toLowerCase(),function(t){var n;do{if(n=H?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===L},focus:function(e){return e===j.activeElement&&(!j.hasFocus||j.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return he.test(e.nodeName)},input:function(e){return pe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:s(function(){return[0]}),last:s(function(e,t){return[t-1]}),eq:s(function(e,t,n){return[n<0?n+t:n]}),even:s(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:s(function(e,t,n){for(var r=n<0?n+t:n;++r2&&"ID"===(a=o[0]).type&&b.getById&&9===t.nodeType&&H&&x.relative[o[1].type]){if(!(t=(x.find.ID(a.matches[0].replace(be,xe),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=de.needsContext.test(e)?0:o.length;i--&&(a=o[i],!x.relative[s=a.type]);)if((u=x.find[s])&&(r=u(a.matches[0].replace(be,xe),ve.test(o[0].type)&&l(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&c(o)))return G.apply(n,r),n;break}}return(f||N(e,d))(r,t,!H,n,ve.test(e)&&l(t.parentNode)||t),n},b.sortStable=O.split("").sort(I).join("")===O,b.detectDuplicates=!!A,D(),b.sortDetached=i(function(e){return 1&e.compareDocumentPosition(j.createElement("div"))}),i(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&i(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(Z,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);ne.find=se,ne.expr=se.selectors,ne.expr[":"]=ne.expr.pseudos,ne.unique=se.uniqueSort,ne.text=se.getText,ne.isXMLDoc=se.isXML,ne.contains=se.contains;var le=ne.expr.match.needsContext,ue=/^<(\\w+)\\s*\\/?>(?:<\\/\\1>|)$/,ce=/^.[^:#\\[\\.,]*$/;ne.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ne.find.matchesSelector(r,e)?[r]:[]:ne.find.matches(e,ne.grep(t,function(e){return 1===e.nodeType}))},ne.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(ne(e).filter(function(){for(t=0;t1?ne.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&le.test(e)?ne(e):e||[],!1).length}});var fe,de=e.document,pe=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]*))$/;(ne.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(!(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:pe.exec(e))||!n[1]&&t)return!t||t.jquery?(t||fe).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof ne?t[0]:t,ne.merge(this,ne.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:de,!0)),ue.test(n[1])&&ne.isPlainObject(t))for(n in t)ne.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if((r=de.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return fe.find(e);this.length=1,this[0]=r}return this.context=de,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):ne.isFunction(e)?void 0!==fe.ready?fe.ready(e):e(ne):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),ne.makeArray(e,this))}).prototype=ne.fn,fe=ne(de);var he=/^(?:parents|prev(?:Until|All))/,me={children:!0,contents:!0,next:!0,prev:!0};ne.extend({dir:function(e,t,n){for(var r=[],i=e[t];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!ne(i).is(n));)1===i.nodeType&&r.push(i),i=i[t];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),ne.fn.extend({has:function(e){var t,n=ne(e,this),r=n.length;return this.filter(function(){for(t=0;t-1:1===n.nodeType&&ne.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?ne.unique(o):o)},index:function(e){return e?"string"==typeof e?ne.inArray(this[0],ne(e)):ne.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ne.unique(ne.merge(this.get(),ne(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ne.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ne.dir(e,"parentNode")},parentsUntil:function(e,t,n){return ne.dir(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return ne.dir(e,"nextSibling")},prevAll:function(e){return ne.dir(e,"previousSibling")},nextUntil:function(e,t,n){return ne.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return ne.dir(e,"previousSibling",n)},siblings:function(e){return ne.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return ne.sibling(e.firstChild)},contents:function(e){return ne.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:ne.merge([],e.childNodes)}},function(e,t){ne.fn[e]=function(n,r){var i=ne.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ne.filter(r,i)),this.length>1&&(me[e]||(i=ne.unique(i)),he.test(e)&&(i=i.reverse())),this.pushStack(i)}});var ge=/\\S+/g,ve={};ne.Callbacks=function(e){var t,n,r,i,a,s,l=[],u=!(e="string"==typeof e?ve[e]||o(e):ne.extend({},e)).once&&[],c=function(o){for(n=e.memory&&o,r=!0,a=s||0,s=0,i=l.length,t=!0;l&&a-1;)l.splice(r,1),t&&(r<=i&&i--,r<=a&&a--)}),this},has:function(e){return e?ne.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],i=0,this},disable:function(){return l=u=n=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,n||f.disable(),this},locked:function(){return!u},fireWith:function(e,n){return!l||r&&!u||(n=[e,(n=n||[]).slice?n.slice():n],t?u.push(n):c(n)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!r}};return f},ne.extend({Deferred:function(e){var t=[["resolve","done",ne.Callbacks("once memory"),"resolved"],["reject","fail",ne.Callbacks("once memory"),"rejected"],["notify","progress",ne.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ne.Deferred(function(n){ne.each(t,function(t,o){var a=ne.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&ne.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?ne.extend(e,r):r}},i={};return r.pipe=r.then,ne.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=J.call(arguments),a=o.length,s=1!==a||e&&ne.isFunction(e.promise)?a:0,l=1===s?e:ne.Deferred(),u=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?J.call(arguments):i,r===t?l.notifyWith(n,r):--s||l.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i0||(ye.resolveWith(de,[ne]),ne.fn.triggerHandler&&(ne(de).triggerHandler("ready"),ne(de).off("ready")))}}}),ne.ready.promise=function(t){if(!ye)if(ye=ne.Deferred(),"complete"===de.readyState)setTimeout(ne.ready);else if(de.addEventListener)de.addEventListener("DOMContentLoaded",s,!1),e.addEventListener("load",s,!1);else{de.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);var n=!1;try{n=null==e.frameElement&&de.documentElement}catch(e){}n&&n.doScroll&&function e(){if(!ne.isReady){try{n.doScroll("left")}catch(t){return setTimeout(e,50)}a(),ne.ready()}}()}return ye.promise(t)};var be,xe="undefined";for(be in ne(te))break;te.ownLast="0"!==be,te.inlineBlockNeedsLayout=!1,ne(function(){var e,t,n,r;(n=de.getElementsByTagName("body")[0])&&n.style&&(t=de.createElement("div"),(r=de.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==xe&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",te.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))}),function(){var e=de.createElement("div");if(null==te.deleteExpando){te.deleteExpando=!0;try{delete e.test}catch(e){te.deleteExpando=!1}}e=null}(),ne.acceptData=function(e){var t=ne.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)};var we=/^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,Te=/([A-Z])/g;ne.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?ne.cache[e[ne.expando]]:e[ne.expando])&&!u(e)},data:function(e,t,n){return c(e,t,n)},removeData:function(e,t){return f(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removeData:function(e,t){return f(e,t,!0)}}),ne.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=ne.data(o),1===o.nodeType&&!ne._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&l(o,r=ne.camelCase(r.slice(5)),i[r]);ne._data(o,"parsedAttrs",!0)}return i}return"object"==typeof e?this.each(function(){ne.data(this,e)}):arguments.length>1?this.each(function(){ne.data(this,e,t)}):o?l(o,e,ne.data(o,e)):void 0},removeData:function(e){return this.each(function(){ne.removeData(this,e)})}}),ne.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=ne._data(e,t),n&&(!r||ne.isArray(n)?r=ne._data(e,t,ne.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ne.queue(e,t),r=n.length,i=n.shift(),o=ne._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ne.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ne._data(e,n)||ne._data(e,n,{empty:ne.Callbacks("once memory").add(function(){ne._removeData(e,t+"queue"),ne._removeData(e,n)})})}}),ne.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length
a",te.leadingWhitespace=3===t.firstChild.nodeType,te.tbody=!t.getElementsByTagName("tbody").length,te.htmlSerialize=!!t.getElementsByTagName("link").length,te.html5Clone="<:nav>"!==de.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,n.appendChild(e),te.appendChecked=e.checked,t.innerHTML="",te.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML="",te.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,te.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){te.noCloneEvent=!1}),t.cloneNode(!0).click()),null==te.deleteExpando){te.deleteExpando=!0;try{delete t.test}catch(e){te.deleteExpando=!1}}}(),function(){var t,n,r=de.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(te[t+"Bubbles"]=n in e)||(r.setAttribute(n,"t"),te[t+"Bubbles"]=!1===r.attributes[n].expando);r=null}();var Ae=/^(?:input|select|textarea)$/i,De=/^key/,je=/^(?:mouse|pointer|contextmenu)|click/,Le=/^(?:focusinfocus|focusoutblur)$/,He=/^([^.]*)(?:\\.(.+)|)$/;ne.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,p,h,m,g=ne._data(e);if(g){for(n.handler&&(n=(l=n).handler,i=l.selector),n.guid||(n.guid=ne.guid++),(a=g.events)||(a=g.events={}),(c=g.handle)||((c=g.handle=function(e){return typeof ne===xe||e&&ne.event.triggered===e.type?void 0:ne.event.dispatch.apply(c.elem,arguments)}).elem=e),s=(t=(t||"").match(ge)||[""]).length;s--;)p=m=(o=He.exec(t[s])||[])[1],h=(o[2]||"").split(".").sort(),p&&(u=ne.event.special[p]||{},p=(i?u.delegateType:u.bindType)||p,u=ne.event.special[p]||{},f=ne.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ne.expr.match.needsContext.test(i),namespace:h.join(".")},l),(d=a[p])||((d=a[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,r,h,c)||(e.addEventListener?e.addEventListener(p,c,!1):e.attachEvent&&e.attachEvent("on"+p,c))),u.add&&(u.add.call(e,f),f.handler.guid||(f.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,f):d.push(f),ne.event.global[p]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,p,h,m,g=ne.hasData(e)&&ne._data(e);if(g&&(c=g.events)){for(u=(t=(t||"").match(ge)||[""]).length;u--;)if(s=He.exec(t[u])||[],p=m=s[1],h=(s[2]||"").split(".").sort(),p){for(f=ne.event.special[p]||{},d=c[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\\\.)"+h.join("\\\\.(?:.*\\\\.|)")+"(\\\\.|$)"),l=o=d.length;o--;)a=d[o],!i&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(d.splice(o,1),a.selector&&d.delegateCount--,f.remove&&f.remove.call(e,a));l&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,g.handle)||ne.removeEvent(e,p,g.handle),delete c[p])}else for(p in c)ne.event.remove(e,p+t[u],n,r,!0);ne.isEmptyObject(c)&&(delete g.handle,ne._removeData(e,"events"))}},trigger:function(t,n,r,i){var o,a,s,l,u,c,f,d=[r||de],p=ee.call(t,"type")?t.type:t,h=ee.call(t,"namespace")?t.namespace.split("."):[];if(s=c=r=r||de,3!==r.nodeType&&8!==r.nodeType&&!Le.test(p+ne.event.triggered)&&(p.indexOf(".")>=0&&(p=(h=p.split(".")).shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[ne.expando]?t:new ne.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\\\.)"+h.join("\\\\.(?:.*\\\\.|)")+"(\\\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:ne.makeArray(n,[t]),u=ne.event.special[p]||{},i||!u.trigger||!1!==u.trigger.apply(r,n))){if(!i&&!u.noBubble&&!ne.isWindow(r)){for(l=u.delegateType||p,Le.test(l+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),c=s;c===(r.ownerDocument||de)&&d.push(c.defaultView||c.parentWindow||e)}for(f=0;(s=d[f++])&&!t.isPropagationStopped();)t.type=f>1?l:u.bindType||p,(o=(ne._data(s,"events")||{})[t.type]&&ne._data(s,"handle"))&&o.apply(s,n),(o=a&&s[a])&&o.apply&&ne.acceptData(s)&&(t.result=o.apply(s,n),!1===t.result&&t.preventDefault());if(t.type=p,!i&&!t.isDefaultPrevented()&&(!u._default||!1===u._default.apply(d.pop(),n))&&ne.acceptData(r)&&a&&r[p]&&!ne.isWindow(r)){(c=r[a])&&(r[a]=null),ne.event.triggered=p;try{r[p]()}catch(e){}ne.event.triggered=void 0,c&&(r[a]=c)}return t.result}},dispatch:function(e){e=ne.event.fix(e);var t,n,r,i,o,a=[],s=J.call(arguments),l=(ne._data(this,"events")||{})[e.type]||[],u=ne.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(a=ne.event.handlers.call(this,e,l),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,o=0;(r=i.handlers[o++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(r.namespace)||(e.handleObj=r,e.data=r.data,void 0!==(n=((ne.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,s))&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(i=[],o=0;o=0:ne.find(n,this,null,[l]).length),i[n]&&i.push(r);i.length&&a.push({elem:l,handlers:i})}return s]","i"),Fe=/^\\s+/,Oe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:]+)[^>]*)\\/>/gi,Be=/<([\\w:]+)/,Pe=/\\s*$/g,Ue={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:te.htmlSerialize?[0,"",""]:[1,"X
","
"]},Ve=m(de).appendChild(de.createElement("div"));Ue.optgroup=Ue.option,Ue.tbody=Ue.tfoot=Ue.colgroup=Ue.caption=Ue.thead,Ue.th=Ue.td,ne.extend({clone:function(e,t,n){var r,i,o,a,s,l=ne.contains(e.ownerDocument,e);if(te.html5Clone||ne.isXMLDoc(e)||!Me.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Ve.innerHTML=e.outerHTML,Ve.removeChild(o=Ve.firstChild)),!(te.noCloneEvent&&te.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ne.isXMLDoc(e)))for(r=g(o),s=g(e),a=0;null!=(i=s[a]);++a)r[a]&&C(i,r[a]);if(t)if(n)for(s=s||g(e),r=r||g(o),a=0;null!=(i=s[a]);a++)T(i,r[a]);else T(e,o);return(r=g(o,"script")).length>0&&w(r,!l&&g(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){for(var i,o,a,s,l,u,c,f=e.length,d=m(t),p=[],h=0;h")+c[2],i=c[0];i--;)s=s.lastChild;if(!te.leadingWhitespace&&Fe.test(o)&&p.push(t.createTextNode(Fe.exec(o)[0])),!te.tbody)for(i=(o="table"!==l||Pe.test(o)?""!==c[1]||Pe.test(o)?0:s:s.firstChild)&&o.childNodes.length;i--;)ne.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u);for(ne.merge(p,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=d.lastChild}else p.push(t.createTextNode(o));for(s&&d.removeChild(s),te.appendChecked||ne.grep(g(p,"input"),v),h=0;o=p[h++];)if((!r||-1===ne.inArray(o,r))&&(a=ne.contains(o.ownerDocument,o),s=g(d.appendChild(o),"script"),a&&w(s),n))for(i=0;o=s[i++];)ze.test(o.type||"")&&n.push(o);return s=null,d},cleanData:function(e,t){for(var n,r,i,o,a=0,s=ne.expando,l=ne.cache,u=te.deleteExpando,c=ne.event.special;null!=(n=e[a]);a++)if((t||ne.acceptData(n))&&(i=n[s],o=i&&l[i])){if(o.events)for(r in o.events)c[r]?ne.event.remove(n,r):ne.removeEvent(n,r,o.handle);l[i]&&(delete l[i],u?delete n[s]:typeof n.removeAttribute!==xe?n.removeAttribute(s):n[s]=null,V.push(i))}}}),ne.fn.extend({text:function(e){return ke(this,function(e){return void 0===e?ne.text(this):this.empty().append((this[0]&&this[0].ownerDocument||de).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||y(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=y(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?ne.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||ne.cleanData(g(n)),n.parentNode&&(t&&ne.contains(n.ownerDocument,n)&&w(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&ne.cleanData(g(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&ne.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ne.clone(this,e,t)})},html:function(e){return ke(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(_e,""):void 0;if("string"==typeof e&&!We.test(e)&&(te.htmlSerialize||!Me.test(e))&&(te.leadingWhitespace||!Fe.test(e))&&!Ue[(Be.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Oe,"<$1>");try{for(;n1&&"string"==typeof d&&!te.checkClone&&$e.test(d))return this.each(function(n){var r=c.eq(n);p&&(e[0]=d.call(this,n,r.html())),r.domManip(e,t)});if(u&&(s=ne.buildFragment(e,this[0].ownerDocument,!1,this),n=s.firstChild,1===s.childNodes.length&&(s=n),n)){for(i=(o=ne.map(g(s,"script"),b)).length;l
t
",(i=t.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(s=0===i[0].offsetHeight)&&(i[0].style.display="",i[1].style.display="none",s=0===i[0].offsetHeight),n.removeChild(r))}var n,r,i,o,a,s,l;(n=de.createElement("div")).innerHTML="
a",(r=(i=n.getElementsByTagName("a")[0])&&i.style)&&(r.cssText="float:left;opacity:.5",te.opacity="0.5"===r.opacity,te.cssFloat=!!r.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",te.clearCloneStyle="content-box"===n.style.backgroundClip,te.boxSizing=""===r.boxSizing||""===r.MozBoxSizing||""===r.WebkitBoxSizing,ne.extend(te,{reliableHiddenOffsets:function(){return null==s&&t(),s},boxSizingReliable:function(){return null==a&&t(),a},pixelPosition:function(){return null==o&&t(),o},reliableMarginRight:function(){return null==l&&t(),l}}))}(),ne.swap=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i};var tt=/alpha\\([^)]*\\)/i,nt=/opacity\\s*=\\s*([^)]*)/,rt=/^(none|table(?!-c[ea]).+)/,it=new RegExp("^("+Ce+")(.*)$","i"),ot=new RegExp("^([+-])=("+Ce+")","i"),at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"},lt=["Webkit","O","Moz","ms"];ne.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:te.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=ne.camelCase(t),l=e.style;if(t=ne.cssProps[s]||(ne.cssProps[s]=S(l,s)),a=ne.cssHooks[t]||ne.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];if("string"==(o=typeof n)&&(i=ot.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(ne.css(e,t)),o="number"),null!=n&&n===n&&("number"!==o||ne.cssNumber[s]||(n+="px"),te.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,r)))))try{l[t]=n}catch(e){}}},css:function(e,t,n,r){var i,o,a,s=ne.camelCase(t);return t=ne.cssProps[s]||(ne.cssProps[s]=S(e.style,s)),(a=ne.cssHooks[t]||ne.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Qe(e,t,r)),"normal"===o&&t in st&&(o=st[t]),""===n||n?(i=parseFloat(o),!0===n||ne.isNumeric(i)?i||0:o):o}}),ne.each(["height","width"],function(e,t){ne.cssHooks[t]={get:function(e,n,r){if(n)return rt.test(ne.css(e,"display"))&&0===e.offsetWidth?ne.swap(e,at,function(){return L(e,t,r)}):L(e,t,r)},set:function(e,n,r){var i=r&&Ge(e);return D(0,n,r?j(e,t,r,te.boxSizing&&"border-box"===ne.css(e,"boxSizing",!1,i),i):0)}}}),te.opacity||(ne.cssHooks.opacity={get:function(e,t){return nt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=ne.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===ne.trim(o.replace(tt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=tt.test(o)?o.replace(tt,i):o+" "+i)}}),ne.cssHooks.marginRight=k(te.reliableMarginRight,function(e,t){if(t)return ne.swap(e,{display:"inline-block"},Qe,[e,"marginRight"])}),ne.each({margin:"",padding:"",border:"Width"},function(e,t){ne.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+Ne[r]+t]=o[r]||o[r-2]||o[0];return i}},Ke.test(e)||(ne.cssHooks[e+t].set=D)}),ne.fn.extend({css:function(e,t){return ke(this,function(e,t,n){var r,i,o={},a=0;if(ne.isArray(t)){for(r=Ge(e),i=t.length;a1)},show:function(){return A(this,!0)},hide:function(){return A(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ee(this)?ne(this).show():ne(this).hide()})}}),ne.Tween=H,H.prototype={constructor:H,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ne.cssNumber[n]?"":"px")},cur:function(){var e=H.propHooks[this.prop];return e&&e.get?e.get(this):H.propHooks._default.get(this)},run:function(e){var t,n=H.propHooks[this.prop];return this.options.duration?this.pos=t=ne.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=ne.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){ne.fx.step[e.prop]?ne.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[ne.cssProps[e.prop]]||ne.cssHooks[e.prop])?ne.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ne.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},ne.fx=H.prototype.init,ne.fx.step={};var ut,ct,ft=/^(?:toggle|show|hide)$/,dt=new RegExp("^(?:([+-])=|)("+Ce+")([a-z%]*)$","i"),pt=/queueHooks$/,ht=[function(e,t,n){var r,i,o,a,s,l,u,c=this,f={},d=e.style,p=e.nodeType&&Ee(e),h=ne._data(e,"fxshow");n.queue||(null==(s=ne._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,ne.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===("none"===(u=ne.css(e,"display"))?ne._data(e,"olddisplay")||E(e.nodeName):u)&&"none"===ne.css(e,"float")&&(te.inlineBlockNeedsLayout&&"inline"!==E(e.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",te.shrinkWrapBlocks()||c.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],ft.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!h||void 0===h[r])continue;p=!0}f[r]=h&&h[r]||ne.style(e,r)}else u=void 0;if(ne.isEmptyObject(f))"inline"===("none"===u?E(e.nodeName):u)&&(d.display=u);else{h?"hidden"in h&&(p=h.hidden):h=ne._data(e,"fxshow",{}),o&&(h.hidden=!p),p?ne(e).show():c.done(function(){ne(e).hide()}),c.done(function(){var t;ne._removeData(e,"fxshow");for(t in f)ne.style(e,t,f[t])});for(r in f)a=M(p?h[r]:0,r,c),r in h||(h[r]=a.start,p&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}],mt={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=dt.exec(t),o=i&&i[3]||(ne.cssNumber[e]?"":"px"),a=(ne.cssNumber[e]||"px"!==o&&+r)&&dt.exec(ne.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do{a/=s=s||".5",ne.style(n.elem,e,a+o)}while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};ne.Animation=ne.extend(O,{tweener:function(e,t){ne.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;r
a",r=t.getElementsByTagName("a")[0],i=(n=de.createElement("select")).appendChild(de.createElement("option")),e=t.getElementsByTagName("input")[0],r.style.cssText="top:1px",te.getSetAttribute="t"!==t.className,te.style=/top/.test(r.getAttribute("style")),te.hrefNormalized="/a"===r.getAttribute("href"),te.checkOn=!!e.value,te.optSelected=i.selected,te.enctype=!!de.createElement("form").enctype,n.disabled=!0,te.optDisabled=!i.disabled,(e=de.createElement("input")).setAttribute("value",""),te.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),te.radioValue="t"===e.value}();var gt=/\\r/g;ne.fn.extend({val:function(e){var t,n,r,i=this[0];if(arguments.length)return r=ne.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,ne(this).val()):e)?i="":"number"==typeof i?i+="":ne.isArray(i)&&(i=ne.map(i,function(e){return null==e?"":e+""})),(t=ne.valHooks[this.type]||ne.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=ne.valHooks[i.type]||ne.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(gt,""):null==n?"":n}}),ne.extend({valHooks:{option:{get:function(e){var t=ne.find.attr(e,"value");return null!=t?t:ne.trim(ne.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,l=i<0?s:o?i:0;l=0)try{r.selected=n=!0}catch(e){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),ne.each(["radio","checkbox"],function(){ne.valHooks[this]={set:function(e,t){if(ne.isArray(t))return e.checked=ne.inArray(ne(e).val(),t)>=0}},te.checkOn||(ne.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var vt,yt,bt=ne.expr.attrHandle,xt=/^(?:checked|selected)$/i,wt=te.getSetAttribute,Tt=te.input;ne.fn.extend({attr:function(e,t){return ke(this,ne.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ne.removeAttr(this,e)})}}),ne.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===xe?ne.prop(e,t,n):(1===o&&ne.isXMLDoc(e)||(t=t.toLowerCase(),r=ne.attrHooks[t]||(ne.expr.match.bool.test(t)?yt:vt)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=ne.find.attr(e,t))?void 0:i:null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void ne.removeAttr(e,t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(ge);if(o&&1===e.nodeType)for(;n=o[i++];)r=ne.propFix[n]||n,ne.expr.match.bool.test(n)?Tt&&wt||!xt.test(n)?e[r]=!1:e[ne.camelCase("default-"+n)]=e[r]=!1:ne.attr(e,n,""),e.removeAttribute(wt?n:r)},attrHooks:{type:{set:function(e,t){if(!te.radioValue&&"radio"===t&&ne.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),yt={set:function(e,t,n){return!1===t?ne.removeAttr(e,n):Tt&&wt||!xt.test(n)?e.setAttribute(!wt&&ne.propFix[n]||n,n):e[ne.camelCase("default-"+n)]=e[n]=!0,n}},ne.each(ne.expr.match.bool.source.match(/\\w+/g),function(e,t){var n=bt[t]||ne.find.attr;bt[t]=Tt&&wt||!xt.test(t)?function(e,t,r){var i,o;return r||(o=bt[t],bt[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,bt[t]=o),i}:function(e,t,n){if(!n)return e[ne.camelCase("default-"+t)]?t.toLowerCase():null}}),Tt&&wt||(ne.attrHooks.value={set:function(e,t,n){if(!ne.nodeName(e,"input"))return vt&&vt.set(e,t,n);e.defaultValue=t}}),wt||(vt={set:function(e,t,n){var r=e.getAttributeNode(n);if(r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n))return t}},bt.id=bt.name=bt.coords=function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},ne.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:vt.set},ne.attrHooks.contenteditable={set:function(e,t,n){vt.set(e,""!==t&&t,n)}},ne.each(["width","height"],function(e,t){ne.attrHooks[t]={set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}}})),te.style||(ne.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Ct=/^(?:input|select|textarea|button|object)$/i,Nt=/^(?:a|area)$/i;ne.fn.extend({prop:function(e,t){return ke(this,ne.prop,e,t,arguments.length>1)},removeProp:function(e){return e=ne.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),ne.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!ne.isXMLDoc(e))&&(t=ne.propFix[t]||t,i=ne.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ne.find.attr(e,"tabindex");return t?parseInt(t,10):Ct.test(e.nodeName)||Nt.test(e.nodeName)&&e.href?0:-1}}}}),te.hrefNormalized||ne.each(["href","src"],function(e,t){ne.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),te.optSelected||(ne.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),ne.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ne.propFix[this.toLowerCase()]=this}),te.enctype||(ne.propFix.enctype="encoding");var Et=/[\\t\\r\\n\\f]/g;ne.fn.extend({addClass:function(e){var t,n,r,i,o,a,s=0,l=this.length,u="string"==typeof e&&e;if(ne.isFunction(e))return this.each(function(t){ne(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(ge)||[];s=0;)r=r.replace(" "+i+" "," ");a=e?ne.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):ne.isFunction(e)?this.each(function(n){ne(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var t,r=0,i=ne(this),o=e.match(ge)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else n!==xe&&"boolean"!==n||(this.className&&ne._data(this,"__className__",this.className),this.className=this.className||!1===e?"":ne._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;n=0)return!0;return!1}}),ne.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){ne.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ne.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var kt=ne.now(),St=/\\?/,At=/(,)|(\\[|{)|(}|])|"(?:[^"\\\\\\r\\n]|\\\\["\\\\\\/bfnrt]|\\\\u[\\da-fA-F]{4})*"\\s*:?|true|false|null|-?(?!0\\d)\\d+(?:\\.\\d+|)(?:[eE][+-]?\\d+|)/g;ne.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,r=null,i=ne.trim(t+"");return i&&!ne.trim(i.replace(At,function(e,t,i,o){return n&&t&&(r=0),0===r?e:(n=i||t,r+=!o-!i,"")}))?Function("return "+i)():ne.error("Invalid JSON: "+t)},ne.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{e.DOMParser?n=(new DOMParser).parseFromString(t,"text/xml"):((n=new ActiveXObject("Microsoft.XMLDOM")).async="false",n.loadXML(t))}catch(e){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||ne.error("Invalid XML: "+t),n};var Dt,jt,Lt=/#.*$/,Ht=/([?&])_=[^&]*/,qt=/^(.*?):[ \\t]*([^\\r\\n]*)\\r?$/gm,_t=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Mt=/^(?:GET|HEAD)$/,Ft=/^\\/\\//,Ot=/^([\\w.+-]+:)(?:\\/\\/(?:[^\\/?#]*@|)([^\\/?#:]*)(?::(\\d+)|)|)/,Bt={},Pt={},Rt="*/".concat("*");try{jt=location.href}catch(e){(jt=de.createElement("a")).href="",jt=jt.href}Dt=Ot.exec(jt.toLowerCase())||[],ne.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:jt,type:"GET",isLocal:_t.test(Dt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ne.parseJSON,"text xml":ne.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?R(R(e,ne.ajaxSettings),t):R(ne.ajaxSettings,e)},ajaxPrefilter:B(Bt),ajaxTransport:B(Pt),ajax:function(e,t){function n(e,t,n,r){var i,c,v,y,x,T=t;2!==b&&(b=2,s&&clearTimeout(s),u=void 0,a=r||"",w.readyState=e>0?4:0,i=e>=200&&e<300||304===e,n&&(y=W(f,w,n)),y=$(f,y,w,i),i?(f.ifModified&&((x=w.getResponseHeader("Last-Modified"))&&(ne.lastModified[o]=x),(x=w.getResponseHeader("etag"))&&(ne.etag[o]=x)),204===e||"HEAD"===f.type?T="nocontent":304===e?T="notmodified":(T=y.state,c=y.data,i=!(v=y.error))):(v=T,!e&&T||(T="error",e<0&&(e=0))),w.status=e,w.statusText=(t||T)+"",i?h.resolveWith(d,[c,T,w]):h.rejectWith(d,[w,T,v]),w.statusCode(g),g=void 0,l&&p.trigger(i?"ajaxSuccess":"ajaxError",[w,f,i?c:v]),m.fireWith(d,[w,T]),l&&(p.trigger("ajaxComplete",[w,f]),--ne.active||ne.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,l,u,c,f=ne.ajaxSetup({},t),d=f.context||f,p=f.context&&(d.nodeType||d.jquery)?ne(d):ne.event,h=ne.Deferred(),m=ne.Callbacks("once memory"),g=f.statusCode||{},v={},y={},b=0,x="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c)for(c={};t=qt.exec(a);)c[t[1].toLowerCase()]=t[2];t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,v[e]=t),this},overrideMimeType:function(e){return b||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)g[t]=[g[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||x;return u&&u.abort(t),n(0,t),this}};if(h.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,f.url=((e||f.url||jt)+"").replace(Lt,"").replace(Ft,Dt[1]+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=ne.trim(f.dataType||"*").toLowerCase().match(ge)||[""],null==f.crossDomain&&(r=Ot.exec(f.url.toLowerCase()),f.crossDomain=!(!r||r[1]===Dt[1]&&r[2]===Dt[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(Dt[3]||("http:"===Dt[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=ne.param(f.data,f.traditional)),P(Bt,f,t,w),2===b)return w;(l=ne.event&&f.global)&&0==ne.active++&&ne.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Mt.test(f.type),o=f.url,f.hasContent||(f.data&&(o=f.url+=(St.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=Ht.test(o)?o.replace(Ht,"$1_="+kt++):o+(St.test(o)?"&":"?")+"_="+kt++)),f.ifModified&&(ne.lastModified[o]&&w.setRequestHeader("If-Modified-Since",ne.lastModified[o]),ne.etag[o]&&w.setRequestHeader("If-None-Match",ne.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Rt+"; q=0.01":""):f.accepts["*"]);for(i in f.headers)w.setRequestHeader(i,f.headers[i]);if(f.beforeSend&&(!1===f.beforeSend.call(d,w,f)||2===b))return w.abort();x="abort";for(i in{success:1,error:1,complete:1})w[i](f[i]);if(u=P(Pt,f,t,w)){w.readyState=1,l&&p.trigger("ajaxSend",[w,f]),f.async&&f.timeout>0&&(s=setTimeout(function(){w.abort("timeout")},f.timeout));try{b=1,u.send(v,n)}catch(e){if(!(b<2))throw e;n(-1,e)}}else n(-1,"No Transport");return w},getJSON:function(e,t,n){return ne.get(e,t,n,"json")},getScript:function(e,t){return ne.get(e,void 0,t,"script")}}),ne.each(["get","post"],function(e,t){ne[t]=function(e,n,r,i){return ne.isFunction(n)&&(i=i||r,r=n,n=void 0),ne.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),ne._evalUrl=function(e){return ne.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},ne.fn.extend({wrapAll:function(e){if(ne.isFunction(e))return this.each(function(t){ne(this).wrapAll(e.call(this,t))});if(this[0]){var t=ne(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return ne.isFunction(e)?this.each(function(t){ne(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ne(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ne.isFunction(e);return this.each(function(n){ne(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){ne.nodeName(this,"body")||ne(this).replaceWith(this.childNodes)}).end()}}),ne.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!te.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||ne.css(e,"display"))},ne.expr.filters.visible=function(e){return!ne.expr.filters.hidden(e)};var Wt=/%20/g,$t=/\\[\\]$/,zt=/\\r?\\n/g,It=/^(?:submit|button|image|reset|file)$/i,Xt=/^(?:input|select|textarea|keygen)/i;ne.param=function(e,t){var n,r=[],i=function(e,t){t=ne.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=ne.ajaxSettings&&ne.ajaxSettings.traditional),ne.isArray(e)||e.jquery&&!ne.isPlainObject(e))ne.each(e,function(){i(this.name,this.value)});else for(n in e)z(n,e[n],t,i);return r.join("&").replace(Wt,"+")},ne.fn.extend({serialize:function(){return ne.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ne.prop(this,"elements");return e?ne.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ne(this).is(":disabled")&&Xt.test(this.nodeName)&&!It.test(e)&&(this.checked||!Se.test(e))}).map(function(e,t){var n=ne(this).val();return null==n?null:ne.isArray(n)?ne.map(n,function(e){return{name:t.name,value:e.replace(zt,"\\r\\n")}}):{name:t.name,value:n.replace(zt,"\\r\\n")}}).get()}}),ne.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&I()||X()}:I;var Ut=0,Vt={},Jt=ne.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in Vt)Vt[e](void 0,!0)}),te.cors=!!Jt&&"withCredentials"in Jt,(Jt=te.ajax=!!Jt)&&ne.ajaxTransport(function(e){if(!e.crossDomain||te.cors){var t;return{send:function(n,r){var i,o=e.xhr(),a=++Ut;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");o.send(e.hasContent&&e.data||null),t=function(n,i){var s,l,u;if(t&&(i||4===o.readyState))if(delete Vt[a],t=void 0,o.onreadystatechange=ne.noop,i)4!==o.readyState&&o.abort();else{u={},s=o.status,"string"==typeof o.responseText&&(u.text=o.responseText);try{l=o.statusText}catch(e){l=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=u.text?200:404}u&&r(s,l,u,o.getAllResponseHeaders())},e.async?4===o.readyState?setTimeout(t):o.onreadystatechange=Vt[a]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),ne.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return ne.globalEval(e),e}}}),ne.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),ne.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=de.head||ne("head")[0]||de.documentElement;return{send:function(r,i){(t=de.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var Yt=[],Gt=/(=)\\?(?=&|$)|\\?\\?/;ne.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Yt.pop()||ne.expando+"_"+kt++;return this[e]=!0,e}}),ne.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Gt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=ne.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Gt,"$1"+i):!1!==t.jsonp&&(t.url+=(St.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||ne.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Yt.push(i)),a&&ne.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),ne.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||de;var r=ue.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=ne.buildFragment([e],t,i),i&&i.length&&ne(i).remove(),ne.merge([],r.childNodes))};var Qt=ne.fn.load;ne.fn.load=function(e,t,n){if("string"!=typeof e&&Qt)return Qt.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>=0&&(r=ne.trim(e.slice(s,e.length)),e=e.slice(0,s)),ne.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&ne.ajax({url:e,type:o,dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?ne("
").append(ne.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){a.each(n,i||[e.responseText,t,e])}),this},ne.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ne.fn[t]=function(e){return this.on(t,e)}}),ne.expr.filters.animated=function(e){return ne.grep(ne.timers,function(t){return e===t.elem}).length};var Kt=e.document.documentElement;ne.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u=ne.css(e,"position"),c=ne(e),f={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=ne.css(e,"top"),l=ne.css(e,"left"),("absolute"===u||"fixed"===u)&&ne.inArray("auto",[o,l])>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),ne.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ne.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){ne.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;if(o)return t=o.documentElement,ne.contains(t,i)?(typeof i.getBoundingClientRect!==xe&&(r=i.getBoundingClientRect()),n=U(o),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===ne.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ne.nodeName(e[0],"html")||(n=e.offset()),n.top+=ne.css(e[0],"borderTopWidth",!0),n.left+=ne.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-ne.css(r,"marginTop",!0),left:t.left-n.left-ne.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Kt;e&&!ne.nodeName(e,"html")&&"static"===ne.css(e,"position");)e=e.offsetParent;return e||Kt})}}),ne.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);ne.fn[e]=function(r){return ke(this,function(e,r,i){var o=U(e);if(void 0===i)return o?t in o?o[t]:o.document.documentElement[r]:e[r];o?o.scrollTo(n?ne(o).scrollLeft():i,n?i:ne(o).scrollTop()):e[r]=i},e,r,arguments.length,null)}}),ne.each(["top","left"],function(e,t){ne.cssHooks[t]=k(te.pixelPosition,function(e,n){if(n)return n=Qe(e,t),Ze.test(n)?ne(e).position()[t]+"px":n})}),ne.each({Height:"height",Width:"width"},function(e,t){ne.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){ne.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return ke(this,function(t,n,r){var i;return ne.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?ne.css(t,n,a):ne.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),ne.fn.size=function(){return this.length},ne.fn.andSelf=ne.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ne});var Zt=e.jQuery,en=e.$;return ne.noConflict=function(t){return e.$===ne&&(e.$=en),t&&e.jQuery===ne&&(e.jQuery=Zt),ne},typeof t===xe&&(e.jQuery=e.$=ne),ne});',address:e.uri}),t.global.require=n,t.global.define=r,t.get("@@global-helpers").retrieveGlobal(e.id,"jQuery")}),define("can-namespace@1.0.0#can-namespace",function(e,t,n){n.exports={}}),define("can-symbol@1.6.4#can-symbol",["require","exports","module","can-namespace"],function(e,t,n){!function(e,t,n,r){"use strict";var a,i=t("can-namespace");if("undefined"!=typeof Symbol&&"function"==typeof Symbol.for&&"symbol"==typeof Symbol("a symbol for testing symbols"))a=Symbol;else{var o=0,s={},c={};(a=function(e){var t="@@symbol"+o+++e,n={};return Object.defineProperties(n,{toString:{value:function(){return t}}}),n}).for=function(e){var t=s[e];return t||(t=s[e]=a(e),c[t]=e),t},a.keyFor=function(e){return c[e]},["hasInstance","isConcatSpreadable","iterator","match","prototype","replace","search","species","split","toPrimitive","toStringTag","unscopables"].forEach(function(e){a[e]=a("Symbol."+e)})}["isMapLike","isListLike","isValueLike","isFunctionLike","getOwnKeys","getOwnKeyDescriptor","proto","getOwnEnumerableKeys","hasOwnKey","hasKey","size","getName","getIdentity","assignDeep","updateDeep","getValue","setValue","getKeyValue","setKeyValue","updateValues","addValue","removeValues","apply","new","onValue","offValue","onKeyValue","offKeyValue","getKeyDependencies","getValueDependencies","keyHasDependencies","valueHasDependencies","onKeys","onKeysAdded","onKeysRemoved","onPatches"].forEach(function(e){a.for("can."+e)}),r.exports=i.Symbol=a}(0,e,0,n)}),define("can-reflect@1.17.9#reflections/helpers",["require","exports","module","can-symbol"],function(e,t,n){"use strict";var r=e("can-symbol");n.exports={makeGetFirstSymbolValue:function(e){var t=e.map(function(e){return r.for(e)}),n=t.length;return function(e){for(var r=-1;++r0&&n-1 in e)}}}),define("can-reflect@1.17.9#reflections/type/type",["require","exports","module","can-symbol","../helpers"],function(e,t,n){"use strict";function r(e){var t=typeof e;return null==e||"function"!==t&&"object"!==t}function a(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(t===Object.prototype||null===t)return!0;var n=d.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&p.call(n)===f}var i,o=e("can-symbol"),s=e("../helpers"),c=Object.getOwnPropertyNames(function(){}.prototype),l=Object.getPrototypeOf(function(){}.prototype),u=s.makeGetFirstSymbolValue(["can.new","can.apply"]),d=Object.prototype.hasOwnProperty,p=Function.prototype.toString,f=p.call(Object),h=o.for("can.onValue"),m=o.for("can.onKeyValue"),v=o.for("can.onPatches");i="undefined"!=typeof Symbol&&"function"==typeof Symbol.for&&"symbol"==typeof Symbol("a symbol for testing symbols")?function(e){return"symbol"==typeof e}:function(e){return"object"==typeof e&&!Array.isArray(e)&&"@@symbol"===e.toString().substr(0,"@@symbol".length)},n.exports={isConstructorLike:function(e){var t=e[o.for("can.new")];if(void 0!==t)return t;if("function"!=typeof e)return!1;var n=e.prototype;if(!n)return!1;if(l!==Object.getPrototypeOf(n))return!0;var r=Object.getOwnPropertyNames(n);if(r.length===c.length){for(var a=0,i=r.length;a=0&&e.splice(n,1)}):l.splice(e,n,t,[])}};l.get=l.getKeyValue,l.set=l.setKeyValue,l.delete=l.deleteKeyValue,n.exports=l}),define("can-reflect@1.17.9#reflections/observe/observe",["require","exports","module","can-symbol"],function(e,t,n){"use strict";function r(e,t){return function(n,r,a,o){var s=n[i.for(e)];return void 0!==s?s.call(n,r,a,o):this[t].apply(this,arguments)}}function a(e,t){return function(n){var r=n[i.for(e)];if(void 0!==r){var a=o.call(arguments,1);return r.apply(n,a)}throw new Error(t)}}var i=e("can-symbol"),o=[].slice;n.exports={onKeyValue:r("can.onKeyValue","onEvent"),offKeyValue:r("can.offKeyValue","offEvent"),onKeys:a("can.onKeys","can-reflect: can not observe an onKeys event"),onKeysAdded:a("can.onKeysAdded","can-reflect: can not observe an onKeysAdded event"),onKeysRemoved:a("can.onKeysRemoved","can-reflect: can not unobserve an onKeysRemoved event"),getKeyDependencies:a("can.getKeyDependencies","can-reflect: can not determine dependencies"),getWhatIChange:a("can.getWhatIChange","can-reflect: can not determine dependencies"),getChangesDependencyRecord:function(e){var t=e[i.for("can.getChangesDependencyRecord")];if("function"==typeof t)return t()},keyHasDependencies:a("can.keyHasDependencies","can-reflect: can not determine if this has key dependencies"),onValue:a("can.onValue","can-reflect: can not observe value change"),offValue:a("can.offValue","can-reflect: can not unobserve value change"),getValueDependencies:a("can.getValueDependencies","can-reflect: can not determine dependencies"),valueHasDependencies:a("can.valueHasDependencies","can-reflect: can not determine if value has dependencies"),onPatches:a("can.onPatches","can-reflect: can not observe patches on object"),offPatches:a("can.offPatches","can-reflect: can not unobserve patches on object"),onInstancePatches:a("can.onInstancePatches","can-reflect: can not observe onInstancePatches on Type"),offInstancePatches:a("can.offInstancePatches","can-reflect: can not unobserve onInstancePatches on Type"),onInstanceBoundChange:a("can.onInstanceBoundChange","can-reflect: can not observe bound state change in instances."),offInstanceBoundChange:a("can.offInstanceBoundChange","can-reflect: can not unobserve bound state change"),isBound:a("can.isBound","can-reflect: cannot determine if object is bound"),onEvent:function(e,t,n,r){if(e){var a=e[i.for("can.onEvent")];if(void 0!==a)return a.call(e,t,n,r);e.addEventListener&&e.addEventListener(t,n,r)}},offEvent:function(e,t,n,r){if(e){var a=e[i.for("can.offEvent")];if(void 0!==a)return a.call(e,t,n,r);e.removeEventListener&&e.removeEventListener(t,n,r)}},setPriority:function(e,t){if(e){var n=e[i.for("can.setPriority")];if(void 0!==n)return n.call(e,t),!0}return!1},getPriority:function(e){if(e){var t=e[i.for("can.getPriority")];if(void 0!==t)return t.call(e)}}}}),define("can-reflect@1.17.9#reflections/shape/shape",["require","exports","module","can-symbol","../get-set/get-set","../type/type","../helpers"],function(e,t,n){"use strict";function r(e){return!!u.isPrimitive(e)||!_(e)&&u.isBuiltIn(e)&&!u.isPlainObject(e)&&!Array.isArray(e)}function a(e){var t=e||f;return{unwrap:new t,serialize:new t,isSerializing:{unwrap:new t,serialize:new t},circularReferenceIsSerializing:{unwrap:new t,serialize:new t}}}function i(e,t){function n(e){this.first=!i,this.first&&(i=a(e)),this.map=i,this.result=null}var i=null;return n.prototype.end=function(){return this.first&&(i=null),this.result},function(a,i){if(r(a))return a;var o=new n(i);if(u.isValueLike(a))o.result=this[e](l.getValue(a));else{var s=u.isIteratorLike(a)||u.isMoreListLikeThanMapLike(a);if(o.result=s?[]:{},o.map[e].has(a))return o.map.isSerializing[e].has(a)&&o.map.circularReferenceIsSerializing[e].set(a,!0),o.map[e].get(a);o.map[e].set(a,o.result);for(var c=0,d=t.length;c=r.length)return n||o(a,{index:s,deleteCount:e.length-s+1,insert:[]}),!1;var c=r[s];u.isPrimitive(t)||u.isPrimitive(c)||!1===C(t)?o(a,{index:s,deleteCount:1,insert:[c]}):!0===n?this.assignDeep(t,c):this.updateDeep(t,c)},this),r.length>i&&o(a,{index:i+1,deleteCount:0,insert:r.slice(i+1)});for(var s=0,c=a.length;s";if(i.isMoreListLikeThanMapLike(e))return a+"[]";if(i.isMapLike(e))return a+"{}"}}}var a=e("can-symbol"),i=e("../type/type"),o=a.for("can.getName"),s=0;n.exports={setName:function(e,t){if("function"!=typeof t){var n=t;t=function(){return n}}Object.defineProperty(e,o,{value:t})},getName:r}}),define("can-reflect@1.17.9#types/map",["require","exports","module","../reflections/shape/shape","can-symbol"],function(e,t,n){"use strict";var r=e("../reflections/shape/shape"),a=e("can-symbol");"undefined"!=typeof Map&&(r.assignSymbols(Map.prototype,{"can.getOwnEnumerableKeys":Map.prototype.keys,"can.setKeyValue":Map.prototype.set,"can.getKeyValue":Map.prototype.get,"can.deleteKeyValue":Map.prototype.delete,"can.hasOwnKey":Map.prototype.has}),"function"!=typeof Map.prototype.keys&&(Map.prototype.keys=Map.prototype[a.for("can.getOwnEnumerableKeys")]=function(){var e=[],t=0;return this.forEach(function(t,n){e.push(n)}),{next:function(){return{value:e[t],done:t++===e.length}}}})),"undefined"!=typeof WeakMap&&r.assignSymbols(WeakMap.prototype,{"can.getOwnEnumerableKeys":function(){throw new Error("can-reflect: WeakMaps do not have enumerable keys.")},"can.setKeyValue":WeakMap.prototype.set,"can.getKeyValue":WeakMap.prototype.get,"can.deleteKeyValue":WeakMap.prototype.delete,"can.hasOwnKey":WeakMap.prototype.has})}),define("can-reflect@1.17.9#types/set",["require","exports","module","../reflections/shape/shape","can-symbol"],function(e,t,n){"use strict";var r=e("../reflections/shape/shape"),a=e("can-symbol");"undefined"!=typeof Set&&(r.assignSymbols(Set.prototype,{"can.isMoreListLikeThanMapLike":!0,"can.updateValues":function(e,t,n){t!==n&&r.each(t,function(e){this.delete(e)},this),r.each(n,function(e){this.add(e)},this)},"can.size":function(){return this.size}}),"function"!=typeof Set.prototype[a.iterator]&&(Set.prototype[a.iterator]=function(){var e=[],t=0;return this.forEach(function(t){e.push(t)}),{next:function(){return{value:e[t],done:t++===e.length}}}})),"undefined"!=typeof WeakSet&&r.assignSymbols(WeakSet.prototype,{"can.isListLike":!0,"can.isMoreListLikeThanMapLike":!0,"can.updateValues":function(e,t,n){t!==n&&r.each(t,function(e){this.delete(e)},this),r.each(n,function(e){this.add(e)},this)},"can.size":function(){throw new Error("can-reflect: WeakSets do not have enumerable keys.")}})}),define("can-reflect@1.17.9#can-reflect",["require","exports","module","./reflections/call/call","./reflections/get-set/get-set","./reflections/observe/observe","./reflections/shape/shape","./reflections/shape/schema/schema","./reflections/type/type","./reflections/get-name/get-name","can-namespace","./types/map","./types/set"],function(e,t,n){"use strict";var r=e("./reflections/call/call"),a=e("./reflections/get-set/get-set"),i=e("./reflections/observe/observe"),o=e("./reflections/shape/shape"),s=e("./reflections/shape/schema/schema"),c=e("./reflections/type/type"),l=e("./reflections/get-name/get-name"),u=e("can-namespace"),d={};[r,a,i,o,c,l,s].forEach(function(e){for(var t in e)d[t]=e[t]}),e("./types/map"),e("./types/set"),n.exports=u.Reflect=d}),define("can-log@1.0.0#can-log",function(e,t,n){"use strict";t.warnTimeout=5e3,t.logLevel=0,t.warn=function(){this.logLevel<2&&("undefined"!=typeof console&&console.warn?this._logger("warn",Array.prototype.slice.call(arguments)):"undefined"!=typeof console&&console.log&&this._logger("log",Array.prototype.slice.call(arguments)))},t.log=function(){this.logLevel<1&&"undefined"!=typeof console&&console.log&&this._logger("log",Array.prototype.slice.call(arguments))},t.error=function(){this.logLevel<1&&"undefined"!=typeof console&&console.error&&this._logger("error",Array.prototype.slice.call(arguments))},t._logger=function(e,t){try{console[e].apply(console,t)}catch(n){console[e](t)}}}),define("can-log@1.0.0#dev/dev",["require","exports","module","../can-log"],function(e,t,n){"use strict";var r=e("../can-log");n.exports={warnTimeout:5e3,logLevel:0,stringify:function(e){return JSON.stringify(e,function(e,t){return void 0===t?"/* void(undefined) */":t}," ").replace(/"\/\* void\(undefined\) \*\/"/g,"undefined")},warn:function(){},log:function(){},error:function(){},_logger:r._logger}}),define("can-string@1.0.0#can-string",function(e,t,n){"use strict";var r=/\=\=/,a=/([A-Z]+)([A-Z][a-z])/g,i=/([a-z\d])([A-Z])/g,o=/([a-z\d])([A-Z])/g,s=/"/g,c=/'/g,l=/-+(.)?/g,u=/[a-z][A-Z]/g,d=function(e){return""+(null===e||void 0===e||isNaN(e)&&""+e=="NaN"?"":e)},p={esc:function(e){return d(e).replace(/&/g,"&").replace(//g,">").replace(s,""").replace(c,"'")},capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},camelize:function(e){return d(e).replace(l,function(e,t){return t?t.toUpperCase():""})},hyphenate:function(e){return d(e).replace(u,function(e){return e.charAt(0)+"-"+e.charAt(1).toLowerCase()})},underscore:function(e){return e.replace(r,"/").replace(a,"$1_$2").replace(i,"$1_$2").replace(o,"_").toLowerCase()},undHash:/_|-/};n.exports=p}),define("can-construct@3.5.4#can-construct",["require","exports","module","can-reflect","can-log/dev/dev","can-namespace","can-symbol"],function(e,t,n){"use strict";var r,a=e("can-reflect"),i=(e("can-log/dev/dev"),e("can-namespace")),o=e("can-symbol").for("can.initializing"),s=0,c=function(){if(arguments.length)return c.extend.apply(c,arguments)};try{Object.getOwnPropertyDescriptor({}),r=!0}catch(e){r=!1}var l=function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return n&&(n.get||n.set)?n:null},u=function(e,t,n){Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:!1,value:n})};a.assignMap(c,{constructorExtends:!0,newInstance:function(){var e,t=this.instance();if(t.setup){if(Object.defineProperty(t,"__inSetup",{configurable:!0,enumerable:!1,value:!0,writable:!0}),Object.defineProperty(t,o,{configurable:!0,enumerable:!1,value:!0,writable:!0}),(e=t.setup.apply(t,arguments))instanceof c.ReturnValue)return e.value;t.__inSetup=!1,t[o]=!1}return t.init&&t.init.apply(t,e||arguments),t},_inherit:r?function(e,t,n){n=n||e;var r;for(var a in e)(r=l(e,a))?this._defineProperty(n,t,a,r):c._overwrite(n,t,a,e[a])}:function(e,t,n){n=n||e;for(var r in e)c._overwrite(n,t,r,e[r])},_defineProperty:function(e,t,n,r){Object.defineProperty(e,n,r)},_overwrite:function(e,t,n,r){Object.defineProperty(e,n,{value:r,configurable:!0,enumerable:!0,writable:!0})},setup:function(e){var t=a.assignDeepMap({},e.defaults);this.defaults=a.assignDeepMap(t,this.defaults)},instance:function(){s=1;var e=new this;return s=0,e},extend:function(e,t,n){function r(){if(!s)return this&&this.constructor===d||!arguments.length||!d.constructorExtends?d.newInstance.apply(d,arguments):d.extend.apply(d,arguments)}var i=e,o=t,l=n;"string"!=typeof i&&(l=o,o=i,i=null),l||(l=o,o=null),l=l||{};var d,p,f=this,h=this.prototype;p=this.instance(),c._inherit(l,h,p),i||(o&&o.shortName?i=o.shortName:this.shortName&&(i=this.shortName)),d="function"==typeof namedCtor?namedCtor(constructorName,r):function(){return r.apply(this,arguments)};for(var m in f)f.hasOwnProperty(m)&&(d[m]=f[m]);if(c._inherit(o,f,d),a.assignMap(d,{constructor:d,prototype:p}),void 0!==i){if(Object.getOwnPropertyDescriptor){var v=Object.getOwnPropertyDescriptor(d,"name");v&&!v.configurable||Object.defineProperty(d,"name",{writable:!0,value:i,configurable:!0})}d.shortName=i}u(d.prototype,"constructor",d);var g=[f].concat(Array.prototype.slice.call(arguments)),y=d.setup.apply(d,g);return d.init&&d.init.apply(d,y||g),d},ReturnValue:function(e){this.value=e}}),u(c.prototype,"setup",function(){}),u(c.prototype,"init",function(){}),n.exports=i.Construct=c}),define("can-util@3.14.0#js/is-container/is-container",function(e,t,n){"use strict";n.exports=function(e){return/^f|^o/.test(typeof e)}}),define("can-util@3.14.0#js/get/get",["require","exports","module","../is-container/is-container"],function(e,t,n){"use strict";var r=e("../is-container/is-container");n.exports=function(e,t){var n,a,i=void 0!==t?(t+"").replace(/\[/g,".").replace(/]/g,"").split("."):[],o=i.length;if(!o)return e;for(n=e,a=0;a/g,">").replace(p,""").replace(f,"'")},getObject:function(e,t){for(var n,a=(t=i(t)?t:[t||window]).length,o=0;o0&&n-1 in e)}}),define("can-util@3.14.0#js/is-iterable/is-iterable",["require","exports","module","can-symbol"],function(e,t,n){"use strict";var r=e("can-symbol");n.exports=function(e){return e&&!!e[r.iterator||r.for("iterator")]}}),define("can-util@3.14.0#js/each/each",["require","exports","module","../is-array-like/is-array-like","../is-iterable/is-iterable","can-symbol","can-namespace"],function(e,t,n){"use strict";var r=e("../is-array-like/is-array-like"),a=Object.prototype.hasOwnProperty,i=e("../is-iterable/is-iterable"),o=e("can-symbol"),s=e("can-namespace");n.exports=s.each=function(e,t,n){var s,c,l,u=0;if(e)if(r(e))for(c=e.length;u=0&&n.handlers.splice(r,1),0===n.handlers.length&&(n.observer.disconnect(),i.clean.call(t,"globalObserverData"))}}},f=function(e){var t=e.toLowerCase()+"Nodes",n=function(){var e=a().documentElement,n=i.get.call(e,t+"MutationData");return n||(n={name:t,handlers:[],afterHandlers:[],hander:null},o()&&i.set.call(e,t+"MutationData",n)),n},r=function(){var e=n();return 0!==e.handlers.length&&0!==e.afterHandlers.length||(e.handler=function(n){var r=new c;n.forEach(function(n){s(n[t],function(t){var n=t.getElementsByTagName&&l(t.getElementsByTagName("*")),a=d(t,e,r);if(n&&!a)for(var i,o=0;void 0!==(i=n[o]);o++)d(i,e,r)})})},this.add(e.handler)),e},f=function(){var e=a().documentElement,r=n();0===r.handlers.length&&0===r.afterHandlers.length&&(this.remove(r.handler),i.clean.call(e,t+"MutationData"))},h=function(e,t){p["on"+e]=function(e){r.call(this)[t].push(e)},p["off"+e]=function(e){var r=n(),a=r[t].indexOf(e);a>=0&&r[t].splice(a,1),f.call(this)}};!function(e){h(e,"handlers"),h("After"+e,"afterHandlers")}(u.capitalize(t))};f("added"),f("removed"),r.exports=p}(0,e,0,n)}),define("can-util@3.14.0#dom/data/data",["require","exports","module","can-dom-data-state","../mutation-observer/document/document","can-namespace"],function(e,t,n){"use strict";var r=e("can-dom-data-state"),a=e("../mutation-observer/document/document"),i=e("can-namespace"),o=0,s=function(){return o-=1,r.delete.call(this)},c=function(e){void 0!==r.get.call(e)&&s.call(e),0===o&&a.offAfterRemovedNodes(c)};n.exports=i.data={getCid:r.getCid,cid:r.cid,expando:r.expando,clean:r.clean,get:r.get,set:function(e,t){0===o&&a.onAfterRemovedNodes(c),o+=r.get.call(this)?0:1,r.set.call(this,e,t)},delete:s,_getElementSetCount:function(){return o}}}),define("can-util@3.14.0#dom/class-name/class-name",["require","exports","module","can-namespace"],function(e,t,n){"use strict";var r=e("can-namespace"),a=function(e){return this.classList?this.classList.contains(e):!!this.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))};n.exports=r.className={has:a,add:function(e){this.classList?this.classList.add(e):a.call(this,e)||(this.className+=" "+e)},remove:function(e){if(this.classList)this.classList.remove(e);else if(a.call(this,e)){var t=new RegExp("(\\s|^)"+e+"(\\s|$)");this.className=this.className.replace(t," ")}}}}),define("can-globals@1.2.1#is-node/is-node",["require","exports","module","can-globals/can-globals-instance"],function(e,t,n){!function(e,t,n,r){"use strict";var a=t("can-globals/can-globals-instance");a.define("isNode",function(){return"object"==typeof process&&"[object process]"==={}.toString.call(process)}),r.exports=a.makeExport("isNode")}(0,e,0,n)}),define("can-globals@1.2.1#is-browser-window/is-browser-window",["require","exports","module","can-globals/can-globals-instance","../is-node/is-node"],function(e,t,n){!function(e,t,n,r){"use strict";var a=t("can-globals/can-globals-instance");t("../is-node/is-node"),a.define("isBrowserWindow",function(){var e=a.getKeyValue("isNode");return"undefined"!=typeof window&&"undefined"!=typeof document&&!1===e}),r.exports=a.makeExport("isBrowserWindow")}(0,e,0,n)}),define("can-util@3.14.0#js/is-plain-object/is-plain-object",["require","exports","module","can-namespace"],function(e,t,n){"use strict";function r(e){return null!==e&&e==e.window}var a=e("can-namespace"),i=Object.prototype.hasOwnProperty;n.exports=a.isPlainObject=function(e){if(!e||"object"!=typeof e||e.nodeType||r(e)||e.constructor&&e.constructor.shortName)return!1;try{if(e.constructor&&!i.call(e,"constructor")&&!i.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}var t;for(t in e);return void 0===t||i.call(e,t)}}),define("can-util@3.14.0#dom/events/events",["require","exports","module","can-globals/document/document","can-globals/is-browser-window/is-browser-window","../../js/is-plain-object/is-plain-object","can-log/dev/dev","can-namespace"],function(e,t,n){!function(e,t,n,r){"use strict";function a(e,t){var n=s(t)?"inserted"===t.type||"removed"===t.type:"inserted"===t||"removed"===t,r=!!e.disabled;return n&&r}var i=t("can-globals/document/document"),o=t("can-globals/is-browser-window/is-browser-window"),s=t("../../js/is-plain-object/is-plain-object"),c=!1,l=(t("can-log/dev/dev"),t("can-namespace"));r.exports=l.events={addEventListener:function(){this.addEventListener.apply(this,arguments)},removeEventListener:function(){this.removeEventListener.apply(this,arguments)},canAddEventListener:function(){return this.nodeName&&(1===this.nodeType||9===this.nodeType)||this===window},dispatch:function(e,t,n){var r,o=c&&a(this,e),s=(this.ownerDocument||i()).createEvent("HTMLEvents"),l="string"==typeof e;if(s.initEvent(l?e:e.type,void 0===n||n,!1),!l)for(var u in e)void 0===s[u]&&(s[u]=e[u]);return!0===this.disabled&&s.type,s.args=t,o&&(this.disabled=!1),r=this.dispatchEvent(s),o&&(this.disabled=!0),r}},function(){if(o()){var e="fix_synthetic_events_on_disabled_test",t=document.createElement("input");t.disabled=!0;var n=setTimeout(function(){c=!0},50),a=function a(){clearTimeout(n),r.exports.removeEventListener.call(t,e,a)};r.exports.addEventListener.call(t,e,a);try{r.exports.dispatch.call(t,e,[],!1)}catch(e){a(),c=!0}}}()}(0,e,0,n)}),define("can-util@3.14.0#js/is-empty-object/is-empty-object",["require","exports","module","can-namespace"],function(e,t,n){"use strict";var r=e("can-namespace");n.exports=r.isEmptyObject=function(e){for(var t in e)return!1;return!0}}),define("can-util@3.14.0#dom/dispatch/dispatch",["require","exports","module","../events/events","can-namespace"],function(e,t,n){"use strict";var r=e("../events/events"),a=e("can-namespace");n.exports=a.dispatch=function(){return r.dispatch.apply(this,arguments)}}),define("can-util@3.14.0#dom/matches/matches",["require","exports","module","can-namespace"],function(e,t,n){"use strict";var r=e("can-namespace"),a=function(e){return e.matches||e.webkitMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector};n.exports=r.matches=function(){var e=a(this);return!!e&&e.apply(this,arguments)}}),define("can-util@3.14.0#dom/events/delegate/delegate",["require","exports","module","../events","../../data/data","../../matches/matches","../../../js/each/each","../../../js/is-empty-object/is-empty-object","can-cid"],function(e,t,n){"use strict";var r=e("../events"),a=e("../../data/data"),i=e("../../matches/matches"),o=e("../../../js/each/each"),s=e("../../../js/is-empty-object/is-empty-object"),c=e("can-cid"),l="delegateEvents",u=function(e){return"focus"===e||"blur"===e},d=function(e,t){var n=a.get.call(this,l)[e||t.type],r=[];if(n){var s=[];o(n,function(e){s.push(e)});var c=t.target;do{s.forEach(function(e){i.call(c,e[0].selector)&&r.push({target:c,delegates:e})}),c=c.parentNode}while(c&&c!==t.currentTarget)}var u=t.stopPropagation;t.stopPropagation=function(){u.apply(this,arguments),this.cancelBubble=!0};for(var d=0;d0&&a.updateChildrenAndSelf(this),this.value):this.func.call(this.context)},getPrimaryDepth:function(){return this.compute._primaryDepth||0},addEdge:function(e){"undefined"===e.event?d.onValue(e.obj,this.onDependencyChange):d.onKeyValue(e.obj,e.event,this.onDependencyChange)},removeEdge:function(e){"undefined"===e.event?d.offValue(e.obj,this.onDependencyChange):d.offKeyValue(e.obj,e.event,this.onDependencyChange)},dependencyChange:function(){!0===this.bound&&(void 0!==o.batchNum&&o.batchNum===this.batchNum||(a.registerUpdate(this,o.batchNum),this.batchNum=o.batchNum))},onDependencyChange:function(e){this.dependencyChange(e)},update:function(e){if(!0===this.needsUpdate&&g.updates--,this.needsUpdate=!1,!0===this.bound){var t=this.value;if(this.oldValue=null,this.start(),t!==this.value)return this.compute.updater(this.value,t,e),!0}},getValueAndBind:function(){return u.warn("can-observation: call start instead of getValueAndBind"),this.start()},start:function(){this.bound=!0,this.oldObserved=this.newObserved||{},this.ignore=0,this.newObserved={},v.push(this),this.value=this.func.call(this.context),v.pop(),this.updateBindings()},updateBindings:function(){var e,t,n=this.newObserved,r=this.oldObserved;for(e in n)t=n[e],r[e]?r[e]=void 0:this.addEdge(t);for(e in r)void 0!==(t=r[e])&&this.removeEdge(t)},teardown:function(){return u.warn("can-observation: call stop instead of teardown"),this.stop()},stop:function(){this.bound=!1;for(var e in this.newObserved){var t=this.newObserved[e];this.removeEdge(t)}this.newObserved={}}});var y,b=[],x=1/0,w=0,k=!1,j=function(e){var t=e.getPrimaryDepth();return tw&&(w=t),b[t]||(b[t]=[])};a.registerUpdate=function(e,t){!0!==e.needsUpdate&&(g.updates++,e.needsUpdate=!0,j(e).push(e))};var _=[];a.updateAndNotify=function(e,t){if(y=t,!0!==k)for(k=!0;;){if(!(x<=w)){b=[],x=1/0,w=0,k=!1;var n=_;return _=[],void n.forEach(function(e){e()})}var r=b[x],a=r&&r.pop();void 0!==a?a.update(y):x++}},i.addEventListener.call(o,"batchEnd",a.updateAndNotify),a.afterUpdateAndNotify=function(e){o.after(function(){!0===k?_.push(e):e()})},a.updateChildrenAndSelf=function(e){if(!0===e.needsUpdate)return a.unregisterAndUpdate(e);var t=!1;for(var n in e.newObserved)e.newObserved[n].obj.observation&&a.updateChildrenAndSelf(e.newObserved[n].obj.observation)&&(t=!0);return!0===t?e.update(y):void 0},a.unregisterAndUpdate=function(e){var t=e.getPrimaryDepth(),n=b[t];if(void 0!==n){var r=n.indexOf(e);-1!==r&&n.splice(r,1)}return e.update(y)},a.add=function(e,t){var n=v[v.length-1];if(void 0!==n&&!n.ignore){var r=t+"",a=e._cid+"|"+r;void 0!==n.traps?n.traps.push({obj:e,event:r,name:a}):n.newObserved[a]={obj:e,event:r}}},a.addAll=function(e){var t=v[v.length-1];if(void 0!==t)if(void 0!==t.traps)t.traps.push.apply(t.traps,e);else for(var n=0,r=e.length;n0){var t=v[v.length-1];t.ignore++;var n=e.apply(this,arguments);return t.ignore--,n}return e.apply(this,arguments)}},a.trap=function(){if(v.length>0){var e=v[v.length-1],t=e.traps,n=e.traps=[];return function(){return e.traps=t,n}}return function(){return[]}},a.trapsCount=function(){return v.length>0?v[v.length-1].traps.length:0},a.isRecording=function(){var e=v.length,t=e>0&&v[e-1];return t&&0===t.ignore};var C,E=function(){},T=function(){for(var e=0,t=C.length;e1?(i=o.pop(),e=r.read(e,o,a).value,o.push(i)):i=o[0],r.valueReadersMap.isValueLike.test(e[i.key],o.length-1,o,a)?r.valueReadersMap.isValueLike.write(e[i.key],n,a):(r.valueReadersMap.isValueLike.test(e,o.length-1,o,a)&&(e=e[u]()),r.propertyReadersMap.map.test(e)?r.propertyReadersMap.map.write(e,i.key,n,a):r.propertyReadersMap.object.test(e)&&(r.propertyReadersMap.object.write(e,i.key,n,a),a.observation&&a.observation.update()))}}).propertyReaders,function(e){r.propertyReadersMap[e.name]=e}),i(r.valueReaders,function(e){r.valueReadersMap[e.name]=e}),r.set=r.write,n.exports=r}),define("can-compute@3.3.10#proto-compute",["require","exports","module","can-observation","can-event","can-event/lifecycle/lifecycle","can-event/batch/batch","can-stache-key","can-util/js/get/get","can-cid","can-util/js/assign/assign","can-util/js/log/log","can-reflect","can-symbol","can-util/js/cid-set/cid-set","can-util/js/single-reference/single-reference"],function(e,t,n){var r=e("can-observation"),a=e("can-event"),i=e("can-event/lifecycle/lifecycle");e("can-event/batch/batch");var o=e("can-stache-key"),s=e("can-util/js/get/get"),c=e("can-cid"),l=e("can-util/js/assign/assign"),u=(e("can-util/js/log/log"),e("can-reflect")),d=e("can-symbol"),p=e("can-util/js/cid-set/cid-set"),f=e("can-util/js/single-reference/single-reference"),h=function(e,t,n,r){c(this,"compute");for(var a=[],i=0,s=arguments.length;i=0?["change"]:[]},addEventListener:s.addAndSetup,removeEventListener:s.removeAndTeardown,keys:function(e){return l.add(e,"__keys"),b.getOwnEnumerableKeys(e._data)}},{setup:function(e){b.isObservableLike(e)&&"function"==typeof e.serialize&&(e=e.serialize()),this._data=Object.create(null),h(this,".map"),this._setupComputedProperties();var t=e&&a.addToMap(e,this),n=this._setupDefaults(e),r=g(m(!0,{},n),e);this.attr(r),t&&t()},_setupComputedProperties:function(){this._computedAttrs=Object.create(null);for(var e=this.constructor._computedPropertyNames,t=0,n=e.length;t=0){var n=this.___get(e);if(void 0!==n)return l.add(this,e),n;var r=e.substr(0,t),a=e.substr(t+1),i=this.__get(r);return i&&b.getKeyValue(i,a)}return this.__get(e)},__get:function(e){return j[e]||this._computedAttrs[e]||l.add(this,e),this.___get(e)},___get:function(e){if(void 0!==e){var t=this._computedAttrs[e];return t&&t.compute?t.compute():_.call(this._data,e)?this._data[e]:void 0}return this._data},_set:function(e,t,n){var r,a=e.indexOf(".");if(a>=0&&!n){var i=e.substr(0,a),o=e.substr(a+1);r=this.__inSetup?void 0:this.___get(i),b.isMapLike(r)?b.setKeyValue(r,o,t):(r=this.__inSetup?void 0:this.___get(e),this.__convert&&(t=this.__convert(e,t)),this.__set(e,this.__type(t,e),r))}else r=this.__inSetup?void 0:this.___get(e),this.__convert&&(t=this.__convert(e,t)),this.__set(e,this.__type(t,e),r)},__type:function(e,t){return"object"!=typeof e||b.isObservableLike(e)||!a.canMakeObserve(e)||b.isListLike(e)?e:a.getMapFromObject(e)||new(this.constructor.Map||C)(e)},__set:function(e,t,n){if(t!==n){var a=this._computedAttrs[e],i=a||void 0!==n||_.call(this.___get(),e)?"set":"add";this.___set(e,"object"==typeof t?r.set(this,e,t,n):t),a&&a.count||this._triggerChange(e,i,t,n),"object"==typeof n&&r.teardownFromParent(this,n)}},___set:function(e,t){var n=this._computedAttrs[e];n?n.compute(t):this._data[e]=t,"function"==typeof this.constructor.prototype[e]||n||(this[e]=t)},removeAttr:function(e){return this._remove(e)},_remove:function(e){var t=a.attrParts(e),n=t.shift(),r=this.___get(n);return t.length&&r?b.deleteKeyValue(r,t.join(".")):("string"==typeof e&&~e.indexOf(".")&&(n=e),this.__remove(n,r),r)},__remove:function(e,t){e in this._data&&(this.___remove(e),this._triggerChange(e,"remove",void 0,t))},___remove:function(e){delete this._data[e],e in this.constructor.prototype||delete this[e]},___serialize:function(e,t){return this._legacyAttrBehavior?a.getValue(this,e,t,"serialize"):b.serialize(t,k)},_getAttrs:function(){return this._legacyAttrBehavior?a.serialize(this,"attr",{}):b.unwrap(this,k)},_setAttrs:function(e,t){return this._legacyAttrBehavior?this.__setAttrs(e,t):(!0===t?this[x.for("can.updateDeep")](e):this[x.for("can.assignDeep")](e),this)},__setAttrs:function(e,t){e=g({},e);var n,r,i=this;o.start(),this._each(function(n,o){"_cid"!==o&&(void 0!==(r=e[o])?(i.__convert&&(r=i.__convert(o,r)),y.isMapLike(n)&&a.canMakeObserve(r)?!0===t?b.updateDeep(n,r):b.assignDeep(n,r):n!==r&&i.__set(o,i.__type(r,o),n),delete e[o]):t&&i.removeAttr(o))});for(n in e)"_cid"!==n&&(r=e[n],this._set(n,r,!0));return o.stop(),this},serialize:function(){return b.serialize(this,k)},_triggerChange:function(e,t,n,a,o){r.isBubbling(this,"change")&&i.dispatch.call(this,{type:"change",target:this,batchNum:o},[e,t,n,a]),i.dispatch.call(this,{type:e,target:this,batchNum:o},[n,a]),"remove"!==t&&"add"!==t||i.dispatch.call(this,{type:"__keys",target:this,batchNum:o})},_eventSetup:function(){},_eventTeardown:function(){},one:i.one,addEventListener:function(e,t){var n=this._computedAttrs&&this._computedAttrs[e];return n&&n.compute&&(n.count?n.count++:(n.count=1,n.compute.addEventListener("change",function(e,t,r){n.handler(t,r)}))),r.bind(this,e),s.addAndSetup.apply(this,arguments)},removeEventListener:function(e,t){var n=this._computedAttrs&&this._computedAttrs[e];return n&&(1===n.count?(n.count=0,b.offValue(n.compute,n.handler)):n.count--),r.unbind(this,e),s.removeAndTeardown.apply(this,arguments)},compute:function(e){if(v(this.constructor.prototype[e]))return d(this[e],this);var t=u.reads(e),n=t.length-1;return d(function(r){if(!arguments.length)return u.get(this,e);u.write(this,t[n].key,r,{})},this)},each:function(e,t){for(var n,r,a=C.keys(this),i=0,o=a.length;i");return a.each(e,function(e,r){$li=a("
  • "),$a=a("").attr("href","#"+r.id).text(r.text),n.append($li.append($a)),r.sections&&r.sections.length&&$li.append(i(r.sections,t))}),n};n.exports=r.extend({init:function(){var e=[];this.$element=a(this.element),this.collectSignatures().each(function(t){var n=a("h2",this);this.id="sig_"+n.text().replace(/\s/g,"").replace(/[^\w]/g,"_"),e.push({id:this.id,text:n.text()})});var t=[],n=function(){return t[t.length-1]};if(this.collectHeadings().each(function(r){var i=a(this);this.id="section_"+i.text().replace(/\s/g,"").replace(/[^\w]/g,"_");for(var o=+this.nodeName.substr(1),s={id:this.id,text:i.text(),num:o,sections:[]};n()&&n().num>=o;)t.pop();t.length?(n().sections.push(s),t.push(s)):(e.push(s),t.push(s))}),this.$element.html(i(e,(window.docObject.outline&&window.docObject.outline.tag||"ul").toLowerCase())),window.location.hash.length){var r=window.location.hash.replace("#",""),o=document.getElementById(r);o&&o.scrollIntoView(!0)}},collectSignatures:function(){var e=a(".content .signature").clone();return e.find(".release").remove(),e},collectHeadings:function(){for(var e=window.docObject.outline&&window.docObject.outline.depth||1,t=[],n=0;n]*>"),u=new RegExp("\\{\\{(![\\s\\S]*?!|[\\s\\S]*?)\\}\\}\\}?","g"),d=/\s/,p=new RegExp("[A-Za-z0-9]"),f=new RegExp("[-:_A-Za-z0-9]+s*=s*(\"[^\"]*\"|'[^']*')"),h=a("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed"),m=a("altGlyph,altGlyphDef,altGlyphItem,animateColor,animateMotion,animateTransform,clipPath,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,foreignObject,glyphRef,linearGradient,radialGradient,textPath"),v=a("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),g=a("script"),y="start,end,close,attrStart,attrEnd,attrValue,chars,comment,special,done".split(","),b={"{":"}","(":")"},x=function(){},w=function(e,t,n){function a(e,n){var r;if(n)for(n=m[n]?n:n.toLowerCase(),r=C.length-1;r>=0&&C[r]!==n;r--);else r=0;if(r>=0){for(var a=C.length-1;a>=r;a--)t.close&&t.close(C[a],k);C.length=r}}if("object"==typeof e)return i(e,t);var o=[];t=t||{},n&&r(y,function(e){var n=t[e]||x;t[e]=function(){if(!1!==n.apply(this,arguments)){var t=arguments.length;void 0===arguments[t-1]&&(t=arguments.length-1),o.push({tokenType:e,args:[].slice.call(arguments,0,t)})}}});var c=t.magicMatch||u,d=t.magicStart||"{{";t.magicMatch&&s.warn("can-view-parser: magicMatch is deprecated."),t.magicStart&&s.warn("can-view-parser: magicStart is deprecated.");var p,f,b,k,j=function(){T&&t.chars&&t.chars(T,k),T=""},C=[],E=e,T="";for(C.last=function(){return this[this.length-1]};e;){if(f=!0,C.last()&&g[C.last()])e=e.replace(new RegExp("([\\s\\S]*?)]*>"),function(e,n){return n=n.replace(/|/g,"$1$2"),t.chars&&t.chars(n,k),""}),a(0,C.last());else{if(0===e.indexOf("\x3c!--"))(p=e.indexOf("--\x3e"))>=0&&(j(),t.comment&&t.comment(e.substring(4,p),k),e=e.substring(p+3),f=!1);else if(0===e.indexOf("s.valueStart?t.attrValue(e.substring(s.valueStart,r),n):s.inName&&s.nameStart"),n=f.exec(e.substring(1)),r=1;n&&t>=r+n.index;){for(r+=n.index+n[0].length;t")+1;n=f.exec(e.substring(r))}if(-1===t||!p.test(e[1]))return null;var a,i,o,s="",c="",l=e.substring(0,t+1),u="/"===l[l.length-2],h=l.search(d);return u?(c="/",i=l.substring(1,l.length-2).trim()):i=l.substring(1,l.length-1).trim(),-1===h?a=i:(h--,a=i.substring(0,h),s=i.substring(h)),o=[l,a,s,c],{match:o,html:e.substring(l.length)}},n.exports=o.HTMLParser=w}),define("can-util@3.14.0#js/global/global",["require","exports","module","can-namespace","can-globals/global/global"],function(e,t,n){!function(e,t,n,r){"use strict";var a=t("can-namespace");r.exports=a.global=t("can-globals/global/global")}(0,e,0,n)}),define("can-util@3.14.0#js/set-immediate/set-immediate",["require","exports","module","can-globals/global/global","can-namespace"],function(e,t,n){!function(e,t,n,r){"use strict";var e=t("can-globals/global/global")(),a=t("can-namespace");r.exports=a.setImmediate=e.setImmediate||function(e){return setTimeout(e,0)}}(function(){return this}(),e,0,n)}),define("can-util@3.14.0#dom/child-nodes/child-nodes",["require","exports","module","can-namespace"],function(e,t,n){"use strict";var r=e("can-namespace");n.exports=r.childNodes=function(e){var t=e.childNodes;if("length"in t)return t;for(var n=e.firstChild,r=[];n;)r.push(n),n=n.nextSibling;return r}}),define("can-util@3.14.0#dom/contains/contains",["require","exports","module","can-namespace"],function(e,t,n){"use strict";var r=e("can-namespace");n.exports=r.contains=function(e){return this.contains(e)}}),define("can-util@3.14.0#dom/mutate/mutate",["require","exports","module","../../js/make-array/make-array","can-namespace","../../js/set-immediate/set-immediate","can-cid","can-globals/mutation-observer/mutation-observer","../child-nodes/child-nodes","../contains/contains","../dispatch/dispatch","can-globals/document/document","../data/data"],function(e,t,n){!function(e,t,n,r){"use strict";var a,i=t("../../js/make-array/make-array"),o=t("can-namespace"),s=t("../../js/set-immediate/set-immediate"),c=t("can-cid"),l=t("can-globals/mutation-observer/mutation-observer"),u=t("../child-nodes/child-nodes"),d=t("../contains/contains"),p=t("../dispatch/dispatch"),f=t("can-globals/document/document"),h=t("../data/data"),m={inserted:function(e,t){return d.call(e,t)},removed:function(e,t){return!d.call(e,t)}},v=function(e,t,n,r,a){if(e.length)for(var o,s,l,u=0;void 0!==(l=e[u]);u++)if(s=c(l),l.getElementsByTagName&&n(t,l)&&!a[s]){a[s]=!0,o=i(l.getElementsByTagName("*")),p.call(l,r,[],!1),"removed"===r&&h.delete.call(l);for(var d,f=0;void 0!==(d=o[f]);f++)a[s=c(d)]||(p.call(d,r,[],!1),"removed"===r&&h.delete.call(d),a[s]=!0)}},g=function(){var e=a;a=null;var t=e[0][1][0],n=f()||t.ownerDocument||t,r=n.contains?n:n.documentElement,i={inserted:{},removed:{}};e.forEach(function(e){v(e[1],r,m[e[0]],e[0],i[e[0]])})},y=function(e,t){if(!l()&&e.length){var n=e[0],r=f()||n.ownerDocument||n,i=r.contains?r:r.documentElement;m.inserted(i,n)&&(a||(a=[],s(g)),a.push([t,e]))}};r.exports=o.mutate={appendChild:function(e){if(l())this.appendChild(e);else{var t;t=11===e.nodeType?i(u(e)):[e],this.appendChild(e),y(t,"inserted")}},insertBefore:function(e,t,n){if(l())this.insertBefore(e,t);else{var r;r=11===e.nodeType?i(u(e)):[e],this.insertBefore(e,t),y(r,"inserted")}},removeChild:function(e){l()?this.removeChild(e):(y([e],"removed"),this.removeChild(e))},replaceChild:function(e,t){if(l())this.replaceChild(e,t);else{var n;n=11===e.nodeType?i(u(e)):[e],y([t],"removed"),this.replaceChild(e,t),y(n,"inserted")}},inserted:function(e){y(e,"inserted")},removed:function(e){y(e,"removed")}}}(0,e,0,n)}),define("can-view-callbacks@3.2.5#can-view-callbacks",["require","exports","module","can-observation","can-util/js/dev/dev","can-util/js/global/global","can-util/dom/mutate/mutate","can-namespace"],function(e,t,n){!function(e,t,n,r){var a=t("can-observation"),i=(t("can-util/js/dev/dev"),t("can-util/js/global/global")),o=t("can-util/dom/mutate/mutate"),s=t("can-namespace"),c={},l=[],u=/[-\:]/,d=function(){},p={},f={_tags:p,_attributes:c,_regExpAttributes:l,defaultCallback:d,tag:function(e,t){if(!t){var n;return null===t?delete p[e.toLowerCase()]:n=p[e.toLowerCase()],!n&&u.test(e)&&(n=d),n}var r=i();r.html5&&(r.html5.elements+=" "+e,r.html5.shivDocument()),p[e.toLowerCase()]=t},attr:function(e,t){if(!t){var n=c[e];if(!n)for(var r=0,a=l.length;re&&s>t;){if(!a(n[o],r[s]))return[{index:t,deleteCount:o-e+1,insert:i.call(r,t,s+1)}];o--,s--}return[{index:t,deleteCount:o-e+1,insert:i.call(r,t,s+1)}]}var a=e("can-namespace"),i=[].slice,o=function(e,t){return e===t};n.exports=a.diff=function(e,t,n){n=n||o;for(var a=0,s=0,c=e.length,l=t.length,u=[];a
  • ',i=t[r]=n.childNodes[0].attributes[0]),(o=i.cloneNode()).value=a,e.setAttributeNode(o))}}return function(e,t,n){e.setAttribute(t,n)}}(),trigger:function(e,t,n){if(c.get.call(e,"canHasAttributesBindings"))return t=t.toLowerCase(),i(function(){d.call(e,{type:"attributes",attributeName:t,target:e,oldValue:n,bubbles:!1},[])})},get:function(e,t){t=t.toLowerCase();var n=O.special[t],r=n&&n.get,a=w(n);return"function"==typeof r&&a.call(e)?r.call(e):e.getAttribute(t)},remove:function(e,t){t=t.toLowerCase();var n;p()||(n=O.get(e,t));var r=O.special[t],a=r&&r.set,i=r&&r.remove,o=w(r);"function"==typeof i&&o.call(e)?i.call(e):"function"==typeof a&&o.call(e)?a.call(e,void 0):e.removeAttribute(t),p()||null==n||O.trigger(e,t,n)},has:function(){var e=o()&&document.createElement("div");return e&&e.hasAttribute?function(e,t){return e.hasAttribute(t)}:function(e,t){return null!==e.getAttribute(t)}}()},A=u.addEventListener;u.addEventListener=function(e,t){var n=O.special[e];if(n&&n.addEventListener){var r=n.addEventListener.call(this,e,t,A),a=c.get.call(this,"attrTeardowns");return a||c.set.call(this,"attrTeardowns",a={}),a[e]||(a[e]=[]),void a[e].push({teardown:r,handler:t})}return A.apply(this,arguments)};var D=u.removeEventListener;u.removeEventListener=function(e,t){var n=O.special[e];if(!n||!n.addEventListener)return D.apply(this,arguments);var r=c.get.call(this,"attrTeardowns");if(r&&r[e]){for(var a=r[e],i=0,o=a.length;i";var t,n,r=e.cloneNode(!0),a=""===r.innerHTML;return a?((e=document.createDocumentFragment()).appendChild(document.createTextNode("foo-bar")),(t=m())?((n=new t(function(){})).observe(document.documentElement,{childList:!0,subtree:!0}),r=e.cloneNode(!0),n.disconnect()):r=e.cloneNode(!0),1===r.childNodes.length):a}(),b="undefined"!=typeof document&&!!document.createElementNS,x=y?function(e){return e.cloneNode(!0)}:function(e){var t,n=e.ownerDocument;if(1===e.nodeType?t="http://www.w3.org/1999/xhtml"!==e.namespaceURI&&b&&n.createElementNS?n.createElementNS(e.namespaceURI,e.nodeName):n.createElement(e.nodeName):3===e.nodeType?t=n.createTextNode(e.nodeValue):8===e.nodeType?t=n.createComment(e.nodeValue):11===e.nodeType&&(t=n.createDocumentFragment()),e.attributes){var r=d(e.attributes);u(r,function(e){e&&e.specified&&l.setAttribute(t,e.nodeName||e.name,e.nodeValue||e.value)})}if(e&&e.firstChild)for(var a=e.firstChild;a;)t.appendChild(x(a)),a=a.nextSibling;return t};s.keepsTextNodes=g,s.cloneNode=x,h.view=h.view||{},r.exports=h.view.target=s}(0,e,0,n)}),define("can-simple-map@3.3.2#can-simple-map",["require","exports","module","can-construct","can-event","can-event/batch/batch","can-util/js/assign/assign","can-util/js/each/each","can-types","can-observation","can-reflect","can-util/js/single-reference/single-reference","can-util/js/cid-map/cid-map"],function(e,t,n){var r=e("can-construct"),a=e("can-event"),i=e("can-event/batch/batch"),o=e("can-util/js/assign/assign"),s=e("can-util/js/each/each"),c=e("can-types"),l=e("can-observation"),u=e("can-reflect"),d=e("can-util/js/single-reference/single-reference"),p=e("can-util/js/cid-map/cid-map"),f=r.extend({setup:function(e){this._data={},this.attr(e)},attr:function(e,t){var n=this;if(0===arguments.length){l.add(this,"__keys");var r={};return s(this._data,function(e,t){l.add(this,t),r[t]=e},this),r}if(arguments.length>1){var o=this._data.hasOwnProperty(e),c=this._data[e];this._data[e]=t,i.start(),o||a.dispatch.call(this,"__keys",[]),a.dispatch.call(this,e,[t,c]),i.stop()}else{if("object"!=typeof e)return"constructor"!==e?(l.add(this,e),this._data[e]):this.constructor;u.eachKey(e,function(e,t){n.attr(t,e)})}},serialize:function(){return u.serialize(this,p)},get:function(){return this.attr.apply(this,arguments)},set:function(){return this.attr.apply(this,arguments)}});o(f.prototype,a),c.DefaultMap||(c.DefaultMap=f),u.assignSymbols(f.prototype,{"can.isMapLike":!0,"can.isListLike":!1,"can.isValueLike":!1,"can.getKeyValue":f.prototype.get,"can.setKeyValue":f.prototype.set,"can.deleteKeyValue":function(e){return this.attr(e,void 0)},"can.getOwnEnumerableKeys":function(){return l.add(this,"__keys"),Object.keys(this._data)},"can.assignDeep":function(e){i.start(),u.assignMap(this,e),i.stop()},"can.updateDeep":function(e){i.start(),u.updateMap(this,e),i.stop()},"can.onKeyValue":function(e,t){var n=function(e,n,r){t.call(this,n,r)};d.set(t,this,n,e),this.addEventListener(e,n)},"can.offKeyValue":function(e,t){this.removeEventListener(e,d.getAndDelete(t,this,e))},"can.keyHasDependencies":function(e){return!1},"can.getKeyDependencies":function(e){}}),n.exports=f}),define("can-view-scope@3.6.0#template-context",["require","exports","module","can-simple-map"],function(e,t,n){var r=e("can-simple-map");n.exports=function(){this.vars=new r({})}}),define("can-view-scope@3.6.0#compute_data",["require","exports","module","can-observation","can-stache-key","can-compute","can-util/js/assign/assign","can-util/js/is-function/is-function","can-event/batch/batch","can-cid","can-reflect","can-symbol"],function(e,t,n){"use strict";var r=e("can-observation"),a=e("can-stache-key"),i=e("can-compute"),o=e("can-util/js/assign/assign"),s=e("can-util/js/is-function/is-function"),c=e("can-event/batch/batch"),l=e("can-cid"),u=e("can-reflect"),d=e("can-symbol"),p=function(e){if(e.reads&&1===e.reads.length){var t=e.root;return t&&t[d.for("can.getValue")]&&(t=u.getValue(t)),t&&u.isObservableLike(t)&&u.isMapLike(t)&&!s(t[e.reads[0].key])&&t}},f=function(e){return e&&"number"==typeof e.batchNum&&"string"==typeof e.type},h=function(e,t,n){l(this),this.startingScope=e,this.key=t,this.observation=new r(this.read,this),this.options=o({observation:this.observation},n),this.handlers=[],this.dispatchHandler=this.dispatch.bind(this),this.fastPath=void 0,this.root=void 0,this.initialValue=void 0,this.reads=void 0,this.setRoot=void 0};h.prototype.getValue=function(){return r.add(this),this.getObservationValue()},h.prototype.getObservationValue=r.ignore(function(){return this.observation.get()}),h.prototype.read=function(){if(this.root)return a.read(this.root,this.reads,this.options).value;var e=this.startingScope.read(this.key,this.options);return this.scope=e.scope,this.reads=e.reads,this.root=e.rootObserve,this.setRoot=e.setRoot,this.initialValue=e.value},h.prototype.setValue=function(e){var t=this.root||this.setRoot;t?a.write(t,this.reads,e,this.options):this.startingScope.set(this.key,e,this.options)},h.prototype.hasDependencies=function(){return this.observation.hasDependencies()};var m=d.for("can.onValue"),v=d.for("can.offValue");u.set(h.prototype,m,function(e){if(!this.handlers.length){u.onValue(this.observation,this.dispatchHandler);var t=p(this);if(t){var n=this,a=this.observation;this.fastPath=!0,a.dependencyChange=function(e,i,o){return f(i)&&(i=o),e===t&&"function"!=typeof i?this.newVal=i:(a.dependencyChange=r.prototype.dependencyChange,a.start=r.prototype.start,n.fastPath=!1),r.prototype.dependencyChange.call(this,e,i,o)},a.start=function(){this.value=this.newVal}}}this.handlers.push(e)}),h.prototype.dispatch=function(){for(var e=this.handlers.slice(0),t=0,n=e.length;tm||n===m&&"object"==typeof t&&e[n].key in t)&&(u=a,c=s,m=n)}},t);f;){if(r=f._context,p=t&&t.special&&!f._meta.special,d=(!t||!0!==t.special)&&f._meta.special,!(null===r||"object"!=typeof r&&"function"!=typeof r||p||d)){var g=o.trap(),y=i.read(r,e,v),b=g();if(void 0!==y.value)return o.addAll(b),{scope:f,rootObserve:a,value:y.value,reads:s};h.push.apply(h,b)}f=n?null:f._parent}return o.addAll(h),{setRoot:u,reads:c,value:void 0}},get:function(e,t){return t=l({isArgument:!0},t),this.read(e,t).value},peek:o.ignore(function(e,t){return this.get(e,t)}),peak:o.ignore(function(e,t){return this.peek(e,t)}),getScope:function(e){for(var t=this;t;){if(e(t))return t;t=t._parent}},getContext:function(e){var t=this.getScope(e);return t&&t._context},getRefs:function(){return this.getTemplateContext()},getTemplateContext:function(){var e,t=this.getScope(function(t){return e=t,t._context instanceof s});return t||(t=new r(new s),e._parent=t),t},getRoot:function(){for(var e=this,t=this;e._parent;)t=e,e=e._parent;return e._context instanceof r.Refs&&(e=t),e._context},getViewModel:function(){var e=this.getScope(function(e){return e._meta.viewModel});return e&&e._context},getTop:function(){var e;return this.getScope(function(t){return t._meta.viewModel&&(e=t),!1}),e&&e._context},set:function(e,t,n){n=n||{};var a,o=r.keyInfo(e);if(o.isCurrentContext)return p.setValue(this._context,t);if(o.isInParentContext||o.isParentContext){for(a=this._parent;a._meta.notContext;)a=a._parent;return o.isParentContext?p.setValue(a._context,t):a.set(e.substr(3)||".",t,n)}if(o.isInTemplateContext)return o.isInLegacyRefsScope?this.vars.set(e.substr(1),t):o.isInTemplateContextVars?this.vars.set(e.substr(11),t):(e=e.substr(6)).indexOf(".")<0?this.templateContext[e]=t:this.getTemplateContext().set(e,t);var s,c,l=e.lastIndexOf("."),u=e.lastIndexOf("/");u>l?(s=e.substring(0,u),c=e.substring(u+1,e.length)):-1!==l?(s=e.substring(0,l),c=e.substring(l+1,e.length)):(s=".",c=e);var d=this.read(s,n).value;void 0!==d&&(!p.isObservableLike(d)&&p.isObservableLike(d[c])?p.isMapLike(d[c])?(f.warn('can-view-scope: Merging data into "'+c+'" because its parent is non-observable'),p.updateDeep(d[c],t)):p.isValueLike(d[c])?p.setValue(d[c],t):i.write(d,c,t,n):i.write(d,c,t,n))},attr:o.ignore(function(e,t,n){return f.warn("can-view-scope::attr is deprecated, please use peek, get or set"),n=l({isArgument:!0},n),2===arguments.length?this.set(e,t,n):this.get(e,n)}),computeData:function(e,t){return c(this,e,t)},compute:function(e,t){return this.computeData(e,t).compute},cloneFromRef:function(){for(var e,t,n=[],a=this;a;){if((e=a._context)instanceof r.Refs){t=a._parent;break}n.unshift(e),a=a._parent}return t?(u(n,function(e){t=t.add(e)}),t):this}}),h(r.prototype,"templateContext",function(){return this.getTemplateContext()._context}),h(r.prototype,"vars",function(){return this.templateContext.vars}),(a.prototype=new r).constructor=a,r.Options=a,d.view=d.view||{},n.exports=d.view.Scope=r}),define("can-stache@3.15.1#src/utils",["require","exports","module","can-view-scope","can-observation","can-stache-key","can-compute","can-reflect","can-log/dev/dev","can-util/js/is-empty-object/is-empty-object","can-util/js/each/each","can-util/js/is-array-like/is-array-like"],function(e,t,n){var r=e("can-view-scope"),a=e("can-observation"),i=e("can-stache-key"),o=e("can-compute"),s=e("can-reflect"),c=(e("can-log/dev/dev"),e("can-util/js/is-empty-object/is-empty-object")),l=e("can-util/js/each/each"),u=e("can-util/js/is-array-like/is-array-like"),d=r.Options,p=function(){};n.exports={isArrayLike:u,emptyHandler:function(){},jsonParse:function(e){return"'"===e[0]?e.substr(1,e.length-2):"undefined"===e?void 0:JSON.parse(e)},mixins:{last:function(){return this.stack[this.stack.length-1]},add:function(e){this.last().add(e)},subSectionDepth:function(){return this.stack.length-1}},convertToScopes:function(e,t,n,r,a,i,o){e.fn=a?this.makeRendererConvertScopes(a,t,n,r,o):p,e.inverse=i?this.makeRendererConvertScopes(i,t,n,r,o):p,e.isSection=!(!a&&!i)},makeRendererConvertScopes:function(e,t,n,i,o){var s=function(n,r,a){return e(n||t,r,a)},c=function(e,a,o){return void 0===e||e instanceof r||(e=t?t.add(e):r.refsScope().add(e||{})),void 0===a||a instanceof d||(a=n.add(a)),s(e,a||n,o||i)};return o?c:a.ignore(c)},getItemsStringContent:function(e,t,n,r){for(var a="",c=i.get(e,"length"),l=s.isObservableLike(e),u=0;u=0&&(n=r.value),1===e.length?o.replaceChild.call(r,t,e[0]):(h.after(e,t),h.remove(e)),void 0!==n&&(r.value=n)},remove:function(e){var t=e[0]&&e[0].parentNode;a(e,function(e){o.removeChild.call(t,e)})},nodeMap:c};n.exports=i.nodeLists=h}),define("can-util@3.14.0#dom/fragment/fragment",["require","exports","module","can-globals/document/document","../child-nodes/child-nodes","can-namespace"],function(e,t,n){!function(e,t,n,r){"use strict";var a=t("can-globals/document/document"),i=t("../child-nodes/child-nodes"),o=t("can-namespace"),s=/^\s*<(\w+)[^>]*>/,c={}.toString,l=function(e,t,n){void 0===t&&(t=s.test(e)&&RegExp.$1),e&&"[object Function]"===c.call(e.replace)&&(e=e.replace(/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,"<$1>"));var r=n.createElement("div"),a=n.createElement("div");"tbody"===t||"tfoot"===t||"thead"===t||"colgroup"===t?(a.innerHTML=""+e+"
    ",r=3===a.firstChild.nodeType?a.lastChild:a.firstChild):"col"===t?(a.innerHTML=""+e+"
    ",r=3===a.firstChild.nodeType?a.lastChild:a.firstChild.firstChild):"tr"===t?(a.innerHTML=""+e+"
    ",r=3===a.firstChild.nodeType?a.lastChild:a.firstChild.firstChild):"td"===t||"th"===t?(a.innerHTML=""+e+"
    ",r=3===a.firstChild.nodeType?a.lastChild:a.firstChild.firstChild.firstChild):"option"===t?(a.innerHTML="",r=3===a.firstChild.nodeType?a.lastChild:a.firstChild):r.innerHTML=""+e;var o={},l=i(r);o.length=l.length;for(var u=0;u0&&t!==e)return!1;e=t}return!0})()?n.fn():n.inverse()}},eq:{fn:function(){return w.is.fn.apply(this,arguments)}},unless:{fn:function(e,t){return w.if.fn.apply(this,[e,d(d({},t),{fn:t.inverse,inverse:t.fn})])}},with:{fn:function(e,t){var n=e;return t?(e=b(e),t.hash&&!f(t.hash)&&(n=t.scope.add(t.hash).add(n))):(t=e,e=!0,n=t.hash),t.fn(n||{})}},log:{fn:function(e){var t=[];u(arguments,function(e){y(e)||t.push(e)}),"undefined"!=typeof console&&console.log&&(t.length?console.log.apply(console,t):console.log(e.context))}},data:{fn:function(e){var t=2===arguments.length?this:arguments[1];return function(n){g.set.call(n,e,t||this.context)}}},switch:{fn:function(e,t){b(e);var n=!1,r=t.helpers.add({case:function(t,r){if(!n&&b(e)===b(t))return n=!0,r.fn(r.scope||this)},default:function(e){if(!n)return e.fn(e.scope||this)}});return t.fn(t.scope,r)}},joinBase:{fn:function(e){var t=[].slice.call(arguments),n=t.pop(),r=t.map(function(e){var t=b(e);return s(t)?t():t}).join(""),a=n.helpers.peek("helpers.module"),i=a?a.uri:void 0;if("."===r[0]&&i)return l(i,r);var o="undefined"!=typeof System&&(System.renderingBaseURL||System.baseURL)||c();return"/"!==r[0]&&"/"!==o[o.length-1]&&(o+="/"),l(o,r)}}};w.eachOf=w.each,w.debugger={fn:m};var k=function(e,t,n){w[e]={metadata:d({isHelper:!0},n),fn:t}},j=function(e){return function(){var t=[];return u(arguments,function(e){for(;e&&e.isComputed;)e=e();t.push(e)}),e.apply(this,t)}},_=function(e,t){k(e,j(t))};n.exports={registerHelper:k,registerSimpleHelper:function(){_.apply(this,arguments)},addHelper:_,addLiveHelper:function(e,t){return k(e,t,{isLiveBound:!0})},getHelper:function(e,t){var n=t&&t.get&&t.get("helpers."+e,{proxyMethods:!1});if(n=n?{fn:n}:w[e])return n.metadata=d(n.metadata||{},{isHelper:!0}),n},resolve:b,resolveHash:function(e){var t={};for(var n in e)t[n]=b(e[n]);return t},looksLikeOptions:y,helpers:d({},w)}}),define("can-stache@3.15.1#src/lookup-value-or-helper",["require","exports","module","./expression-helpers","../helpers/core"],function(e,t,n){var r=e("./expression-helpers"),a=e("../helpers/core");n.exports=function(e,t,n,i){var o=r.getObservableValue_fromKey(e,t,i),s={value:o};if("@"===e.charAt(0)&&"@index"!==e&&(e=e.substr(1)),void 0===o.initialValue||a.helpers[e]){var c=a.getHelper(e,n);s.helper=c}return s}}),define("can-stache@3.15.1#expressions/lookup",["require","exports","module","../src/expression-helpers","../src/lookup-value-or-helper","can-util/js/assign/assign"],function(e,t,n){var r=e("../src/expression-helpers"),a=e("../src/lookup-value-or-helper"),i=e("can-util/js/assign/assign"),o=function(e,t){this.key=e,this.rootExpr=t};o.prototype.value=function(e,t){if(this.rootExpr)return r.getObservableValue_fromDynamicKey_fromObservable(this.key,this.rootExpr.value(e,t),e,{},{});var n=a(this.key,e,t);return i(this,n.metadata),n.helper||n.value},n.exports=o}),define("can-stache@3.15.1#expressions/scope-lookup",["require","exports","module","../src/expression-helpers","./lookup"],function(e,t,n){var r=e("../src/expression-helpers"),a=e("./lookup"),i=function(e,t){a.apply(this,arguments)};i.prototype.value=function(e,t){return this.rootExpr?r.getObservableValue_fromDynamicKey_fromObservable(this.key,this.rootExpr.value(e,t),e,{},{}):r.getObservableValue_fromKey(this.key,e,t)},n.exports=i}),define("can-stache@3.15.1#expressions/helper",["require","exports","module","./literal","can-compute","can-util/js/assign/assign","can-util/js/dev/dev","can-util/js/is-empty-object/is-empty-object","../src/expression-helpers","../src/utils","../helpers/core"],function(e,t,n){var r=e("./literal"),a=e("can-compute"),i=e("can-util/js/assign/assign"),o=(e("can-util/js/dev/dev"),e("can-util/js/is-empty-object/is-empty-object")),s=e("../src/expression-helpers"),c=e("../src/utils"),l=e("../helpers/core"),u=function(e,t,n){this.methodExpr=e,this.argExprs=t,this.hashExprs=n,this.mode=null};u.prototype.args=function(e,t){for(var n=[],r=0,a=this.argExprs.length;r0&&-1===e.indexOf(this.stack[t].type);)t--;return this.stack[t]},firstParent:function(e){for(var t=this.stack.length-2;t>0&&-1===e.indexOf(this.stack[t].type);)t--;return this.stack[t]},popUntil:function(e){for(;-1===e.indexOf(this.top().type)&&!this.isRootTop();)this.stack.pop();return this.top()},addTo:function(e,t){var n=this.popUntil(e);E(n).children.push(t)},addToAndPush:function(e,t){this.addTo(e,t),this.stack.push(t)},push:function(e){this.stack.push(e)},topLastChild:function(){return y(this.top().children)},replaceTopLastChild:function(e){var t=E(this.top()).children;return t.pop(),t.push(e),e},replaceTopLastChildAndPush:function(e){this.replaceTopLastChild(e),this.stack.push(e)},replaceTopAndPush:function(e){var t;return this.top()===this.root?t=E(this.top()).children:(this.stack.pop(),t=E(this.top()).children),t.pop(),t.push(e),this.stack.push(e),e}});var L=function(e){var t=e.lastIndexOf("./"),n=e.lastIndexOf(".");if(n>t)return e.substr(0,n)+"@"+e.substr(n+1);var r=-1===t?0:t+2,a=e.charAt(r);return"."===a||"@"===a?e.substr(0,r)+"@"+e.substr(r+1):e.substr(0,r)+"@"+e.substr(r)},S=function(e){return"Lookup"===e.type&&(e.key=L(e.key)),e},N=function(e){var t=e.top();if(t&&"Lookup"===t.type){var n=e.stack[e.stack.length-2];"Helper"!==n.type&&n&&e.replaceTopAndPush({type:"Helper",method:t})}},O={toComputeOrValue:h.toComputeOrValue,convertKeyToLookup:L,Literal:a,Lookup:u,ScopeLookup:c,Arg:r,Hash:function(){},Hashes:i,Call:s,Helper:l,HelperLookup:d,HelperScopeLookup:p,Bracket:o,SetIdentifier:f,tokenize:function(e){var t=[];return(e.trim()+" ").replace(x,function(e,n){w.test(n)?(t.push(n[0]),t.push(n.slice(1))):t.push(n)}),t},lookupRules:{default:function(e,t,n){var r=("Helper"!==t||e.root?"":"Helper")+(n?"Scope":"")+"Lookup";return O[r]},method:function(e,t,n){return c}},methodRules:{default:function(e){return"Call"===e.type?s:l},call:function(e){return s}},parse:function(e,t){t=t||{};var n=this.ast(e);return t.lookupRule||(t.lookupRule="default"),"string"==typeof t.lookupRule&&(t.lookupRule=O.lookupRules[t.lookupRule]),t.methodRule||(t.methodRule="default"),"string"==typeof t.methodRule&&(t.methodRule=O.methodRules[t.methodRule]),this.hydrateAst(n,t,t.baseMethodType||"Helper")},hydrateAst:function(e,t,n,c){var l;if("Lookup"===e.type)return new(t.lookupRule(e,n,c))(e.key,e.root&&this.hydrateAst(e.root,t,n));if("Literal"===e.type)return new a(e.value);if("Arg"===e.type)return new r(this.hydrateAst(e.children[0],t,n,c),{compute:!0});if("Hash"===e.type)throw new Error("");if("Hashes"===e.type)return l={},v(e.children,function(e){l[e.prop]=this.hydrateAst(e.children[0],t,n,!0)},this),new i(l);if("Call"===e.type||"Helper"===e.type){l={};var u=[],d=e.children,p=t.methodRule(e);if(d)for(var f=0;f0?i.addTo(["Helper","Call","Bracket"],{type:"Literal",value:m.jsonParse(o)}):"Bracket"===r.type&&r.children&&r.children.length>0?i.addTo(["Helper","Call","Hash"],{type:"Literal",value:m.jsonParse(o)}):i.addTo(["Helper","Call","Hash","Bracket"],{type:"Literal",value:m.jsonParse(o)});else if(b.test(o))a=i.topLastChild(),r=i.first(["Helper","Call","Hash","Bracket"]),a&&("Call"===a.type||"Bracket"===a.type)&&C(o)?i.replaceTopLastChildAndPush({type:"Lookup",root:a,key:o.slice(1)}):"Bracket"===r.type?r.children&&r.children.length>0?"Helper"===i.first(["Helper","Call","Hash","Arg"]).type&&"."!==o[0]?i.addToAndPush(["Helper"],{type:"Lookup",key:o}):i.replaceTopAndPush({type:"Lookup",key:o.slice(1),root:r}):i.addToAndPush(["Bracket"],{type:"Lookup",key:o}):(N(i),i.addToAndPush(["Helper","Call","Hash","Arg","Bracket"],{type:"Lookup",key:o}));else if("~"===o)N(i),i.addToAndPush(["Helper","Call","Hash"],{type:"Arg",key:o});else if("("===o){if("Lookup"!==(n=i.top()).type)throw new Error("Unable to understand expression "+e.join(""));i.replaceTopAndPush({type:"Call",method:S(n)})}else if(")"===o)i.popTo(["Call"]);else if(","===o)i.popUntil(["Call"]);else if("["===o)if(n=i.top(),!(a=i.topLastChild())||"Call"!==a.type&&"Bracket"!==a.type)if("Lookup"===n.type||"Bracket"===n.type){var l={type:"Bracket",root:n};i.replaceTopAndPush(l)}else"Call"===n.type?i.addToAndPush(["Call"],{type:"Bracket"}):" "===n?(i.popUntil(["Lookup","Call"]),N(i),i.addToAndPush(["Helper","Call","Hash"],{type:"Bracket"})):i.replaceTopAndPush({type:"Bracket"});else i.replaceTopAndPush({type:"Bracket",root:a});else"]"===o?i.pop():" "===o&&i.push(o)}return i.root.children[0]}};n.exports=O}),define("can-stache@3.15.1#src/mustache_core",["require","exports","module","can-view-live","can-view-nodelist","can-compute","can-observation","./utils","./expression","can-util/dom/frag/frag","can-util/dom/attr/attr","can-symbol","can-reflect","can-log/dev/dev","can-globals/document/document"],function(e,t,n){!function(e,t,n,r){function a(e){return null!==e&&"object"==typeof e&&("function"==typeof e[v]||"number"==typeof e.nodeType)}var i=t("can-view-live"),o=t("can-view-nodelist"),s=t("can-compute"),c=t("can-observation"),l=t("./utils"),u=t("./expression"),d=t("can-util/dom/frag/frag"),p=t("can-util/dom/attr/attr"),f=t("can-symbol"),h=t("can-reflect"),m=(t("can-log/dev/dev"),t("can-globals/document/document")),v=f.for("can.toDOM"),g=/(?:(^|\r?\n)(\s*)(\{\{([\s\S]*)\}\}\}?)([^\S\n\r]*)($|\r?\n))|(\{\{([\s\S]*)\}\}\}?)/g,y=/(\s*)(\{\{\{?)(-?)([\s\S]*?)(-?)(\}\}\}?)(\s*)/g,b=function(){},x={expression:u,makeEvaluator:function(e,t,n,r,a,i,o,s){if("^"===r){var c=i;i=o,o=c}var p,f;if(a instanceof u.Call){if(f={context:e.peek("."),scope:e,nodeList:n,exprData:a,helpers:t},l.convertToScopes(f,e,t,n,i,o,s),p=a.value(e,t,f),a.isHelper)return p}else if(a instanceof u.Bracket){if(p=a.value(e),a.isHelper)return p}else if(a instanceof u.Lookup){if(p=a.value(e),a.isHelper)return p}else if(a instanceof u.Helper&&a.methodExpr instanceof u.Bracket){if(p=a.methodExpr.value(e),a.isHelper)return p}else{var m={isArgument:!0,args:[e.peek("."),e],asCompute:!0},v=a.helperAndValue(e,t,m,n,i,o,s),g=v.helper;if(p=v.value,g)return a.evaluator(g,e,t,m,n,i,o,s)}return r?"#"===r||"^"===r?(f={},l.convertToScopes(f,e,t,n,i,o,s),function(){var n=h.getValue(p);if("function"==typeof n)return n;if("string"!=typeof n&&l.isArrayLike(n)){var r=h.isObservableLike(n)&&h.isListLike(n);return h.getKeyValue(n,"length")?s?l.getItemsStringContent(n,r,f,t):d(l.getItemsFragContent(n,f,e)):f.inverse(e,t)}return n?f.fn(n||e,t):f.inverse(e,t)}):void 0:p},makeLiveBindingPartialRenderer:function(e,t){var n,r=(e=e.trim()).split(/\s+/).shift();return r!==e&&(n=x.expression.parse(e)),function(e,a,l){var u=[this];u.expression=">"+r,o.register(u,null,l||!0,t.directlyNested);var p=s(function(){var t=r;if(n&&1===n.argExprs.length){var i=h.getValue(n.argExprs[0].value(e,a));void 0===i||(e=e.add(i))}for(var o=a.peek("partials."+t),s=a;!o&&s;)o=s.inlinePartials&&s.inlinePartials[t],s=s._parent;var l;if(o)l=function(){return o.render?o.render(e,a,u):o(e,a)};else{var p=e.read(t,{isArgument:!0}).value;if(null===p||!p&&"*"===t[0])return d("");p&&(t=p),l=function(){if("function"==typeof t)return t(e,a,u);var n=x.getTemplateById(t);return n?n(e,a,u):m().createDocumentFragment()}}var f=c.ignore(l)();return d(f)});p.computeInstance.setPrimaryDepth(u.nesting),i.html(this,p,this.parentNode,u)}},makeStringBranchRenderer:function(e,t,n){var r=x.expression.parse(t),a=e+t;r instanceof u.Helper||r instanceof u.Call||(r=new u.Helper(r,[],{}));var i=function(t,n,i,o){var s=t.__cache[a];!e&&s||(s=w(t,n,null,e,r,i,o,!0),e||(t.__cache[a]=s));var c;return null==(c=s[f.for("can.onValue")]?h.getValue(s):s())?"":""+c};return i.exprData=r,i},makeLiveBindingBranchRenderer:function(e,t,n){var r=x.expression.parse(t);r instanceof u.Helper||r instanceof u.Call||r instanceof u.Bracket||r instanceof u.Lookup||(r=new u.Helper(r,[],{}));var s=function(s,l,u,m,v){var g=[this];g.expression=t,o.register(g,null,u||!0,n.directlyNested);var y,x=w(s,l,g,e,r,m,v,n.tag);(y=x[f.for("can.onValue")]?x:new c(x,null,{isObservable:!1}))instanceof c?y.compute._primaryDepth=g.nesting:y.computeInstance?y.computeInstance.setPrimaryDepth(g.nesting):y.observation&&(y.observation.compute._primaryDepth=g.nesting),h.onValue(y,b);var k=h.getValue(y);"function"==typeof k?c.ignore(k)(this):h.valueHasDependencies(y)?n.attr?i.attr(this,n.attr,y):n.tag?i.attrs(this,y):n.text&&!a(k)?i.text(this,y,this.parentNode,g):i.html(this,y,this.parentNode,g):n.attr?p.set(this,n.attr,k):n.tag?i.attrs(this,k):n.text&&"string"==typeof k?this.nodeValue=k:null!=k&&o.replace([this],d(k,this.ownerDocument)),h.offValue(y,b)};return s.exprData=r,s},splitModeFromExpression:function(e,t){var n=(e=e.trim()).charAt(0);return"#/{&^>!<".indexOf(n)>=0?e=e.substr(1).trim():n=null,"{"===n&&t.node&&(n=null),{mode:n,expression:e}},cleanLineEndings:function(e){return e.replace(g,function(e,t,n,r,a,i,o,s,c,l){i=i||"",t=t||"",n=n||"";var u=k(a||c,{});return s||">{".indexOf(u.mode)>=0?e:"^#!/".indexOf(u.mode)>=0?(n=t+n&&" ")+r+(0!==l&&o.length?t+"\n":""):n+r+i+(n.length||0!==l?t+"\n":"")})},cleanWhitespaceControl:function(e){return e.replace(y,function(e,t,n,r,a,i,o,s,c){return"-"===r&&(t=""),"-"===i&&(s=""),t+n+a+o+s})},Options:l.Options,getTemplateById:function(){}},w=x.makeEvaluator,k=x.splitModeFromExpression;r.exports=x}(0,e,0,n)}),define("can-stache@3.15.1#src/html_section",["require","exports","module","can-view-target","can-view-scope","can-observation","./utils","./mustache_core","can-globals/document/document","can-util/js/assign/assign","can-util/js/last/last"],function(e,t,n){!function(e,t,n,r){var a=t("can-view-target"),i=t("can-view-scope"),o=t("can-observation"),s=t("./utils"),c=t("./mustache_core"),l=t("can-globals/document/document"),u=t("can-util/js/assign/assign"),d=t("can-util/js/last/last"),p="undefined"!=typeof document&&function(){var e=l().createElement("div");return function(t){return-1===t.indexOf("&")?t.replace(/\r\n/g,"\n"):(e.innerHTML=t,0===e.childNodes.length?"":e.childNodes.item(0).nodeValue)}}(),f=function(e){e&&(this.filename=e),this.stack=[new h]};f.scopify=function(e){return o.ignore(function(t,n,r){return t instanceof i||(t=i.refsScope().add(t||{})),n instanceof c.Options||(n=new c.Options(n||{})),e(t,n,r)})},u(f.prototype,s.mixins),u(f.prototype,{startSubSection:function(e){var t=new h(e);return this.stack.push(t),t},endSubSectionAndReturnRenderer:function(){if(this.last().isEmpty())return this.stack.pop(),null;var e=this.endSection();return e.compiled.hydrate.bind(e.compiled)},startSection:function(e){var t=new h(e);this.last().add(t.targetCallback),this.stack.push(t)},endSection:function(){return this.last().compile(),this.stack.pop()},inverse:function(){this.last().inverse()},compile:function(){var e=this.stack.pop().compile();return o.ignore(function(t,n,r){return t instanceof i||(t=i.refsScope().add(t||{})),n instanceof c.Options||(n=new c.Options(n||{})),e.hydrate(t,n,r)})},push:function(e){this.last().push(e)},pop:function(){return this.last().pop()},removeCurrentNode:function(){this.last().removeCurrentNode()}});var h=function(e){this.data="targetData",this.targetData=[],this.targetStack=[];var t=this;this.targetCallback=function(n,r,a){e.call(this,n,r,a,t.compiled.hydrate.bind(t.compiled),t.inverseCompiled&&t.inverseCompiled.hydrate.bind(t.inverseCompiled))}};u(h.prototype,{inverse:function(){this.inverseData=[],this.data="inverseData"},push:function(e){this.add(e),this.targetStack.push(e)},pop:function(){return this.targetStack.pop()},add:function(e){"string"==typeof e&&(e=p(e)),this.targetStack.length?d(this.targetStack).children.push(e):this[this.data].push(e)},compile:function(){return this.compiled=a(this.targetData,l()),this.inverseData&&(this.inverseCompiled=a(this.inverseData,l()),delete this.inverseData),this.targetStack=this.targetData=null,this.compiled},removeCurrentNode:function(){return this.children().pop()},children:function(){return this.targetStack.length?d(this.targetStack).children:this[this.data]},isEmpty:function(){return!this.targetData.length}}),f.HTMLSection=h,r.exports=f}(0,e,0,n)}),define("can-stache@3.15.1#src/text_section",["require","exports","module","can-compute","can-view-live","./utils","can-util/dom/attr/attr","can-util/js/assign/assign","can-reflect","can-observation"],function(e,t,n){e("can-compute");var r=e("can-view-live"),a=e("./utils"),i=e("can-util/dom/attr/attr"),o=e("can-util/js/assign/assign"),s=e("can-reflect"),c=e("can-observation"),l=function(){},u=function(){this.stack=[new p]};o(u.prototype,a.mixins),o(u.prototype,{startSection:function(e){var t=new p;this.last().add({process:e,truthy:t}),this.stack.push(t)},endSection:function(){this.stack.pop()},inverse:function(){this.stack.pop();var e=new p;this.last().last().falsey=e,this.stack.push(e)},compile:function(e){var t=this.stack[0].compile();return function(n,a){var o=new c(function(){return t(n,a)},null,{isObservable:!1});s.onValue(o,l);var u=s.getValue(o);s.valueHasDependencies(o)?(e.textContentOnly?r.text(this,o):e.attr?r.attr(this,e.attr,o):r.attrs(this,o,n,a),s.offValue(o,l)):e.textContentOnly?this.nodeValue=u:e.attr?i.set(this,e.attr,u):r.attrs(this,u)}}});var d=function(e,t,n){return function(r,a){return e.call(this,r,a,t,n)}},p=function(){this.values=[]};o(p.prototype,{add:function(e){this.values.push(e)},last:function(){return this.values[this.values.length-1]},compile:function(){for(var e=this.values,t=e.length,n=0;n0&&(f=!0)},special:function(e){f=!0}},!0),imports:o,dynamicImports:s,ases:c,exports:c}}}),define("can-util@3.14.0#js/import/import",["require","exports","module","../is-function/is-function","can-globals/global/global","can-namespace"],function(e,t,n){!function(e,t,n,r){"use strict";var a=t("../is-function/is-function"),e=t("can-globals/global/global")(),i=t("can-namespace");r.exports=i.import=function(t,n){return new Promise(function(r,i){try{"object"==typeof e.System&&a(e.System.import)?e.System.import(t,{name:n}).then(r,i):e.define&&e.define.amd?e.require([t],function(e){r(e)}):e.require?r(e.require(t)):"undefined"!=typeof stealRequire?steal.import(t,{name:n}).then(r,i):r()}catch(e){i(e)}})}}(function(){return this}(),e,0,n)}),define("can-stache@3.15.1#can-stache",["require","exports","module","can-view-parser","can-view-callbacks","can-reflect","./src/html_section","./src/text_section","./src/mustache_core","./helpers/core","./helpers/converter","./src/intermediate_and_imports","./src/utils","can-attribute-encoder","can-log/dev/dev","can-namespace","can-globals/document/document","can-util/js/assign/assign","can-util/js/last/last","can-util/js/import/import","can-view-target","can-view-nodelist"],function(e,t,n){!function(e,t,n,r){function a(e,t){1===arguments.length&&(t=arguments[0],e=void 0);var n={};"string"==typeof t&&(t=u.cleanWhitespaceControl(t),t=u.cleanLineEndings(t));var r=new c(e),a={node:null,attr:null,sectionElementStack:[],text:!1,namespaceStack:[],textContentOnly:null},s=function(e,t,r,i){if(">"===t)e.add(u.makeLiveBindingPartialRenderer(r,d({lineNo:i})));else if("/"===t)"<"===e.last().startedWith?(n[r]=e.endSubSectionAndReturnRenderer(),e.removeCurrentNode()):e.endSection(),e instanceof c&&a.sectionElementStack.pop();else if("else"===t)e.inverse();else{var o=e instanceof c?u.makeLiveBindingBranchRenderer:u.makeStringBranchRenderer;if("{"===t||"&"===t)e.add(o(null,r,d({lineNo:i})));else if("#"===t||"^"===t||"<"===t){var s=o(t,r,d({lineNo:i}));e.startSection(s),e.last().startedWith=t,e instanceof c&&a.sectionElementStack.push({type:"section"})}else e.add(o(null,r,d({text:!0,lineNo:i})))}},d=function(e){var t=a.sectionElementStack[a.sectionElementStack.length-1],n={tag:a.node&&a.node.tag,attr:a.attr&&a.attr.name,directlyNested:!a.sectionElementStack.length||"section"===t.type||"custom"===t.type,textContentOnly:!!a.textContentOnly};return e?v(n,e):n},p=function(e,t){e.attributes||(e.attributes=[]),e.attributes.unshift(t)};i(t,{filename:e,start:function(e,t,n){var r=b[e];r&&!t&&a.namespaceStack.push(r),a.node={tag:e,children:[],namespace:r||g(a.namespaceStack)}},end:function(e,t,n){var i=o.tag(e);t?(r.add(a.node),i&&p(a.node,function(t,n,r){o.tagHandler(this,e,{scope:t,options:n,subtemplate:null,templateType:"stache",parentNodeList:r})})):(r.push(a.node),a.sectionElementStack.push({type:i?"custom":null,tag:i?null:e,templates:{}}),i?r.startSubSection():x[e]&&(a.textContentOnly=new l)),a.node=null},close:function(e,t){b[e]&&a.namespaceStack.pop();var n,i=o.tag(e);i&&(n=r.endSubSectionAndReturnRenderer()),x[e]&&(r.last().add(a.textContentOnly.compile(d())),a.textContentOnly=null);var s=r.pop();if(i)if("can-template"===e){var c=a.sectionElementStack[a.sectionElementStack.length-2];n&&(c.templates[s.attrs.name]=f(n)),r.removeCurrentNode()}else{var l=a.sectionElementStack[a.sectionElementStack.length-1];p(s,function(t,r,a){o.tagHandler(this,e,{scope:t,options:r,subtemplate:n?f(n):n,templateType:"stache",parentNodeList:a,templates:l.templates})})}a.sectionElementStack.pop()},attrStart:function(e,t){a.node.section?a.node.section.add(e+'="'):a.attr={name:e,value:""}},attrEnd:function(e,t){if(a.node.section)a.node.section.add('" ');else{a.node.attrs||(a.node.attrs={}),a.node.attrs[a.attr.name]=a.attr.section?a.attr.section.compile(d()):a.attr.value;var n=o.attr(e);n&&(a.node.attributes||(a.node.attributes=[]),a.node.attributes.push(function(t,r,a){n(this,{attributeName:e,scope:t,options:r,nodeList:a})})),a.attr=null}},attrValue:function(e,t){var n=a.node.section||a.attr.section;n?n.add(e):a.attr.value+=e},chars:function(e,t){(a.textContentOnly||r).add(e)},special:function(e,t){var n=u.splitModeFromExpression(e,a),i=n.mode,o=n.expression;if("else"!==o){if("!"!==i)if(a.node&&a.node.section)s(a.node.section,i,o,t),0===a.node.section.subSectionDepth()&&(a.node.attributes.push(a.node.section.compile(d())),delete a.node.section);else if(a.attr)a.attr.section||(a.attr.section=new l,a.attr.value&&a.attr.section.add(a.attr.value)),s(a.attr.section,i,o,t);else if(a.node)if(a.node.attributes||(a.node.attributes=[]),i){if("#"!==i&&"^"!==i)throw new Error(i+" is currently not supported within a tag.");a.node.section||(a.node.section=new l),s(a.node.section,i,o,t)}else a.node.attributes.push(u.makeLiveBindingBranchRenderer(null,o,d({lineNo:t})));else s(a.textContentOnly||r,i,o,t)}else(a.attr&&a.attr.section?a.attr.section:a.node&&a.node.section?a.node.section:a.textContentOnly||r).inverse()},comment:function(e){r.add({comment:e})},done:function(e){}});var h=r.compile(),m=c.scopify(function(e,t,r){return Object.keys(n).length&&(t.inlinePartials=t.inlinePartials||{},v(t.inlinePartials,n)),e.set("scope.view",m),e.set("scope.root",e._context),h.apply(this,arguments)});return m}var i=t("can-view-parser"),o=t("can-view-callbacks"),s=t("can-reflect"),c=t("./src/html_section"),l=t("./src/text_section"),u=t("./src/mustache_core"),d=t("./helpers/core");t("./helpers/converter");var p=t("./src/intermediate_and_imports"),f=t("./src/utils").makeRendererConvertScopes,h=(t("can-attribute-encoder"),t("can-log/dev/dev"),t("can-namespace")),m=t("can-globals/document/document"),v=t("can-util/js/assign/assign"),g=t("can-util/js/last/last"),y=t("can-util/js/import/import");t("can-view-target"),t("can-view-nodelist"),o.tag("content")||o.tag("content",function(e,t){return t.scope});var b={svg:"http://www.w3.org/2000/svg",g:"http://www.w3.org/2000/svg"},x={style:!0,script:!0};v(a,d),a.safeString=function(e){return s.assignSymbols({},{"can.toDOM":function(){return e}})},a.async=function(e){var t=p(e),n=t.imports.map(function(e){return y(e)});return Promise.all(n).then(function(){return a(t.intermediate)})};var w={};a.from=u.getTemplateById=function(e){if(!w[e]){var t=m().getElementById(e);t&&(w[e]=a("#"+e,t.innerHTML))}return w[e]},a.registerPartial=function(e,t){w[e]="string"==typeof t?a(t):t},r.exports=h.stache=a}(0,e,0,n)}),define("can-view-import@3.2.9#can-view-import",["require","exports","module","can-assign","can-dom-data-state","can-globals/document/document","can-util/dom/child-nodes/child-nodes","can-util/js/import/import","can-util/dom/mutate/mutate","can-view-nodelist","can-view-callbacks","can-event","can-log/","can-log/dev/dev"],function(e,t,n){!function(e,t,n,r){function a(e,t){var n=e.getAttribute("from"),r=t.options.get("helpers.module"),a=r?r.id:void 0;if(!n)return Promise.reject("No module name provided");var v=l(n,a);v.catch(function(e){m.error(e)}),o.set.call(e,"viewModel",v),o.set.call(e,"scope",v);var g=t.scope.add(v,{notContext:!0}),y=e.getAttribute("can-tag");if(y){var b=f(y);b&&b!==p.defaultCallback&&(o.set.call(e,"preventDataBindings",!0),b(e,i(t,{scope:g})),o.set.call(e,"preventDataBindings",!1),o.set.call(e,"viewModel",v),o.set.call(e,"scope",v))}else{var x=t.subtemplate?t.subtemplate(g,t.options):s().createDocumentFragment(),w=d.register([],void 0,t.parentNodeList||!0);w.expression="<"+this.tagName+">",h.one.call(e,"removed",function(){d.unregister(w)}),u.appendChild.call(e,x),d.update(w,c(e))}}var i=t("can-assign"),o=t("can-dom-data-state"),s=t("can-globals/document/document"),c=t("can-util/dom/child-nodes/child-nodes"),l=t("can-util/js/import/import"),u=t("can-util/dom/mutate/mutate"),d=t("can-view-nodelist"),p=t("can-view-callbacks"),f=p.tag,h=t("can-event"),m=t("can-log/");t("can-log/dev/dev"),["can-import","can-dynamic-import"].forEach(function(e){f(e,a.bind({tagName:e}))})}(0,e)}),define("can-view-model@3.5.2#can-view-model",["require","exports","module","can-util/dom/data/data","can-simple-map","can-types","can-namespace","can-globals/document/document","can-util/js/is-array-like/is-array-like","can-reflect"],function(e,t,n){!function(e,t,n,r){"use strict";var a=t("can-util/dom/data/data"),i=t("can-simple-map"),o=t("can-types"),s=t("can-namespace"),c=t("can-globals/document/document"),l=t("can-util/js/is-array-like/is-array-like"),u=t("can-reflect");r.exports=s.viewModel=function(e,t,n){var r;if("string"==typeof e?e=c().querySelector(e):l(e)&&!e.nodeType&&(e=e[0]),u.isObservableLike(t)&&u.isMapLike(t))return a.set.call(e,"viewModel",t);switch((r=a.get.call(e,"viewModel"))||(r=o.DefaultMap?new o.DefaultMap:new i,a.set.call(e,"viewModel",r)),arguments.length){case 0:case 1:return r;case 2:return"attr"in r?r.attr(t):r[t];default:return"attr"in r?r.attr(t,n):r[t]=n,e}}}(0,e,0,n)}),define("can-simple-observable@1.0.2#can-simple-observable",["require","exports","module","can-reflect","can-event/batch/batch","can-observation","can-cid","can-namespace"],function(e,t,n){var r=e("can-reflect"),a=e("can-event/batch/batch"),i=e("can-observation"),o=e("can-cid"),s=e("can-namespace");n.exports=s.simpleObservable=function(e){var t=e,n=[],s=function(e){if(!arguments.length)return i.add(s),t;t=e,n.forEach(function(t){a.queue([t,s,[e]])},this)};return o(s),r.assignSymbols(s,{"can.onValue":function(e){n.push(e)},"can.offValue":function(e){var t=n.indexOf(e);n.splice(t,1)},"can.setValue":function(e){return s(e)},"can.getValue":function(){return s()}}),s}}),define("can-dom-events@1.3.3#helpers/util",["require","exports","module","can-globals/document/document","can-globals/is-browser-window/is-browser-window"],function(e,t,n){!function(e,t,n,r){"use strict";function a(e){return e.ownerDocument||s()}function i(e){if(!e||!e.nodeName)return e===window;var t=e.nodeType;return 1===t||9===t||11===t}function o(e,t){var n=t.type,r="inserted"===n||"removed"===n,a=!!e.disabled;return r&&a}var s=t("can-globals/document/document"),c=t("can-globals/is-browser-window/is-browser-window"),l=!1;!function(){if(c()){var e="fix_synthetic_events_on_disabled_test",t=document.createElement("input");t.disabled=!0;var n=setTimeout(function(){l=!0},50),r=function r(){clearTimeout(n),t.removeEventListener(e,r)};t.addEventListener(e,r);try{var a=document.create("HTMLEvents");a.initEvent(e,!1),t.dispatchEvent(a)}catch(e){r(),l=!0}}}(),r.exports={createEvent:function(e,t,n,r){var i,o=a(e).createEvent("HTMLEvents");if("string"==typeof t)i=t;else{i=t.type;for(var s in t)void 0===o[s]&&(o[s]=t[s])}return void 0===n&&(n=!0),o.initEvent(i,n,r),o},addDomContext:function(e,t){return i(e)&&(t=Array.prototype.slice.call(t,0)).unshift(e),t},removeDomContext:function(e,t){return i(e)||(e=(t=Array.prototype.slice.call(t,0)).shift()),{context:e,args:t}},isDomEventTarget:i,getTargetDocument:a,forceEnabledForDispatch:function(e,t){return l&&o(e,t)}}}(0,e,0,n)}),define("can-dom-events@1.3.3#helpers/add-event-compat",["require","exports","module","./util"],function(e,t,n){"use strict";function r(e){return!!(e&&e.addEventListener&&e.removeEventListener&&e.dispatch)}function a(e){return"function"==typeof e.addEvent}var i=e("./util"),o=i.addDomContext,s=i.removeDomContext;n.exports=function(e,t,n){if(!r(e))throw new Error("addEventCompat() must be passed can-dom-events or can-util/dom/events/events");if(n=n||t.defaultEventType,a(e))return e.addEvent(t,n);var i=e._compatRegistry;if(i||(i=e._compatRegistry={}),i[n])return function(){};i[n]=t;var c={addEventListener:function(){var t=s(this,arguments);return e.addEventListener.apply(t.context,t.args)},removeEventListener:function(){var t=s(this,arguments);return e.removeEventListener.apply(t.context,t.args)},dispatch:function(){var t=s(this,arguments),n=t.args[0],r="object"==typeof n?n.args:[];return t.args.splice(1,0,r),e.dispatch.apply(t.context,t.args)}},l=!0,u=e.addEventListener,d=e.addEventListener=function(e){if(l&&e===n){var r=o(this,arguments);t.addEventListener.apply(c,r)}return u.apply(this,arguments)},p=e.removeEventListener,f=e.removeEventListener=function(e){if(l&&e===n){var r=o(this,arguments);t.removeEventListener.apply(c,r)}return p.apply(this,arguments)};return function(){l=!1,i[n]=null,e.addEventListener===d&&(e.addEventListener=u),e.removeEventListener===f&&(e.removeEventListener=p)}}}),define("can-event-dom-enter@1.0.4#can-event-dom-enter",["require","exports","module","can-dom-data-state","can-cid"],function(e,t,n){"use strict";function r(e){var t="Enter"===e.key,n=13===e.keyCode;return t||n}function a(e,t){return e+":"+c(t)}function i(e,t,n,r){var i=a(t,n);s.set.call(e,i,r)}function o(e,t,n){var r=a(t,n),i=s.get.call(e,r);return i&&s.clean.call(e,r),i}var s=e("can-dom-data-state"),c=e("can-cid");n.exports={defaultEventType:"enter",addEventListener:function(e,t,n){var a=function(e){if(r(e))return n.apply(this,arguments)};i(e,t,n,a),this.addEventListener(e,"keyup",a)},removeEventListener:function(e,t,n){var r=o(e,t,n);r&&this.removeEventListener(e,"keyup",r)}}}),define("can-event-dom-enter@1.0.4#compat",["require","exports","module","can-dom-events/helpers/add-event-compat","./can-event-dom-enter"],function(e,t,n){var r=e("can-dom-events/helpers/add-event-compat"),a=e("./can-event-dom-enter");n.exports=function(e,t){return r(e,a,t)}}),define("can-dom-events@1.3.3#helpers/make-event-registry",function(e,t,n){"use strict";function r(){this._registry={}}n.exports=function(){return new r},r.prototype.has=function(e){return!!this._registry[e]},r.prototype.get=function(e){return this._registry[e]},r.prototype.add=function(e,t){if(!e)throw new Error("An EventDefinition must be provided");if("function"!=typeof e.addEventListener)throw new TypeError("EventDefinition addEventListener must be a function");if("function"!=typeof e.removeEventListener)throw new TypeError("EventDefinition removeEventListener must be a function");if("string"!=typeof(t=t||e.defaultEventType))throw new TypeError("Event type must be a string, not "+t);if(this.has(t))throw new Error('Event "'+t+'" is already registered');this._registry[t]=e;var n=this;return function(){n._registry[t]=void 0}}}),define("can-key-tree@1.2.0#can-key-tree",["require","exports","module","can-reflect"],function(e,t,n){"use strict";function r(e){if(e===Object.prototype)return!0;var t=Object.prototype.toString.call(e),n="[object Object]"!==t,r=-1!==t.indexOf("[object ");return n&&r}function a(e,t){if(0===t)return s.size(e);if(0===s.size(e))return 0;var n=0;return s.each(e,function(e){n+=a(e,t-1)}),n}function i(e,t,n,r){if(e)if(r===n){if(!s.isMoreListLikeThanMapLike(e))throw new Error("can-key-tree: Map-type leaf containers are not supported yet.");s.addValues(t,s.toArray(e))}else s.each(e,function(e){i(e,t,n+1,r)})}function o(e,t,n,r){if(n===t.length){if(!s.isMoreListLikeThanMapLike(e))throw new Error("can-key-tree: Map-type leaf containers are not supported yet.");var a=s.toArray(e);r&&a.forEach(function(e){r.apply(null,t.concat(e))}),s.removeValues(e,a)}else s.each(e,function(a,i){o(a,t.concat(i),n,r),s.deleteKeyValue(e,i)})}var s=e("can-reflect"),c=function(e,t){var n=e[0];s.isConstructorLike(n)?this.root=new n:this.root=n,this.callbacks=t||{},this.treeStructure=e,this.empty=!0};s.assign(c.prototype,{add:function(e){if(e.length>this.treeStructure.length)throw new Error("can-key-tree: Can not add path deeper than tree.");for(var t=this.root,n=!0===this.empty,a=0;a=0&&0===s.size(n);i--)n=r[i],s.deleteKeyValue(n,e[i]);return 0===s.size(this.root)&&(this.empty=!0,this.callbacks.onEmpty&&this.callbacks.onEmpty.call(this)),!0},size:function(){return a(this.root,this.treeStructure.length-1)},isEmpty:function(){return this.empty}}),n.exports=c}),define("can-dom-events@1.3.3#helpers/-make-delegate-event-tree",["require","exports","module","can-key-tree","can-reflect"],function(e,t,n){"use strict";function r(e){var t=function(e){this.element=e,this.events={},this.delegated={}};return i.assignSymbols(t.prototype,{"can.setKeyValue":function(t,n){var r=this.delegated[t]=function(e){i.each(n,function(t,n){var r=e.target;do{var a=r===document?document.documentElement:r,i=a.matches||a.msMatchesSelector;i&&i.call(a,n)&&t.forEach(function(t){t.call(a,e)}),r=r.parentNode}while(r&&r!==e.currentTarget)})};this.events[t]=n,e.addEventListener(this.element,t,r,o(t))},"can.getKeyValue":function(e){return this.events[e]},"can.deleteKeyValue":function(t){e.removeEventListener(this.element,t,this.delegated[t],o(t)),delete this.delegated[t],delete this.events[t]},"can.getOwnEnumerableKeys":function(){return Object.keys(this.events)}}),t}var a=e("can-key-tree"),i=e("can-reflect"),o=function(e){return"focus"===e||"blur"===e};n.exports=function(e){var t=r(e);return new a([Map,t,Object,Array])}}),define("can-dom-events@1.3.3#can-dom-events",["require","exports","module","can-namespace","./helpers/util","./helpers/make-event-registry","./helpers/-make-delegate-event-tree"],function(e,t,n){!function(e,t,n,r){"use strict";var a=t("can-namespace"),i=t("./helpers/util"),o=t("./helpers/make-event-registry"),s=t("./helpers/-make-delegate-event-tree"),c={_eventRegistry:o(),addEvent:function(e,t){return this._eventRegistry.add(e,t)},addEventListener:function(e,t){if(c._eventRegistry.has(t))return c._eventRegistry.get(t).addEventListener.apply(c,arguments);var n=Array.prototype.slice.call(arguments,1);return e.addEventListener.apply(e,n)},removeEventListener:function(e,t){if(c._eventRegistry.has(t))return c._eventRegistry.get(t).removeEventListener.apply(c,arguments);var n=Array.prototype.slice.call(arguments,1);return e.removeEventListener.apply(e,n)},addDelegateListener:function(e,t,n,r){c._eventTree.add([e,t,n,r])},removeDelegateListener:function(e,t,n,r){c._eventTree.delete([e,t,n,r])},dispatch:function(e,t,n,r){var a=i.createEvent(e,t,n,r),o=i.forceEnabledForDispatch(e,a);o&&(e.disabled=!1);var s=e.dispatchEvent(a);return o&&(e.disabled=!0),s}};c._eventTree=s(c),r.exports=a.domEvents=c}(0,e,0,n)}),define("can-event-dom-radiochange@1.0.5#can-event-dom-radiochange",["require","exports","module","can-dom-data-state","can-globals/document/document","can-dom-events","can-cid/map/map"],function(e,t,n){!function(e,t,n,r){"use strict";function a(e){return e.ownerDocument||g().documentElement}function i(e){return"can-event-radiochange:"+e+":registry"}function o(e){return"can-event-radiochange:"+e+":listener"}function s(e,t){var n=i(t),r=v.get.call(e,n);return r||(r=new b,v.set.call(e,n,r)),r}function c(e){for(;e&&"FORM"!==e.nodeName;)e=e.parentNode;return e}function l(e,t){var n=e.getAttribute("name");return n&&n===t.getAttribute("name")&&c(e)===c(t)}function u(e){return"INPUT"===e.nodeName&&"radio"===e.type}function d(e,t){s(a(t),e).forEach(function(n){l(t,n)&&y.dispatch(n,e)})}function p(e,t,n){var r=o(t);if(!v.get.call(e,r)){var a=function(e){var n=e.target;u(n)&&d(t,n)};n.addEventListener(e,"change",a),v.set.call(e,r,a)}}function f(e,t,n){var r=o(t),a=v.get.call(e,r);a&&(s(e,t).size>0||(n.removeEventListener(e,"change",a),v.clean.call(e,r)))}function h(e,t,n){if(!u(t))throw new Error("Listeners for "+e+" must be radio inputs");var r=a(t);s(r,e).set(t,t),p(r,e,n)}function m(e,t,n){var r=a(t);s(r,e).delete(t),f(r,e,n)}var v=t("can-dom-data-state"),g=t("can-globals/document/document"),y=t("can-dom-events"),b=t("can-cid/map/map");r.exports={defaultEventType:"radiochange",addEventListener:function(e,t,n){h(t,e,this),e.addEventListener(t,n)},removeEventListener:function(e,t,n){m(t,e,this),e.removeEventListener(t,n)}}}(0,e,0,n)}),define("can-event-dom-radiochange@1.0.5#compat",["require","exports","module","can-dom-events/helpers/add-event-compat","./can-event-dom-radiochange"],function(e,t,n){var r=e("can-dom-events/helpers/add-event-compat"),a=e("./can-event-dom-radiochange");n.exports=function(e,t){return r(e,a,t)}}),define("can-stache-bindings@3.11.12#can-stache-bindings",["require","exports","module","can-stache/src/expression","can-view-callbacks","can-view-live","can-view-scope","can-view-model","can-event","can-compute","can-stache-key","can-observation","can-simple-observable","can-util/js/assign/assign","can-util/js/make-array/make-array","can-util/js/each/each","can-util/js/string/string","can-log/dev/dev","can-types","can-util/js/last/last","can-globals/mutation-observer/mutation-observer","can-util/dom/events/events","can-util/dom/events/removed/removed","can-util/dom/data/data","can-util/dom/attr/attr","can-log","can-stache/helpers/core","can-symbol","can-reflect","can-util/js/single-reference/single-reference","can-attribute-encoder","can-event-dom-enter/compat","can-event-dom-radiochange/compat"],function(e,t,n){!function(e,t,n,r){function a(e,t){e instanceof m?e.compute._primaryDepth=t:e.computeInstance?e.computeInstance.setPrimaryDepth(t):e.observation&&(e.observation.compute._primaryDepth=t)}function i(e){if(void 0!==e.special.on)return e.tokens[e.special.on+1]}function o(e){var t={tokens:[],special:{}};return e.split(":").forEach(function(e){K[e]?t.special[e]=t.tokens.push(e)-1:t.tokens.push(e)}),t}var s=t("can-stache/src/expression"),c=t("can-view-callbacks"),l=t("can-view-live"),u=t("can-view-scope"),d=t("can-view-model"),p=t("can-event"),f=t("can-compute"),h=t("can-stache-key"),m=t("can-observation"),v=t("can-simple-observable"),g=t("can-util/js/assign/assign"),y=t("can-util/js/make-array/make-array"),b=t("can-util/js/each/each"),x=t("can-util/js/string/string"),w=t("can-log/dev/dev"),k=t("can-types"),j=t("can-util/js/last/last"),_=t("can-globals/mutation-observer/mutation-observer"),C=t("can-util/dom/events/events");t("can-util/dom/events/removed/removed");var E=t("can-util/dom/data/data"),T=t("can-util/dom/attr/attr"),L=t("can-log"),S=t("can-stache/helpers/core"),N=t("can-symbol"),O=t("can-reflect"),A=t("can-util/js/single-reference/single-reference"),D=t("can-attribute-encoder");t("can-event-dom-enter/compat")(C),t("can-event-dom-radiochange/compat")(C);var V=function(){},P=function(){throw new Error("can-stache-bindings - you can not have contextual bindings ( this:from='value' ) and key bindings ( prop:from='value' ) on one element.")},M=function(e,t){var n=t.bindingInfo.parentToChild&&"viewModel"===t.bindingInfo.child;if(!n)return e;var r=t.bindingInfo.childName;if(!n||"this"!==r&&"."!==r){if(!e.isSettingViewModel)return{isSettingOnViewModel:!0,initialViewModelData:e.initialViewModelData};P()}else{if(!e.isSettingViewModel&&!e.isSettingOnViewModel)return{isSettingViewModel:!0,initialViewModelData:void 0};P()}},q={viewModel:function(e,t,n,r,a){var i,o={},s=[],c={},l={},u=g({},r),d={isSettingOnViewModel:!1,isSettingViewModel:!1,initialViewModelData:r||{}},p=!1;if(b(y(e.attributes),function(n){var r=Q(n,e,{templateType:t.templateType,scope:t.scope,semaphore:o,getViewModel:function(){return i},attributeViewModelBindings:u,alreadyUpdatedChild:!0,nodeList:t.parentNodeList,favorViewModel:!0});r&&(d=M(d,r),p=!0,r.onCompleteBinding&&(r.bindingInfo.parentToChild&&void 0!==r.value&&(d.isSettingViewModel?d.initialViewModelData=r.value:d.initialViewModelData[ae(r.bindingInfo.childName)]=r.value),s.push(r.onCompleteBinding)),c[n.name]=r.onTeardown)}),!a||p){i=n(d.initialViewModelData,p);for(var f=0,h=s.length;f=0&&(r=o.get(J(n.substr(c+":by:".length))),n=n.substr(0,c))}}else if(n=te(a,"(",")"),w.warn("can-stache-bindings: the event binding format ("+n+") is deprecated. Use on:"+x.camelize("$"===n[0]?n.slice(1):n.split(" ").reverse().filter(function(e){return e}).join(":by:"))+" instead"),"$"===n.charAt(0))n=n.substr(1),r=e;else if(n.indexOf(" ")>=0){var l=n.split(" ");r=t.scope.get(J(l[0])),n=l[1]}else r=d(e);n=J(n);var u=function(n){var r=e.getAttribute(D.encode(a));if(r){var i=d(e),o=s.parse(te(r),{lookupRule:function(){return s.Lookup},methodRule:"call"});if(!(o instanceof s.Call||o instanceof s.Helper)){var c=[t.scope._context,e].concat(y(arguments)).map(function(e){return new s.Arg(new s.Literal(e))});o=new s.Call(o,c,{})}var l,u,p,f={element:e,event:n,viewModel:i,arguments:arguments},m={"@element":e,"@event":n,"@viewModel":i,"@scope":t.scope,"@context":t.scope._context,"%element":this,$element:k.wrapElement(e),"%event":n,"%viewModel":i,"%scope":t.scope,"%context":t.scope._context,"%arguments":arguments},v=t.scope.add(m,{notContext:!0}).add(f,{special:!0}),g=v.read(o.methodExpr.key,{isArgument:!0});if(!g.value){var b=h.reads(o.methodExpr.key).map(function(e){return e.key}).join(".");return(u=S.getHelper(b))?(l=o.args(v,null)(),"function"==typeof(p=u.fn.apply(v.peek("."),l))&&p(e),p):null}return l=o.args(v,null)(),g.value.apply(g.parent,l)}},f=function(e){var t=e.attributeName===a,n=!this.getAttribute(a);t&&n&&v()},m=function(e){v()},v=function(){p.off.call(r,n,u),p.off.call(e,"attributes",f),p.off.call(e,"removed",m)};p.on.call(r,n,u),p.on.call(e,"attributes",f),p.on.call(e,"removed",m)},value:function(e,t){var n,r="$value",a=te(e.getAttribute("can-value")).trim(),i=e.nodeName.toLowerCase(),o="input"===i&&(e.type||e.getAttribute("type"));if("input"!==i||"checkbox"!==o&&"radio"!==o)ee(e)&&(r="$innerHTML");else{var s=I.scope(e,t.scope,a,{},!0);if("checkbox"===e.type){var c=!T.has(e,"can-true-value")||e.getAttribute("can-true-value"),l=!!T.has(e,"can-false-value")&&e.getAttribute("can-false-value");n=f(function(e){var t=0!==arguments.length;if(s&&s[N.for("can.getValue")]){if(!t)return O.getValue(s)==c;O.setValue(s,e?c:l)}else if(!t)return s==c})}else"radio"===o&&(n=f(function(t){var n=0!==arguments.length&&t;if(s&&s[N.for("can.getValue")]){if(!n)return O.getValue(s)==e.value;O.setValue(s,e.value)}else if(!n)return s==e.value}));r="$checked",a="getterSetter",t.scope=new u({getterSetter:n})}var d=Q({name:"{("+r+")}",value:a},e,{templateType:t.templateType,scope:t.scope,semaphore:{},initializeValues:!0,legacyBindings:!0});p.one.call(e,"removed",function(){d.onTeardown()})}};c.attr(/^(:lb:)[(:c:)\w-]+(:rb:)$/,q.data),c.attr(/[\w\.:]+:to$/,q.data),c.attr(/[\w\.:]+:from$/,q.data),c.attr(/[\w\.:]+:bind$/,q.data),c.attr(/[\w\.:]+:to:on:[\w\.:]+/,q.data),c.attr(/[\w\.:]+:from:on:[\w\.:]+/,q.data),c.attr(/[\w\.:]+:bind:on:[\w\.:]+/,q.data),c.attr(/\*[\w\.\-_]+/,q.reference),c.attr(/on:[\w\.:]+/,q.event),c.attr(/^(:lp:)[(:d:)?\w\.\\]+(:rp:)$/,q.event),c.attr(/can-[\w\.]+/,q.event),c.attr("can-value",q.value);var I={viewModelOrAttribute:function(e,t,n,r,a,i,o){return E.get.call(e,"viewModel")?this.viewModel.apply(this,arguments):this.attribute.apply(this,arguments)},scope:function(e,t,n,r,a,i){if(n){if(a)return s.parse(n,{baseMethodType:"Call"}).value(t,new u.Options({}));var o=new m(function(){});return o[N.for("can.getValue")]=function(e){return t.get(ae(n))},o[N.for("can.setValue")]=function(e){t.set(ae(n),e)},o}return v()},viewModel:function(e,t,n,r,a,i){var o=ae(n),s="."===n||"this"===n,c=s?[]:h.reads(n),l=new m(function(){var e=r.getViewModel();return h.read(e,c,{}).value});return l[N.for("can.setValue")]=function(e){var t=r.getViewModel();if(arguments.length)if(i){var n=O.getKeyValue(t,o);O.isObservableLike(n)?O.setValue(n,e):O.setKeyValue(t,o,v(O.getValue(i)))}else s?O.setValue(t,e):O.setKeyValue(t,o,e)},l},attribute:function(e,t,n,r,a,i,o){if(!o){o="change";var s="INPUT"===e.nodeName&&"radio"===e.type,c="checked"===n&&!r.legacyBindings;s&&c&&(o="radiochange"),T.special[n]&&T.special[n].addEventListener&&(o=n)}var l="select"===e.nodeName.toLowerCase(),u=function(){return T.get(e,n)};"value"===n&&l&&e.multiple&&(n="values");var d=new m(u);return d[N.for("can.setValue")]=function(t){return r.legacyBindings&&l&&"selectedIndex"in e&&"value"===n?T.setAttrOrProp(e,n,null==t?"":t):T.setAttrOrProp(e,n,t),t},d[N.for("can.getValue")]=u,d[N.for("can.onValue")]=function(t){var n=function(){t(u())};A.set(t,this,n),"radiochange"===o&&p.on.call(e,"change",n),p.on.call(e,o,n)},d[N.for("can.offValue")]=function(t){var n=A.getAndDelete(t,this);"radiochange"===o&&p.off.call(e,"change",n),p.off.call(e,o,n)},d}},R={childToParent:function(e,t,n,r,a,i){var o=function(o){if(!r[a])if(t&&t[N.for("can.getValue")])O.getValue(t)!==o&&O.setValue(t,o),i&&O.getValue(t)!==O.getValue(n)&&(r[a]=(r[a]||0)+1,O.setValue(n,O.getValue(t)),m.afterUpdateAndNotify(function(){--r[a]}));else if(O.isMapLike(t)){var s=e.getAttribute(a);w.warn("can-stache-bindings: Merging "+a+" into "+s+" because its parent is non-observable"),O.eachKey(t,function(e){O.deleteKeyValue(t,e)}),O.setValue(t,o&&o.serialize?o.serialize():o,!0)}};return n&&n[N.for("can.getValue")]&&O.onValue(n,o),o},parentToChild:function(e,t,n,r,a){var i=function(e){r[a]=(r[a]||0)+1,O.setValue(n,e),m.afterUpdateAndNotify(function(){--r[a]})};return t&&t[N.for("can.getValue")]&&O.onValue(t,i),i}},H=String.prototype.startsWith||function(e){return 0===this.indexOf(e)},B={to:{childToParent:!0,parentToChild:!1,syncChildWithParent:!1},from:{childToParent:!1,parentToChild:!0,syncChildWithParent:!1},bind:{childToParent:!0,parentToChild:!0,syncChildWithParent:!0}},U=[],K={vm:!0,on:!0};b(B,function(e,t){U.push(t),K[t]=!0});var F=/\{(\()?(\^)?([^\}\)]+)\)?\}/,z=/^(data-view-id|class|name|id|\[[\w\.-]+\]|#[\w\.-])$/i,$=/\\s/g,W=/\\f/g,G=function(e,t){return e.indexOf("vm")>=0?"viewModel":e.indexOf("el")>=0?"attribute":t?"viewModel":"viewModelOrAttribute"},X=function(e,t,n,r,a){var s,l,u,d,p=D.decode(e.name),f=e.value||"",h=o(p);if(U.forEach(function(e){if(void 0!==h.special[e]&&h.special[e]>0)return u=e,d=h.special[e],!1}),u){var m=i(h),v=!m;return g({parent:"scope",child:G(h.tokens,a),childName:h.tokens[d-1],childEvent:m,bindingAttributeName:p,parentName:f,initializeValues:v},B[u])}var y=p.match(F);if(!y){var b=z.test(p),k=x.camelize(p);if(b||c.attr(D.encode(p)))return;var _="{"===f[0]&&"}"===j(f),C="legacy"===n?t[k]:!_,E=_?f.substr(1,f.length-2):f;return C?{bindingAttributeName:p,parent:"attribute",parentName:p,child:"viewModel",childName:k,parentToChild:!0,childToParent:!0,syncChildWithParent:!0}:{bindingAttributeName:p,parent:"scope",parentName:E,child:"viewModel",childName:k,parentToChild:!0,childToParent:!0,syncChildWithParent:!0}}var T=!!y[1],L=T||!!y[2],S=T||!L;l=y[3];var N={"^":":to","(":":bind"};return w.warn("can-stache-bindings: the data binding format "+p+" is deprecated. Use "+x.camelize("$"===y[3][0]?y[3].slice(1):y[3])+(N[p.charAt(1)]||":from")+" instead"),"$"===l.charAt(0)?(s={parent:"scope",child:"attribute",childToParent:L,parentToChild:S,bindingAttributeName:p,childName:l.substr(1),parentName:f,initializeValues:!0,syncChildWithParent:T},"select"===r&&(s.stickyParentToChild=!0),s):(s={parent:"scope",child:"viewModel",childToParent:L,parentToChild:S,bindingAttributeName:p,childName:J(x.camelize(l)),parentName:f,initializeValues:!0,syncChildWithParent:T},"~"===f.trim().charAt(0)&&(s.stickyParentToChild=!0),s)},J=function(e){return e.replace($," ").replace(W,"/")},Q=function(e,t,n){var r=X(e,n.attributeViewModelBindings,n.templateType,t.nodeName.toLowerCase(),n.favorViewModel);if(r){r.alreadyUpdatedChild=n.alreadyUpdatedChild,n.initializeValues&&(r.initializeValues=!0);var i,o,s=I[r.parent](t,n.scope,r.parentName,n,r.parentToChild),c=I[r.child](t,n.scope,r.childName,n,r.childToParent,r.stickyParentToChild&&s,r.childEvent);n.nodeList&&(s&&a(s,n.nodeList.nesting+1),c&&a(c,n.nodeList.nesting+1)),r.parentToChild&&(o=R.parentToChild(t,s,c,n.semaphore,r.bindingAttributeName));var l=function(){r.childToParent?i=R.childToParent(t,s,c,n.semaphore,r.bindingAttributeName,r.syncChildWithParent):r.stickyParentToChild&&c[N.for("can.onValue")]&&O.onValue(c,V),r.initializeValues&&Y(r,c,s,o,i)},u=function(){re(s,o),re(c,i),re(c,V)};return"viewModel"===r.child?{value:r.stickyParentToChild?v(ne(s)):ne(s),onCompleteBinding:l,bindingInfo:r,onTeardown:u}:(l(),{bindingInfo:r,onTeardown:u})}},Y=function(e,t,n,r,a){var i=!1;e.parentToChild&&!e.childToParent||(!e.parentToChild&&e.childToParent?i=!0:void 0===ne(t)||void 0===ne(n)&&(i=!0)),i?a(ne(t)):e.alreadyUpdatedChild||r(ne(n))};if(!_()){var Z=function(e){var t=E.get.call(e,"canBindingCallback");t&&t.onMutation(e)};l.registerChildMutationCallback("select",Z),l.registerChildMutationCallback("optgroup",function(e){Z(e.parentNode)})}var ee=function(){var e={"":!0,true:!0,false:!1},t=function(t){if(t&&t.getAttribute){var n=t.getAttribute("contenteditable");return e[n]}};return function(e){var n=t(e);return"boolean"==typeof n?n:!!t(e.parentNode)}}(),te=function(e,t,n){return t=t||"{",n=n||"}",e[0]===t&&e[e.length-1]===n?e.substr(1,e.length-2):e},ne=function(e){return e&&e[N.for("can.getValue")]?O.getValue(e):e},re=function(e,t){e&&e[N.for("can.getValue")]&&"function"==typeof t&&O.offValue(e,t)},ae=function(e){return e.replace(/@/g,"")};r.exports={behaviors:q,getBindingInfo:X}}(0,e,0,n)}),define("steal-stache@3.1.3#add-bundles",[],function(){return{}}),define("steal-stache@3.1.3#steal-stache",[],function(){return{}}),define("demo_frame.stache!steal-stache@3.1.3#steal-stache",["module","can-stache","can-stache/src/mustache_core","can-view-import@3.2.9#can-view-import","can-stache-bindings@3.11.12#can-stache-bindings"],function(e,t,n){var r=t("demo_frame.stache",[{tokenType:"start",args:["div",!1,1]},{tokenType:"attrStart",args:["class",1]},{tokenType:"attrValue",args:["demo",1]},{tokenType:"attrEnd",args:["class",1]},{tokenType:"end",args:["div",!1,1]},{tokenType:"chars",args:["\n\t",1]},{tokenType:"start",args:["ul",!1,2]},{tokenType:"end",args:["ul",!1,2]},{tokenType:"chars",args:["\n\t\t",2]},{tokenType:"start",args:["li",!1,3]},{tokenType:"attrStart",args:["class",3]},{tokenType:"attrValue",args:["tab",3]},{tokenType:"attrEnd",args:["class",3]},{tokenType:"attrStart",args:["data-tab",3]},{tokenType:"attrValue",args:["demo",3]},{tokenType:"attrEnd",args:["data-tab",3]},{tokenType:"end",args:["li",!1,3]},{tokenType:"chars",args:["Demo",3]},{tokenType:"close",args:["li",3]},{tokenType:"chars",args:["\n\t\t",3]},{tokenType:"start",args:["li",!1,4]},{tokenType:"attrStart",args:["class",4]},{tokenType:"attrValue",args:["tab",4]},{tokenType:"attrEnd",args:["class",4]},{tokenType:"attrStart",args:["data-tab",4]},{tokenType:"attrValue",args:["html",4]},{tokenType:"attrEnd",args:["data-tab",4]},{tokenType:"end",args:["li",!1,4]},{tokenType:"chars",args:["HTML",4]},{tokenType:"close",args:["li",4]},{tokenType:"chars",args:["\n\t\t",4]},{tokenType:"start",args:["li",!1,5]},{tokenType:"attrStart",args:["class",5]},{tokenType:"attrValue",args:["tab",5]},{tokenType:"attrEnd",args:["class",5]},{tokenType:"attrStart",args:["data-tab",5]},{tokenType:"attrValue",args:["js",5]},{tokenType:"attrEnd",args:["data-tab",5]},{tokenType:"attrStart",args:["style",5]},{tokenType:"attrValue",args:["display:none;",5]},{tokenType:"attrEnd",args:["style",5]},{tokenType:"end",args:["li",!1,5]},{tokenType:"chars",args:["JS",5]},{tokenType:"close",args:["li",5]},{tokenType:"chars",args:["\n\t",5]},{tokenType:"close",args:["ul",6]},{tokenType:"chars",args:["\n\t",6]},{tokenType:"start",args:["div",!1,7]},{tokenType:"attrStart",args:["class",7]},{tokenType:"attrValue",args:["tab-content",7]},{tokenType:"attrEnd",args:["class",7]},{tokenType:"attrStart",args:["data-for",7]},{tokenType:"attrValue",args:["demo",7]},{tokenType:"attrEnd",args:["data-for",7]},{tokenType:"end",args:["div",!1,7]},{tokenType:"chars",args:["\n\t\t",7]},{tokenType:"start",args:["iframe",!0,8]},{tokenType:"attrStart",args:["src",8]},{tokenType:"special",args:["demoSrc",8]},{tokenType:"attrEnd",args:["src",8]},{tokenType:"end",args:["iframe",!0,8]},{tokenType:"chars",args:["\n\t",8]},{tokenType:"close",args:["div",9]},{tokenType:"chars",args:["\n\t",9]},{tokenType:"start",args:["div",!1,10]},{tokenType:"attrStart",args:["class",10]},{tokenType:"attrValue",args:["tab-content",10]},{tokenType:"attrEnd",args:["class",10]},{tokenType:"attrStart",args:["data-for",10]},{tokenType:"attrValue",args:["html",10]},{tokenType:"attrEnd",args:["data-for",10]},{tokenType:"end",args:["div",!1,10]},{tokenType:"chars",args:["\n\t\t",10]},{tokenType:"start",args:["pre",!1,11]},{tokenType:"attrStart",args:["class",11]},{tokenType:"attrValue",args:["prettyprint",11]},{tokenType:"attrEnd",args:["class",11]},{tokenType:"end",args:["pre",!1,11]},{tokenType:"close",args:["pre",11]},{tokenType:"chars",args:["\n\t",11]},{tokenType:"close",args:["div",12]},{tokenType:"chars",args:["\n\t",12]},{tokenType:"start",args:["div",!1,13]},{tokenType:"attrStart",args:["class",13]},{tokenType:"attrValue",args:["tab-content",13]},{tokenType:"attrEnd",args:["class",13]},{tokenType:"attrStart",args:["data-for",13]},{tokenType:"attrValue",args:["js",13]},{tokenType:"attrEnd",args:["data-for",13]},{tokenType:"end",args:["div",!1,13]},{tokenType:"chars",args:["\n\t\t",13]},{tokenType:"start",args:["pre",!1,14]},{tokenType:"attrStart",args:["class",14]},{tokenType:"attrValue",args:["prettyprint lang-js",14]},{tokenType:"attrEnd",args:["class",14]},{tokenType:"end",args:["pre",!1,14]},{tokenType:"close",args:["pre",14]},{tokenType:"chars",args:["\n\t",14]},{tokenType:"close",args:["div",15]},{tokenType:"chars",args:["\n",15]},{tokenType:"close",args:["div",16]},{tokenType:"done",args:[16]}]);return function(t,a,i){var o={module:e};return a instanceof n.Options||(a=new n.Options(a||{})),r(t,a.add(o),i)}}),define("prettify",["module","@loader","require"],function(e,t,n){t.get("@@global-helpers").prepareGlobal({require:n,name:e.id,deps:[]});var r=t.global.define,n=t.global.require;return t.global.define=void 0,t.global.module=void 0,t.global.exports=void 0,t.__exec({source:'!function(){var e=null;window.PR_SHOULD_USE_CONTINUATION=!0,function(){function t(e){function t(e){var t=e.charCodeAt(0);if(92!==t)return t;var n=e.charAt(1);return(t=c[n])?t:"0"<=n&&n<="7"?parseInt(e.substring(1),8):"u"===n||"x"===n?parseInt(e.substring(2),16):e.charCodeAt(1)}function n(e){return e<32?(e<16?"\\\\x0":"\\\\x")+e.toString(16):"\\\\"===(e=String.fromCharCode(e))||"-"===e||"]"===e||"^"===e?"\\\\"+e:e}function r(e){var r=e.substring(1,e.length-1).match(/\\\\u[\\dA-Fa-f]{4}|\\\\x[\\dA-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\S\\s]|[^\\\\]/g),e=[],s=["["];(a="^"===r[0])&&s.push("^");for(var a=a?1:0,i=r.length;a122||(l<65||o>90||e.push([32|Math.max(65,o),32|Math.min(l,90)]),l<97||o>122||e.push([-33&Math.max(97,o),-33&Math.min(l,122)]))}}for(e.sort(function(e,t){return e[0]-t[0]||t[1]-e[1]}),r=[],i=[],a=0;ao[0]&&(o[1]+1>o[0]&&s.push("-"),s.push(n(o[1])));return s.push("]"),s.join("")}for(var s=0,a=!1,i=!1,l=0,o=e.length;l=2&&"["===e?t[o]=r(c):"\\\\"!==e&&(t[o]=c.replace(/[A-Za-z]/g,function(e){return e=e.charCodeAt(0),"["+String.fromCharCode(-33&e,32|e)+"]"}));return t.join("")}(u)+")")}return RegExp(p.join("|"),i?"gi":"g")}function n(e,t){function n(e){var o=e.nodeType;if(1==o){if(!r.test(e.className)){for(o=e.firstChild;o;o=o.nextSibling)n(o);"br"!==(o=e.nodeName.toLowerCase())&&"li"!==o||(s[l]="\\n",i[l<<1]=a++,i[l++<<1|1]=e)}}else 3!=o&&4!=o||(o=e.nodeValue).length&&(o=t?o.replace(/\\r\\n?/g,"\\n"):o.replace(/[\\t\\n\\r ]+/g," "),s[l]=o,i[l<<1]=a,a+=o.length,i[l++<<1|1]=e)}var r=/(?:^|\\s)nocode(?:\\s|$)/,s=[],a=0,i=[],l=0;return n(e),{a:s.join("").replace(/\\n$/,""),d:i}}function r(e,t,n,r){t&&(e={a:t,e:e},n(e),r.push.apply(r,e.g))}function s(e){for(var t=void 0,n=e.firstChild;n;n=n.nextSibling)var r=n.nodeType,t=1===r?t?e:n:3===r&&w.test(n.nodeValue)?e:t;return t===e?void 0:t}function a(n,s){function a(e){for(var t=e.e,n=[t,"pln"],c=0,p=e.a.match(i)||[],d={},f=0,h=p.length;f=5&&"lang-"===y.substring(0,5))||v&&"string"==typeof v[1]||(g=!1,y="src"),g||(d[m]=y)}if(b=c,c+=m.length,g){g=v[1];var x=m.indexOf(g),w=x+g.length;v[2]&&(w=m.length-v[2].length,x=w-g.length),y=y.substring(5),r(t+b,m.substring(0,x),a,n),r(t+b+x,g,u(y,g),n),r(t+b+w,m.substring(w),a,n)}else n.push(t+b,y)}e.g=n}var i,l={};!function(){for(var r=n.concat(s),a=[],o={},u=0,c=r.length;u=0;)l[d.charAt(f)]=p;d=""+(p=p[1]),o.hasOwnProperty(d)||(a.push(p),o[d]=e)}a.push(/[\\S\\s]/),i=t(a)}();var o=s.length;return a}function i(t){var n=[],r=[];t.tripleQuotedStrings?n.push(["str",/^(?:\'\'\'(?:[^\'\\\\]|\\\\[\\S\\s]|\'\'?(?=[^\']))*(?:\'\'\'|$)|"""(?:[^"\\\\]|\\\\[\\S\\s]|""?(?=[^"]))*(?:"""|$)|\'(?:[^\'\\\\]|\\\\[\\S\\s])*(?:\'|$)|"(?:[^"\\\\]|\\\\[\\S\\s])*(?:"|$))/,e,"\'\\""]):t.multiLineStrings?n.push(["str",/^(?:\'(?:[^\'\\\\]|\\\\[\\S\\s])*(?:\'|$)|"(?:[^"\\\\]|\\\\[\\S\\s])*(?:"|$)|`(?:[^\\\\`]|\\\\[\\S\\s])*(?:`|$))/,e,"\'\\"`"]):n.push(["str",/^(?:\'(?:[^\\n\\r\'\\\\]|\\\\.)*(?:\'|$)|"(?:[^\\n\\r"\\\\]|\\\\.)*(?:"|$))/,e,"\\"\'"]),t.verbatimStrings&&r.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,e]);var s=t.hashComments;if(s&&(t.cStyleComments?(s>1?n.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,e,"#"]):n.push(["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\\b|[^\\n\\r]*)/,e,"#"]),r.push(["str",/^<(?:(?:(?:\\.\\.\\/)*|\\/?)(?:[\\w-]+(?:\\/[\\w-]+)+)?[\\w-]+\\.h(?:h|pp|\\+\\+)?|[a-z]\\w*)>/,e])):n.push(["com",/^#[^\\n\\r]*/,e,"#"])),t.cStyleComments&&(r.push(["com",/^\\/\\/[^\\n\\r]*/,e]),r.push(["com",/^\\/\\*[\\S\\s]*?(?:\\*\\/|$)/,e])),s=t.regexLiterals){var i=(s=s>1?"":"\\n\\r")?".":"[\\\\S\\\\s]";r.push(["lang-regex",RegExp("^(?:^^\\\\.?|[+-]|[!=]=?=?|\\\\#|%=?|&&?=?|\\\\(|\\\\*=?|[+\\\\-]=|->|\\\\/=?|::?|<>?>?=?|,|;|\\\\?|@|\\\\[|~|{|\\\\^\\\\^?=?|\\\\|\\\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\\\s*(/(?=[^/*"+s+"])(?:[^/\\\\x5B\\\\x5C"+s+"]|\\\\x5C"+i+"|\\\\x5B(?:[^\\\\x5C\\\\x5D"+s+"]|\\\\x5C"+i+")*(?:\\\\x5D|$))+/)")])}return(s=t.types)&&r.push(["typ",s]),(s=(""+t.keywords).replace(/^ | $/g,"")).length&&r.push(["kwd",RegExp("^(?:"+s.replace(/[\\s,]+/g,"|")+")\\\\b"),e]),n.push(["pln",/^\\s+/,e," \\r\\n\\t "]),s="^.[^\\\\s\\\\w.$@\'\\"`/\\\\\\\\]*",t.regexLiterals&&(s+="(?!s*/)"),r.push(["lit",/^@[$_a-z][\\w$@]*/i,e],["typ",/^(?:[@_]?[A-Z]+[a-z][\\w$@]*|\\w+_t\\b)/,e],["pln",/^[$_a-z][\\w$@]*/i,e],["lit",/^(?:0x[\\da-f]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+-]?\\d+)?)[a-z]*/i,e,"0123456789"],["pln",/^\\\\[\\S\\s]?/,e],["pun",RegExp(s),e]),a(n,r)}function l(e,t,n){function r(e){var t=e.nodeType;if(1!=t||a.test(e.className)){if((3==t||4==t)&&n){var o=e.nodeValue,u=o.match(i);u&&(t=o.substring(0,u.index),e.nodeValue=t,(o=o.substring(u.index+u[0].length))&&e.parentNode.insertBefore(l.createTextNode(o),e.nextSibling),s(e),t||e.parentNode.removeChild(e))}}else if("br"===e.nodeName)s(e),e.parentNode&&e.parentNode.removeChild(e);else for(e=e.firstChild;e;e=e.nextSibling)r(e)}function s(e){function t(e,n){var r=n?e.cloneNode(!1):e;if(s=e.parentNode){var s=t(s,1),a=e.nextSibling;s.appendChild(r);for(var i=a;i;i=a)a=i.nextSibling,s.appendChild(i)}return r}for(;!e.nextSibling;)if(!(e=e.parentNode))return;for(var n,e=t(e.nextSibling,0);(n=e.parentNode)&&1===n.nodeType;)e=n;u.push(e)}for(var a=/(?:^|\\s)nocode(?:\\s|$)/,i=/\\r\\n?|\\n/,l=e.ownerDocument,o=l.createElement("li");e.firstChild;)o.appendChild(e.firstChild);for(var u=[o],c=0;c=0;){var r=t[n];S.hasOwnProperty(r)?p.console&&console.warn("cannot override language handler %s",r):S[r]=e}}function u(e,t){return e&&S.hasOwnProperty(e)||(e=/^\\s*=C&&(c+=2),i>=N&&(h+=2)}}finally{w&&(w.style.display=x)}}catch(e){p.console&&console.log(e&&e.stack||e)}}var p=window,d=["break,continue,do,else,for,if,return,while"],f=[[d,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],h=[f,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],g=[f,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],m=[g,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],y=[d,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],v=[d,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],b=[d,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],x=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\\d*)\\b/,w=/\\S/,S={};o(i({keywords:[h,m,f=[f,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",y,v,d=[d,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"]],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),["default-code"]),o(a([],[["pln",/^[^]*(?:>|$)/],["com",/^<\\!--[\\S\\s]*?(?:--\\>|$)/],["lang-",/^<\\?([\\S\\s]+?)(?:\\?>|$)/],["lang-",/^<%([\\S\\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\\S\\s]+?)<\\/xmp\\b[^>]*>/i],["lang-js",/^]*>([\\S\\s]*?)(<\\/script\\b[^>]*>)/i],["lang-css",/^]*>([\\S\\s]*?)(<\\/style\\b[^>]*>)/i],["lang-in.tag",/^(<\\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),o(a([["pln",/^\\s+/,e," \\t\\r\\n"],["atv",/^(?:"[^"]*"?|\'[^\']*\'?)/,e,"\\"\'"]],[["tag",/^^<\\/?[a-z](?:[\\w-.:]*\\w)?|\\/?>$/i],["atn",/^(?!style[\\s=]|on)[a-z](?:[\\w:-]*\\w)?/i],["lang-uq.val",/^=\\s*([^\\s"\'>]*(?:[^\\s"\'/>]|\\/(?=\\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\\w+\\s*=\\s*"([^"]+)"/i],["lang-js",/^on\\w+\\s*=\\s*\'([^\']+)\'/i],["lang-js",/^on\\w+\\s*=\\s*([^\\s"\'>]+)/i],["lang-css",/^style\\s*=\\s*"([^"]+)"/i],["lang-css",/^style\\s*=\\s*\'([^\']+)\'/i],["lang-css",/^style\\s*=\\s*([^\\s"\'>]+)/i]]),["in.tag"]),o(a([],[["atv",/^[\\S\\s]+/]]),["uq.val"]),o(i({keywords:h,hashComments:!0,cStyleComments:!0,types:x}),["c","cc","cpp","cxx","cyc","m"]),o(i({keywords:"null,true,false"}),["json"]),o(i({keywords:m,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:x}),["cs"]),o(i({keywords:g,cStyleComments:!0}),["java"]),o(i({keywords:d,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),o(i({keywords:y,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),o(i({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),o(i({keywords:v,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),o(i({keywords:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]),o(i({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),o(i({keywords:b,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]),o(a([],[["str",/^[\\S\\s]+/]]),["regex"]);var C=p.PR={createSimpleLexer:a,registerLangHandler:o,sourceDecorator:i,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:p.prettyPrintOne=function(e,t,n){var r=document.createElement("div");return r.innerHTML="
    "+e+"
    ",r=r.firstChild,n&&l(r,n,!0),c({h:t,j:n,c:r,i:1}),r.innerHTML},prettyPrint:p.prettyPrint=function(t,n){function r(){for(var n=p.PR_SHOULD_USE_CONTINUATION?h.now()+250:1/0;m=0)&&i(this).remove()}),o.find("style").remove(),a=i.trim(o.html())}var s=r?r.innerHTML:this.contentWindow.DEMO_SOURCE;if(!s)for(var c=i(this.contentDocument.body).find("script:not([src])"),l=0;l=0)&&(s=c[l].innerHTML);s=i.trim(s),t.element.find("[data-for=html] > pre").html(t.prettify(a));var u=t.prettify(s.replace(/\t/g," "));u.length&&(t.element.find("[data-for=js] > pre").html(u),t.element.find("[data-tab=js]").show()),function(){n.height(i(n).contents().height()),setTimeout(arguments.callee,1e3)}()})},".tab click":function(e,t){this.showTab(e.data("tab"))},showTab:function(e){i(".tab",this.element).removeClass("active"),i(".tab-content",this.element).hide(),i(".tab[data-tab="+e+"]",this.element).addClass("active"),i("[data-for="+e+"]",this.element).show()},prettify:function(e){return prettyPrintOne(e.replace(/');e.data("iframeHeight")&&t.height(e.data("iframeHeight")),e.append(t)})},replaceDemos:function(){r(".demo_wrapper",this.$element).each(function(){new i(this)})}})}),define("versions",["require","exports","module","can-control","can-util/js/each/","jquery"],function(e,t,n){var r=e("can-control"),a=e("can-util/js/each/"),i=e("jquery"),o=window.docObject||{},s=function(e){return"/"===e[e.length-1]},c=function(e,t){var n=e[e.length-1],r=t[0];return"/"!=n&&"/"!=r?steal.joinURIs(e,t):"/"==n&&"/"==r?r+t.substr(1):e+t},l=function(e){var t=e.split("/");return t.pop(),t.join("/")},u=function(e){return s(e)?e.substr(0,e.length-1):e};n.exports=r.extend({setup:function(e,t){var n;return"versions"===(e=i(e)).attr("id")&&"select"===e[0].nodeName.toLowerCase()?n=e:(n=i("",e.querySelectorAll("[msallowcapture^=\'\']").length&&M.push("[*^$]="+ne+"*(?:\'\'|\\"\\")"),e.querySelectorAll("[selected]").length||M.push("\\\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+P+"-]").length||M.push("~="),e.querySelectorAll(":checked").length||M.push(":checked"),e.querySelectorAll("a#"+P+"+*").length||M.push(".#.+[+~]")}),i(function(e){var t=r.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&M.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||M.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),M.push(",.*:")})),(w.matchesSelector=ve.test(O=q.matches||q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&i(function(e){w.disconnectedMatch=O.call(e,"div"),O.call(e,"[s!=\'\']:x"),F.push("!=",ae)}),M=M.length&&new RegExp(M.join("|")),F=F.length&&new RegExp(F.join("|")),t=ve.test(q.compareDocumentPosition),B=t||ve.test(q.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=t?function(e,t){if(e===t)return j=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===r||e.ownerDocument===R&&B(R,e)?-1:t===r||t.ownerDocument===R&&B(R,t)?1:D?ee(D,e)-ee(D,t):0:4&n?-1:1)}:function(e,t){if(e===t)return j=!0,0;var n,i=0,o=e.parentNode,s=t.parentNode,u=[e],l=[t];if(!o||!s)return e===r?-1:t===r?1:o?-1:s?1:D?ee(D,e)-ee(D,t):0;if(o===s)return a(e,t);for(n=e;n=n.parentNode;)u.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;u[i]===l[i];)i++;return i?a(u[i],l[i]):u[i]===R?-1:l[i]===R?1:0},r):H},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==H&&L(e),n=n.replace(de,"=\'$1\']"),w.matchesSelector&&_&&(!F||!F.test(n))&&(!M||!M.test(n)))try{var r=O.call(e,n);if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return t(n,H,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==H&&L(e),B(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==H&&L(e);var n=T.attrHandle[t.toLowerCase()],r=n&&J.call(T.attrHandle,t.toLowerCase())?n(e,t,!_):void 0;return void 0!==r?r:w.attributes||!_?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(j=!w.detectDuplicates,D=!w.sortStable&&e.slice(0),e.sort(U),j){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return D=null,e},C=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=C(t);return n},T=t.selectors={cacheLength:50,createPseudo:r,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(we,Te),e[3]=(e[3]||e[4]||e[5]||"").replace(we,Te),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(we,Te).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:n?(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(se," ")+" ").indexOf(r)>-1:"|="===n?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,d,f,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!u&&!s;if(g){if(o){for(;m;){for(d=t;d=d[m];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(c=g[P]||(g[P]={}),l=c[e]||[],p=l[0]===W&&l[1],f=l[0]===W&&l[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(f=p=0)||h.pop();)if(1===d.nodeType&&++f&&d===t){c[e]=[W,p,f];break}}else if(y&&(l=(t[P]||(t[P]={}))[e])&&l[0]===W)f=l[1];else for(;(d=++p&&d&&d[m]||(f=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++f||(y&&((d[P]||(d[P]={}))[e]=[W,f]),d!==t)););return f-=i,f===r||f%r===0&&f/r>=0}}},PSEUDO:function(e,n){var i,o=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[P]?o(n):o.length>1?(i=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=ee(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(ue,"$1"));return i[P]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(we,Te),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:r(function(e){return pe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(we,Te).toLowerCase(),function(t){var n;do if(n=_?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===q},focus:function(e){return e===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return ge.test(e.nodeName)},input:function(e){return me.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[0>n?n+t:n]}),even:l(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=0>n?n+t:n;++r2&&"ID"===(a=o[0]).type&&w.getById&&9===t.nodeType&&_&&T.relative[o[1].type]){if(t=(T.find.ID(a.matches[0].replace(we,Te),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=he.needsContext.test(e)?0:o.length;i--&&(a=o[i],!T.relative[s=a.type]);)if((u=T.find[s])&&(r=u(a.matches[0].replace(we,Te),be.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&f(o),!e)return K.apply(n,r),n;break}}return(l||k(e,d))(r,t,!_,n,be.test(e)&&c(t.parentNode)||t),n},w.sortStable=P.split("").sort(U).join("")===P,w.detectDuplicates=!!j,L(),w.sortDetached=i(function(e){return 1&e.compareDocumentPosition(H.createElement("div"))}),i(function(e){return e.innerHTML="
    ","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&i(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);ie.find=le,ie.expr=le.selectors,ie.expr[":"]=ie.expr.pseudos,ie.unique=le.uniqueSort,ie.text=le.getText,ie.isXMLDoc=le.isXML,ie.contains=le.contains;var ce=ie.expr.match.needsContext,de=/^<(\\w+)\\s*\\/?>(?:<\\/\\1>|)$/,fe=/^.[^:#\\[\\.,]*$/;ie.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ie.find.matchesSelector(r,e)?[r]:[]:ie.find.matches(e,ie.grep(t,function(e){return 1===e.nodeType}))},ie.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(ie(e).filter(function(){for(t=0;i>t;t++)if(ie.contains(r[t],this))return!0}));for(t=0;i>t;t++)ie.find(e,r[t],n);return n=this.pushStack(i>1?ie.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&ce.test(e)?ie(e):e||[],!1).length}});var pe,he=e.document,me=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]*))$/,ge=ie.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:me.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||pe).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof ie?t[0]:t,ie.merge(this,ie.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:he,!0)),de.test(n[1])&&ie.isPlainObject(t))for(n in t)ie.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if(r=he.getElementById(n[2]),r&&r.parentNode){if(r.id!==n[2])return pe.find(e);this.length=1,this[0]=r}return this.context=he,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):ie.isFunction(e)?"undefined"!=typeof pe.ready?pe.ready(e):e(ie):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),ie.makeArray(e,this))};ge.prototype=ie.fn,pe=ie(he);var ve=/^(?:parents|prev(?:Until|All))/,ye={children:!0,contents:!0,next:!0,prev:!0};ie.extend({dir:function(e,t,n){for(var r=[],i=e[t];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!ie(i).is(n));)1===i.nodeType&&r.push(i),i=i[t];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),ie.fn.extend({has:function(e){var t,n=ie(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(ie.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=ce.test(e)||"string"!=typeof e?ie(e,t||this.context):0;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&ie.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?ie.unique(o):o)},index:function(e){return e?"string"==typeof e?ie.inArray(this[0],ie(e)):ie.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ie.unique(ie.merge(this.get(),ie(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ie.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ie.dir(e,"parentNode")},parentsUntil:function(e,t,n){return ie.dir(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return ie.dir(e,"nextSibling")},prevAll:function(e){return ie.dir(e,"previousSibling")},nextUntil:function(e,t,n){return ie.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return ie.dir(e,"previousSibling",n)},siblings:function(e){return ie.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return ie.sibling(e.firstChild)},contents:function(e){return ie.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:ie.merge([],e.childNodes)}},function(e,t){ie.fn[e]=function(n,r){var i=ie.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ie.filter(r,i)),this.length>1&&(ye[e]||(i=ie.unique(i)),ve.test(e)&&(i=i.reverse())),this.pushStack(i)}});var be=/\\S+/g,xe={};ie.Callbacks=function(e){e="string"==typeof e?xe[e]||o(e):ie.extend({},e);var t,n,r,i,a,s,u=[],l=!e.once&&[],c=function(o){for(n=e.memory&&o,r=!0,a=s||0,s=0,i=u.length,t=!0;u&&i>a;a++)if(u[a].apply(o[0],o[1])===!1&&e.stopOnFalse){n=!1;break}t=!1,u&&(l?l.length&&c(l.shift()):n?u=[]:d.disable())},d={add:function(){if(u){var r=u.length;!function o(t){ie.each(t,function(t,n){var r=ie.type(n);"function"===r?e.unique&&d.has(n)||u.push(n):n&&n.length&&"string"!==r&&o(n)})}(arguments),t?i=u.length:n&&(s=r,c(n))}return this},remove:function(){return u&&ie.each(arguments,function(e,n){for(var r;(r=ie.inArray(n,u,r))>-1;)u.splice(r,1),t&&(i>=r&&i--,a>=r&&a--)}),this},has:function(e){return e?ie.inArray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],i=0,this},disable:function(){return u=l=n=void 0,this},disabled:function(){return!u},lock:function(){return l=void 0,n||d.disable(),this},locked:function(){return!l},fireWith:function(e,n){return!u||r&&!l||(n=n||[],n=[e,n.slice?n.slice():n],t?l.push(n):c(n)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d},ie.extend({Deferred:function(e){var t=[["resolve","done",ie.Callbacks("once memory"),"resolved"],["reject","fail",ie.Callbacks("once memory"),"rejected"],["notify","progress",ie.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ie.Deferred(function(n){ie.each(t,function(t,o){var a=ie.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&ie.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?ie.extend(e,r):r}},i={};return r.pipe=r.then,ie.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=Y.call(arguments),a=o.length,s=1!==a||e&&ie.isFunction(e.promise)?a:0,u=1===s?e:ie.Deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?Y.call(arguments):i,r===t?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);a>i;i++)o[i]&&ie.isFunction(o[i].promise)?o[i].promise().done(l(i,r,o)).fail(u.reject).progress(l(i,n,t)):--s;return s||u.resolveWith(r,o),u.promise()}});var we;ie.fn.ready=function(e){return ie.ready.promise().done(e),this},ie.extend({isReady:!1,readyWait:1,holdReady:function(e){e?ie.readyWait++:ie.ready(!0)},ready:function(e){if(e===!0?!--ie.readyWait:!ie.isReady){if(!he.body)return setTimeout(ie.ready);ie.isReady=!0,e!==!0&&--ie.readyWait>0||(we.resolveWith(he,[ie]),ie.fn.triggerHandler&&(ie(he).triggerHandler("ready"),ie(he).off("ready")))}}}),ie.ready.promise=function(t){if(!we)if(we=ie.Deferred(),"complete"===he.readyState)setTimeout(ie.ready);else if(he.addEventListener)he.addEventListener("DOMContentLoaded",s,!1),e.addEventListener("load",s,!1);else{he.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);var n=!1;try{n=null==e.frameElement&&he.documentElement}catch(r){}n&&n.doScroll&&!function i(){if(!ie.isReady){try{n.doScroll("left")}catch(e){return setTimeout(i,50)}a(),ie.ready()}}()}return we.promise(t)};var Te,Ce="undefined";for(Te in ie(ne))break;ne.ownLast="0"!==Te,ne.inlineBlockNeedsLayout=!1,ie(function(){var e,t,n,r;n=he.getElementsByTagName("body")[0],n&&n.style&&(t=he.createElement("div"),r=he.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==Ce&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ne.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))}),function(){var e=he.createElement("div");if(null==ne.deleteExpando){ne.deleteExpando=!0;try{delete e.test}catch(t){ne.deleteExpando=!1}}e=null}(),ie.acceptData=function(e){var t=ie.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return 1!==n&&9!==n?!1:!t||t!==!0&&e.getAttribute("classid")===t};var Ne=/^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,Ee=/([A-Z])/g;ie.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?ie.cache[e[ie.expando]]:e[ie.expando],!!e&&!l(e)},data:function(e,t,n){return c(e,t,n)},removeData:function(e,t){return d(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removeData:function(e,t){return d(e,t,!0)}}),ie.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=ie.data(o),1===o.nodeType&&!ie._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=ie.camelCase(r.slice(5)),u(o,r,i[r])));ie._data(o,"parsedAttrs",!0)}return i}return"object"==typeof e?this.each(function(){ie.data(this,e)}):arguments.length>1?this.each(function(){ie.data(this,e,t)}):o?u(o,e,ie.data(o,e)):void 0},removeData:function(e){return this.each(function(){ie.removeData(this,e)})}}),ie.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=ie._data(e,t),n&&(!r||ie.isArray(n)?r=ie._data(e,t,ie.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=ie.queue(e,t),r=n.length,i=n.shift(),o=ie._queueHooks(e,t),a=function(){ie.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ie._data(e,n)||ie._data(e,n,{empty:ie.Callbacks("once memory").add(function(){ie._removeData(e,t+"queue"),ie._removeData(e,n)})})}}),ie.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.lengths;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},je=/^(?:checkbox|radio)$/i;!function(){var e=he.createElement("input"),t=he.createElement("div"),n=he.createDocumentFragment();if(t.innerHTML="
    a",ne.leadingWhitespace=3===t.firstChild.nodeType,ne.tbody=!t.getElementsByTagName("tbody").length,ne.htmlSerialize=!!t.getElementsByTagName("link").length,ne.html5Clone="<:nav>"!==he.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,n.appendChild(e),ne.appendChecked=e.checked,t.innerHTML="",ne.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML="",ne.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,ne.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){ne.noCloneEvent=!1}),t.cloneNode(!0).click()),null==ne.deleteExpando){ne.deleteExpando=!0;try{delete t.test}catch(r){ne.deleteExpando=!1}}}(),function(){var t,n,r=he.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(ne[t+"Bubbles"]=n in e)||(r.setAttribute(n,"t"),ne[t+"Bubbles"]=r.attributes[n].expando===!1);r=null}();var Le=/^(?:input|select|textarea)$/i,He=/^key/,qe=/^(?:mouse|pointer|contextmenu)|click/,_e=/^(?:focusinfocus|focusoutblur)$/,Me=/^([^.]*)(?:\\.(.+)|)$/;ie.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,d,f,p,h,m,g=ie._data(e);if(g){for(n.handler&&(u=n,n=u.handler,i=u.selector),n.guid||(n.guid=ie.guid++),(a=g.events)||(a=g.events={}),(c=g.handle)||(c=g.handle=function(e){return typeof ie===Ce||e&&ie.event.triggered===e.type?void 0:ie.event.dispatch.apply(c.elem,arguments)},c.elem=e),t=(t||"").match(be)||[""],s=t.length;s--;)o=Me.exec(t[s])||[],p=m=o[1],h=(o[2]||"").split(".").sort(),p&&(l=ie.event.special[p]||{},p=(i?l.delegateType:l.bindType)||p,l=ie.event.special[p]||{},d=ie.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ie.expr.match.needsContext.test(i),namespace:h.join(".")},u),(f=a[p])||(f=a[p]=[],f.delegateCount=0,l.setup&&l.setup.call(e,r,h,c)!==!1||(e.addEventListener?e.addEventListener(p,c,!1):e.attachEvent&&e.attachEvent("on"+p,c))),l.add&&(l.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,d):f.push(d),ie.event.global[p]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,d,f,p,h,m,g=ie.hasData(e)&&ie._data(e);if(g&&(c=g.events)){for(t=(t||"").match(be)||[""],l=t.length;l--;)if(s=Me.exec(t[l])||[],p=m=s[1],h=(s[2]||"").split(".").sort(),p){for(d=ie.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,f=c[p]||[],s=s[2]&&new RegExp("(^|\\\\.)"+h.join("\\\\.(?:.*\\\\.|)")+"(\\\\.|$)"),u=o=f.length;o--;)a=f[o],!i&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,d.remove&&d.remove.call(e,a));u&&!f.length&&(d.teardown&&d.teardown.call(e,h,g.handle)!==!1||ie.removeEvent(e,p,g.handle),delete c[p])}else for(p in c)ie.event.remove(e,p+t[l],n,r,!0);ie.isEmptyObject(c)&&(delete g.handle,ie._removeData(e,"events"))}},trigger:function(t,n,r,i){var o,a,s,u,l,c,d,f=[r||he],p=te.call(t,"type")?t.type:t,h=te.call(t,"namespace")?t.namespace.split("."):[];if(s=c=r=r||he,3!==r.nodeType&&8!==r.nodeType&&!_e.test(p+ie.event.triggered)&&(p.indexOf(".")>=0&&(h=p.split("."),p=h.shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[ie.expando]?t:new ie.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\\\.)"+h.join("\\\\.(?:.*\\\\.|)")+"(\\\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:ie.makeArray(n,[t]),l=ie.event.special[p]||{},i||!l.trigger||l.trigger.apply(r,n)!==!1)){if(!i&&!l.noBubble&&!ie.isWindow(r)){for(u=l.delegateType||p,_e.test(u+p)||(s=s.parentNode);s;s=s.parentNode)f.push(s),c=s;c===(r.ownerDocument||he)&&f.push(c.defaultView||c.parentWindow||e)}for(d=0;(s=f[d++])&&!t.isPropagationStopped();)t.type=d>1?u:l.bindType||p,o=(ie._data(s,"events")||{})[t.type]&&ie._data(s,"handle"),o&&o.apply(s,n),o=a&&s[a],o&&o.apply&&ie.acceptData(s)&&(t.result=o.apply(s,n),t.result===!1&&t.preventDefault());if(t.type=p,!i&&!t.isDefaultPrevented()&&(!l._default||l._default.apply(f.pop(),n)===!1)&&ie.acceptData(r)&&a&&r[p]&&!ie.isWindow(r)){c=r[a],c&&(r[a]=null),ie.event.triggered=p;try{r[p]()}catch(m){}ie.event.triggered=void 0,c&&(r[a]=c)}return t.result}},dispatch:function(e){e=ie.event.fix(e);var t,n,r,i,o,a=[],s=Y.call(arguments),u=(ie._data(this,"events")||{})[e.type]||[],l=ie.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(a=ie.event.handlers.call(this,e,u),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,o=0;(r=i.handlers[o++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(r.namespace))&&(e.handleObj=r,e.data=r.data,n=((ie.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,s),void 0!==n&&(e.result=n)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(i=[],o=0;s>o;o++)r=t[o],n=r.selector+" ",void 0===i[n]&&(i[n]=r.needsContext?ie(n,this).index(u)>=0:ie.find(n,this,null,[u]).length),i[n]&&i.push(r);i.length&&a.push({elem:u,handlers:i})}return s]","i"),Pe=/^\\s+/,Re=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:]+)[^>]*)\\/>/gi,We=/<([\\w:]+)/,$e=/\\s*$/g,Ye={option:[1,""],legend:[1,"
    ","
    "],area:[1,"",""],param:[1,"",""],thead:[1,"","
    "],tr:[2,"","
    "],col:[2,"","
    "],td:[3,"","
    "],_default:ne.htmlSerialize?[0,"",""]:[1,"X
    ","
    "]},Ge=m(he),Qe=Ge.appendChild(he.createElement("div"));Ye.optgroup=Ye.option,Ye.tbody=Ye.tfoot=Ye.colgroup=Ye.caption=Ye.thead,Ye.th=Ye.td,ie.extend({clone:function(e,t,n){var r,i,o,a,s,u=ie.contains(e.ownerDocument,e);if(ne.html5Clone||ie.isXMLDoc(e)||!Be.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Qe.innerHTML=e.outerHTML,Qe.removeChild(o=Qe.firstChild)),!(ne.noCloneEvent&&ne.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ie.isXMLDoc(e)))for(r=g(o),s=g(e),a=0;null!=(i=s[a]);++a)r[a]&&C(i,r[a]);if(t)if(n)for(s=s||g(e),r=r||g(o),a=0;null!=(i=s[a]);a++)T(i,r[a]);else T(e,o);return r=g(o,"script"),r.length>0&&w(r,!u&&g(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){for(var i,o,a,s,u,l,c,d=e.length,f=m(t),p=[],h=0;d>h;h++)if(o=e[h],o||0===o)if("object"===ie.type(o))ie.merge(p,o.nodeType?[o]:o);else if(ze.test(o)){for(s=s||f.appendChild(t.createElement("div")),u=(We.exec(o)||["",""])[1].toLowerCase(),c=Ye[u]||Ye._default,s.innerHTML=c[1]+o.replace(Re,"<$1>")+c[2],i=c[0];i--;)s=s.lastChild;if(!ne.leadingWhitespace&&Pe.test(o)&&p.push(t.createTextNode(Pe.exec(o)[0])),!ne.tbody)for(o="table"!==u||$e.test(o)?""!==c[1]||$e.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;i--;)ie.nodeName(l=o.childNodes[i],"tbody")&&!l.childNodes.length&&o.removeChild(l);for(ie.merge(p,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=f.lastChild}else p.push(t.createTextNode(o));for(s&&f.removeChild(s),ne.appendChecked||ie.grep(g(p,"input"),v),h=0;o=p[h++];)if((!r||-1===ie.inArray(o,r))&&(a=ie.contains(o.ownerDocument,o),s=g(f.appendChild(o),"script"),a&&w(s),n))for(i=0;o=s[i++];)Ue.test(o.type||"")&&n.push(o);return s=null,f},cleanData:function(e,t){for(var n,r,i,o,a=0,s=ie.expando,u=ie.cache,l=ne.deleteExpando,c=ie.event.special;null!=(n=e[a]);a++)if((t||ie.acceptData(n))&&(i=n[s],o=i&&u[i])){if(o.events)for(r in o.events)c[r]?ie.event.remove(n,r):ie.removeEvent(n,r,o.handle);u[i]&&(delete u[i],l?delete n[s]:typeof n.removeAttribute!==Ce?n.removeAttribute(s):n[s]=null,J.push(i))}}}),ie.fn.extend({text:function(e){return De(this,function(e){return void 0===e?ie.text(this):this.empty().append((this[0]&&this[0].ownerDocument||he).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=y(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=y(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?ie.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||ie.cleanData(g(n)),n.parentNode&&(t&&ie.contains(n.ownerDocument,n)&&w(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&ie.cleanData(g(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&ie.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return ie.clone(this,e,t)})},html:function(e){return De(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Oe,""):void 0;if("string"==typeof e&&!Ie.test(e)&&(ne.htmlSerialize||!Be.test(e))&&(ne.leadingWhitespace||!Pe.test(e))&&!Ye[(We.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Re,"<$1>");try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(ie.cleanData(g(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,ie.cleanData(g(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=G.apply([],e);var n,r,i,o,a,s,u=0,l=this.length,c=this,d=l-1,f=e[0],p=ie.isFunction(f);if(p||l>1&&"string"==typeof f&&!ne.checkClone&&Xe.test(f))return this.each(function(n){var r=c.eq(n);p&&(e[0]=f.call(this,n,r.html())),r.domManip(e,t)});if(l&&(s=ie.buildFragment(e,this[0].ownerDocument,!1,this),n=s.firstChild,1===s.childNodes.length&&(s=n),n)){for(o=ie.map(g(s,"script"),b),i=o.length;l>u;u++)r=s,u!==d&&(r=ie.clone(r,!0,!0),i&&ie.merge(o,g(r,"script"))),t.call(this[u],r,u);if(i)for(a=o[o.length-1].ownerDocument,ie.map(o,x),u=0;i>u;u++)r=o[u],Ue.test(r.type||"")&&!ie._data(r,"globalEval")&&ie.contains(a,r)&&(r.src?ie._evalUrl&&ie._evalUrl(r.src):ie.globalEval((r.text||r.textContent||r.innerHTML||"").replace(Je,"")));s=n=null}return this}}),ie.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ie.fn[e]=function(e){for(var n,r=0,i=[],o=ie(e),a=o.length-1;a>=r;r++)n=r===a?this:this.clone(!0),ie(o[r])[t](n),Q.apply(i,n.get());return this.pushStack(i)}});var Ke,Ze={};!function(){var e;ne.shrinkWrapBlocks=function(){if(null!=e)return e;e=!1;var t,n,r;return n=he.getElementsByTagName("body")[0],n&&n.style?(t=he.createElement("div"),r=he.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==Ce&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(he.createElement("div")).style.width="5px",e=3!==t.offsetWidth),n.removeChild(r),e):void 0}}();var et,tt,nt=/^margin/,rt=new RegExp("^("+ke+")(?!px)[a-z%]+$","i"),it=/^(top|right|bottom|left)$/;e.getComputedStyle?(et=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)},tt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||et(e),a=n?n.getPropertyValue(t)||n[t]:void 0,n&&(""!==a||ie.contains(e.ownerDocument,e)||(a=ie.style(e,t)),rt.test(a)&&nt.test(t)&&(r=s.width,i=s.minWidth,\no=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0===a?a:a+""}):he.documentElement.currentStyle&&(et=function(e){return e.currentStyle},tt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||et(e),a=n?n[t]:void 0,null==a&&s&&s[t]&&(a=s[t]),rt.test(a)&&!it.test(t)&&(r=s.left,i=e.runtimeStyle,o=i&&i.left,o&&(i.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"}),function(){function t(){var t,n,r,i;n=he.getElementsByTagName("body")[0],n&&n.style&&(t=he.createElement("div"),r=he.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=a=!1,u=!0,e.getComputedStyle&&(o="1%"!==(e.getComputedStyle(t,null)||{}).top,a="4px"===(e.getComputedStyle(t,null)||{width:"4px"}).width,i=t.appendChild(he.createElement("div")),i.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",u=!parseFloat((e.getComputedStyle(i,null)||{}).marginRight),t.removeChild(i)),t.innerHTML="
    t
    ",i=t.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",s=0===i[0].offsetHeight,s&&(i[0].style.display="",i[1].style.display="none",s=0===i[0].offsetHeight),n.removeChild(r))}var n,r,i,o,a,s,u;n=he.createElement("div"),n.innerHTML="
    a",i=n.getElementsByTagName("a")[0],r=i&&i.style,r&&(r.cssText="float:left;opacity:.5",ne.opacity="0.5"===r.opacity,ne.cssFloat=!!r.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",ne.clearCloneStyle="content-box"===n.style.backgroundClip,ne.boxSizing=""===r.boxSizing||""===r.MozBoxSizing||""===r.WebkitBoxSizing,ie.extend(ne,{reliableHiddenOffsets:function(){return null==s&&t(),s},boxSizingReliable:function(){return null==a&&t(),a},pixelPosition:function(){return null==o&&t(),o},reliableMarginRight:function(){return null==u&&t(),u}}))}(),ie.swap=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i};var ot=/alpha\\([^)]*\\)/i,at=/opacity\\s*=\\s*([^)]*)/,st=/^(none|table(?!-c[ea]).+)/,ut=new RegExp("^("+ke+")(.*)$","i"),lt=new RegExp("^([+-])=("+ke+")","i"),ct={position:"absolute",visibility:"hidden",display:"block"},dt={letterSpacing:"0",fontWeight:"400"},ft=["Webkit","O","Moz","ms"];ie.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=tt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":ne.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=ie.camelCase(t),u=e.style;if(t=ie.cssProps[s]||(ie.cssProps[s]=S(u,s)),a=ie.cssHooks[t]||ie.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];if(o=typeof n,"string"===o&&(i=lt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(ie.css(e,t)),o="number"),null!=n&&n===n&&("number"!==o||ie.cssNumber[s]||(n+="px"),ne.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,r)))))try{u[t]=n}catch(l){}}},css:function(e,t,n,r){var i,o,a,s=ie.camelCase(t);return t=ie.cssProps[s]||(ie.cssProps[s]=S(e.style,s)),a=ie.cssHooks[t]||ie.cssHooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=tt(e,t,r)),"normal"===o&&t in dt&&(o=dt[t]),""===n||n?(i=parseFloat(o),n===!0||ie.isNumeric(i)?i||0:o):o}}),ie.each(["height","width"],function(e,t){ie.cssHooks[t]={get:function(e,n,r){return n?st.test(ie.css(e,"display"))&&0===e.offsetWidth?ie.swap(e,ct,function(){return L(e,t,r)}):L(e,t,r):void 0},set:function(e,n,r){var i=r&&et(e);return D(e,n,r?j(e,t,r,ne.boxSizing&&"border-box"===ie.css(e,"boxSizing",!1,i),i):0)}}}),ne.opacity||(ie.cssHooks.opacity={get:function(e,t){return at.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=ie.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===ie.trim(o.replace(ot,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=ot.test(o)?o.replace(ot,i):o+" "+i)}}),ie.cssHooks.marginRight=k(ne.reliableMarginRight,function(e,t){return t?ie.swap(e,{display:"inline-block"},tt,[e,"marginRight"]):void 0}),ie.each({margin:"",padding:"",border:"Width"},function(e,t){ie.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+Se[r]+t]=o[r]||o[r-2]||o[0];return i}},nt.test(e)||(ie.cssHooks[e+t].set=D)}),ie.fn.extend({css:function(e,t){return De(this,function(e,t,n){var r,i,o={},a=0;if(ie.isArray(t)){for(r=et(e),i=t.length;i>a;a++)o[t[a]]=ie.css(e,t[a],!1,r);return o}return void 0!==n?ie.style(e,t,n):ie.css(e,t)},e,t,arguments.length>1)},show:function(){return A(this,!0)},hide:function(){return A(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ae(this)?ie(this).show():ie(this).hide()})}}),ie.Tween=H,H.prototype={constructor:H,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ie.cssNumber[n]?"":"px")},cur:function(){var e=H.propHooks[this.prop];return e&&e.get?e.get(this):H.propHooks._default.get(this)},run:function(e){var t,n=H.propHooks[this.prop];return this.options.duration?this.pos=t=ie.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=ie.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){ie.fx.step[e.prop]?ie.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[ie.cssProps[e.prop]]||ie.cssHooks[e.prop])?ie.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ie.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},ie.fx=H.prototype.init,ie.fx.step={};var pt,ht,mt=/^(?:toggle|show|hide)$/,gt=new RegExp("^(?:([+-])=|)("+ke+")([a-z%]*)$","i"),vt=/queueHooks$/,yt=[F],bt={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=gt.exec(t),o=i&&i[3]||(ie.cssNumber[e]?"":"px"),a=(ie.cssNumber[e]||"px"!==o&&+r)&>.exec(ie.css(n.elem,e)),s=1,u=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,ie.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--u)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};ie.Animation=ie.extend(B,{tweener:function(e,t){ie.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;i>r;r++)n=e[r],bt[n]=bt[n]||[],bt[n].unshift(t)},prefilter:function(e,t){t?yt.unshift(e):yt.push(e)}}),ie.speed=function(e,t,n){var r=e&&"object"==typeof e?ie.extend({},e):{complete:n||!n&&t||ie.isFunction(e)&&e,duration:e,easing:n&&t||t&&!ie.isFunction(t)&&t};return r.duration=ie.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in ie.fx.speeds?ie.fx.speeds[r.duration]:ie.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){ie.isFunction(r.old)&&r.old.call(this),r.queue&&ie.dequeue(this,r.queue)},r},ie.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=ie.isEmptyObject(e),o=ie.speed(t,n,r),a=function(){var t=B(this,ie.extend({},e),o);(i||ie._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=ie.timers,a=ie._data(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&vt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));(t||!n)&&ie.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=ie._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=ie.timers,a=r?r.length:0;for(n.finish=!0,ie.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),ie.each(["toggle","show","hide"],function(e,t){var n=ie.fn[t];ie.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(_(t,!0),e,r,i)}}),ie.each({slideDown:_("show"),slideUp:_("hide"),slideToggle:_("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ie.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),ie.timers=[],ie.fx.tick=function(){var e,t=ie.timers,n=0;for(pt=ie.now();n
    a",r=t.getElementsByTagName("a")[0],n=he.createElement("select"),i=n.appendChild(he.createElement("option")),e=t.getElementsByTagName("input")[0],r.style.cssText="top:1px",ne.getSetAttribute="t"!==t.className,ne.style=/top/.test(r.getAttribute("style")),ne.hrefNormalized="/a"===r.getAttribute("href"),ne.checkOn=!!e.value,ne.optSelected=i.selected,ne.enctype=!!he.createElement("form").enctype,n.disabled=!0,ne.optDisabled=!i.disabled,e=he.createElement("input"),e.setAttribute("value",""),ne.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),ne.radioValue="t"===e.value}();var xt=/\\r/g;ie.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=ie.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,ie(this).val()):e,null==i?i="":"number"==typeof i?i+="":ie.isArray(i)&&(i=ie.map(i,function(e){return null==e?"":e+""})),t=ie.valHooks[this.type]||ie.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=ie.valHooks[i.type]||ie.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(xt,""):null==n?"":n)}}}),ie.extend({valHooks:{option:{get:function(e){var t=ie.find.attr(e,"value");return null!=t?t:ie.trim(ie.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,u=0>i?s:o?i:0;s>u;u++)if(n=r[u],(n.selected||u===i)&&(ne.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ie.nodeName(n.parentNode,"optgroup"))){if(t=ie(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=ie.makeArray(t),a=i.length;a--;)if(r=i[a],ie.inArray(ie.valHooks.option.get(r),o)>=0)try{r.selected=n=!0}catch(s){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),ie.each(["radio","checkbox"],function(){ie.valHooks[this]={set:function(e,t){return ie.isArray(t)?e.checked=ie.inArray(ie(e).val(),t)>=0:void 0}},ne.checkOn||(ie.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var wt,Tt,Ct=ie.expr.attrHandle,Nt=/^(?:checked|selected)$/i,Et=ne.getSetAttribute,kt=ne.input;ie.fn.extend({attr:function(e,t){return De(this,ie.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ie.removeAttr(this,e)})}}),ie.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===Ce?ie.prop(e,t,n):(1===o&&ie.isXMLDoc(e)||(t=t.toLowerCase(),r=ie.attrHooks[t]||(ie.expr.match.bool.test(t)?Tt:wt)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=ie.find.attr(e,t),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void ie.removeAttr(e,t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(be);if(o&&1===e.nodeType)for(;n=o[i++];)r=ie.propFix[n]||n,ie.expr.match.bool.test(n)?kt&&Et||!Nt.test(n)?e[r]=!1:e[ie.camelCase("default-"+n)]=e[r]=!1:ie.attr(e,n,""),e.removeAttribute(Et?n:r)},attrHooks:{type:{set:function(e,t){if(!ne.radioValue&&"radio"===t&&ie.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),Tt={set:function(e,t,n){return t===!1?ie.removeAttr(e,n):kt&&Et||!Nt.test(n)?e.setAttribute(!Et&&ie.propFix[n]||n,n):e[ie.camelCase("default-"+n)]=e[n]=!0,n}},ie.each(ie.expr.match.bool.source.match(/\\w+/g),function(e,t){var n=Ct[t]||ie.find.attr;Ct[t]=kt&&Et||!Nt.test(t)?function(e,t,r){var i,o;return r||(o=Ct[t],Ct[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,Ct[t]=o),i}:function(e,t,n){return n?void 0:e[ie.camelCase("default-"+t)]?t.toLowerCase():null}}),kt&&Et||(ie.attrHooks.value={set:function(e,t,n){return ie.nodeName(e,"input")?void(e.defaultValue=t):wt&&wt.set(e,t,n)}}),Et||(wt={set:function(e,t,n){var r=e.getAttributeNode(n);return r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n)?t:void 0}},Ct.id=Ct.name=Ct.coords=function(e,t,n){var r;return n?void 0:(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},ie.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:void 0},set:wt.set},ie.attrHooks.contenteditable={set:function(e,t,n){wt.set(e,""===t?!1:t,n)}},ie.each(["width","height"],function(e,t){ie.attrHooks[t]={set:function(e,n){return""===n?(e.setAttribute(t,"auto"),n):void 0}}})),ne.style||(ie.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var St=/^(?:input|select|textarea|button|object)$/i,At=/^(?:a|area)$/i;ie.fn.extend({prop:function(e,t){return De(this,ie.prop,e,t,arguments.length>1)},removeProp:function(e){return e=ie.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),ie.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,i,o,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return o=1!==a||!ie.isXMLDoc(e),o&&(t=ie.propFix[t]||t,i=ie.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ie.find.attr(e,"tabindex");return t?parseInt(t,10):St.test(e.nodeName)||At.test(e.nodeName)&&e.href?0:-1}}}}),ne.hrefNormalized||ie.each(["href","src"],function(e,t){ie.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),ne.optSelected||(ie.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),ie.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ie.propFix[this.toLowerCase()]=this}),ne.enctype||(ie.propFix.enctype="encoding");var Dt=/[\\t\\r\\n\\f]/g;ie.fn.extend({addClass:function(e){var t,n,r,i,o,a,s=0,u=this.length,l="string"==typeof e&&e;if(ie.isFunction(e))return this.each(function(t){ie(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(be)||[];u>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Dt," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=ie.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,r,i,o,a,s=0,u=this.length,l=0===arguments.length||"string"==typeof e&&e;if(ie.isFunction(e))return this.each(function(t){ie(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(be)||[];u>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Dt," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=e?ie.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):ie.isFunction(e)?this.each(function(n){ie(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var t,r=0,i=ie(this),o=e.match(be)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else(n===Ce||"boolean"===n)&&(this.className&&ie._data(this,"__className__",this.className),this.className=this.className||e===!1?"":ie._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Dt," ").indexOf(t)>=0)return!0;return!1}}),ie.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){ie.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ie.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var jt=ie.now(),Lt=/\\?/,Ht=/(,)|(\\[|{)|(}|])|"(?:[^"\\\\\\r\\n]|\\\\["\\\\\\/bfnrt]|\\\\u[\\da-fA-F]{4})*"\\s*:?|true|false|null|-?(?!0\\d)\\d+(?:\\.\\d+|)(?:[eE][+-]?\\d+|)/g;ie.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,r=null,i=ie.trim(t+"");return i&&!ie.trim(i.replace(Ht,function(e,t,i,o){return n&&t&&(r=0),0===r?e:(n=i||t,r+=!o-!i,"")}))?Function("return "+i)():ie.error("Invalid JSON: "+t)},ie.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(r=new DOMParser,n=r.parseFromString(t,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(t))}catch(i){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||ie.error("Invalid XML: "+t),n};var qt,_t,Mt=/#.*$/,Ft=/([?&])_=[^&]*/,Ot=/^(.*?):[ \\t]*([^\\r\\n]*)\\r?$/gm,Bt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Pt=/^(?:GET|HEAD)$/,Rt=/^\\/\\//,Wt=/^([\\w.+-]+:)(?:\\/\\/(?:[^\\/?#]*@|)([^\\/?#:]*)(?::(\\d+)|)|)/,$t={},zt={},It="*/".concat("*");try{_t=location.href}catch(Xt){_t=he.createElement("a"),_t.href="",_t=_t.href}qt=Wt.exec(_t.toLowerCase())||[],ie.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_t,type:"GET",isLocal:Bt.test(qt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ie.parseJSON,"text xml":ie.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?W(W(e,ie.ajaxSettings),t):W(ie.ajaxSettings,e)},ajaxPrefilter:P($t),ajaxTransport:P(zt),ajax:function(e,t){function n(e,t,n,r){var i,c,v,y,x,T=t;2!==b&&(b=2,s&&clearTimeout(s),l=void 0,a=r||"",w.readyState=e>0?4:0,i=e>=200&&300>e||304===e,n&&(y=$(d,w,n)),y=z(d,y,w,i),i?(d.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(ie.lastModified[o]=x),x=w.getResponseHeader("etag"),x&&(ie.etag[o]=x)),204===e||"HEAD"===d.type?T="nocontent":304===e?T="notmodified":(T=y.state,c=y.data,v=y.error,i=!v)):(v=T,(e||!T)&&(T="error",0>e&&(e=0))),w.status=e,w.statusText=(t||T)+"",i?h.resolveWith(f,[c,T,w]):h.rejectWith(f,[w,T,v]),w.statusCode(g),g=void 0,u&&p.trigger(i?"ajaxSuccess":"ajaxError",[w,d,i?c:v]),m.fireWith(f,[w,T]),u&&(p.trigger("ajaxComplete",[w,d]),--ie.active||ie.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,u,l,c,d=ie.ajaxSetup({},t),f=d.context||d,p=d.context&&(f.nodeType||f.jquery)?ie(f):ie.event,h=ie.Deferred(),m=ie.Callbacks("once memory"),g=d.statusCode||{},v={},y={},b=0,x="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c)for(c={};t=Ot.exec(a);)c[t[1].toLowerCase()]=t[2];t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,v[e]=t),this},overrideMimeType:function(e){return b||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)g[t]=[g[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||x;return l&&l.abort(t),n(0,t),this}};if(h.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,d.url=((e||d.url||_t)+"").replace(Mt,"").replace(Rt,qt[1]+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=ie.trim(d.dataType||"*").toLowerCase().match(be)||[""],null==d.crossDomain&&(r=Wt.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]===qt[1]&&r[2]===qt[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(qt[3]||("http:"===qt[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=ie.param(d.data,d.traditional)),R($t,d,t,w),2===b)return w;u=ie.event&&d.global,u&&0===ie.active++&&ie.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Pt.test(d.type),o=d.url,d.hasContent||(d.data&&(o=d.url+=(Lt.test(o)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=Ft.test(o)?o.replace(Ft,"$1_="+jt++):o+(Lt.test(o)?"&":"?")+"_="+jt++)),d.ifModified&&(ie.lastModified[o]&&w.setRequestHeader("If-Modified-Since",ie.lastModified[o]),ie.etag[o]&&w.setRequestHeader("If-None-Match",ie.etag[o])),(d.data&&d.hasContent&&d.contentType!==!1||t.contentType)&&w.setRequestHeader("Content-Type",d.contentType),w.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+It+"; q=0.01":""):d.accepts["*"]);for(i in d.headers)w.setRequestHeader(i,d.headers[i]);if(d.beforeSend&&(d.beforeSend.call(f,w,d)===!1||2===b))return w.abort();x="abort";for(i in{success:1,error:1,complete:1})w[i](d[i]);if(l=R(zt,d,t,w)){w.readyState=1,u&&p.trigger("ajaxSend",[w,d]),d.async&&d.timeout>0&&(s=setTimeout(function(){w.abort("timeout")},d.timeout));try{b=1,l.send(v,n)}catch(T){if(!(2>b))throw T;n(-1,T)}}else n(-1,"No Transport");return w},getJSON:function(e,t,n){return ie.get(e,t,n,"json")},getScript:function(e,t){return ie.get(e,void 0,t,"script")}}),ie.each(["get","post"],function(e,t){ie[t]=function(e,n,r,i){return ie.isFunction(n)&&(i=i||r,r=n,n=void 0),ie.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),ie._evalUrl=function(e){return ie.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},ie.fn.extend({wrapAll:function(e){if(ie.isFunction(e))return this.each(function(t){ie(this).wrapAll(e.call(this,t))});if(this[0]){var t=ie(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return ie.isFunction(e)?this.each(function(t){ie(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ie(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ie.isFunction(e);return this.each(function(n){ie(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){ie.nodeName(this,"body")||ie(this).replaceWith(this.childNodes)}).end()}}),ie.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!ne.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||ie.css(e,"display"))},ie.expr.filters.visible=function(e){return!ie.expr.filters.hidden(e)};var Ut=/%20/g,Vt=/\\[\\]$/,Jt=/\\r?\\n/g,Yt=/^(?:submit|button|image|reset|file)$/i,Gt=/^(?:input|select|textarea|keygen)/i;ie.param=function(e,t){var n,r=[],i=function(e,t){t=ie.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=ie.ajaxSettings&&ie.ajaxSettings.traditional),ie.isArray(e)||e.jquery&&!ie.isPlainObject(e))ie.each(e,function(){i(this.name,this.value)});else for(n in e)I(n,e[n],t,i);return r.join("&").replace(Ut,"+")},ie.fn.extend({serialize:function(){return ie.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ie.prop(this,"elements");return e?ie.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ie(this).is(":disabled")&&Gt.test(this.nodeName)&&!Yt.test(e)&&(this.checked||!je.test(e))}).map(function(e,t){var n=ie(this).val();return null==n?null:ie.isArray(n)?ie.map(n,function(e){return{name:t.name,value:e.replace(Jt,"\\r\\n")}}):{name:t.name,value:n.replace(Jt,"\\r\\n")}}).get()}}),ie.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&X()||U()}:X;var Qt=0,Kt={},Zt=ie.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in Kt)Kt[e](void 0,!0)}),ne.cors=!!Zt&&"withCredentials"in Zt,Zt=ne.ajax=!!Zt,Zt&&ie.ajaxTransport(function(e){if(!e.crossDomain||ne.cors){var t;return{send:function(n,r){var i,o=e.xhr(),a=++Qt;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");o.send(e.hasContent&&e.data||null),t=function(n,i){var s,u,l;if(t&&(i||4===o.readyState))if(delete Kt[a],t=void 0,o.onreadystatechange=ie.noop,i)4!==o.readyState&&o.abort();else{l={},s=o.status,"string"==typeof o.responseText&&(l.text=o.responseText);try{u=o.statusText}catch(c){u=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=l.text?200:404}l&&r(s,u,l,o.getAllResponseHeaders())},e.async?4===o.readyState?setTimeout(t):o.onreadystatechange=Kt[a]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),ie.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return ie.globalEval(e),e}}}),ie.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),ie.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=he.head||ie("head")[0]||he.documentElement;return{send:function(r,i){t=he.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var en=[],tn=/(=)\\?(?=&|$)|\\?\\?/;ie.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=en.pop()||ie.expando+"_"+jt++;return this[e]=!0,e}}),ie.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=t.jsonp!==!1&&(tn.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&tn.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(i=t.jsonpCallback=ie.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(tn,"$1"+i):t.jsonp!==!1&&(t.url+=(Lt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||ie.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,en.push(i)),a&&ie.isFunction(o)&&o(a[0]),a=o=void 0}),"script"):void 0}),ie.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||he;var r=de.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=ie.buildFragment([e],t,i),i&&i.length&&ie(i).remove(),ie.merge([],r.childNodes))};var nn=ie.fn.load;ie.fn.load=function(e,t,n){if("string"!=typeof e&&nn)return nn.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>=0&&(r=ie.trim(e.slice(s,e.length)),e=e.slice(0,s)),ie.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&ie.ajax({url:e,type:o,dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?ie("
    ").append(ie.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){a.each(n,i||[e.responseText,t,e])}),this},ie.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ie.fn[t]=function(e){return this.on(t,e)}}),ie.expr.filters.animated=function(e){return ie.grep(ie.timers,function(t){return e===t.elem}).length};var rn=e.document.documentElement;ie.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l,c=ie.css(e,"position"),d=ie(e),f={};"static"===c&&(e.style.position="relative"),s=d.offset(),o=ie.css(e,"top"),u=ie.css(e,"left"),l=("absolute"===c||"fixed"===c)&&ie.inArray("auto",[o,u])>-1,l?(r=d.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),ie.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):d.css(f)}},ie.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){ie.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;if(o)return t=o.documentElement,ie.contains(t,i)?(typeof i.getBoundingClientRect!==Ce&&(r=i.getBoundingClientRect()),n=V(o),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===ie.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ie.nodeName(e[0],"html")||(n=e.offset()),n.top+=ie.css(e[0],"borderTopWidth",!0),n.left+=ie.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-ie.css(r,"marginTop",!0),left:t.left-n.left-ie.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||rn;e&&!ie.nodeName(e,"html")&&"static"===ie.css(e,"position");)e=e.offsetParent;return e||rn})}}),ie.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);ie.fn[e]=function(r){return De(this,function(e,r,i){var o=V(e);return void 0===i?o?t in o?o[t]:o.document.documentElement[r]:e[r]:void(o?o.scrollTo(n?ie(o).scrollLeft():i,n?i:ie(o).scrollTop()):e[r]=i)},e,r,arguments.length,null)}}),ie.each(["top","left"],function(e,t){ie.cssHooks[t]=k(ne.pixelPosition,function(e,n){return n?(n=tt(e,t),rt.test(n)?ie(e).position()[t]+"px":n):void 0})}),ie.each({Height:"height",Width:"width"},function(e,t){ie.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){ie.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");\nreturn De(this,function(t,n,r){var i;return ie.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?ie.css(t,n,a):ie.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),ie.fn.size=function(){return this.length},ie.fn.andSelf=ie.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ie});var on=e.jQuery,an=e.$;return ie.noConflict=function(t){return e.$===ie&&(e.$=an),t&&e.jQuery===ie&&(e.jQuery=on),ie},typeof t===Ce&&(e.jQuery=e.$=ie),ie});'; +return t.global.define=void 0,t.global.module=void 0,t.global.exports=void 0,t.__exec({source:r,address:e.uri}),t.global.require=i,t.global.define=n,t.get("@@global-helpers").retrieveGlobal(e.id,"jQuery")}); +/*can/event/event*/ +define("can/event/event",["can/util/can"],function(t){return t.addEvent=function(t,n){var e=this.__bindEvents||(this.__bindEvents={}),i=e[t]||(e[t]=[]);return i.push({handler:n,name:t}),this},t.listenTo=function(n,e,i){var r=this.__listenToEvents;r||(r=this.__listenToEvents={});var s=t.cid(n),o=r[s];o||(o=r[s]={obj:n,events:{}});var a=o.events[e];a||(a=o.events[e]=[]),a.push(i),t.bind.call(n,e,i)},t.stopListening=function(n,e,i){var r=this.__listenToEvents,s=r,o=0;if(!r)return this;if(n){var a=t.cid(n);if((s={})[a]=r[a],!r[a])return this}for(var v in s){var l,h=s[v];n=r[v].obj,e?(l={})[e]=h.events[e]:l=h.events;for(var u in l){var d=l[u]||[];for(o=0;oo;o++)r[o].handler.apply(this,s);return t}},t.one=function(n,e){var i=function(){return t.unbind.call(this,n,i),e.apply(this,arguments)};return t.bind.call(this,n,i),this},t.event={on:function(){return 0===arguments.length&&t.Control&&this instanceof t.Control?t.Control.prototype.on.call(this):t.addEvent.apply(this,arguments)},off:function(){return 0===arguments.length&&t.Control&&this instanceof t.Control?t.Control.prototype.off.call(this):t.removeEvent.apply(this,arguments)},bind:t.addEvent,unbind:t.removeEvent,delegate:function(n,e,i){return t.addEvent.call(this,e,i)},undelegate:function(n,e,i){return t.removeEvent.call(this,e,i)},trigger:t.dispatch,one:t.one,addEvent:t.addEvent,removeEvent:t.removeEvent,listenTo:t.listenTo,stopListening:t.stopListening,dispatch:t.dispatch},t.event}); +/*can/util/inserted/inserted*/ +define("can/util/inserted/inserted",["can/util/can"],function(e){e.inserted=function(n){n=e.makeArray(n);for(var r,i,t=!1,a=e.$(document.contains?document:document.body),d=0;void 0!==(i=n[d]);d++){if(!t){if(!i.getElementsByTagName)continue;if(!e.has(a,i).length)return;t=!0}if(t&&i.getElementsByTagName){r=e.makeArray(i.getElementsByTagName("*")),e.trigger(i,"inserted",[],!1);for(var o,s=0;void 0!==(o=r[s]);s++)e.trigger(o,"inserted",[],!1)}}},e.appendChild=function(n,r){var i;i=11===r.nodeType?e.makeArray(r.childNodes):[r],n.appendChild(r),e.inserted(i)},e.insertBefore=function(n,r,i){var t;t=11===r.nodeType?e.makeArray(r.childNodes):[r],n.insertBefore(r,i),e.inserted(t)}}); +/*can/util/jquery/jquery*/ +define("can/util/jquery/jquery",["jquery/jquery","can/util/can","can/util/attr/attr","can/event/event","can/util/array/each","can/util/inserted/inserted"],function(t,e,n,r){var a=function(t){return t.nodeName&&(1===t.nodeType||9===t.nodeType)||t==window};t=t||window.$,t.extend(e,t,{trigger:function(n,r,i,u){a(n)?t.event.trigger(r,i,n,!u):n.trigger?n.trigger(r,i):("string"==typeof r&&(r={type:r}),r.target=r.target||n,i&&(i.length&&"string"==typeof i?i=[i]:i.length||(i=[i])),i||(i=[]),e.dispatch.call(n,r,i))},event:e.event,addEvent:e.addEvent,removeEvent:e.removeEvent,buildFragment:function(e,n){var r;return e=[e],n=n||document,n=!n.nodeType&&n[0]||n,n=n.ownerDocument||n,r=t.buildFragment(e,n),r.cacheable?t.clone(r.fragment):r.fragment||r},$:t,each:e.each,bind:function(n,r){return this.bind&&this.bind!==e.bind?this.bind(n,r):a(this)?t.event.add(this,n,r):e.addEvent.call(this,n,r),this},unbind:function(n,r){return this.unbind&&this.unbind!==e.unbind?this.unbind(n,r):a(this)?t.event.remove(this,n,r):e.removeEvent.call(this,n,r),this},delegate:function(n,r,i){return this.delegate?this.delegate(n,r,i):a(this)?t(this).delegate(n,r,i):e.bind.call(this,r,i),this},undelegate:function(n,r,i){return this.undelegate?this.undelegate(n,r,i):a(this)?t(this).undelegate(n,r,i):e.unbind.call(this,r,i),this},proxy:function(t,e){return function(){return t.apply(e,arguments)}},attr:n}),e.on=e.bind,e.off=e.unbind,t.each(["append","filter","addClass","remove","data","get","has"],function(t,n){e[n]=function(t){return t[n].apply(t,e.makeArray(arguments).slice(1))}});var i=t.cleanData;t.cleanData=function(n){t.each(n,function(t,n){n&&e.trigger(n,"removed",[],!1)}),i(n)};var u,s=t.fn.domManip;if(t.fn.domManip=function(t,e,n){for(var r=1;r=3&&(r=d.call(this,t,n));var i=d.apply(this,arguments);return arguments.length>=3&&(a=d.call(this,t,n)),a!==r&&e.attr.trigger(t,n,r),i};var c=t.removeAttr;t.removeAttr=function(t,n){var r=d.call(this,t,n),a=c.apply(this,arguments);return null!=r&&e.attr.trigger(t,n,r),a},t.event.special.attributes={setup:function(){e.data(e.$(this),"canHasAttributesBindings",!0)},teardown:function(){t.removeData(this,"canHasAttributesBindings")}}}return function(){var t="<-\n>",n=e.buildFragment(t,document);if(t!==n.childNodes[0].nodeValue){var r=e.buildFragment;e.buildFragment=function(t,e){var n=r(t,e);return 1===n.childNodes.length&&3===n.childNodes[0].nodeType&&(n.childNodes[0].nodeValue=t),n}}}(),t.event.special.inserted={},t.event.special.removed={},e}); +/*can/util/bind/bind*/ +define("can/util/bind/bind",["can/util/util"],function(i){return i.bindAndSetup=function(){return i.addEvent.apply(this,arguments),this._init||(this._bindings?this._bindings++:(this._bindings=1,this._bindsetup&&this._bindsetup())),this},i.unbindAndTeardown=function(n,t){return i.removeEvent.apply(this,arguments),null===this._bindings?this._bindings=0:this._bindings--,!this._bindings&&this._bindteardown&&this._bindteardown(),this},i}); +/*can/map/bubble*/ +define("can/map/bubble",["can/util/util"],function(n){var e=n.bubble={event:function(n,e){return n.constructor._bubbleRule(e,n)},childrenOf:function(n,i){n._each(function(b,t){b&&b.bind&&e.toParent(b,n,t,i)})},teardownChildrenFrom:function(n,i){n._each(function(b){e.teardownFromParent(n,b,i)})},toParent:function(e,i,b,t){n.listenTo.call(i,e,t,function(){var t=n.makeArray(arguments),r=t.shift();t[0]=(n.List&&i instanceof n.List?i.indexOf(e):b)+(t[0]?"."+t[0]:""),r.triggeredNS=r.triggeredNS||{},r.triggeredNS[i._cid]||(r.triggeredNS[i._cid]=!0,n.trigger(i,r,t))})},teardownFromParent:function(e,i,b){i&&i.unbind&&n.stopListening.call(e,i,b)},isBubbling:function(n,e){return n._bubbleBindings&&n._bubbleBindings[e]},bind:function(n,i){if(!n._init){var b=e.event(n,i);b&&(n._bubbleBindings||(n._bubbleBindings={}),n._bubbleBindings[b]?n._bubbleBindings[b]++:(n._bubbleBindings[b]=1,e.childrenOf(n,b)))}},unbind:function(i,b){var t=e.event(i,b);t&&(i._bubbleBindings&&i._bubbleBindings[t]--,i._bubbleBindings&&!i._bubbleBindings[t]&&(delete i._bubbleBindings[t],e.teardownChildrenFrom(i,t),n.isEmptyObject(i._bubbleBindings)&&delete i._bubbleBindings))},add:function(i,b,t){if(b instanceof n.Map&&i._bubbleBindings)for(var r in i._bubbleBindings)i._bubbleBindings[r]&&(e.teardownFromParent(i,b,r),e.toParent(b,i,t,r))},removeMany:function(n,i){for(var b=0,t=i.length;t>b;b++)e.remove(n,i[b])},remove:function(i,b){if(b instanceof n.Map&&i._bubbleBindings)for(var t in i._bubbleBindings)i._bubbleBindings[t]&&e.teardownFromParent(i,b,t)},set:function(i,b,t,r){return n.Map.helpers.isObservable(t)&&e.add(i,t,b),n.Map.helpers.isObservable(r)&&e.remove(i,r),t}};return e}); +/*can/util/batch/batch*/ +define("can/util/batch/batch",["can/util/can"],function(t){var i=1,n=0,c=[],a=[];t.batch={start:function(t){n++,t&&a.push(t)},stop:function(h,e){if(h?n=0:n--,0===n){var f,r,l=c.slice(0),s=a.slice(0);for(c=[],a=[],i++,e&&t.batch.start(),f=0,r=l.length;r>f;f++)t.dispatch.apply(l[f][0],l[f][1]);for(f=0,r=s.length;f=0)&&"change"},_computes:[],bind:t.bindAndSetup,on:t.bindAndSetup,unbind:t.unbindAndTeardown,off:t.unbindAndTeardown,id:"id",helpers:{define:null,attrParts:function(t,e){return e?[t]:"object"==typeof t?t:(""+t).split(".")},addToMap:function(e,i){var r;n||(r=s,n={});var a=e._cid,o=t.cid(e);return n[o]||(n[o]={obj:e,instance:i,added:!a}),r},isObservable:function(e){return e instanceof t.Map||e&&e===t.route},canMakeObserve:function(e){return e&&!t.isDeferred(e)&&(t.isArray(e)||t.isPlainObject(e))},serialize:function(e,i,n){var s=t.cid(e),r=!1;return a||(r=!0,a={attr:{},serialize:{}}),a[i][s]=n,e.each(function(s,r){var u,h=o.helpers.isObservable(s),c=h&&a[i][t.cid(s)];u=c?c:"serialize"===i?o.helpers._serialize(e,r,s):o.helpers._getValue(e,r,s,i),void 0!==u&&(n[r]=u)}),t.__reading(e,"__keys"),r&&(a=null),n},_serialize:function(t,e,i){return o.helpers._getValue(t,e,i,"serialize")},_getValue:function(t,e,i,n){return o.helpers.isObservable(i)?i[n]():i}},keys:function(e){var i=[];t.__reading(e,"__keys");for(var n in e._data)i.push(n);return i}},{setup:function(e){e instanceof t.Map&&(e=e.serialize()),this._data={},t.cid(this,".map"),this._init=1,this._computedBindings={};var i=this._setupDefaults(e);this._setupComputes(i);var n=e&&t.Map.helpers.addToMap(e,this),s=t.extend(t.extend(!0,{},i),e);this.attr(s),n&&n(),this.bind("change",t.proxy(this._changes,this)),delete this._init},_setupComputes:function(){for(var t,e=this.constructor._computes,i=0,n=e.length;n>i;i++)t=e[i],this[t]=this[t].clone(this),this._computedBindings[t]={count:0}},_setupDefaults:function(){return this.constructor.defaults||{}},_bindsetup:function(){},_bindteardown:function(){},_changes:function(e,i,n,s,r){t.batch.trigger(this,{type:i,batchNum:e.batchNum,target:e.target},[s,r])},_triggerChange:function(e,n,s,r){i.isBubbling(this,"change")?t.batch.trigger(this,{type:"change",target:this},[e,n,s,r]):t.batch.trigger(this,e,[s,r]),("remove"===n||"add"===n)&&t.batch.trigger(this,{type:"__keys",target:this})},_each:function(t){var e=this.__get();for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},attr:function(e,i){var n=typeof e;return"string"!==n&&"number"!==n?this._attrs(e,i):1===arguments.length?(t.__reading(this,e),this._get(e)):(this._set(e,i),this)},each:function(){return t.each.apply(void 0,[this].concat(t.makeArray(arguments)))},removeAttr:function(e){var i=t.List&&this instanceof t.List,n=t.Map.helpers.attrParts(e),s=n.shift(),r=i?this[s]:this._data[s];return n.length&&r?r.removeAttr(n):("string"==typeof e&&~e.indexOf(".")&&(s=e),this._remove(s,r),r)},_remove:function(t,e){t in this._data&&(delete this._data[t],t in this.constructor.prototype||delete this[t],this._triggerChange(t,"remove",void 0,e))},_get:function(t){t=""+t;var e=t.indexOf(".");if(e>=0){var i=this.__get(t);if(void 0!==i)return i;var n=t.substr(0,e),s=t.substr(e+1),r=this.__get(n);return r&&r._get?r._get(s):void 0}return this.__get(t)},__get:function(t){return t?this._computedBindings[t]?this[t]():this._data[t]:this._data},__type:function(e,i){if(!(e instanceof t.Map)&&t.Map.helpers.canMakeObserve(e)){var n=r(e);if(n)return n;if(t.isArray(e)){var s=t.List;return new s(e)}var a=this.constructor.Map||t.Map;return new a(e)}return e},_set:function(t,e,i){t=""+t;var n,s=t.indexOf(".");if(!i&&s>=0){var r=t.substr(0,s),a=t.substr(s+1);if(n=this._init?void 0:this.__get(r),!o.helpers.isObservable(n))throw"can.Map: Object does not exist";n._set(a,e)}else this.__convert&&(e=this.__convert(t,e)),n=this._init?void 0:this.__get(t),this.__set(t,this.__type(e,t),n)},__set:function(t,e,i){if(e!==i){var n=void 0!==i||this.__get().hasOwnProperty(t)?"set":"add";this.___set(t,this.constructor._bubble.set(this,t,e,i)),this._triggerChange(t,n,e,i),i&&this.constructor._bubble.teardownFromParent(this,i)}},___set:function(t,e){this._computedBindings[t]?this[t](e):this._data[t]=e,"function"==typeof this.constructor.prototype[t]||this._computedBindings[t]||(this[t]=e)},bind:function(e,i){var n=this._computedBindings&&this._computedBindings[e];if(n)if(n.count)n.count++;else{n.count=1;var s=this;n.handler=function(i,n,r){t.batch.trigger(s,{type:e,batchNum:i.batchNum,target:s},[n,r])},this[e].bind("change",n.handler)}return this.constructor._bubble.bind(this,e),t.bindAndSetup.apply(this,arguments)},unbind:function(e,i){var n=this._computedBindings&&this._computedBindings[e];return n&&(1===n.count?(n.count=0,this[e].unbind("change",n.handler),delete n.handler):n.count--),this.constructor._bubble.unbind(this,e),t.unbindAndTeardown.apply(this,arguments)},serialize:function(){return t.Map.helpers.serialize(this,"serialize",{})},_attrs:function(e,i){if(void 0===e)return o.helpers.serialize(this,"attr",{});e=t.simpleExtend({},e);var n,s,r=this;t.batch.start(),this.each(function(t,n){if("_cid"!==n){if(s=e[n],void 0===s)return void(i&&r.removeAttr(n));r.__convert&&(s=r.__convert(n,s)),o.helpers.isObservable(s)?r.__set(n,r.__type(s,n),t):o.helpers.isObservable(t)&&o.helpers.canMakeObserve(s)?t.attr(s,i):t!==s&&r.__set(n,r.__type(s,n),t),delete e[n]}});for(n in e)"_cid"!==n&&(s=e[n],this._set(n,s,!0));return t.batch.stop(),this},compute:function(e){if(t.isFunction(this.constructor.prototype[e]))return t.compute(this[e],this);var i=e.split("."),n=i.length-1,s={args:[]};return t.compute(function(e){return arguments.length?void t.compute.read(this,i.slice(0,n)).value.attr(i[n],e):t.compute.read(this,i,s).value},this)}});return o.prototype.on=o.prototype.bind,o.prototype.off=o.prototype.unbind,o}); +/*can/list/list*/ +define("can/list/list",["can/util/util","can/map/map","can/map/bubble"],function(t,e,i){var r=[].splice,s=function(){var t={0:"a",length:1};return r.call(t,0,1),!t[0]}(),h=e.extend({Map:e},{setup:function(e,i){this.length=0,t.cid(this,".map"),this._init=1,this._computedBindings={},this._setupComputes(),e=e||[];var r;t.isDeferred(e)?this.replace(e):(r=e.length&&t.Map.helpers.addToMap(e,this),this.push.apply(this,t.makeArray(e||[]))),r&&r(),this.bind("change",t.proxy(this._changes,this)),t.simpleExtend(this,i),delete this._init},_triggerChange:function(i,r,s,h){e.prototype._triggerChange.apply(this,arguments);var n=+i;~i.indexOf(".")||isNaN(n)||("add"===r?(t.batch.trigger(this,r,[s,n]),t.batch.trigger(this,"length",[this.length])):"remove"===r?(t.batch.trigger(this,r,[h,n]),t.batch.trigger(this,"length",[this.length])):t.batch.trigger(this,r,[s,n]))},__get:function(e){return e?this[e]&&this[e].isComputed&&t.isFunction(this.constructor.prototype[e])?this[e]():this[e]:this},___set:function(t,e){this[t]=e,+t>=this.length&&(this.length=+t+1)},_remove:function(t,e){isNaN(+t)?(delete this[t],this._triggerChange(t,"remove",void 0,e)):this.splice(t,1)},_each:function(t){for(var e=this.__get(),i=0;in;n++)o[n]=this.__type(o[n],n),l.push(o[n]);void 0===h&&(h=o[1]=this.length-e);var c=r.apply(this,o);if(!s)for(n=this.length;n0&&(i.removeMany(this,c),this._triggerChange(""+e,"remove",void 0,c)),o.length>2){for(n=0,a=l.length;a>n;n++)i.set(this,n,l[n]);this._triggerChange(""+e,"add",l,c)}return t.batch.stop(),c},_attrs:function(i,r){return void 0===i?e.helpers.serialize(this,"attr",[]):(i=t.makeArray(i),t.batch.start(),this._updateAttrs(i,r),void t.batch.stop())},_updateAttrs:function(t,i){for(var r=Math.min(t.length,this.length),s=0;r>s;s++){var h=this[s],n=t[s];e.helpers.isObservable(h)&&e.helpers.canMakeObserve(n)?h.attr(n,i):h!==n&&this._set(s,n)}t.length>this.length?this.push.apply(this,t.slice(this.length)):t.lengthy;y++)m[y]=arguments[y];if(i=function(t){if(arguments.length){var u=l,r=h.call(o,t,u);return i.hasDependencies?p.call(o):(l=void 0===r?p.call(o):r,c(i,l,u),l)}return e.length&&i.canReadForChangeEvent!==!1&&(n.__reading(i,"change"),i.bound||n.compute.temporarilyBind(i)),i.bound?l:p.call(o)},"function"==typeof t){h=t,p=t,i.canReadForChangeEvent=u===!1?!1:!0;var x=r?f(i,t,o||this,g):a(i,t,o||this,g);v=x.on,b=x.off}else if(o)if("string"==typeof o){var O=o,E=t instanceof n.Map;if(E){i.hasDependencies=!0;var N;p=function(){return t.attr(O)},h=function(n){t.attr(O,n)},v=function(e){N=function(n,t,o){e(t,o,n.batchNum)},t.bind(u||O,N),l=n.__read(p).value},b=function(n){t.unbind(u||O,N)}}else p=function(){return t[O]},h=function(n){t[O]=n},v=function(e){N=function(){e(p(),l)},n.bind.call(t,u||O,N),l=n.__read(p).value},b=function(e){n.unbind.call(t,u||O,N)}}else if("function"==typeof o)l=t,h=o,o=u,s="setter";else{l=t;var j=o,R=_;if(o=j.context||j,p=j.get||p,h=j.set||function(){return l},j.fn){var A,D=j.fn;p=function(){return D.call(o,l)},0===D.length?A=a(i,D,o,g):1===D.length?A=a(i,function(){return D.call(o,l)},o,g):(_=function(n){void 0!==n&&R(n,l)},A=a(i,function(){var n=D.call(o,l,function(n){R(n,l)});return void 0!==n?n:l},o,g)),v=A.on,b=A.off}else _=function(){var n=p.call(o);R(n,l)};v=j.on||v,b=j.off||b}else l=t;return n.cid(i,"compute"),n.simpleExtend(i,{isComputed:!0,_bindsetup:function(){this.bound=!0;var t=n.__clearReading();v.call(this,_),n.__setReading(t)},_bindteardown:function(){b.call(this,_),this.bound=!1},bind:n.bindAndSetup,unbind:n.unbindAndTeardown,clone:function(t){return t&&("setter"===s?m[2]=t:m[1]=t),n.compute.apply(n,m)}})};var s,v=function(){for(var n=0,t=s.length;t>n;n++)s[n].unbind("change",d);s=null};return n.compute.temporarilyBind=function(n){n.bind("change",d),s||(s=[],setTimeout(v,10)),s.push(n)},n.compute.truthy=function(t){return n.compute(function(){var n=t();return"function"==typeof n&&(n=n()),!!n})},n.compute.async=function(t,e,o){return n.compute(t,{fn:e,context:o})},n.compute.read=function(t,e,o){o=o||{};for(var u,r,i,c=t,a=0,f=e.length;f>a;a++)if(r=c,r&&r.isComputed&&(o.foundObservable&&o.foundObservable(r,a),r=c=r()),l(r)?(!i&&o.foundObservable&&o.foundObservable(r,a),i=1,c="function"==typeof r[e[a]]&&r.constructor.prototype[e[a]]===r[e[a]]?o.returnObserveMethods?c[e[a]]:"constructor"===e[a]&&r instanceof n.Construct||r[e[a]].prototype instanceof n.Construct?r[e[a]]:r[e[a]].apply(r,o.args||[]):c.attr(e[a])):c=null==c?void 0:r[e[a]],u=typeof c,c&&c.isComputed&&!o.isArgument&&f-1>a?(!i&&o.foundObservable&&o.foundObservable(r,a+1),c=c()):a");return e.each(t,function(t,c){$li=e("
  • "),$a=e("").attr("href","#"+c.id).text(c.text),o.append($li.append($a)),c.sections&&c.sections.length&&$li.append(n(c.sections,i))}),o};return can.Control.extend({init:function(){var t=[];this.collectSignatures().each(function(n){var i=e("h2",this);this.id="sig_"+i.text().replace(/\s/g,"").replace(/[^\w]/g,"_"),t.push({id:this.id,text:i.text()})});var i=[],o=function(){return i[i.length-1]};this.collectHeadings().each(function(n){var c=e(this);this.id="section_"+c.text().replace(/\s/g,"").replace(/[^\w]/g,"_");for(var s=+this.nodeName.substr(1),r={id:this.id,text:c.text(),num:s,sections:[]};o()&&o().num>=s;)i.pop();i.length?(o().sections.push(r),i.push(r)):(t.push(r),i.push(r))});if(this.element.html(n(t,(window.docObject.outline&&window.docObject.outline.tag||"ul").toLowerCase())),window.location.hash.length){var c=window.location.hash.replace("#",""),s=document.getElementById(c);s&&s.scrollIntoView(!0)}},collectSignatures:function(){var t=e(".content .signature").clone();return t.find(".release").remove(),t},collectHeadings:function(){for(var t=window.docObject.outline&&window.docObject.outline.depth||1,n=[],i=0;t>i;i++)n.push("h"+(i+2));return e(".content .comment").find(n.join(","))}})}); +/*can/view/view*/ +define("can/view/view",["can/util/util"],function(e){var r=e.isFunction,n=e.makeArray,t=1,i=function(e){var r=function(){return c.frag(e.apply(this,arguments))};return r.render=function(){return e.apply(e,arguments)},r},u=function(e,r){if(!e.length)throw"can.view: No template or empty template:"+r},a=function(n,t){if(r(n)){var i=e.Deferred();return i.resolve(n)}var a,o,d,f="string"==typeof n?n:n.url,s=n.engine&&"."+n.engine||f.match(/\.[\w\d]+$/);if(f.match(/^#/)&&(f=f.substr(1)),(o=document.getElementById(f))&&(s="."+o.type.match(/\/(x\-)?(.+)/)[2]),s||c.cached[f]||(f+=s=c.ext),e.isArray(s)&&(s=s[0]),d=c.toId(f),f.match(/^\/\//)&&(f=f.substr(2),f=window.steal?steal.config().root.mapJoin(""+steal.id(f)):f),window.require&&require.toUrl&&(f=require.toUrl(f)),a=c.types[s],c.cached[d])return c.cached[d];if(o)return c.registerView(d,o.innerHTML,a);var p=new e.Deferred;return e.ajax({async:t,url:f,dataType:"text",error:function(e){u("",f),p.reject(e)},success:function(e){u(e,f),c.registerView(d,e,a,p)}}),p},o=function(r){var n=[];if(e.isDeferred(r))return[r];for(var t in r)e.isDeferred(r[t])&&n.push(r[t]);return n},d=function(r){return e.isArray(r)&&"success"===r[1]?r[0]:r},c=e.view=e.template=function(e,n,t,i){return r(t)&&(i=t,t=void 0),c.renderAs("fragment",e,n,t,i)};return e.extend(c,{frag:function(e,r){return c.hookup(c.fragment(e),r)},fragment:function(r){if("string"!=typeof r&&11===r.nodeType)return r;var n=e.buildFragment(r,document.body);return n.childNodes.length||n.appendChild(document.createTextNode("")),n},toId:function(r){return e.map(r.toString().split(/\/|\./g),function(e){return e?e:void 0}).join("_")},toStr:function(e){return null==e?"":""+e},hookup:function(r,n){var t,i,u=[];return e.each(r.childNodes?e.makeArray(r.childNodes):r,function(r){1===r.nodeType&&(u.push(r),u.push.apply(u,e.makeArray(r.getElementsByTagName("*"))))}),e.each(u,function(e){e.getAttribute&&(t=e.getAttribute("data-view-id"))&&(i=c.hookups[t])&&(i(e,n,t),delete c.hookups[t],e.removeAttribute("data-view-id"))}),r},hookups:{},hook:function(e){return c.hookups[++t]=e," data-view-id='"+t+"'"},cached:{},cachedRenderers:{},cache:!0,register:function(r){this.types["."+r.suffix]=r,e[r.suffix]=c[r.suffix]=function(e,n){var t,u;if(!n)return u=function(){return t||(t=r.fragRenderer?r.fragRenderer(null,e):i(r.renderer(null,e))),t.apply(this,arguments)},u.render=function(){var n=r.renderer(null,e);return n.apply(n,arguments)},u;var a=function(){return t||(t=r.fragRenderer?r.fragRenderer(e,n):r.renderer(e,n)),t.apply(this,arguments)};return r.fragRenderer?c.preload(e,a):c.preloadStringRenderer(e,a)}},types:{},ext:".ejs",registerScript:function(e,r,n){return"can.view.preloadStringRenderer('"+r+"',"+c.types["."+e].script(r,n)+");"},preload:function(r,n){var t=c.cached[r]=(new e.Deferred).resolve(function(e,r){return n.call(e,e,r)});return t.__view_id=r,c.cachedRenderers[r]=n,n},preloadStringRenderer:function(e,r){return this.preload(e,i(r))},render:function(r,n,t,i){return e.view.renderAs("string",r,n,t,i)},renderTo:function(e,r,n,t){return("string"===e&&r.render?r.render:r)(n,t)},renderAs:function(t,i,u,f,s){r(f)&&(s=f,f=void 0);var p,l,g,h,v,m=o(u);if(m.length)return l=new e.Deferred,g=e.extend({},u),m.push(a(i,!0)),e.when.apply(e,m).then(function(r){var i,a=n(arguments),o=a.pop();if(e.isDeferred(u))g=d(r);else for(var c in u)e.isDeferred(u[c])&&(g[c]=d(a.shift()));i=e.view.renderTo(t,o,g,f),l.resolve(i,g),s&&s(i,g)},function(){l.reject.apply(l,arguments)}),l;if(p=e.__clearReading(),h=r(s),l=a(i,h),p&&e.__setReading(p),h)v=l,l.then(function(r){s(u?e.view.renderTo(t,r,u,f):r)});else{if("resolved"===l.state()&&l.__view_id){var w=c.cachedRenderers[l.__view_id];return u?e.view.renderTo(t,w,u,f):w}l.then(function(r){v=u?e.view.renderTo(t,r,u,f):r})}return v},registerView:function(r,n,t,u){var a,o="object"==typeof t?t:c.types[t||c.ext];return a=o.fragRenderer?o.fragRenderer(r,n):i(o.renderer(r,n)),u=u||new e.Deferred,c.cache&&(c.cached[r]=u,u.__view_id=r,c.cachedRenderers[r]=a),u.resolve(a)}}),e}); +/*can/view/scope/scope*/ +define("can/view/scope/scope",["can/util/util","can/construct/construct","can/map/map","can/list/list","can/view/view","can/compute/compute"],function(e){var t=/(\\)?\./g,r=/\\\./g,n=function(e){var n=[],u=0;return e.replace(t,function(t,s,a){s||(n.push(e.slice(u,a).replace(r,".")),u=a+t.length)}),n.push(e.slice(u).replace(r,".")),n},u=e.Construct.extend({read:e.compute.read},{init:function(e,t){this._context=e,this._parent=t,this.__cache={}},attr:function(t,r){var n=e.__clearReading(),u=this.read(t,{isArgument:!0,returnObserveMethods:!0,proxyMethods:!1});if(2===arguments.length){var s=t.lastIndexOf("."),a=-1!==s?t.substring(0,s):".",i=this.read(a,{isArgument:!0,returnObserveMethods:!0,proxyMethods:!1}).value;-1!==s&&(t=t.substring(s+1,t.length)),e.compute.set(i,t,r)}return e.__setReading(n),u.value},add:function(e){return e!==this._context?new this.constructor(e,this):this},computeData:function(t,r){r=r||{args:[]};var n,u,s=this,a={compute:e.compute(function(i){if(!arguments.length){if(n)return e.compute.read(n,u,r).value;var c=s.read(t,r);return n=c.rootObserve,u=c.reads,a.scope=c.scope,a.initialValue=c.value,a.reads=c.reads,a.root=n,c.value}if(n.isComputed)n(i);else if(u.length){var o=u.length-1,l=u.length?e.compute.read(n,u.slice(0,o)).value:n;e.compute.set(l,u[o],i)}})};return a},compute:function(e,t){return this.computeData(e,t).compute},read:function(t,r){var u;if("./"===t.substr(0,2))u=!0,t=t.substr(2);else{if("../"===t.substr(0,3))return this._parent.read(t.substr(3),r);if(".."===t)return{value:this._parent._context};if("."===t||"this"===t)return{value:this._context}}for(var s,a,i,c,o,l,p=-1===t.indexOf("\\.")?t.split("."):n(t),d=this,v=[],h=-1;d;){if(s=d._context,null!==s){var f=e.compute.read(s,p,e.simpleExtend({foundObservable:function(e,t){o=e,l=p.slice(t)},earlyExit:function(t,r){r>h&&(a=o,v=l,h=r,c=d,i=e.__clearReading())},executeAnonymousFunctions:!0},r));if(void 0!==f.value)return{scope:d,rootObserve:o,value:f.value,reads:l}}e.__clearReading(),d=u?null:d._parent}return a?(e.__setReading(i),{scope:c,rootObserve:a,reads:v,value:void 0}):{names:p,value:void 0}}});return e.view.Scope=u,u}); +/*can/view/elements*/ +define("can/view/elements",["can/util/util","can/view/view"],function(t){var e="undefined"!=typeof document?document:null,n=e&&function(){return 1===t.$(document.createComment("~")).length}(),o={tagToContentPropMap:{option:e&&"textContent"in document.createElement("option")?"textContent":"innerText",textarea:"value"},attrMap:t.attr.map,attrReg:/([^\s=]+)[\s]*=[\s]*/,defaultValue:t.attr.defaultValue,tagMap:{"":"span",colgroup:"col",table:"tbody",tr:"td",ol:"li",ul:"li",tbody:"tr",thead:"tr",tfoot:"tr",select:"option",optgroup:"option"},reverseTagMap:{col:"colgroup",tr:"tbody",option:"select",td:"tr",th:"tr",li:"ul"},getParentNode:function(t,e){return e&&11===t.parentNode.nodeType?e:t.parentNode},setAttr:t.attr.set,getAttr:t.attr.get,removeAttr:t.attr.remove,contentText:function(t){return"string"==typeof t?t:t||0===t?""+t:""},after:function(e,n){var o=e[e.length-1];o.nextSibling?t.insertBefore(o.parentNode,n,o.nextSibling):t.appendChild(o.parentNode,n)},replace:function(e,r){o.after(e,r),t.remove(t.$(e)).lengthn;n++){var s=i[n];if(s.match.test(t)){r=s.handler;break}}return r}"string"==typeof t?e[t]=a:i.push({match:t,handler:a})},e={},i=[],r=/[-\:]/,n=t.view.tag=function(a,e){if(!e){var i=l[a.toLowerCase()];return!i&&r.test(a)&&(i=function(){}),i}t.global.html5&&(t.global.html5.elements+=" "+a,t.global.html5.shivDocument()),l[a.toLowerCase()]=e},l={};return t.view.callbacks={_tags:l,_attributes:e,_regExpAttributes:i,tag:n,attr:a,tagHandler:function(a,e,i){var r,n=i.options.attr("tags."+e),s=n||l[e],c=i.scope;if(s){var o=t.__clearReading();r=s(a,i),t.__setReading(o)}else r=c;if(r&&i.subtemplate){c!==r&&(c=c.add(r));var v=i.subtemplate(c,i.options),f="string"==typeof v?t.view.frag(v):v;t.appendChild(a,f)}}},t.view.callbacks}); +/*can/view/scanner*/ +define("can/view/scanner",["can/view/view","./elements","can/view/callbacks/callbacks"],function(can,elements,viewCallbacks){var newLine=/(\r|\n)+/g,notEndTag=/\//,clean=function(t){return t.split("\\").join("\\\\").split("\n").join("\\n").split('"').join('\\"').split(" ").join("\\t")},getTag=function(t,e,n){if(t)return t;for(;n":">",'"':'"',"'":"'"},this.tokenComplex=[],this.tokenMap={};for(var e,n=0;e=this.tokens[n];n++)e[2]?(this.tokenReg.push(e[2]),this.tokenComplex.push({abbr:e[1],re:new RegExp(e[2]),rescan:e[3]})):(this.tokenReg.push(e[1]),this.tokenSimple[e[1]]=e[0]),this.tokenMap[e[0]]=e[1];this.tokenReg=new RegExp("("+this.tokenReg.slice(0).concat(["<",">",'"',"'"]).join("|")+")","g")},Scanner.prototype={helpers:[],scan:function(t,e){var n=[],s=0,a=this.tokenSimple,r=this.tokenComplex;t=t.replace(newLine,"\n"),this.transform&&(t=this.transform(t)),t.replace(this.tokenReg,function(e,i){var o=arguments[arguments.length-2];if(o>s&&n.push(t.substring(s,o)),a[e])n.push(e);else for(var u,c=0;u=r[c];c++)if(u.re.test(e)){n.push(u.abbr),u.rescan&&n.push(u.rescan(i));break}s=o+i.length}),s":htmlTag=0;var H="/"===l.substr(l.length-1)||"--"===l.substr(l.length-2),N="";if(k.attributeHookups.length&&(N="attrs: ['"+k.attributeHookups.join("','")+"'], ",k.attributeHookups=[]),v+k.tagHookups.length!==k.lastTagHookup&&v===top(k.tagHookups))H&&(l=l.substr(0,l.length-1)),p.push(put_cmd,'"',clean(l),'"',",can.view.pending({tagName:'"+v+"',"+N+"scope: "+(this.text.scope||"this")+this.text.options),H?(p.push("}));"),l="/>",b()):"<"===n[d]&&n[d+1]==="/"+v?(p.push("}));"),l=u,b()):(p.push(",subtemplate: function("+this.text.argNames+"){\n"+startTxt+(this.text.start||"")),l="");else if(m||!T&&elements.tagToContentPropMap[x[x.length-1]]||N){var R=",can.view.pending({"+N+"scope: "+(this.text.scope||"this")+this.text.options+'}),"';H?h(l.substr(0,l.length-1),R+'/>"'):h(l,R+'>"'),l="",m=0}else l+=u;(H||T)&&(x.pop(),v=x[x.length-1],T=!1),k.attributeHookups=[];break;case"'":case'"':if(htmlTag)if(quote&"e===u){quote=null;var L=getAttrName();if(viewCallbacks.attr(L)&&k.attributeHookups.push(L),w){l+=u,h(l),p.push(finishTxt,"}));\n"),l="",w=!1;break}}else if(null===quote&&(quote=u,beforeQuote=i,c=getAttrName(),"img"===v&&"src"===c||"style"===c)){h(l.replace(attrReg,"")),l="",w=!0,p.push(insert_cmd,"can.view.txt(2,'"+getTag(v,n,d)+"',"+status()+",this,function(){",startTxt),h(c+"="+u);break}default:if("<"===i){v="!--"===u.substr(0,3)?"!--":u.split(/\s/)[0];var S,y=!1;0===v.indexOf("/")&&(y=!0,S=v.substr(1)),y?(top(x)===S&&(v=S,T=!0),top(k.tagHookups)===S&&(h(l.substr(0,l.length-1)),p.push(finishTxt+"}}) );"),l="><",b())):(v.lastIndexOf("/")===v.length-1&&(v=v.substr(0,v.length-1)),"!--"!==v&&viewCallbacks.tag(v)&&("content"===v&&elements.tagMap[top(x)]&&(u=u.replace("content",elements.tagMap[top(x)])),k.tagHookups.push(v)),x.push(v))}l+=u}else switch(u){case _.right:case _.returnRight:switch(f){case _.left:o=bracketNum(l),1===o?(p.push(insert_cmd,"can.view.txt(0,'"+getTag(v,n,d)+"',"+status()+",this,function(){",startTxt,l),g.push({before:"",after:finishTxt+"}));\n"})):(s=g.length&&-1===o?g.pop():{after:";"},s.before&&p.push(s.before),p.push(l,";",s.after));break;case _.escapeLeft:case _.returnLeft:o=bracketNum(l),o&&g.push({before:finishTxt,after:"}));\n"});for(var j=f===_.escapeLeft?1:0,C={insert:insert_cmd,tagName:getTag(v,n,d),status:status(),specialAttribute:w},q=0;q[\s]*\w*/.source&&(j=0);break}}"object"==typeof l?l.startTxt&&l.end&&w?p.push(insert_cmd,"can.view.toStr( ",l.content,"() ) );"):(l.startTxt?p.push(insert_cmd,"can.view.txt(\n"+("string"==typeof status()||(null!=l.escaped?l.escaped:j))+",\n'"+v+"',\n"+status()+",\nthis,\n"):l.startOnlyTxt&&p.push(insert_cmd,"can.view.onlytxt(this,\n"),p.push(l.content),l.end&&p.push("));")):w?p.push(insert_cmd,l,");"):p.push(insert_cmd,"can.view.txt(\n"+("string"==typeof status()||j)+",\n'"+v+"',\n"+status()+",\nthis,\nfunction(){ "+(this.text.escape||"")+"return ",l,o?startTxt:"}));\n"),rescan&&rescan.after&&rescan.after.length&&(h(rescan.after.length),rescan=null)}f=null,l="";break;case _.templateLeft:l+=_.left;break;default:l+=u}i=u}l.length&&h(l),p.push(";");var M=p.join(""),A={out:(this.text.outStart||"")+M+" "+finishTxt+(this.text.outEnd||"")};return myEval.call(A,"this.fn = (function("+this.text.argNames+"){"+A.out+"});\r\n//# sourceURL="+e+".js"),A}},can.view.pending=function(t){var e=can.view.getHooks();return can.view.hook(function(n){can.each(e,function(t){t(n)}),t.templateType="legacy",t.tagName&&viewCallbacks.tagHandler(n,t.tagName,t),can.each(t&&t.attrs||[],function(e){t.attributeName=e;var s=viewCallbacks.attr(e);s&&s(n,t)})})},can.view.tag("content",function(t,e){return e.scope}),can.view.Scanner=Scanner,Scanner}); +/*can/view/node_lists/node_lists*/ +define("can/view/node_lists/node_lists",["can/util/util","can/view/elements"],function(e){var n=!0;try{document.createTextNode("")._=0}catch(t){n=!1}var r={},i={},a="ejs_"+Math.random(),s=0,u=function(e,t){var r=t||i,u=c(e,r);return u?u:n||3!==e.nodeType?(++s,e[a]=(e.nodeName?"element_":"obj_")+s):(++s,r["text_"+s]=e,"text_"+s)},c=function(e,t){if(n||3!==e.nodeType)return e[a];for(var r in t)if(t[r]===e)return r},l=[].splice,o=[].push,p=function(e){for(var n=0,t=0,r=e.length;r>t;t++){var i=e[t];i.nodeType?n++:n+=p(i)}return n},d=function(e,n){for(var t={},r=0,i=e.length;i>r;r++){var a=f.first(e[r]);t[u(a,n)]=e[r]}return t},f={id:u,update:function(n,t){var r=f.unregisterChildren(n);t=e.makeArray(t);var i=n.length;return l.apply(n,[0,i].concat(t)),n.replacements?f.nestReplacements(n):f.nestList(n),r},nestReplacements:function(e){for(var n=0,t={},r=d(e.replacements,t),i=e.replacements.length;nr;r++){var n=e[r];t[n.tokenType].apply(t,n.args)}return e}var a="-:A-Za-z0-9_",n="[a-zA-Z_:]["+a+":.]*",s="\\s*=\\s*",i='"((?:\\\\.|[^"])*)"',o="'((?:\\\\.|[^'])*)'",l="(?:"+s+"(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>\\s]+))?",c="\\{\\{[^\\}]*\\}\\}\\}?",u="\\{\\{([^\\}]*)\\}\\}\\}?",p=new RegExp("^<(["+a+"]+)((?:\\s*(?:(?:(?:"+n+")?"+l+")|(?:"+c+")+))*)\\s*(\\/?)>"),f=new RegExp("^<\\/(["+a+"]+)[^>]*>"),d=new RegExp("(?:(?:("+n+")|"+u+")(?:"+s+"(?:(?:"+i+")|(?:"+o+")|([^>\\s]+)))?)","g"),g=new RegExp(u,"g"),h=/<|\{\{/,m=t("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed"),b=t("address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),v=t("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),x=t("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),w=t("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),y=t("script,style"),k="start,end,close,attrStart,attrEnd,attrValue,chars,comment,special,done".split(","),E=function(){},A=function(t,a,n){function s(e,t,r,n){if(t=t.toLowerCase(),b[t])for(;w.last()&&v[w.last()];)i("",w.last());x[t]&&w.last()===t&&i("",t),n=m[t]||!!n,a.start(t,n),n||w.push(t),A.parseAttrs(r,a),a.end(t,n)}function i(e,t){var r;if(t)for(r=w.length-1;r>=0&&w[r]!==t;r--);else r=0;if(r>=0){for(var n=w.length-1;n>=r;n--)a.close&&a.close(w[n]);w.length=r}}function o(e,t){a.special&&a.special(t)}if("object"==typeof t)return r(t,a);var l=[];a=a||{},n&&e.each(k,function(t){var r=a[t]||E;a[t]=function(){r.apply(this,arguments)!==!1&&l.push({tokenType:t,args:e.makeArray(arguments)})}});var c,u,d,w=[],O=t;for(w.last=function(){return this[this.length-1]};t;){if(u=!0,w.last()&&y[w.last()])t=t.replace(new RegExp("([\\s\\S]*?)]*>"),function(e,t){return t=t.replace(/|/g,"$1$2"),a.chars&&a.chars(t),""}),i("",w.last());else if(0===t.indexOf(""),c>=0&&(a.comment&&a.comment(t.substring(4,c)),t=t.substring(c+3),u=!1)):0===t.indexOf("c?t:t.substring(0,c);t=0>c?"":t.substring(c),a.chars&&R&&a.chars(R)}if(t===O)throw"Parse Error: "+t;O=t}return i(),a.done(),l};return A.parseAttrs=function(e,t){(null!=e?e:"").replace(d,function(e,r,a,n,s,i){if(a&&t.special(a),r||n||s||i){var o=arguments[3]?arguments[3]:arguments[4]?arguments[4]:arguments[5]?arguments[5]:w[r.toLowerCase()]?r:"";t.attrStart(r||"");for(var l,c=g.lastIndex=0,u=g.exec(o);u;)l=o.substring(c,g.lastIndex-u[0].length),l.length&&t.attrValue(l),t.special(u[1]),c=g.lastIndex,u=g.exec(o);l=o.substr(c,o.length),l&&t.attrValue(l),t.attrEnd(r||"")}})},e.view.parser=A,A}); +/*can/view/live/live*/ +define("can/view/live/live",["can/util/util","can/view/elements","can/view/view","can/view/node_lists/node_lists","can/view/parser/parser"],function(e,t,n,r,i){t=t||e.view.elements,r=r||e.view.NodeLists,i=i||e.view.parser;var a=function(t,n,r){var i=!1,a=function(){return i||(i=!0,r(o),e.unbind.call(t,"removed",a)),!0},o={teardownCheck:function(e){return e?!1:a()}};return e.bind.call(t,"removed",a),n(o),o},o=function(e,t,n){return a(e,function(){t.bind("change",n)},function(e){t.unbind("change",n),e.nodeList&&r.unregister(e.nodeList)})},c=function(e){var t,n={};return i.parseAttrs(e,{attrStart:function(e){n[e]="",t=e},attrValue:function(e){n[t]+=e},attrEnd:function(){}}),n},u=[].splice,d=function(e){return e&&e.nodeType},s=function(e){e.childNodes.length||e.appendChild(document.createTextNode(""))},l={list:function(n,i,o,c,d,s){var p,f=s||[n],v=[],h=function(n,i,a){var d=document.createDocumentFragment(),l=[],p=[];e.each(i,function(t,n){var i=[];s&&r.register(i,null,!0);var u=e.compute(n+a),f=o.call(c,t,u,i),v="string"==typeof f,h=e.frag(f);h=v?e.view.hookup(h):h;var g=e.makeArray(h.childNodes);s?(r.update(i,g),l.push(i)):l.push(r.register(g)),d.appendChild(h),p.push(u)});var h=a+1;if(f[h]){var g=r.first(f[h]);e.insertBefore(g.parentNode,d,g)}else t.after(1===h?[b]:[r.last(f[h-1])],d);u.apply(f,[h,0].concat(l)),u.apply(v,[a,0].concat(p));for(var m=a+p.length,w=v.length;w>m;m++)v[m](m)},g=function(t,n,i,a,o){if(a||!k.teardownCheck(b.parentNode)){0>i&&(i=v.length+i);var c=f.splice(i+1,n.length),u=[];e.each(c,function(e){var t=r.unregister(e);[].push.apply(u,t)}),v.splice(i,n.length);for(var d=i,s=v.length;s>d;d++)v[d](d);o||e.remove(e.$(u))}},b=document.createTextNode(""),m=function(e){p&&p.unbind&&p.unbind("add",h).unbind("remove",g),g({},{length:f.length-1},0,!0,e)},w=function(e,t,n){m(),p=t||[],p.bind&&p.bind("add",h).bind("remove",g),h({},p,0)};d=t.getParentNode(n,d);var k=a(d,function(){e.isFunction(i)&&i.bind("change",w)},function(){e.isFunction(i)&&i.unbind("change",w),m(!0)});s?(t.replace(f,b),r.update(f,[b]),s.unregistered=k.teardownCheck):l.replace(f,b,k.teardownCheck),w({},e.isFunction(i)?i():i)},html:function(n,i,a,c){var u;a=t.getParentNode(n,a),u=o(a,i,function(e,t,n){var i=r.first(l).parentNode;i&&p(t),u.teardownCheck(r.first(l).parentNode)});var l=c||[n],p=function(n){var i=!d(n),o=e.frag(n),c=e.makeArray(l);s(o),i&&(o=e.view.hookup(o,a)),c=r.update(l,o.childNodes),t.replace(c,o)};u.nodeList=l,c?c.unregistered=u.teardownCheck:r.register(l,u.teardownCheck),p(i())},replace:function(n,i,a){var o=n.slice(0),c=e.frag(i);return r.register(n,a),"string"==typeof i&&(c=e.view.hookup(c,n[0].parentNode)),r.update(n,c.childNodes),t.replace(o,c),n},text:function(n,i,a,c){var u=t.getParentNode(n,a),d=o(u,i,function(t,n,r){"unknown"!=typeof s.nodeValue&&(s.nodeValue=e.view.toStr(n)),d.teardownCheck(s.parentNode)}),s=document.createTextNode(e.view.toStr(i()));c?(c.unregistered=d.teardownCheck,d.nodeList=c,r.update(c,[s]),t.replace([n],s)):d.nodeList=l.replace([n],s,d.teardownCheck)},setAttributes:function(t,n){var r=c(n);for(var i in r)e.attr.set(t,i,r[i])},attributes:function(n,r,i){var a={},u=function(r){var i,o=c(r);for(i in o){var u=o[i],d=a[i];u!==d&&e.attr.set(n,i,u),delete a[i]}for(i in a)t.removeAttr(n,i);a=o};o(n,r,function(e,t){u(t)}),arguments.length>=3?a=c(i):u(r())},attributePlaceholder:"__!!__",attributeReplace:/__!!__/g,attribute:function(n,r,i){o(n,i,function(e,i){t.setAttr(n,r,u.render())});var a,c=e.$(n);a=e.data(c,"hooks"),a||e.data(c,"hooks",a={});var u,d=t.getAttr(n,r),s=d.split(l.attributePlaceholder),p=[];p.push(s.shift(),s.join(l.attributePlaceholder)),a[r]?a[r].computes.push(i):a[r]={render:function(){var e=0,n=d?d.replace(l.attributeReplace,function(){return t.contentText(u.computes[e++]())}):t.contentText(u.computes[e++]());return n},computes:[i],batchNum:void 0},u=a[r],p.splice(1,0,i()),t.setAttr(n,r,p.join(""))},specialAttribute:function(e,n,r){o(e,r,function(r,i){t.setAttr(e,n,f(i))}),t.setAttr(e,n,f(r()))},simpleAttribute:function(e,n,r){o(e,r,function(r,i){t.setAttr(e,n,i)}),t.setAttr(e,n,r())}};l.attr=l.simpleAttribute,l.attrs=l.attributes;var p=/(\r|\n)+/g,f=function(e){var n=/^["'].*["']$/;return e=e.replace(t.attrReg,"").replace(p,""),n.test(e)?e.substr(1,e.length-2):e};return e.view.live=l,l}); +/*can/view/render*/ +define("can/view/render",["can/view/view","./elements","can/view/live/live","can/util/string/string"],function(t,n,e){var i,r=[],u=function(t){var e=n.tagMap[t]||"span";return"span"===e?"@@!!@@":"<"+e+">"+u(e)+""},o=function(n,e){if("string"==typeof n)return n;if(!n&&0!==n)return"";var i=n.hookup&&function(t,e){n.hookup.call(n,t,e)}||"function"==typeof n&&n;return i?e?"<"+e+" "+t.view.hook(i)+">":(r.push(i),""):""+n},c=function(n,e){return"string"==typeof n||"number"==typeof n?t.esc(n):o(n,e)},s=!1,a=function(){};return t.extend(t.view,{live:e,setupLists:function(){var n,e=t.view.lists;return t.view.lists=function(t,e){return n={list:t,renderer:e},Math.random()},function(){return t.view.lists=e,n}},getHooks:function(){var t=r.slice(0);return i=t,r=[],t},onlytxt:function(t,n){return c(n.call(t))},txt:function(f,p,l,v,h){var w,g,d,b,y=n.tagMap[p]||"span",k=!1,m=a;if(s)w=h.call(v);else{("string"==typeof l||1===l)&&(s=!0);var x=t.view.setupLists();m=function(){d.unbind("change",a)},d=t.compute(h,v,!1),d.bind("change",a),g=x(),w=d(),s=!1,k=d.hasDependencies}if(g)return m(),"<"+y+t.view.hook(function(t,n){e.list(t,g.list,g.renderer,v,n)})+">";if(!k||"function"==typeof w)return m(),(s||2===f||!f?o:c)(w,0===l&&y);var M=n.tagToContentPropMap[p];return 0!==l||M?1===l?(r.push(function(t){e.attributes(t,d,d()),m()}),d()):2===f?(b=l,r.push(function(t){e.specialAttribute(t,b,d),m()}),d()):(b=0===l?M:l,(0===l?i:r).push(function(t){e.attribute(t,b,d),m()}),e.attributePlaceholder):"<"+y+t.view.hook(f&&"object"!=typeof w?function(t,n){e.text(t,d,n),m()}:function(t,n){e.html(t,d,n),m()})+">"+u(y)+""}}),t}); +/*can/view/bindings/bindings*/ +define("can/view/bindings/bindings",["can/util/util","can/view/callbacks/callbacks","can/control/control"],function(e){var t=function(){var e={"":!0,"true":!0,"false":!1},t=function(t){if(t&&t.getAttribute){var n=t.getAttribute("contenteditable");return e[n]}};return function(e){var n=t(e);return"boolean"==typeof n?n:!!t(e.parentNode)}}(),n=function(e){return"{"===e[0]&&"}"===e[e.length-1]?e.substr(1,e.length-2):e};e.view.attr("can-value",function(i,l){var r,c,h=n(i.getAttribute("can-value")),v=l.scope.computeData(h,{args:[]}).compute;return"input"===i.nodeName.toLowerCase()&&("checkbox"===i.type&&(r=e.attr.has(i,"can-true-value")?i.getAttribute("can-true-value"):!0,c=e.attr.has(i,"can-false-value")?i.getAttribute("can-false-value"):!1),"checkbox"===i.type||"radio"===i.type)?void new s(i,{value:v,trueValue:r,falseValue:c}):"select"===i.nodeName.toLowerCase()&&i.multiple?void new o(i,{value:v}):t(i)?void new u(i,{value:v}):void new a(i,{value:v})});var i={enter:function(e,t,n){return{event:"keyup",handler:function(e){return 13===e.keyCode?n.call(this,e):void 0}}}};e.view.attr(/can-[\w\.]+/,function(t,a){var s=a.attributeName,o=s.substr("can-".length),u=function(i){var o=n(t.getAttribute(s)),u=a.scope.read(o,{returnObserveMethods:!0,isArgument:!0});return u.value.call(u.parent,a.scope._context,e.$(this),i)};if(i[o]){var l=i[o](a,t,u);u=l.handler,o=l.event}e.bind.call(t,o,u)});var a=e.Control.extend({init:function(){"SELECT"===this.element[0].nodeName.toUpperCase()?setTimeout(e.proxy(this.set,this),1):this.set()},"{value} change":"set",set:function(){if(this.element){var e=this.options.value();this.element[0].value=null==e?"":e}},change:function(){this.element&&this.options.value(this.element[0].value)}}),s=e.Control.extend({init:function(){this.isCheckbox="checkbox"===this.element[0].type.toLowerCase(),this.check()},"{value} change":"check",check:function(){if(this.isCheckbox){var t=this.options.value(),n=this.options.trueValue||!0;this.element[0].checked=t===n}else{var i=this.options.value()==this.element[0].value?"set":"remove";e.attr[i](this.element[0],"checked",!0)}},change:function(){this.isCheckbox?this.options.value(this.element[0].checked?this.options.trueValue:this.options.falseValue):this.element[0].checked&&this.options.value(this.element[0].value)}}),o=a.extend({init:function(){this.delimiter=";",this.set()},set:function(){var t=this.options.value();"string"==typeof t?(t=t.split(this.delimiter),this.isString=!0):t&&(t=e.makeArray(t));var n={};e.each(t,function(e){n[e]=!0}),e.each(this.element[0].childNodes,function(e){e.value&&(e.selected=!!n[e.value])})},get:function(){var t=[],n=this.element[0].childNodes;return e.each(n,function(e){e.selected&&e.value&&t.push(e.value)}),t},change:function(){var t=this.get(),n=this.options.value();this.isString||"string"==typeof n?(this.isString=!0,this.options.value(t.join(this.delimiter))):n instanceof e.List?n.attr(t,!0):this.options.value(t)}}),u=e.Control.extend({init:function(){this.set(),this.on("blur","setValue")},"{value} change":"set",set:function(){var e=this.options.value();this.element[0].innerHTML="undefined"==typeof e?"":e},setValue:function(){this.options.value(this.element[0].innerHTML)}})}); +/*can/view/mustache/mustache*/ +define("can/view/mustache/mustache",["can/util/util","can/view/scope/scope","can/view/view","can/view/scanner","can/compute/compute","can/view/render","can/view/bindings/bindings"],function(e){e.view.ext=".mustache";var n="scope",t="___h4sh",r="{scope:"+n+",options:options}",i="{scope:"+n+",options:options, special: true}",s=n+",options",o=/((([^'"\s]+?=)?('.*?'|".*?"))|.*?)\s/g,a=/^(('.*?'|".*?"|[0-9]+\.?[0-9]*|true|false|null|undefined)|((.+?)=(('.*?'|".*?"|[0-9]+\.?[0-9]*|true|false)|(.+))))$/,c=function(e){return'{get:"'+e.replace(/"/g,'\\"')+'"}'},u=function(e){return e&&"string"==typeof e.get},f=function(n){return n instanceof e.Map||n&&!!n._get},p=function(e){return e&&e.splice&&"number"==typeof e.length},l=function(n,t,r){var i=function(e,r){return n(e||t,r)};return function(n,s){return void 0===n||n instanceof e.view.Scope||(n=t.add(n)),void 0===s||s instanceof e.view.Options||(s=r.add(s)),i(n,s||r)}},h=function(n,t){if(this.constructor!==h){var r=new h(n);return function(e,n){return r.render(e,n)}}return"function"==typeof n?void(this.template={fn:n}):(e.extend(this,n),void(this.template=this.scanner.scan(this.text,this.name)))};e.Mustache=e.global.Mustache=h,h.prototype.render=function(n,t){return n instanceof e.view.Scope||(n=new e.view.Scope(n||{})),t instanceof e.view.Options||(t=new e.view.Options(t||{})),t=t||{},this.template.fn.call(n,n,t)},e.extend(h.prototype,{scanner:new e.view.Scanner({text:{start:"",scope:n,options:",options: options",argNames:s},tokens:[["returnLeft","{{{","{{[{&]"],["commentFull","{{!}}","^[\\s\\t]*{{!.+?}}\\n"],["commentLeft","{{!","(\\n[\\s\\t]*{{!|{{!)"],["escapeFull","{{}}","(^[\\s\\t]*{{[#/^][^}]+?}}\\n|\\n[\\s\\t]*{{[#/^][^}]+?}}\\n|\\n[\\s\\t]*{{[#/^][^}]+?}}$)",function(e){return{before:/^\n.+?\n$/.test(e)?"\n":"",content:e.match(/\{\{(.+?)\}\}/)[1]||""}}],["escapeLeft","{{"],["returnRight","}}}"],["right","}}"]],helpers:[{name:/^>[\s]*\w*/,fn:function(n,t){var r=e.trim(n.replace(/^>\s?/,"")).replace(/["|']/g,"");return"can.Mustache.renderPartial('"+r+"',"+s+")"}},{name:/^\s*data\s/,fn:function(e,t){var r=e.match(/["|'](.*)["|']/)[1];return"can.proxy(function(__){can.data(can.$(__),'"+r+"', this.attr('.')); }, "+n+")"}},{name:/\s*\(([\$\w]+)\)\s*->([^\n]*)/,fn:function(e){var t=/\s*\(([\$\w]+)\)\s*->([^\n]*)/,r=e.match(t);return"can.proxy(function(__){var "+r[1]+"=can.$(__);with("+n+".attr('.')){"+r[2]+"}}, this);"}},{name:/^.*$/,fn:function(n,u){var f=!1,p={content:"",startTxt:!1,startOnlyTxt:!1,end:!1};if(n=e.trim(n),n.length&&(f=n.match(/^([#^/]|else$)/))){switch(f=f[0]){case"#":case"^":u.specialAttribute?p.startOnlyTxt=!0:(p.startTxt=!0,p.escaped=0);break;case"/":return p.end=!0,p.content+='return ___v1ew.join("");}}])',p}n=n.substring(1)}if("else"!==f){var l,h=[],v=[],d=0;p.content+="can.Mustache.txt(\n"+(u.specialAttribute?i:r)+",\n"+(f?'"'+f+'"':"null")+",",(e.trim(n)+" ").replace(o,function(e,n){d&&(l=n.match(a))?l[2]?h.push(l[0]):v.push(l[4]+":"+(l[6]?l[6]:c(l[5]))):h.push(c(n)),d++}),p.content+=h.join(","),v.length&&(p.content+=",{"+t+":{"+v.join(",")+"}}")}switch(f&&"else"!==f&&(p.content+=",[\n\n"),f){case"^":case"#":p.content+="{fn:function("+s+"){var ___v1ew = [];";break;case"else":p.content+='return ___v1ew.join("");}},\n{inverse:function('+s+"){\nvar ___v1ew = [];";break;default:p.content+=")"}return f||(p.startTxt=!0,p.end=!0),p}}]})});for(var v=e.view.Scanner.prototype.helpers,d=0;d\n
      \n
    • Demo
    • \n
    • HTML
    • \n
    • JS
    • \n
    \n
    \n