\n\n
\n
\n ";
- if (stack1 = helpers.signature) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
- else { stack1 = depth0.signature; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
- if(stack1 || stack1 === 0) { buffer += stack1; }
- buffer += "\n
\n\n
\n
";
- if (stack1 = helpers.sampleJSON) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
- else { stack1 = depth0.sampleJSON; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
- buffer += escapeExpression(stack1)
- + "
\n
\n
\n
\n\n";
- return buffer;
- });
-})();
-
-(function() {
- var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
-templates['status_code'] = template(function (Handlebars,depth0,helpers,partials,data) {
- this.compilerInfo = [4,'>= 1.0.0'];
-helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
- var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression;
-
-
- buffer += "
";
- if (stack1 = helpers.code) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
- else { stack1 = depth0.code; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
- buffer += escapeExpression(stack1)
- + " | \n
";
- if (stack1 = helpers.message) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
- else { stack1 = depth0.message; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
- if(stack1 || stack1 === 0) { buffer += stack1; }
- buffer += " | \n";
- return buffer;
- });
-})();
-
-
-
-// Generated by CoffeeScript 1.6.3
-(function() {
- var ContentTypeView, HeaderView, MainView, OperationView, ParameterContentTypeView, ParameterView, ResourceView, ResponseContentTypeView, SignatureView, StatusCodeView, SwaggerUi, _ref, _ref1, _ref10, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9,
- __hasProp = {}.hasOwnProperty,
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
-
- SwaggerUi = (function(_super) {
- __extends(SwaggerUi, _super);
-
- function SwaggerUi() {
- _ref = SwaggerUi.__super__.constructor.apply(this, arguments);
- return _ref;
- }
-
- SwaggerUi.prototype.dom_id = "swagger_ui";
-
- SwaggerUi.prototype.options = null;
-
- SwaggerUi.prototype.api = null;
-
- SwaggerUi.prototype.headerView = null;
-
- SwaggerUi.prototype.mainView = null;
-
- SwaggerUi.prototype.initialize = function(options) {
- var _this = this;
- if (options == null) {
- options = {};
- }
- if (options.dom_id != null) {
- this.dom_id = options.dom_id;
- delete options.dom_id;
- }
- if ($('#' + this.dom_id) == null) {
- $('body').append('
');
- }
- this.options = options;
- this.options.success = function() {
- return _this.render();
- };
- this.options.progress = function(d) {
- return _this.showMessage(d);
- };
- this.options.failure = function(d) {
- return _this.onLoadFailure(d);
- };
- this.headerView = new HeaderView({
- el: $('#header')
- });
- return this.headerView.on('update-swagger-ui', function(data) {
- return _this.updateSwaggerUi(data);
- });
- };
-
- SwaggerUi.prototype.updateSwaggerUi = function(data) {
- this.options.url = data.url;
- return this.load();
- };
-
- SwaggerUi.prototype.load = function() {
- var url, _ref1;
- if ((_ref1 = this.mainView) != null) {
- _ref1.clear();
- }
- url = this.options.url;
- if (url.indexOf("http") !== 0) {
- url = this.buildUrl(window.location.href.toString(), url);
- }
- this.options.url = url;
- this.headerView.update(url);
- this.api = new SwaggerApi(this.options);
- this.api.build();
- return this.api;
- };
-
- SwaggerUi.prototype.render = function() {
- var _this = this;
- this.showMessage('Finished Loading Resource Information. Rendering Swagger UI...');
- this.mainView = new MainView({
- model: this.api,
- el: $('#' + this.dom_id)
- }).render();
- this.showMessage();
- switch (this.options.docExpansion) {
- case "full":
- Docs.expandOperationsForResource('');
- break;
- case "list":
- Docs.collapseOperationsForResource('');
- }
- if (this.options.onComplete) {
- this.options.onComplete(this.api, this);
- }
- return setTimeout(function() {
- return Docs.shebang();
- }, 400);
- };
-
- SwaggerUi.prototype.buildUrl = function(base, url) {
- var parts;
- console.log("base is " + base);
- parts = base.split("/");
- base = parts[0] + "//" + parts[2];
- if (url.indexOf("/") === 0) {
- return base + url;
- } else {
- return base + "/" + url;
- }
- };
-
- SwaggerUi.prototype.showMessage = function(data) {
- if (data == null) {
- data = '';
- }
- $('#message-bar').removeClass('message-fail');
- $('#message-bar').addClass('message-success');
- return $('#message-bar').html(data);
- };
-
- SwaggerUi.prototype.onLoadFailure = function(data) {
- var val;
- if (data == null) {
- data = '';
- }
- $('#message-bar').removeClass('message-success');
- $('#message-bar').addClass('message-fail');
- val = $('#message-bar').html(data);
- if (this.options.onFailure != null) {
- this.options.onFailure(data);
- }
- return val;
- };
-
- return SwaggerUi;
-
- })(Backbone.Router);
-
- window.SwaggerUi = SwaggerUi;
-
- HeaderView = (function(_super) {
- __extends(HeaderView, _super);
-
- function HeaderView() {
- _ref1 = HeaderView.__super__.constructor.apply(this, arguments);
- return _ref1;
- }
-
- HeaderView.prototype.events = {
- 'click #show-pet-store-icon': 'showPetStore',
- 'click #show-wordnik-dev-icon': 'showWordnikDev',
- 'click #explore': 'showCustom',
- 'keyup #input_baseUrl': 'showCustomOnKeyup',
- 'keyup #input_apiKey': 'showCustomOnKeyup'
- };
-
- HeaderView.prototype.initialize = function() {};
-
- HeaderView.prototype.showPetStore = function(e) {
- return this.trigger('update-swagger-ui', {
- url: "http://petstore.swagger.wordnik.com/api/api-docs"
- });
- };
-
- HeaderView.prototype.showWordnikDev = function(e) {
- return this.trigger('update-swagger-ui', {
- url: "http://api.wordnik.com/v4/resources.json"
- });
- };
-
- HeaderView.prototype.showCustomOnKeyup = function(e) {
- if (e.keyCode === 13) {
- return this.showCustom();
- }
- };
-
- HeaderView.prototype.showCustom = function(e) {
- if (e != null) {
- e.preventDefault();
- }
- return this.trigger('update-swagger-ui', {
- url: $('#input_baseUrl').val(),
- apiKey: $('#input_apiKey').val()
- });
- };
-
- HeaderView.prototype.update = function(url, apiKey, trigger) {
- if (trigger == null) {
- trigger = false;
- }
- $('#input_baseUrl').val(url);
- if (trigger) {
- return this.trigger('update-swagger-ui', {
- url: url
- });
- }
- };
-
- return HeaderView;
-
- })(Backbone.View);
-
- MainView = (function(_super) {
- __extends(MainView, _super);
-
- function MainView() {
- _ref2 = MainView.__super__.constructor.apply(this, arguments);
- return _ref2;
- }
-
- MainView.prototype.initialize = function() {};
-
- MainView.prototype.render = function() {
- var resource, _i, _len, _ref3;
- $(this.el).html(Handlebars.templates.main(this.model));
- _ref3 = this.model.apisArray;
- for (_i = 0, _len = _ref3.length; _i < _len; _i++) {
- resource = _ref3[_i];
- this.addResource(resource);
- }
- return this;
- };
-
- MainView.prototype.addResource = function(resource) {
- var resourceView;
- resourceView = new ResourceView({
- model: resource,
- tagName: 'li',
- id: 'resource_' + resource.name,
- className: 'resource'
- });
- return $('#resources').append(resourceView.render().el);
- };
-
- MainView.prototype.clear = function() {
- return $(this.el).html('');
- };
-
- return MainView;
-
- })(Backbone.View);
-
- ResourceView = (function(_super) {
- __extends(ResourceView, _super);
-
- function ResourceView() {
- _ref3 = ResourceView.__super__.constructor.apply(this, arguments);
- return _ref3;
- }
-
- ResourceView.prototype.initialize = function() {};
-
- ResourceView.prototype.render = function() {
- var operation, _i, _len, _ref4;
- console.log(this.model.description);
- $(this.el).html(Handlebars.templates.resource(this.model));
- this.number = 0;
- _ref4 = this.model.operationsArray;
- for (_i = 0, _len = _ref4.length; _i < _len; _i++) {
- operation = _ref4[_i];
- this.addOperation(operation);
- }
- return this;
- };
-
- ResourceView.prototype.addOperation = function(operation) {
- var operationView;
- operation.number = this.number;
- operationView = new OperationView({
- model: operation,
- tagName: 'li',
- className: 'endpoint'
- });
- $('.endpoints', $(this.el)).append(operationView.render().el);
- return this.number++;
- };
-
- return ResourceView;
-
- })(Backbone.View);
-
- OperationView = (function(_super) {
- __extends(OperationView, _super);
-
- function OperationView() {
- _ref4 = OperationView.__super__.constructor.apply(this, arguments);
- return _ref4;
- }
-
- OperationView.prototype.events = {
- 'submit .sandbox': 'submitOperation',
- 'click .submit': 'submitOperation',
- 'click .response_hider': 'hideResponse',
- 'click .toggleOperation': 'toggleOperationContent'
- };
-
- OperationView.prototype.initialize = function() {};
-
- OperationView.prototype.render = function() {
- var contentTypeModel, isMethodSubmissionSupported, param, responseContentTypeView, responseSignatureView, signatureModel, statusCode, type, _i, _j, _k, _len, _len1, _len2, _ref5, _ref6, _ref7;
- isMethodSubmissionSupported = true;
- if (!isMethodSubmissionSupported) {
- this.model.isReadOnly = true;
- }
- $(this.el).html(Handlebars.templates.operation(this.model));
- if (this.model.responseClassSignature && this.model.responseClassSignature !== 'string') {
- signatureModel = {
- sampleJSON: this.model.responseSampleJSON,
- isParam: false,
- signature: this.model.responseClassSignature
- };
- responseSignatureView = new SignatureView({
- model: signatureModel,
- tagName: 'div'
- });
- $('.model-signature', $(this.el)).append(responseSignatureView.render().el);
- } else {
- $('.model-signature', $(this.el)).html(this.model.type);
- }
- contentTypeModel = {
- isParam: false
- };
- contentTypeModel.consumes = this.model.consumes;
- contentTypeModel.produces = this.model.produces;
- _ref5 = this.model.parameters;
- for (_i = 0, _len = _ref5.length; _i < _len; _i++) {
- param = _ref5[_i];
- type = param.type || param.dataType;
- if (type.toLowerCase() === 'file') {
- if (!contentTypeModel.consumes) {
- console.log("set content type ");
- contentTypeModel.consumes = 'multipart/form-data';
- }
- }
- }
- responseContentTypeView = new ResponseContentTypeView({
- model: contentTypeModel
- });
- $('.response-content-type', $(this.el)).append(responseContentTypeView.render().el);
- _ref6 = this.model.parameters;
- for (_j = 0, _len1 = _ref6.length; _j < _len1; _j++) {
- param = _ref6[_j];
- this.addParameter(param, contentTypeModel.consumes);
- }
- _ref7 = this.model.responseMessages;
- for (_k = 0, _len2 = _ref7.length; _k < _len2; _k++) {
- statusCode = _ref7[_k];
- this.addStatusCode(statusCode);
- }
- return this;
- };
-
- OperationView.prototype.addParameter = function(param, consumes) {
- var paramView;
- param.consumes = consumes;
- paramView = new ParameterView({
- model: param,
- tagName: 'tr',
- readOnly: this.model.isReadOnly
- });
- return $('.operation-params', $(this.el)).append(paramView.render().el);
- };
-
- OperationView.prototype.addStatusCode = function(statusCode) {
- var statusCodeView;
- statusCodeView = new StatusCodeView({
- model: statusCode,
- tagName: 'tr'
- });
- return $('.operation-status', $(this.el)).append(statusCodeView.render().el);
- };
-
- OperationView.prototype.submitOperation = function(e) {
- var error_free, form, map, o, opts, val, _i, _j, _k, _len, _len1, _len2, _ref5, _ref6, _ref7;
- if (e != null) {
- e.preventDefault();
- }
- form = $('.sandbox', $(this.el));
- error_free = true;
- form.find("input.required").each(function() {
- var _this = this;
- $(this).removeClass("error");
- if (jQuery.trim($(this).val()) === "") {
- $(this).addClass("error");
- $(this).wiggle({
- callback: function() {
- return $(_this).focus();
- }
- });
- return error_free = false;
- }
- });
- if (error_free) {
- map = {};
- opts = {
- parent: this
- };
- _ref5 = form.find("input");
- for (_i = 0, _len = _ref5.length; _i < _len; _i++) {
- o = _ref5[_i];
- if ((o.value != null) && jQuery.trim(o.value).length > 0) {
- map[o.name] = o.value;
- }
- }
- _ref6 = form.find("textarea");
- for (_j = 0, _len1 = _ref6.length; _j < _len1; _j++) {
- o = _ref6[_j];
- if ((o.value != null) && jQuery.trim(o.value).length > 0) {
- map["body"] = o.value;
- }
- }
- _ref7 = form.find("select");
- for (_k = 0, _len2 = _ref7.length; _k < _len2; _k++) {
- o = _ref7[_k];
- val = this.getSelectedValue(o);
- if ((val != null) && jQuery.trim(val).length > 0) {
- map[o.name] = val;
- }
- }
- opts.responseContentType = $("div select[name=responseContentType]", $(this.el)).val();
- opts.requestContentType = $("div select[name=parameterContentType]", $(this.el)).val();
- $(".response_throbber", $(this.el)).show();
- return this.model["do"](map, opts, this.showCompleteStatus, this.showErrorStatus, this);
- }
- };
-
- OperationView.prototype.success = function(response, parent) {
- return parent.showCompleteStatus(response);
- };
-
- OperationView.prototype.getSelectedValue = function(select) {
- var opt, options, _i, _len, _ref5;
- if (!select.multiple) {
- return select.value;
- } else {
- options = [];
- _ref5 = select.options;
- for (_i = 0, _len = _ref5.length; _i < _len; _i++) {
- opt = _ref5[_i];
- if (opt.selected) {
- options.push(opt.value);
- }
- }
- if (options.length > 0) {
- return options.join(",");
- } else {
- return null;
- }
- }
- };
-
- OperationView.prototype.hideResponse = function(e) {
- if (e != null) {
- e.preventDefault();
- }
- $(".response", $(this.el)).slideUp();
- return $(".response_hider", $(this.el)).fadeOut();
- };
-
- OperationView.prototype.showResponse = function(response) {
- var prettyJson;
- prettyJson = JSON.stringify(response, null, "\t").replace(/\n/g, "
");
- return $(".response_body", $(this.el)).html(escape(prettyJson));
- };
-
- OperationView.prototype.showErrorStatus = function(data, parent) {
- return parent.showStatus(data);
- };
-
- OperationView.prototype.showCompleteStatus = function(data, parent) {
- return parent.showStatus(data);
- };
-
- OperationView.prototype.formatXml = function(xml) {
- var contexp, formatted, indent, lastType, lines, ln, pad, reg, transitions, wsexp, _fn, _i, _len;
- reg = /(>)(<)(\/*)/g;
- wsexp = /[ ]*(.*)[ ]+\n/g;
- contexp = /(<.+>)(.+\n)/g;
- xml = xml.replace(reg, '$1\n$2$3').replace(wsexp, '$1\n').replace(contexp, '$1\n$2');
- pad = 0;
- formatted = '';
- lines = xml.split('\n');
- indent = 0;
- lastType = 'other';
- transitions = {
- 'single->single': 0,
- 'single->closing': -1,
- 'single->opening': 0,
- 'single->other': 0,
- 'closing->single': 0,
- 'closing->closing': -1,
- 'closing->opening': 0,
- 'closing->other': 0,
- 'opening->single': 1,
- 'opening->closing': 0,
- 'opening->opening': 1,
- 'opening->other': 1,
- 'other->single': 0,
- 'other->closing': -1,
- 'other->opening': 0,
- 'other->other': 0
- };
- _fn = function(ln) {
- var fromTo, j, key, padding, type, types, value;
- types = {
- single: Boolean(ln.match(/<.+\/>/)),
- closing: Boolean(ln.match(/<\/.+>/)),
- opening: Boolean(ln.match(/<[^!?].*>/))
- };
- type = ((function() {
- var _results;
- _results = [];
- for (key in types) {
- value = types[key];
- if (value) {
- _results.push(key);
- }
- }
- return _results;
- })())[0];
- type = type === void 0 ? 'other' : type;
- fromTo = lastType + '->' + type;
- lastType = type;
- padding = '';
- indent += transitions[fromTo];
- padding = ((function() {
- var _j, _ref5, _results;
- _results = [];
- for (j = _j = 0, _ref5 = indent; 0 <= _ref5 ? _j < _ref5 : _j > _ref5; j = 0 <= _ref5 ? ++_j : --_j) {
- _results.push(' ');
- }
- return _results;
- })()).join('');
- if (fromTo === 'opening->closing') {
- return formatted = formatted.substr(0, formatted.length - 1) + ln + '\n';
- } else {
- return formatted += padding + ln + '\n';
- }
- };
- for (_i = 0, _len = lines.length; _i < _len; _i++) {
- ln = lines[_i];
- _fn(ln);
- }
- return formatted;
- };
-
- OperationView.prototype.showStatus = function(data) {
- var code, content, contentType, headers, pre, response_body;
- content = data.content.data;
- headers = data.getHeaders();
- contentType = headers["Content-Type"];
- if (content === void 0) {
- code = $('
').text("no content");
- pre = $('
').append(code);
- } else if (contentType.indexOf("application/json") === 0 || contentType.indexOf("application/hal+json") === 0) {
- code = $('
').text(JSON.stringify(JSON.parse(content), null, 2));
- pre = $('
').append(code);
- } else if (contentType.indexOf("application/xml") === 0) {
- code = $('
').text(this.formatXml(content));
- pre = $('
').append(code);
- } else if (contentType.indexOf("text/html") === 0) {
- code = $('
').html(content);
- pre = $('
').append(code);
- } else {
- code = $('
').text(content);
- pre = $('
').append(code);
- }
- response_body = pre;
- $(".request_url").html("
" + data.request.url + "
");
- $(".response_code", $(this.el)).html("
" + data.status + "
");
- $(".response_body", $(this.el)).html(response_body);
- $(".response_headers", $(this.el)).html("
" + JSON.stringify(data.getHeaders()) + "
");
- $(".response", $(this.el)).slideDown();
- $(".response_hider", $(this.el)).show();
- $(".response_throbber", $(this.el)).hide();
- return hljs.highlightBlock($('.response_body', $(this.el))[0]);
- };
-
- OperationView.prototype.toggleOperationContent = function() {
- var elem;
- elem = $('#' + Docs.escapeResourceName(this.model.resourceName) + "_" + this.model.nickname + "_" + this.model.method + "_" + this.model.number + "_content");
- if (elem.is(':visible')) {
- return Docs.collapseOperation(elem);
- } else {
- return Docs.expandOperation(elem);
- }
- };
-
- return OperationView;
-
- })(Backbone.View);
-
- StatusCodeView = (function(_super) {
- __extends(StatusCodeView, _super);
-
- function StatusCodeView() {
- _ref5 = StatusCodeView.__super__.constructor.apply(this, arguments);
- return _ref5;
- }
-
- StatusCodeView.prototype.initialize = function() {};
-
- StatusCodeView.prototype.render = function() {
- var template;
- template = this.template();
- $(this.el).html(template(this.model));
- return this;
- };
-
- StatusCodeView.prototype.template = function() {
- return Handlebars.templates.status_code;
- };
-
- return StatusCodeView;
-
- })(Backbone.View);
-
- ParameterView = (function(_super) {
- __extends(ParameterView, _super);
-
- function ParameterView() {
- _ref6 = ParameterView.__super__.constructor.apply(this, arguments);
- return _ref6;
- }
-
- ParameterView.prototype.initialize = function() {};
-
- ParameterView.prototype.render = function() {
- var contentTypeModel, isParam, parameterContentTypeView, responseContentTypeView, signatureModel, signatureView, template, type;
- type = this.model.type || this.model.dataType;
- if (this.model.paramType === 'body') {
- this.model.isBody = true;
- }
- if (type.toLowerCase() === 'file') {
- this.model.isFile = true;
- }
- template = this.template();
- $(this.el).html(template(this.model));
- signatureModel = {
- sampleJSON: this.model.sampleJSON,
- isParam: true,
- signature: this.model.signature
- };
- if (this.model.sampleJSON) {
- signatureView = new SignatureView({
- model: signatureModel,
- tagName: 'div'
- });
- $('.model-signature', $(this.el)).append(signatureView.render().el);
- } else {
- $('.model-signature', $(this.el)).html(this.model.signature);
- }
- isParam = false;
- if (this.model.isBody) {
- isParam = true;
- }
- contentTypeModel = {
- isParam: isParam
- };
- contentTypeModel.consumes = this.model.consumes;
- if (isParam) {
- parameterContentTypeView = new ParameterContentTypeView({
- model: contentTypeModel
- });
- $('.parameter-content-type', $(this.el)).append(parameterContentTypeView.render().el);
- } else {
- responseContentTypeView = new ResponseContentTypeView({
- model: contentTypeModel
- });
- $('.response-content-type', $(this.el)).append(responseContentTypeView.render().el);
- }
- return this;
- };
-
- ParameterView.prototype.template = function() {
- if (this.model.isList) {
- return Handlebars.templates.param_list;
- } else {
- if (this.options.readOnly) {
- if (this.model.required) {
- return Handlebars.templates.param_readonly_required;
- } else {
- return Handlebars.templates.param_readonly;
- }
- } else {
- if (this.model.required) {
- return Handlebars.templates.param_required;
- } else {
- return Handlebars.templates.param;
- }
- }
- }
- };
-
- return ParameterView;
-
- })(Backbone.View);
-
- SignatureView = (function(_super) {
- __extends(SignatureView, _super);
-
- function SignatureView() {
- _ref7 = SignatureView.__super__.constructor.apply(this, arguments);
- return _ref7;
- }
-
- SignatureView.prototype.events = {
- 'click a.description-link': 'switchToDescription',
- 'click a.snippet-link': 'switchToSnippet',
- 'mousedown .snippet': 'snippetToTextArea'
- };
-
- SignatureView.prototype.initialize = function() {};
-
- SignatureView.prototype.render = function() {
- var template;
- template = this.template();
- $(this.el).html(template(this.model));
- this.switchToDescription();
- this.isParam = this.model.isParam;
- if (this.isParam) {
- $('.notice', $(this.el)).text('Click to set as parameter value');
- }
- return this;
- };
-
- SignatureView.prototype.template = function() {
- return Handlebars.templates.signature;
- };
-
- SignatureView.prototype.switchToDescription = function(e) {
- if (e != null) {
- e.preventDefault();
- }
- $(".snippet", $(this.el)).hide();
- $(".description", $(this.el)).show();
- $('.description-link', $(this.el)).addClass('selected');
- return $('.snippet-link', $(this.el)).removeClass('selected');
- };
-
- SignatureView.prototype.switchToSnippet = function(e) {
- if (e != null) {
- e.preventDefault();
- }
- $(".description", $(this.el)).hide();
- $(".snippet", $(this.el)).show();
- $('.snippet-link', $(this.el)).addClass('selected');
- return $('.description-link', $(this.el)).removeClass('selected');
- };
-
- SignatureView.prototype.snippetToTextArea = function(e) {
- var textArea;
- if (this.isParam) {
- if (e != null) {
- e.preventDefault();
- }
- textArea = $('textarea', $(this.el.parentNode.parentNode.parentNode));
- if ($.trim(textArea.val()) === '') {
- return textArea.val(this.model.sampleJSON);
- }
- }
- };
-
- return SignatureView;
-
- })(Backbone.View);
-
- ContentTypeView = (function(_super) {
- __extends(ContentTypeView, _super);
-
- function ContentTypeView() {
- _ref8 = ContentTypeView.__super__.constructor.apply(this, arguments);
- return _ref8;
- }
-
- ContentTypeView.prototype.initialize = function() {};
-
- ContentTypeView.prototype.render = function() {
- var template;
- template = this.template();
- $(this.el).html(template(this.model));
- $('label[for=contentType]', $(this.el)).text('Response Content Type');
- return this;
- };
-
- ContentTypeView.prototype.template = function() {
- return Handlebars.templates.content_type;
- };
-
- return ContentTypeView;
-
- })(Backbone.View);
-
- ResponseContentTypeView = (function(_super) {
- __extends(ResponseContentTypeView, _super);
-
- function ResponseContentTypeView() {
- _ref9 = ResponseContentTypeView.__super__.constructor.apply(this, arguments);
- return _ref9;
- }
-
- ResponseContentTypeView.prototype.initialize = function() {};
-
- ResponseContentTypeView.prototype.render = function() {
- var template;
- template = this.template();
- $(this.el).html(template(this.model));
- $('label[for=responseContentType]', $(this.el)).text('Response Content Type');
- return this;
- };
-
- ResponseContentTypeView.prototype.template = function() {
- return Handlebars.templates.response_content_type;
- };
-
- return ResponseContentTypeView;
-
- })(Backbone.View);
-
- ParameterContentTypeView = (function(_super) {
- __extends(ParameterContentTypeView, _super);
-
- function ParameterContentTypeView() {
- _ref10 = ParameterContentTypeView.__super__.constructor.apply(this, arguments);
- return _ref10;
- }
-
- ParameterContentTypeView.prototype.initialize = function() {};
-
- ParameterContentTypeView.prototype.render = function() {
- var template;
- template = this.template();
- $(this.el).html(template(this.model));
- $('label[for=parameterContentType]', $(this.el)).text('Parameter content type:');
- return this;
- };
-
- ParameterContentTypeView.prototype.template = function() {
- return Handlebars.templates.parameter_content_type;
- };
-
- return ParameterContentTypeView;
-
- })(Backbone.View);
-
-}).call(this);
diff --git a/NuGet/ServiceStack.Api.Swagger/content/swagger-ui/swagger-ui.min.js b/NuGet/ServiceStack.Api.Swagger/content/swagger-ui/swagger-ui.min.js
deleted file mode 100644
index df0b15452bb..00000000000
--- a/NuGet/ServiceStack.Api.Swagger/content/swagger-ui/swagger-ui.min.js
+++ /dev/null
@@ -1 +0,0 @@
-$(function(){$.fn.vAlign=function(){return this.each(function(c){var a=$(this).height();var d=$(this).parent().height();var b=(d-a)/2;$(this).css("margin-top",b)})};$.fn.stretchFormtasticInputWidthToParent=function(){return this.each(function(b){var d=$(this).closest("form").innerWidth();var c=parseInt($(this).closest("form").css("padding-left"),10)+parseInt($(this).closest("form").css("padding-right"),10);var a=parseInt($(this).css("padding-left"),10)+parseInt($(this).css("padding-right"),10);$(this).css("width",d-c-a)})};$("form.formtastic li.string input, form.formtastic textarea").stretchFormtasticInputWidthToParent();$("ul.downplayed li div.content p").vAlign();$("form.sandbox").submit(function(){var a=true;$(this).find("input.required").each(function(){$(this).removeClass("error");if($(this).val()==""){$(this).addClass("error");$(this).wiggle();a=false}});return a})});function clippyCopiedCallback(b){$("#api_key_copied").fadeIn().delay(1000).fadeOut()}function log(){if(window.console){console.log.apply(console,arguments)}}if(Function.prototype.bind&&console&&typeof console.log=="object"){["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(a){console[a]=this.bind(console[a],console)},Function.prototype.call)}var Docs={shebang:function(){var b=$.param.fragment().split("/");b.shift();switch(b.length){case 1:var d="resource_"+b[0];Docs.expandEndpointListForResource(b[0]);$("#"+d).slideto({highlight:false});break;case 2:Docs.expandEndpointListForResource(b[0]);$("#"+d).slideto({highlight:false});var c=b.join("_");var a=c+"_content";Docs.expandOperation($("#"+a));$("#"+c).slideto({highlight:false});break}},toggleEndpointListForResource:function(b){var a=$("li#resource_"+Docs.escapeResourceName(b)+" ul.endpoints");if(a.is(":visible")){Docs.collapseEndpointListForResource(b)}else{Docs.expandEndpointListForResource(b)}},expandEndpointListForResource:function(b){var b=Docs.escapeResourceName(b);if(b==""){$(".resource ul.endpoints").slideDown();return}$("li#resource_"+b).addClass("active");var a=$("li#resource_"+b+" ul.endpoints");a.slideDown()},collapseEndpointListForResource:function(b){var b=Docs.escapeResourceName(b);$("li#resource_"+b).removeClass("active");var a=$("li#resource_"+b+" ul.endpoints");a.slideUp()},expandOperationsForResource:function(a){Docs.expandEndpointListForResource(a);if(a==""){$(".resource ul.endpoints li.operation div.content").slideDown();return}$("li#resource_"+Docs.escapeResourceName(a)+" li.operation div.content").each(function(){Docs.expandOperation($(this))})},collapseOperationsForResource:function(a){Docs.expandEndpointListForResource(a);$("li#resource_"+Docs.escapeResourceName(a)+" li.operation div.content").each(function(){Docs.collapseOperation($(this))})},escapeResourceName:function(a){return a.replace(/[!"#$%&'()*+,.\/:;<=>?@\[\\\]\^`{|}~]/g,"\\$&")},expandOperation:function(a){a.slideDown()},collapseOperation:function(a){a.slideUp()}};(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.content_type=b(function(g,l,f,k,j){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,g.helpers);j=j||{};var i="",c,h="function",m=this;function e(r,q){var o="",p;o+="\n ";p=f.each.call(r,r.produces,{hash:{},inverse:m.noop,fn:m.program(2,d,q),data:q});if(p||p===0){o+=p}o+="\n";return o}function d(r,q){var o="",p;o+='\n
\n ";return o}function n(p,o){return'\n
\n'}i+='
\n
\n";return i})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.main=b(function(g,m,f,l,k){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,g.helpers);k=k||{};var i="",c,h="function",j=this.escapeExpression,p=this;function e(v,u){var r="",t,s;r+='\n
'+j(((t=((t=v.info),t==null||t===false?t:t.title)),typeof t===h?t.apply(v):t))+'
\n
';s=((t=((t=v.info),t==null||t===false?t:t.description)),typeof t===h?t.apply(v):t);if(s||s===0){r+=s}r+="
\n ";s=f["if"].call(v,((t=v.info),t==null||t===false?t:t.termsOfServiceUrl),{hash:{},inverse:p.noop,fn:p.program(2,d,u),data:u});if(s||s===0){r+=s}r+="\n ";s=f["if"].call(v,((t=v.info),t==null||t===false?t:t.contact),{hash:{},inverse:p.noop,fn:p.program(4,q,u),data:u});if(s||s===0){r+=s}r+="\n ";s=f["if"].call(v,((t=v.info),t==null||t===false?t:t.license),{hash:{},inverse:p.noop,fn:p.program(6,o,u),data:u});if(s||s===0){r+=s}r+="\n ";return r}function d(u,t){var r="",s;r+='
';return r}function q(u,t){var r="",s;r+="
';return r}function o(u,t){var r="",s;r+="
";return r}function n(u,t){var r="",s;r+='\n ,
api version: ';if(s=f.apiVersion){s=s.call(u,{hash:{},data:t})}else{s=u.apiVersion;s=typeof s===h?s.apply(u):s}r+=j(s)+"\n ";return r}i+="
\n ";c=f["if"].call(m,m.info,{hash:{},inverse:p.noop,fn:p.program(1,e,k),data:k});if(c||c===0){i+=c}i+="\n
\n
\n";return i})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.operation=b(function(h,n,g,m,l){this.compilerInfo=[4,">= 1.0.0"];g=this.merge(g,h.helpers);l=l||{};var j="",d,i="function",k=this.escapeExpression,r=this;function f(v,u){var s="",t;s+="\n
Implementation Notes
\n
";if(t=g.notes){t=t.call(v,{hash:{},data:u})}else{t=v.notes;t=typeof t===i?t.apply(v):t}if(t||t===0){s+=t}s+="
\n ";return s}function c(t,s){return'\n
Response Class
\n
\n
\n
\n '}function q(t,s){return'\n
Parameters
\n
\n \n \n | Parameter | \n Value | \n Description | \n Parameter Type | \n Data Type | \n
\n \n \n\n \n
\n '}function p(t,s){return"\n
\n
Error Status Codes
\n
\n \n \n | HTTP Status Code | \n Reason | \n
\n \n \n \n \n
\n "}function o(t,s){return"\n "}function e(t,s){return"\n
\n "}j+="\n
\n - \n \n
\n ";d=g["if"].call(n,n.notes,{hash:{},inverse:r.noop,fn:r.program(1,f,l),data:l});if(d||d===0){j+=d}j+="\n ";d=g["if"].call(n,n.type,{hash:{},inverse:r.noop,fn:r.program(3,c,l),data:l});if(d||d===0){j+=d}j+="\n
\n
\n
Request URL
\n
\n
Response Body
\n
\n
Response Code
\n
\n
Response Headers
\n \n
\n
\n \n
\n";return j})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.param=b(function(f,q,o,j,s){this.compilerInfo=[4,">= 1.0.0"];o=this.merge(o,f.helpers);s=s||{};var p="",g,d="function",c=this.escapeExpression,n=this;function m(x,w){var u="",v;u+="\n ";v=o["if"].call(x,x.isFile,{hash:{},inverse:n.program(4,k,w),fn:n.program(2,l,w),data:w});if(v||v===0){u+=v}u+="\n ";return u}function l(x,w){var u="",v;u+='\n
\n
\n ';return u}function k(x,w){var u="",v;u+="\n ";v=o["if"].call(x,x.defaultValue,{hash:{},inverse:n.program(7,h,w),fn:n.program(5,i,w),data:w});if(v||v===0){u+=v}u+="\n ";return u}function i(x,w){var u="",v;u+="\n
\n ";return u}function h(x,w){var u="",v;u+="\n
\n
\n
\n ';return u}function e(x,w){var u="",v;u+="\n ";v=o["if"].call(x,x.defaultValue,{hash:{},inverse:n.program(12,r,w),fn:n.program(10,t,w),data:w});if(v||v===0){u+=v}u+="\n ";return u}function t(x,w){var u="",v;u+="\n
\n ";return u}function r(x,w){var u="",v;u+="\n
\n ";return u}p+="
";if(g=o.name){g=g.call(q,{hash:{},data:s})}else{g=q.name;g=typeof g===d?g.apply(q):g}p+=c(g)+" | \n
\n\n ";g=o["if"].call(q,q.isBody,{hash:{},inverse:n.program(9,e,s),fn:n.program(1,m,s),data:s});if(g||g===0){p+=g}p+="\n\n | \n
";if(g=o.description){g=g.call(q,{hash:{},data:s})}else{g=q.description;g=typeof g===d?g.apply(q):g}if(g||g===0){p+=g}p+=" | \n
";if(g=o.paramType){g=g.call(q,{hash:{},data:s})}else{g=q.paramType;g=typeof g===d?g.apply(q):g}if(g||g===0){p+=g}p+=' | \n
\n \n | \n';return p})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.param_list=b(function(g,r,p,l,w){this.compilerInfo=[4,">= 1.0.0"];p=this.merge(p,g.helpers);w=w||{};var q="",i,e,o=this,d="function",c=this.escapeExpression;function n(y,x){return" multiple='multiple'"}function m(y,x){return"\n "}function k(A,z){var x="",y;x+="\n ";y=p["if"].call(A,A.defaultValue,{hash:{},inverse:o.program(8,h,z),fn:o.program(6,j,z),data:z});if(y||y===0){x+=y}x+="\n ";return x}function j(y,x){return"\n "}function h(A,z){var x="",y;x+="\n ";y=p["if"].call(A,A.allowMultiple,{hash:{},inverse:o.program(11,v,z),fn:o.program(9,f,z),data:z});if(y||y===0){x+=y}x+="\n ";return x}function f(y,x){return"\n "}function v(y,x){return"\n
\n "}function u(A,z){var x="",y;x+="\n ";y=p["if"].call(A,A.isDefault,{hash:{},inverse:o.program(16,s,z),fn:o.program(14,t,z),data:z});if(y||y===0){x+=y}x+="\n ";return x}function t(A,z){var x="",y;x+='\n
\n ";return x}function s(A,z){var x="",y;x+="\n
\n ";return x}q+="
";if(i=p.name){i=i.call(r,{hash:{},data:w})}else{i=r.name;i=typeof i===d?i.apply(r):i}q+=c(i)+" | \n
\n \n | \n
";if(e=p.description){e=e.call(r,{hash:{},data:w})}else{e=r.description;e=typeof e===d?e.apply(r):e}if(e||e===0){q+=e}q+=" | \n
";if(e=p.paramType){e=e.call(r,{hash:{},data:w})}else{e=r.paramType;e=typeof e===d?e.apply(r):e}if(e||e===0){q+=e}q+=' | \n
| ';return q})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.param_readonly=b(function(g,m,f,l,k){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,g.helpers);k=k||{};var i="",d,h="function",j=this.escapeExpression,o=this;function e(t,s){var q="",r;q+="\n
\n ";return q}function c(t,s){var q="",r;q+="\n ";r=f["if"].call(t,t.defaultValue,{hash:{},inverse:o.program(6,n,s),fn:o.program(4,p,s),data:s});if(r||r===0){q+=r}q+="\n ";return q}function p(t,s){var q="",r;q+="\n ";if(r=f.defaultValue){r=r.call(t,{hash:{},data:s})}else{r=t.defaultValue;r=typeof r===h?r.apply(t):r}q+=j(r)+"\n ";return q}function n(r,q){return"\n (empty)\n "}i+="
";if(d=f.name){d=d.call(m,{hash:{},data:k})}else{d=m.name;d=typeof d===h?d.apply(m):d}i+=j(d)+" | \n
\n ";d=f["if"].call(m,m.isBody,{hash:{},inverse:o.program(3,c,k),fn:o.program(1,e,k),data:k});if(d||d===0){i+=d}i+="\n | \n
";if(d=f.description){d=d.call(m,{hash:{},data:k})}else{d=m.description;d=typeof d===h?d.apply(m):d}if(d||d===0){i+=d}i+=" | \n
";if(d=f.paramType){d=d.call(m,{hash:{},data:k})}else{d=m.paramType;d=typeof d===h?d.apply(m):d}if(d||d===0){i+=d}i+=' | \n
| \n';return i})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.param_readonly_required=b(function(g,m,f,l,k){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,g.helpers);k=k||{};var i="",d,h="function",j=this.escapeExpression,o=this;function e(t,s){var q="",r;q+="\n
\n ";return q}function c(t,s){var q="",r;q+="\n ";r=f["if"].call(t,t.defaultValue,{hash:{},inverse:o.program(6,n,s),fn:o.program(4,p,s),data:s});if(r||r===0){q+=r}q+="\n ";return q}function p(t,s){var q="",r;q+="\n ";if(r=f.defaultValue){r=r.call(t,{hash:{},data:s})}else{r=t.defaultValue;r=typeof r===h?r.apply(t):r}q+=j(r)+"\n ";return q}function n(r,q){return"\n (empty)\n "}i+="
";if(d=f.name){d=d.call(m,{hash:{},data:k})}else{d=m.name;d=typeof d===h?d.apply(m):d}i+=j(d)+" | \n
\n ";d=f["if"].call(m,m.isBody,{hash:{},inverse:o.program(3,c,k),fn:o.program(1,e,k),data:k});if(d||d===0){i+=d}i+="\n | \n
";if(d=f.description){d=d.call(m,{hash:{},data:k})}else{d=m.description;d=typeof d===h?d.apply(m):d}if(d||d===0){i+=d}i+=" | \n
";if(d=f.paramType){d=d.call(m,{hash:{},data:k})}else{d=m.paramType;d=typeof d===h?d.apply(m):d}if(d||d===0){i+=d}i+=' | \n
| \n';return i})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.param_required=b(function(f,q,o,j,u){this.compilerInfo=[4,">= 1.0.0"];o=this.merge(o,f.helpers);u=u||{};var p="",g,d="function",c=this.escapeExpression,n=this;function m(z,y){var w="",x;w+="\n ";x=o["if"].call(z,z.isFile,{hash:{},inverse:n.program(4,k,y),fn:n.program(2,l,y),data:y});if(x||x===0){w+=x}w+="\n ";return w}function l(z,y){var w="",x;w+='\n
\n ";return w}function k(z,y){var w="",x;w+="\n ";x=o["if"].call(z,z.defaultValue,{hash:{},inverse:n.program(7,h,y),fn:n.program(5,i,y),data:y});if(x||x===0){w+=x}w+="\n ";return w}function i(z,y){var w="",x;w+="\n
\n ";return w}function h(z,y){var w="",x;w+="\n
\n
\n
\n ';return w}function e(z,y){var w="",x;w+="\n ";x=o["if"].call(z,z.isFile,{hash:{},inverse:n.program(12,t,y),fn:n.program(10,v,y),data:y});if(x||x===0){w+=x}w+="\n ";return w}function v(z,y){var w="",x;w+="\n
\n ";return w}function t(z,y){var w="",x;w+="\n ";x=o["if"].call(z,z.defaultValue,{hash:{},inverse:n.program(15,r,y),fn:n.program(13,s,y),data:y});if(x||x===0){w+=x}w+="\n ";return w}function s(z,y){var w="",x;w+="\n
\n ";return w}function r(z,y){var w="",x;w+="\n
\n ";return w}p+="
";if(g=o.name){g=g.call(q,{hash:{},data:u})}else{g=q.name;g=typeof g===d?g.apply(q):g}p+=c(g)+" | \n
\n ";g=o["if"].call(q,q.isBody,{hash:{},inverse:n.program(9,e,u),fn:n.program(1,m,u),data:u});if(g||g===0){p+=g}p+="\n | \n
\n ";if(g=o.description){g=g.call(q,{hash:{},data:u})}else{g=q.description;g=typeof g===d?g.apply(q):g}if(g||g===0){p+=g}p+="\n | \n
";if(g=o.paramType){g=g.call(q,{hash:{},data:u})}else{g=q.paramType;g=typeof g===d?g.apply(q):g}if(g||g===0){p+=g}p+=' | \n
| \n';return p})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.parameter_content_type=b(function(g,l,f,k,j){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,g.helpers);j=j||{};var i="",c,h="function",m=this;function e(r,q){var o="",p;o+="\n ";p=f.each.call(r,r.consumes,{hash:{},inverse:m.noop,fn:m.program(2,d,q),data:q});if(p||p===0){o+=p}o+="\n";return o}function d(r,q){var o="",p;o+='\n
\n ";return o}function n(p,o){return'\n
\n'}i+='
\n
\n";return i})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.resource=b(function(f,l,e,k,j){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,f.helpers);j=j||{};var h="",c,o,g="function",i=this.escapeExpression,n=this,m=e.blockHelperMissing;function d(q,p){return" : "}h+="
\n
\n ";if(c=e.name){c=c.call(l,{hash:{},data:j})}else{c=l.name;c=typeof c===g?c.apply(l):c}h+=i(c)+" ";o={hash:{},inverse:n.noop,fn:n.program(1,d,j),data:j};if(c=e.description){c=c.call(l,o)}else{c=l.description;c=typeof c===g?c.apply(l):c}if(!e.description){c=m.call(l,c,o)}if(c||c===0){h+=c}if(c=e.description){c=c.call(l,{hash:{},data:j})}else{c=l.description;c=typeof c===g?c.apply(l):c}if(c||c===0){h+=c}h+="\n
\n
\n
\n
\n";return h})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.response_content_type=b(function(g,l,f,k,j){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,g.helpers);j=j||{};var i="",c,h="function",m=this;function e(r,q){var o="",p;o+="\n ";p=f.each.call(r,r.produces,{hash:{},inverse:m.noop,fn:m.program(2,d,q),data:q});if(p||p===0){o+=p}o+="\n";return o}function d(r,q){var o="",p;o+='\n
\n ";return o}function n(p,o){return'\n
\n'}i+='
\n
\n";return i})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.signature=b(function(e,k,d,j,i){this.compilerInfo=[4,">= 1.0.0"];d=this.merge(d,e.helpers);i=i||{};var g="",c,f="function",h=this.escapeExpression;g+='
\n
\n
\n\n
\n
\n ';if(c=d.signature){c=c.call(k,{hash:{},data:i})}else{c=k.signature;c=typeof c===f?c.apply(k):c}if(c||c===0){g+=c}g+='\n
\n\n
\n
';if(c=d.sampleJSON){c=c.call(k,{hash:{},data:i})}else{c=k.sampleJSON;c=typeof c===f?c.apply(k):c}g+=h(c)+'
\n
\n
\n
\n\n';return g})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.status_code=b(function(e,k,d,j,i){this.compilerInfo=[4,">= 1.0.0"];d=this.merge(d,e.helpers);i=i||{};var g="",c,f="function",h=this.escapeExpression;g+="
";if(c=d.code){c=c.call(k,{hash:{},data:i})}else{c=k.code;c=typeof c===f?c.apply(k):c}g+=h(c)+" | \n
";if(c=d.message){c=c.call(k,{hash:{},data:i})}else{c=k.message;c=typeof c===f?c.apply(k):c}if(c||c===0){g+=c}g+=" | \n";return g})})();(function(){var j,r,u,o,l,k,n,m,i,p,s,q,h,c,g,f,e,d,b,a,x,w,t={}.hasOwnProperty,v=function(B,z){for(var y in z){if(t.call(z,y)){B[y]=z[y]}}function A(){this.constructor=B}A.prototype=z.prototype;B.prototype=new A();B.__super__=z.prototype;return B};s=(function(z){v(y,z);function y(){q=y.__super__.constructor.apply(this,arguments);return q}y.prototype.dom_id="swagger_ui";y.prototype.options=null;y.prototype.api=null;y.prototype.headerView=null;y.prototype.mainView=null;y.prototype.initialize=function(A){var B=this;if(A==null){A={}}if(A.dom_id!=null){this.dom_id=A.dom_id;delete A.dom_id}if($("#"+this.dom_id)==null){$("body").append('
')}this.options=A;this.options.success=function(){return B.render()};this.options.progress=function(C){return B.showMessage(C)};this.options.failure=function(C){return B.onLoadFailure(C)};this.headerView=new r({el:$("#header")});return this.headerView.on("update-swagger-ui",function(C){return B.updateSwaggerUi(C)})};y.prototype.updateSwaggerUi=function(A){this.options.url=A.url;return this.load()};y.prototype.load=function(){var B,A;if((A=this.mainView)!=null){A.clear()}B=this.options.url;if(B.indexOf("http")!==0){B=this.buildUrl(window.location.href.toString(),B)}this.options.url=B;this.headerView.update(B);this.api=new SwaggerApi(this.options);this.api.build();return this.api};y.prototype.render=function(){var A=this;this.showMessage("Finished Loading Resource Information. Rendering Swagger UI...");this.mainView=new u({model:this.api,el:$("#"+this.dom_id)}).render();this.showMessage();switch(this.options.docExpansion){case"full":Docs.expandOperationsForResource("");break;case"list":Docs.collapseOperationsForResource("")}if(this.options.onComplete){this.options.onComplete(this.api,this)}return setTimeout(function(){return Docs.shebang()},400)};y.prototype.buildUrl=function(B,A){var C;console.log("base is "+B);C=B.split("/");B=C[0]+"//"+C[2];if(A.indexOf("/")===0){return B+A}else{return B+"/"+A}};y.prototype.showMessage=function(A){if(A==null){A=""}$("#message-bar").removeClass("message-fail");$("#message-bar").addClass("message-success");return $("#message-bar").html(A)};y.prototype.onLoadFailure=function(A){var B;if(A==null){A=""}$("#message-bar").removeClass("message-success");$("#message-bar").addClass("message-fail");B=$("#message-bar").html(A);if(this.options.onFailure!=null){this.options.onFailure(A)}return B};return y})(Backbone.Router);window.SwaggerUi=s;r=(function(z){v(y,z);function y(){h=y.__super__.constructor.apply(this,arguments);return h}y.prototype.events={"click #show-pet-store-icon":"showPetStore","click #show-wordnik-dev-icon":"showWordnikDev","click #explore":"showCustom","keyup #input_baseUrl":"showCustomOnKeyup","keyup #input_apiKey":"showCustomOnKeyup"};y.prototype.initialize=function(){};y.prototype.showPetStore=function(A){return this.trigger("update-swagger-ui",{url:"http://petstore.swagger.wordnik.com/api/api-docs"})};y.prototype.showWordnikDev=function(A){return this.trigger("update-swagger-ui",{url:"http://api.wordnik.com/v4/resources.json"})};y.prototype.showCustomOnKeyup=function(A){if(A.keyCode===13){return this.showCustom()}};y.prototype.showCustom=function(A){if(A!=null){A.preventDefault()}return this.trigger("update-swagger-ui",{url:$("#input_baseUrl").val(),apiKey:$("#input_apiKey").val()})};y.prototype.update=function(B,C,A){if(A==null){A=false}$("#input_baseUrl").val(B);if(A){return this.trigger("update-swagger-ui",{url:B})}};return y})(Backbone.View);u=(function(y){v(z,y);function z(){g=z.__super__.constructor.apply(this,arguments);return g}z.prototype.initialize=function(){};z.prototype.render=function(){var C,B,A,D;$(this.el).html(Handlebars.templates.main(this.model));D=this.model.apisArray;for(B=0,A=D.length;B
0){D[I.name]=I.value}}E=G.find("textarea");for(L=0,F=E.length;L0){D.body=I.value}}B=G.find("select");for(K=0,C=B.length;K0){D[I.name]=J}}A.responseContentType=$("div select[name=responseContentType]",$(this.el)).val();A.requestContentType=$("div select[name=parameterContentType]",$(this.el)).val();$(".response_throbber",$(this.el)).show();return this.model["do"](D,A,this.showCompleteStatus,this.showErrorStatus,this)}};y.prototype.success=function(A,B){return B.showCompleteStatus(A)};y.prototype.getSelectedValue=function(A){var D,C,F,B,E;if(!A.multiple){return A.value}else{C=[];E=A.options;for(F=0,B=E.length;F0){return C.join(",")}else{return null}}};y.prototype.hideResponse=function(A){if(A!=null){A.preventDefault()}$(".response",$(this.el)).slideUp();return $(".response_hider",$(this.el)).fadeOut()};y.prototype.showResponse=function(A){var B;B=JSON.stringify(A,null,"\t").replace(/\n/g,"
");return $(".response_body",$(this.el)).html(escape(B))};y.prototype.showErrorStatus=function(B,A){return A.showStatus(B)};y.prototype.showCompleteStatus=function(B,A){return A.showStatus(B)};y.prototype.formatXml=function(H){var D,G,B,I,N,J,C,A,L,M,F,E,K;A=/(>)(<)(\/*)/g;M=/[ ]*(.*)[ ]+\n/g;D=/(<.+>)(.+\n)/g;H=H.replace(A,"$1\n$2$3").replace(M,"$1\n").replace(D,"$1\n$2");C=0;G="";N=H.split("\n");B=0;I="other";L={"single->single":0,"single->closing":-1,"single->opening":0,"single->other":0,"closing->single":0,"closing->closing":-1,"closing->opening":0,"closing->other":0,"opening->single":1,"opening->closing":0,"opening->opening":1,"opening->other":1,"other->single":0,"other->closing":-1,"other->opening":0,"other->other":0};F=function(T){var P,O,R,V,S,Q,U;Q={single:Boolean(T.match(/<.+\/>/)),closing:Boolean(T.match(/<\/.+>/)),opening:Boolean(T.match(/<[^!?].*>/))};S=((function(){var W;W=[];for(R in Q){U=Q[R];if(U){W.push(R)}}return W})())[0];S=S===void 0?"other":S;P=I+"->"+S;I=S;V="";B+=L[P];V=((function(){var X,Y,W;W=[];for(O=X=0,Y=B;0<=Y?XY;O=0<=Y?++X:--X){W.push(" ")}return W})()).join("");if(P==="opening->closing"){return G=G.substr(0,G.length-1)+T+"\n"}else{return G+=V+T+"\n"}};for(E=0,K=N.length;E").text("no content");E=$('').append(C)}else{if(G.indexOf("application/json")===0||G.indexOf("application/hal+json")===0){C=$("").text(JSON.stringify(JSON.parse(B),null,2));E=$('').append(C)}else{if(G.indexOf("application/xml")===0){C=$("").text(this.formatXml(B));E=$('').append(C)}else{if(G.indexOf("text/html")===0){C=$("").html(B);E=$('').append(C)}else{C=$("").text(B);E=$('').append(C)}}}}A=E;$(".request_url").html(""+D.request.url+"
");$(".response_code",$(this.el)).html(""+D.status+"
");$(".response_body",$(this.el)).html(A);$(".response_headers",$(this.el)).html(""+JSON.stringify(D.getHeaders())+"
");$(".response",$(this.el)).slideDown();$(".response_hider",$(this.el)).show();$(".response_throbber",$(this.el)).hide();return hljs.highlightBlock($(".response_body",$(this.el))[0])};y.prototype.toggleOperationContent=function(){var A;A=$("#"+Docs.escapeResourceName(this.model.resourceName)+"_"+this.model.nickname+"_"+this.model.method+"_"+this.model.number+"_content");if(A.is(":visible")){return Docs.collapseOperation(A)}else{return Docs.expandOperation(A)}};return y})(Backbone.View);p=(function(z){v(y,z);function y(){d=y.__super__.constructor.apply(this,arguments);return d}y.prototype.initialize=function(){};y.prototype.render=function(){var A;A=this.template();$(this.el).html(A(this.model));return this};y.prototype.template=function(){return Handlebars.templates.status_code};return y})(Backbone.View);k=(function(z){v(y,z);function y(){b=y.__super__.constructor.apply(this,arguments);return b}y.prototype.initialize=function(){};y.prototype.render=function(){var G,A,C,F,B,H,E,D;D=this.model.type||this.model.dataType;if(this.model.paramType==="body"){this.model.isBody=true}if(D.toLowerCase()==="file"){this.model.isFile=true}E=this.template();$(this.el).html(E(this.model));B={sampleJSON:this.model.sampleJSON,isParam:true,signature:this.model.signature};if(this.model.sampleJSON){H=new i({model:B,tagName:"div"});$(".model-signature",$(this.el)).append(H.render().el)}else{$(".model-signature",$(this.el)).html(this.model.signature)}A=false;if(this.model.isBody){A=true}G={isParam:A};G.consumes=this.model.consumes;if(A){C=new l({model:G});$(".parameter-content-type",$(this.el)).append(C.render().el)}else{F=new m({model:G});$(".response-content-type",$(this.el)).append(F.render().el)}return this};y.prototype.template=function(){if(this.model.isList){return Handlebars.templates.param_list}else{if(this.options.readOnly){if(this.model.required){return Handlebars.templates.param_readonly_required}else{return Handlebars.templates.param_readonly}}else{if(this.model.required){return Handlebars.templates.param_required}else{return Handlebars.templates.param}}}};return y})(Backbone.View);i=(function(z){v(y,z);function y(){a=y.__super__.constructor.apply(this,arguments);return a}y.prototype.events={"click a.description-link":"switchToDescription","click a.snippet-link":"switchToSnippet","mousedown .snippet":"snippetToTextArea"};y.prototype.initialize=function(){};y.prototype.render=function(){var A;A=this.template();$(this.el).html(A(this.model));this.switchToDescription();this.isParam=this.model.isParam;if(this.isParam){$(".notice",$(this.el)).text("Click to set as parameter value")}return this};y.prototype.template=function(){return Handlebars.templates.signature};y.prototype.switchToDescription=function(A){if(A!=null){A.preventDefault()}$(".snippet",$(this.el)).hide();$(".description",$(this.el)).show();$(".description-link",$(this.el)).addClass("selected");return $(".snippet-link",$(this.el)).removeClass("selected")};y.prototype.switchToSnippet=function(A){if(A!=null){A.preventDefault()}$(".description",$(this.el)).hide();$(".snippet",$(this.el)).show();$(".snippet-link",$(this.el)).addClass("selected");return $(".description-link",$(this.el)).removeClass("selected")};y.prototype.snippetToTextArea=function(A){var B;if(this.isParam){if(A!=null){A.preventDefault()}B=$("textarea",$(this.el.parentNode.parentNode.parentNode));if($.trim(B.val())===""){return B.val(this.model.sampleJSON)}}};return y})(Backbone.View);j=(function(y){v(z,y);function z(){x=z.__super__.constructor.apply(this,arguments);return x}z.prototype.initialize=function(){};z.prototype.render=function(){var A;A=this.template();$(this.el).html(A(this.model));$("label[for=contentType]",$(this.el)).text("Response Content Type");return this};z.prototype.template=function(){return Handlebars.templates.content_type};return z})(Backbone.View);m=(function(y){v(z,y);function z(){w=z.__super__.constructor.apply(this,arguments);return w}z.prototype.initialize=function(){};z.prototype.render=function(){var A;A=this.template();$(this.el).html(A(this.model));$("label[for=responseContentType]",$(this.el)).text("Response Content Type");return this};z.prototype.template=function(){return Handlebars.templates.response_content_type};return z})(Backbone.View);l=(function(z){v(y,z);function y(){c=y.__super__.constructor.apply(this,arguments);return c}y.prototype.initialize=function(){};y.prototype.render=function(){var A;A=this.template();$(this.el).html(A(this.model));$("label[for=parameterContentType]",$(this.el)).text("Parameter content type:");return this};y.prototype.template=function(){return Handlebars.templates.parameter_content_type};return y})(Backbone.View)}).call(this);
\ No newline at end of file
diff --git a/NuGet/ServiceStack.Api.Swagger/servicestack.api.swagger.nuspec b/NuGet/ServiceStack.Api.Swagger/servicestack.api.swagger.nuspec
deleted file mode 100644
index 04fa2d21cc0..00000000000
--- a/NuGet/ServiceStack.Api.Swagger/servicestack.api.swagger.nuspec
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
- ServiceStack.Api.Swagger
- ServiceStack additional API for integration with Swagger
- 4.0.0
- Service Stack
- Service Stack
- ServiceStack integration with Swagger
-
- Provides a set of services to be discovered by Swagger (http://swagger.wordnik.com/)
- Swagger is a specification and complete framework implementation for describing, producing, consuming, and visualizing RESTful web services.
-
- https://github.com/ServiceStack/ServiceStack
- https://servicestack.net/terms
- https://servicestack.net/img/logo-32.png
- Swagger API REST Docs ServiceStack
- en-US
- StackExpress.net 2012 and contributors
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/NuGet/ServiceStack.Authentication.MongoDb/servicestack.authentication.mongodb.nuspec b/NuGet/ServiceStack.Authentication.MongoDb/servicestack.authentication.mongodb.nuspec
deleted file mode 100644
index f4146837159..00000000000
--- a/NuGet/ServiceStack.Authentication.MongoDb/servicestack.authentication.mongodb.nuspec
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
- ServiceStack.Authentication.MongoDB
- 4.0.0
- Assaf Raman, ServiceStack contributors
- Assaf Raman, ServiceStack contributors
- A MongoDB IUserAuthRepository to persist User registration and auth info in a NoSQL Mongo DB
-
- A MongoDB IUserAuthRepository to persist User registration and auth info in a NoSQL Mongo DB.
- Implements ServiceStack's built-in AuthProvider Model:
- https://github.com/ServiceStack/ServiceStack/wiki/Authentication-and-authorization
- inc. Twitter, Facebook, Basic, Digest, Credentials Auth modes out-of-the-box.
-
- https://github.com/ServiceStack/ServiceStack
- https://servicestack.net/terms
- https://servicestack.net/img/logo-32.png
- ServiceStack Authentication Authorization MongoDB NoSQL POCO Code-First
- en-US
- ServiceStack 2013 and contributors
-
-
-
-
-
-
-
-
-
-
diff --git a/NuGet/ServiceStack.Authentication.NHibernate/servicestack.authentication.nhibernate.nuspec b/NuGet/ServiceStack.Authentication.NHibernate/servicestack.authentication.nhibernate.nuspec
deleted file mode 100644
index 30374d5d335..00000000000
--- a/NuGet/ServiceStack.Authentication.NHibernate/servicestack.authentication.nhibernate.nuspec
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
- ServiceStack.Authentication.NHibernate
- 4.0.0
- Joshua Lewis, ServiceStack contributors
- Joshua Lewis, ServiceStack contributors
- An NHibernate IUserAuthRepository to persist User registration and auth info in any RDBMS NHibernate supports
-
- An NHibernate IUserAuthRepository to persist User registration and authentication info in any RDBMS NHibernate supports.
- Implements ServiceStack's built-in AuthProvider Model:
- https://github.com/ServiceStack/ServiceStack/wiki/Authentication-and-authorization
- inc. Twitter, Facebook, Basic, Digest, Credentials Auth modes out-of-the-box.
-
- https://github.com/ServiceStack/ServiceStack
- https://servicestack.net/terms
- https://servicestack.net/img/logo-32.png
- ServiceStack Authentication Authorization NHibernate SQLServer Sqlite Oracle MySql PostgreSQL POCO Code-First
- en-US
- ServiceStack 2013 and contributors
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/NuGet/ServiceStack.Authentication.OAuth2/servicestack.authentication.oauth2.nuspec b/NuGet/ServiceStack.Authentication.OAuth2/servicestack.authentication.oauth2.nuspec
deleted file mode 100644
index cede398c8f4..00000000000
--- a/NuGet/ServiceStack.Authentication.OAuth2/servicestack.authentication.oauth2.nuspec
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
- ServiceStack.Authentication.OAuth2
- OAuth2 Providers for ServiceStack - inc. Google, LinkedIn
- 4.0.0
- Service Stack
- Service Stack
- OpenId Auth Providers for ServiceStack - inc. Google, LinkedIn
-
- Adds OAuth2 Providers for use in ServiceStack Web and REST Services.
- Includes built-in support for Google and LinkedIn OAuth2 providers.
-
- More Info on Auth Providers:
- https://github.com/ServiceStack/ServiceStack/wiki/Authentication-and-authorization
-
- https://github.com/ServiceStack/ServiceStack
- https://servicestack.net/terms
- https://servicestack.net/img/logo-32.png
- OAuth OAuth2 Google LinkedIn Authentication Auth Provider ServiceStack Web Services
- en-US
- Copyright 2013 Service Stack
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/NuGet/ServiceStack.Authentication.OpenId/servicestack.authentication.openid.nuspec b/NuGet/ServiceStack.Authentication.OpenId/servicestack.authentication.openid.nuspec
deleted file mode 100644
index cd52d6f3472..00000000000
--- a/NuGet/ServiceStack.Authentication.OpenId/servicestack.authentication.openid.nuspec
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
- ServiceStack.Authentication.OpenId
- OpenId Auth Providers for ServiceStack - inc. Google, Yahoo, MyOpenId
- 4.0.0
- Service Stack
- Service Stack
- OpenId Auth Providers for ServiceStack - inc. Google, Yahoo, MyOpenId
-
- Adds OpenId Auth Providers for use in ServiceStack Web and REST Services.
- Includes built-in support for Google, Yahoo, MyOpenId and Custom OpenId providers.
-
- More Info on Auth Providers:
- https://github.com/ServiceStack/ServiceStack/wiki/Authentication-and-authorization
-
- https://github.com/ServiceStack/ServiceStack
- https://servicestack.net/terms
- https://servicestack.net/img/logo-32.png
- OpenId Google Yahoo MyOpenId Authentication Auth Provider ServiceStack REST Web Services ServiceStack
- en-US
- Copyright 2013 Service Stack
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/NuGet/ServiceStack.Authentication.RavenDb/servicestack.authentication.ravendb.nuspec b/NuGet/ServiceStack.Authentication.RavenDb/servicestack.authentication.ravendb.nuspec
deleted file mode 100644
index de709b5e8f4..00000000000
--- a/NuGet/ServiceStack.Authentication.RavenDb/servicestack.authentication.ravendb.nuspec
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
- ServiceStack.Authentication.RavenDB
- 4.0.0
- ServiceStack contributors
- ServiceStack contributors
- A RavenDB IUserAuthRepository to persist User registration and auth info in a NoSQL Raven DB
-
- A RavenDB IUserAuthRepository to persist User registration and auth info in a NoSQL Raven DB.
- Implements ServiceStack's built-in AuthProvider Model:
- https://github.com/ServiceStack/ServiceStack/wiki/Authentication-and-authorization
- inc. Twitter, Facebook, Basic, Digest, Credentials Auth modes out-of-the-box.
-
- https://github.com/ServiceStack/ServiceStack
- https://servicestack.net/terms
- https://servicestack.net/img/logo-32.png
- ServiceStack Authentication Authorization RavenDB Raven NoSQL POCO Code-First
- en-US
- ServiceStack 2013 and contributors
-
-
-
-
-
-
-
-
-
-
diff --git a/NuGet/ServiceStack.Caching.AwsDynamoDb/servicestack.caching.awsdynamodb.nuspec b/NuGet/ServiceStack.Caching.AwsDynamoDb/servicestack.caching.awsdynamodb.nuspec
deleted file mode 100644
index 67a0716824e..00000000000
--- a/NuGet/ServiceStack.Caching.AwsDynamoDb/servicestack.caching.awsdynamodb.nuspec
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
- ServiceStack.Caching.AwsDynamoDb
- 4.0.0
- ServiceStack contributors
- ServiceStack contributors
-
- An Amazon Web Services In-Memory DynamoDb DataCache implementing ServiceStack's ICacheClient:
- https://github.com/ServiceStack/ServiceStack/wiki/Caching
-
- https://github.com/ServiceStack/ServiceStack
- https://servicestack.net/terms
- https://servicestack.net/img/logo-32.png
- ServiceStack Caching AwsDynamoDb Amazon WebServices AWS DynamoDb Cache CacheClient
- en-US
- ServiceStack 2013 and contributors
-
-
-
-
-
-
-
-
-
-
diff --git a/NuGet/ServiceStack.Caching.Azure/servicestack.caching.azure.nuspec b/NuGet/ServiceStack.Caching.Azure/servicestack.caching.azure.nuspec
deleted file mode 100644
index a5fe623e249..00000000000
--- a/NuGet/ServiceStack.Caching.Azure/servicestack.caching.azure.nuspec
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
- ServiceStack.Caching.Azure
- 4.0.0
- Manuel Nelson, ServiceStack contributors
- Manuel Nelson, ServiceStack contributors
-
- An Azure In-Memory DataCache implementing ServiceStack's ICacheClient:
- https://github.com/ServiceStack/ServiceStack/wiki/Caching
-
- https://github.com/ServiceStack/ServiceStack
- https://servicestack.net/terms
- https://servicestack.net/img/logo-32.png
- ServiceStack Caching Windows Azure Cache CacheClient POCO Code-First
- en-US
- ServiceStack 2013 and contributors
-
-
-
-
-
-
-
-
-
-
diff --git a/NuGet/ServiceStack.Caching.Memcached/servicestack.caching.memcached.nuspec b/NuGet/ServiceStack.Caching.Memcached/servicestack.caching.memcached.nuspec
deleted file mode 100644
index 8b749b1216c..00000000000
--- a/NuGet/ServiceStack.Caching.Memcached/servicestack.caching.memcached.nuspec
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
- ServiceStack.Caching.Memcached
- 4.0.0
- Service Stack, Thomas Grassauer and ServiceStack contributors
- Service Stack, Thomas Grassauer and ServiceStack contributors
-
- An Memcached cache client implementing ServiceStack's ICacheClient:
- https://github.com/ServiceStack/ServiceStack/wiki/Caching
-
- https://github.com/ServiceStack/ServiceStack
- https://servicestack.net/terms
- https://servicestack.net/img/logo-32.png
- ServiceStack Caching Memcached Cache CacheClient POCO Code-First
- en-US
- ServiceStack 2013 and contributors
-
-
-
-
-
-
-
-
-
-
diff --git a/NuGet/ServiceStack.Client/servicestack.client.nuspec b/NuGet/ServiceStack.Client/servicestack.client.nuspec
deleted file mode 100644
index 2086df67551..00000000000
--- a/NuGet/ServiceStack.Client/servicestack.client.nuspec
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
- ServiceStack.Client
- Service Clients for ServiceStack
- 4.0.0
- Service Stack
- Service Stack
- Opensource .NET and Mono REST Web Services framework
-
- JSON, XML, JSV, SOAP and MQ Generic Service Clients.
-
- https://github.com/ServiceStack/ServiceStack
- https://servicestack.net/terms
- true
- https://servicestack.net/img/logo-32.png
- ServiceStack Common Framework Clients ServiceClients Gateway
- en-US
- Copyright 2013 Service Stack
-
-
-
-
-
-
-
-
-
-
diff --git a/NuGet/ServiceStack.Common/servicestack.common.nuspec b/NuGet/ServiceStack.Common/servicestack.common.nuspec
deleted file mode 100644
index 0ea6e80147b..00000000000
--- a/NuGet/ServiceStack.Common/servicestack.common.nuspec
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
- ServiceStack.Common
- Common libs for ServiceStack projects
- 4.0.0
- Service Stack
- Service Stack
- Opensource .NET and Mono REST Web Services framework
-
- Common base library for ServiceStack projects.
-
- https://github.com/ServiceStack/ServiceStack
- https://servicestack.net/terms
- https://servicestack.net/img/logo-32.png
- ServiceStack Common Framework Clients ServiceClients Gateway
- en-US
- Copyright 2013 Service Stack
-
-
-
-
-
-
-
-
-
-
diff --git a/NuGet/ServiceStack.Host.AspNet/content/App_Start/AppHost.cs.pp b/NuGet/ServiceStack.Host.AspNet/content/App_Start/AppHost.cs.pp
deleted file mode 100644
index 078740d9cde..00000000000
--- a/NuGet/ServiceStack.Host.AspNet/content/App_Start/AppHost.cs.pp
+++ /dev/null
@@ -1,79 +0,0 @@
-using System.Configuration;
-using ServiceStack;
-using ServiceStack.Auth;
-using ServiceStack.Configuration;
-using ServiceStack.Data;
-using ServiceStack.OrmLite;
-
-[assembly: WebActivator.PreApplicationStartMethod(typeof($rootnamespace$.App_Start.AppHost), "Start")]
-
-
-/**
- * Entire ServiceStack Starter Template configured with a 'Hello' Web Service and a 'Todo' Rest Service.
- *
- * Auto-Generated Metadata API page at: /metadata
- * See other complete web service examples at: https://github.com/ServiceStack/ServiceStack.Examples
- */
-
-namespace $rootnamespace$.App_Start
-{
- public class AppHost : AppHostBase
- {
- public AppHost() //Tell ServiceStack the name and where to find your web services
- : base("StarterTemplate ASP.NET Host", typeof(HelloService).Assembly) { }
-
- public override void Configure(Funq.Container container)
- {
- //Set JSON web services to return idiomatic JSON camelCase properties
- ServiceStack.Text.JsConfig.EmitCamelCaseNames = true;
-
- //Configure User Defined REST Paths
- Routes
- .Add("/hello")
- .Add("/hello/{Name*}");
-
- //Uncomment to change the default ServiceStack configuration
- //SetConfig(new HostConfig {
- //});
-
- //Enable Authentication
- //ConfigureAuth(container);
-
- //Register all your dependencies
- container.Register(new TodoRepository());
- }
-
- /* Example ServiceStack Authentication and CustomUserSession */
- private void ConfigureAuth(Funq.Container container)
- {
- var appSettings = new AppSettings();
-
- //Default route: /auth/{provider}
- Plugins.Add(new AuthFeature(() => new CustomUserSession(),
- new IAuthProvider[] {
- new CredentialsAuthProvider(appSettings),
- new FacebookAuthProvider(appSettings),
- new TwitterAuthProvider(appSettings),
- new BasicAuthProvider(appSettings),
- }));
-
- //Default route: /register
- Plugins.Add(new RegistrationFeature());
-
- //Requires ConnectionString configured in Web.Config
- var connectionString = ConfigurationManager.ConnectionStrings["AppDb"].ConnectionString;
- container.Register(c =>
- new OrmLiteConnectionFactory(connectionString, SqlServerDialect.Provider));
-
- container.Register(c =>
- new OrmLiteAuthRepository(c.Resolve()));
-
- container.Resolve().InitSchema();
- }
-
- public static void Start()
- {
- new AppHost().Init();
- }
- }
-}
diff --git a/NuGet/ServiceStack.Host.AspNet/content/App_Start/PageBase.cs.pp b/NuGet/ServiceStack.Host.AspNet/content/App_Start/PageBase.cs.pp
deleted file mode 100644
index 446f4be9a2c..00000000000
--- a/NuGet/ServiceStack.Host.AspNet/content/App_Start/PageBase.cs.pp
+++ /dev/null
@@ -1,66 +0,0 @@
-using System.Web.UI;
-using ServiceStack;
-using ServiceStack.Caching;
-
-
-/**
- * Base ASP.NET WebForms page using ServiceStack's Compontents, see: http://www.servicestack.net/mvc-powerpack/
- */
-
-namespace $rootnamespace$.App_Start
-{
- //A customizeable typed UserSession that can be extended with your own properties
- public class CustomUserSession : AuthUserSession
- {
- public string CustomProperty { get; set; }
- }
-
- public class PageBase : Page
- {
- ///
- /// Typed UserSession
- ///
- private object userSession;
- protected virtual TUserSession SessionAs()
- {
- return (TUserSession)(userSession ?? (userSession = Cache.SessionAs()));
- }
-
- protected CustomUserSession UserSession
- {
- get
- {
- return SessionAs();
- }
- }
-
- public new ICacheClient Cache
- {
- get { return HostContext.Resolve(); }
- }
-
- private ISessionFactory sessionFactory;
- public virtual ISessionFactory SessionFactory
- {
- get { return sessionFactory ?? (sessionFactory = HostContext.Resolve()) ?? new SessionFactory(Cache); }
- }
-
- ///
- /// Dynamic SessionBag Bag
- ///
- private ISession sessionBag;
- public new ISession SessionBag
- {
- get
- {
- return sessionBag ?? (sessionBag = SessionFactory.GetOrCreateSession());
- }
- }
-
- public void ClearSession()
- {
- userSession = null;
- this.Cache.Remove(SessionFeature.GetSessionKey());
- }
- }
-}
diff --git a/NuGet/ServiceStack.Host.AspNet/content/App_Start/WebServiceExamples.cs.pp b/NuGet/ServiceStack.Host.AspNet/content/App_Start/WebServiceExamples.cs.pp
deleted file mode 100644
index b997f3b88c1..00000000000
--- a/NuGet/ServiceStack.Host.AspNet/content/App_Start/WebServiceExamples.cs.pp
+++ /dev/null
@@ -1,133 +0,0 @@
-using System.Linq;
-using System.Collections.Generic;
-using ServiceStack;
-
-namespace $rootnamespace$
-{
- //Request DTO
- public class Hello
- {
- public string Name { get; set; }
- }
-
- //Response DTO
- public class HelloResponse
- {
- public string Result { get; set; }
- public ResponseStatus ResponseStatus { get; set; } //Where Exceptions get auto-serialized
- }
-
- //Can be called via any endpoint or format, see: http://mono.servicestack.net/ServiceStack.Hello/
- public class HelloService : Service
- {
- public object Any(Hello request)
- {
- return new HelloResponse { Result = "Hello, " + request.Name };
- }
- }
-
- //REST Resource DTO
- [Route("/todos")]
- [Route("/todos/{Ids}")]
- public class Todos : IReturn>
- {
- public long[] Ids { get; set; }
- public Todos(params long[] ids)
- {
- this.Ids = ids;
- }
- }
-
- [Route("/todos", "POST")]
- [Route("/todos/{Id}", "PUT")]
- public class Todo : IReturn
- {
- public long Id { get; set; }
- public string Content { get; set; }
- public int Order { get; set; }
- public bool Done { get; set; }
- }
-
- public class TodosService : Service
- {
- public TodoRepository Repository { get; set; } //Injected by IOC
-
- public object Get(Todos request)
- {
- return request.Ids.IsEmpty()
- ? Repository.GetAll()
- : Repository.GetByIds(request.Ids);
- }
-
- public object Post(Todo todo)
- {
- return Repository.Store(todo);
- }
-
- public object Put(Todo todo)
- {
- return Repository.Store(todo);
- }
-
- public void Delete(Todos request)
- {
- Repository.DeleteByIds(request.Ids);
- }
- }
-
- public class TodoRepository
- {
- List todos = new List();
-
- public List GetByIds(long[] ids)
- {
- return todos.Where(x => ids.Contains(x.Id)).ToList();
- }
-
- public List GetAll()
- {
- return todos;
- }
-
- public Todo Store(Todo todo)
- {
- var existing = todos.FirstOrDefault(x => x.Id == todo.Id);
- if (existing == null)
- {
- var newId = todos.Count > 0 ? todos.Max(x => x.Id) + 1 : 1;
- todo.Id = newId;
- todos.Add(todo);
- }
- else
- {
- existing.PopulateWith(todo);
- }
- return todo;
- }
-
- public void DeleteByIds(params long[] ids)
- {
- todos.RemoveAll(x => ids.Contains(x.Id));
- }
- }
-
-
-/* Example calling above Service with ServiceStack's C# clients:
-
- var client = new JsonServiceClient(BaseUri);
- List all = client.Get(new Todos()); // Count = 0
-
- var todo = client.Post(
- new Todo { Content = "New TODO", Order = 1 }); // todo.Id = 1
- all = client.Get(new Todos()); // Count = 1
-
- todo.Content = "Updated TODO";
- todo = client.Put(todo); // todo.Content = Updated TODO
-
- client.Delete(new Todos(todo.Id));
- all = client.Get(new Todos()); // Count = 0
-
-*/
-
-}
-
diff --git a/NuGet/ServiceStack.Host.AspNet/content/README.txt b/NuGet/ServiceStack.Host.AspNet/content/README.txt
deleted file mode 100644
index a75aa9feab6..00000000000
--- a/NuGet/ServiceStack.Host.AspNet/content/README.txt
+++ /dev/null
@@ -1,36 +0,0 @@
-To enable the Mini Profiler add the following lines in to Global class in Global.asax.cs:
-
-
- protected void Application_BeginRequest(object src, EventArgs e)
- {
- if (Request.IsLocal)
- ServiceStack.MiniProfiler.Profiler.Start();
- }
-
- protected void Application_EndRequest(object src, EventArgs e)
- {
- ServiceStack.MiniProfiler.Profiler.Stop();
- }
-
-
-For more info on the MiniProfiler see v3.09 of the https://github.com/ServiceStack/ServiceStack/wiki/Release-Notes
-
-
-The Urls for metadata page and included Services:
-
- * /metadata - Auto generated metadata pages
- * /hello - Simple Hello World Service. see: http://www.servicestack.net/ServiceStack.Hello/
- * /todos - Simple REST Service. see: http://www.servicestack.net/Backbone.Todos/
-
- * /default.htm - Backbone.js TODO application talking to the TODO REST service at /todos
-
-
-For more info about ServiceStack please visit: http://www.servicestack.net
-
-Feel free to ask questions about ServiceStack on:
-http://stackoverflow.com/
-
-or on the mailing Group at:
-http://groups.google.com/group/servicestack
-
-Enjoy!
\ No newline at end of file
diff --git a/NuGet/ServiceStack.Host.AspNet/content/default.htm b/NuGet/ServiceStack.Host.AspNet/content/default.htm
deleted file mode 100644
index 78c2a89314c..00000000000
--- a/NuGet/ServiceStack.Host.AspNet/content/default.htm
+++ /dev/null
@@ -1,685 +0,0 @@
-
-
-
-
- Backbone Demo: Todos
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Todos
-
-
-
-
-
-
- Press Enter to save this task
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/NuGet/ServiceStack.Host.AspNet/content/jqunback-1.51.min.js b/NuGet/ServiceStack.Host.AspNet/content/jqunback-1.51.min.js
deleted file mode 100644
index 97da2a076f8..00000000000
--- a/NuGet/ServiceStack.Host.AspNet/content/jqunback-1.51.min.js
+++ /dev/null
@@ -1,68 +0,0 @@
-/*!
- * jQuery JavaScript Library v1.5.1
- * http://jquery.com/
- *
- * Copyright 2011, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2011, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Wed Feb 23 13:55:29 2011 -0500
- */
-(function(a,b){function cg(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cd(a){if(!bZ[a]){var b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==="")c="block";bZ[a]=c}return bZ[a]}function cc(a,b){var c={};d.each(cb.concat.apply([],cb.slice(0,b)),function(){c[this]=a});return c}function bY(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bX(){try{return new a.XMLHttpRequest}catch(b){}}function bW(){d(a).unload(function(){for(var a in bU)bU[a](0,1)})}function bQ(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g=0===c})}function N(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function F(a,b){return(a&&a!=="*"?a+".":"")+b.replace(r,"`").replace(s,"&")}function E(a){var b,c,e,f,g,h,i,j,k,l,m,n,o,q=[],r=[],s=d._data(this,"events");if(a.liveFired!==this&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var t=s.live.slice(0);for(i=0;ic)break;a.currentTarget=f.elem,a.data=f.handleObj.data,a.handleObj=f.handleObj,o=f.handleObj.origHandler.apply(f.elem,arguments);if(o===!1||a.isPropagationStopped()){c=f.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function C(a,c,e){var f=d.extend({},e[0]);f.type=a,f.originalEvent={},f.liveFired=b,d.event.handle.call(c,f),f.isDefaultPrevented()&&e[0].preventDefault()}function w(){return!0}function v(){return!1}function g(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function f(a,c,f){if(f===b&&a.nodeType===1){f=a.getAttribute("data-"+c);if(typeof f==="string"){try{f=f==="true"?!0:f==="false"?!1:f==="null"?null:d.isNaN(f)?e.test(f)?d.parseJSON(f):f:parseFloat(f)}catch(g){}d.data(a,c,f)}else f=b}return f}var c=a.document,d=function(){function I(){if(!d.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(I,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=navigator.userAgent,w,x=!1,y,z="then done fail isResolved isRejected promise".split(" "),A,B=Object.prototype.toString,C=Object.prototype.hasOwnProperty,D=Array.prototype.push,E=Array.prototype.slice,F=String.prototype.trim,G=Array.prototype.indexOf,H={};d.fn=d.prototype={constructor:d,init:function(a,e,f){var g,i,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!e&&c.body){this.context=c,this[0]=c.body,this.selector="body",this.length=1;return this}if(typeof a==="string"){g=h.exec(a);if(!g||!g[1]&&e)return!e||e.jquery?(e||f).find(a):this.constructor(e).find(a);if(g[1]){e=e instanceof d?e[0]:e,k=e?e.ownerDocument||e:c,j=m.exec(a),j?d.isPlainObject(e)?(a=[c.createElement(j[1])],d.fn.attr.call(a,e,!0)):a=[k.createElement(j[1])]:(j=d.buildFragment([g[1]],[k]),a=(j.cacheable?d.clone(j.fragment):j.fragment).childNodes);return d.merge(this,a)}i=c.getElementById(g[2]);if(i&&i.parentNode){if(i.id!==g[2])return f.find(a);this.length=1,this[0]=i}this.context=c,this.selector=a;return this}if(d.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.5.1",length:0,size:function(){return this.length},toArray:function(){return E.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?D.apply(e,a):d.merge(e,a),e.prevObject=this,e.context=this.context,b==="find"?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selector+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady(),y.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(E.apply(this,arguments),"slice",E.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:D,sort:[].sort,splice:[].splice},d.fn.init.prototype=d.fn,d.extend=d.fn.extend=function(){var a,c,e,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i==="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!=="object"&&!d.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;y.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!x){x=!0;if(c.readyState==="complete")return setTimeout(d.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",A,!1),a.addEventListener("load",d.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",A),a.attachEvent("onload",d.ready);var b=!1;try{b=a.frameElement==null}catch(e){}c.documentElement.doScroll&&b&&I()}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!l.test(a)||isNaN(a)},type:function(a){return a==null?String(a):H[B.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return!1;if(a.constructor&&!C.call(a,"constructor")&&!C.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a){}return c===b||C.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=d.trim(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(b):(new Function("return "+b))();d.error("Invalid JSON: "+b)},parseXML:function(b,c,e){a.DOMParser?(e=new DOMParser,c=e.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),e=c.documentElement,(!e||!e.nodeName||e.nodeName==="parsererror")&&d.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(a){if(a&&i.test(a)){var b=c.head||c.getElementsByTagName("head")[0]||c.documentElement,e=c.createElement("script");d.support.scriptEval()?e.appendChild(c.createTextNode(a)):e.text=a,b.insertBefore(e,b.firstChild),b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,e){var f,g=0,h=a.length,i=h===b||d.isFunction(a);if(e){if(i){for(f in a)if(c.apply(a[f],e)===!1)break}else for(;g1){var f=E.call(arguments,0),g=b,h=function(a){return function(b){f[a]=arguments.length>1?E.call(arguments,0):b,--g||c.resolveWith(e,f)}};while(b--)a=f[b],a&&d.isFunction(a.promise)?a.promise().then(h(b),c.reject):--g;g||c.resolveWith(e,f)}else c!==a&&c.resolve(a);return e},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}d.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.subclass=this.subclass,a.fn.init=function b(b,c){c&&c instanceof d&&!(c instanceof a)&&(c=a(c));return d.fn.init.call(this,b,c,e)},a.fn.init.prototype=a.fn;var e=a(c);return a},browser:{}}),y=d._Deferred(),d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){H["[object "+b+"]"]=b.toLowerCase()}),w=d.uaMatch(v),w.browser&&(d.browser[w.browser]=!0,d.browser.version=w.version),d.browser.webkit&&(d.browser.safari=!0),G&&(d.inArray=function(a,b){return G.call(b,a)}),i.test(" ")&&(j=/^[\s\xA0]+/,k=/[\s\xA0]+$/),g=d(c),c.addEventListener?A=function(){c.removeEventListener("DOMContentLoaded",A,!1),d.ready()}:c.attachEvent&&(A=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",A),d.ready())});return d}();(function(){d.support={};var b=c.createElement("div");b.style.display="none",b.innerHTML=" a";var e=b.getElementsByTagName("*"),f=b.getElementsByTagName("a")[0],g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=b.getElementsByTagName("input")[0];if(e&&e.length&&f){d.support={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0},i.checked=!0,d.support.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,d.support.optDisabled=!h.disabled;var j=null;d.support.scriptEval=function(){if(j===null){var b=c.documentElement,e=c.createElement("script"),f="script"+d.now();try{e.appendChild(c.createTextNode("window."+f+"=1;"))}catch(g){}b.insertBefore(e,b.firstChild),a[f]?(j=!0,delete a[f]):j=!1,b.removeChild(e),b=e=f=null}return j};try{delete b.test}catch(k){d.support.deleteExpando=!1}!b.addEventListener&&b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function l(){d.support.noCloneEvent=!1,b.detachEvent("onclick",l)}),b.cloneNode(!0).fireEvent("onclick")),b=c.createElement("div"),b.innerHTML="";var m=c.createDocumentFragment();m.appendChild(b.firstChild),d.support.checkClone=m.cloneNode(!0).cloneNode(!0).lastChild.checked,d(function(){var a=c.createElement("div"),b=c.getElementsByTagName("body")[0];if(b){a.style.width=a.style.paddingLeft="1px",b.appendChild(a),d.boxModel=d.support.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,d.support.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="",d.support.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="";var e=a.getElementsByTagName("td");d.support.reliableHiddenOffsets=e[0].offsetHeight===0,e[0].style.display="",e[1].style.display="none",d.support.reliableHiddenOffsets=d.support.reliableHiddenOffsets&&e[0].offsetHeight===0,a.innerHTML="",b.removeChild(a).style.display="none",a=e=null}});var n=function(a){var b=c.createElement("div");a="on"+a;if(!b.attachEvent)return!0;var d=a in b;d||(b.setAttribute(a,"return;"),d=typeof b[a]==="function"),b=null;return d};d.support.submitBubbles=n("submit"),d.support.changeBubbles=n("change"),b=e=f=null}})();var e=/^(?:\{.*\}|\[.*\])$/;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!g(a)},data:function(a,c,e,f){if(d.acceptData(a)){var g=d.expando,h=typeof c==="string",i,j=a.nodeType,k=j?d.cache:a,l=j?a[d.expando]:a[d.expando]&&d.expando;if((!l||f&&l&&!k[l][g])&&h&&e===b)return;l||(j?a[d.expando]=l=++d.uuid:l=d.expando),k[l]||(k[l]={},j||(k[l].toJSON=d.noop));if(typeof c==="object"||typeof c==="function")f?k[l][g]=d.extend(k[l][g],c):k[l]=d.extend(k[l],c);i=k[l],f&&(i[g]||(i[g]={}),i=i[g]),e!==b&&(i[c]=e);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[c]:i}},removeData:function(b,c,e){if(d.acceptData(b)){var f=d.expando,h=b.nodeType,i=h?d.cache:b,j=h?b[d.expando]:d.expando;if(!i[j])return;if(c){var k=e?i[j][f]:i[j];if(k){delete k[c];if(!g(k))return}}if(e){delete i[j][f];if(!g(i[j]))return}var l=i[j][f];d.support.deleteExpando||i!=a?delete i[j]:i[j]=null,l?(i[j]={},h||(i[j].toJSON=d.noop),i[j][f]=l):h&&(d.support.deleteExpando?delete b[d.expando]:b.removeAttribute?b.removeAttribute(d.expando):b[d.expando]=null)}},_data:function(a,b,c){return d.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),d.fn.extend({data:function(a,c){var e=null;if(typeof a==="undefined"){if(this.length){e=d.data(this[0]);if(this[0].nodeType===1){var g=this[0].attributes,h;for(var i=0,j=g.length;i-1)return!0;return!1},val:function(a){if(!arguments.length){var c=this[0];if(c){if(d.nodeName(c,"option")){var e=c.attributes.value;return!e||e.specified?c.value:c.text}if(d.nodeName(c,"select")){var f=c.selectedIndex,g=[],h=c.options,i=c.type==="select-one";if(f<0)return null;for(var k=i?f:0,l=i?f+1:h.length;k=0;else if(d.nodeName(this,"select")){var f=d.makeArray(e);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),f)>=0}),f.length||(this.selectedIndex=-1)}else this.value=e}})}}),d.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,e,f){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return b;if(f&&c in d.attrFn)return d(a)[c](e);var g=a.nodeType!==1||!d.isXMLDoc(a),h=e!==b;c=g&&d.props[c]||c;if(a.nodeType===1){var i=k.test(c);if(c==="selected"&&!d.support.optSelected){var j=a.parentNode;j&&(j.selectedIndex,j.parentNode&&j.parentNode.selectedIndex)}if((c in a||a[c]!==b)&&g&&!i){h&&(c==="type"&&l.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed"),e===null?a.nodeType===1&&a.removeAttribute(c):a[c]=e);if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex"){var o=a.getAttributeNode("tabIndex");return o&&o.specified?o.value:m.test(a.nodeName)||n.test(a.nodeName)&&a.href?0:b}return a[c]}if(!d.support.style&&g&&c==="style"){h&&(a.style.cssText=""+e);return a.style.cssText}h&&a.setAttribute(c,""+e);if(!a.attributes[c]&&(a.hasAttribute&&!a.hasAttribute(c)))return b;var p=!d.support.hrefNormalized&&g&&i?a.getAttribute(c,2):a.getAttribute(c);return p===null?b:p}h&&(a[c]=e);return a[c]}});var p=/\.(.*)$/,q=/^(?:textarea|input|select)$/i,r=/\./g,s=/ /g,t=/[^\w\s.|`]/g,u=function(a){return a.replace(t,"\\$&")};d.event={add:function(c,e,f,g){if(c.nodeType!==3&&c.nodeType!==8){try{d.isWindow(c)&&(c!==a&&!c.frameElement)&&(c=a)}catch(h){}if(f===!1)f=v;else if(!f)return;var i,j;f.handler&&(i=f,f=i.handler),f.guid||(f.guid=d.guid++);var k=d._data(c);if(!k)return;var l=k.events,m=k.handle;l||(k.events=l={}),m||(k.handle=m=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(m.elem,arguments):b}),m.elem=c,e=e.split(" ");var n,o=0,p;while(n=e[o++]){j=i?d.extend({},i):{handler:f,data:g},n.indexOf(".")>-1?(p=n.split("."),n=p.shift(),j.namespace=p.slice(0).sort().join(".")):(p=[],j.namespace=""),j.type=n,j.guid||(j.guid=f.guid);var q=l[n],r=d.event.special[n]||{};if(!q){q=l[n]=[];if(!r.setup||r.setup.call(c,g,p,m)===!1)c.addEventListener?c.addEventListener(n,m,!1):c.attachEvent&&c.attachEvent("on"+n,m)}r.add&&(r.add.call(c,j),j.handler.guid||(j.handler.guid=f.guid)),q.push(j),d.event.global[n]=!0}c=null}},global:{},remove:function(a,c,e,f){if(a.nodeType!==3&&a.nodeType!==8){e===!1&&(e=v);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=d.hasData(a)&&d._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(e=c.handler,c=c.type);if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(h in t)d.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+d.map(m.slice(0).sort(),u).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!e){for(j=0;j=0&&(a.type=f=f.slice(0,-1),a.exclusive=!0),e||(a.stopPropagation(),d.event.global[f]&&d.each(d.cache,function(){var b=d.expando,e=this[b];e&&e.events&&e.events[f]&&d.event.trigger(a,c,e.handle.elem)}));if(!e||e.nodeType===3||e.nodeType===8)return b;a.result=b,a.target=e,c=d.makeArray(c),c.unshift(a)}a.currentTarget=e;var h=d._data(e,"handle");h&&h.apply(e,c);var i=e.parentNode||e.ownerDocument;try{e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]||e["on"+f]&&e["on"+f].apply(e,c)===!1&&(a.result=!1,a.preventDefault())}catch(j){}if(!a.isPropagationStopped()&&i)d.event.trigger(a,c,i,!0);else if(!a.isDefaultPrevented()){var k,l=a.target,m=f.replace(p,""),n=d.nodeName(l,"a")&&m==="click",o=d.event.special[m]||{};if((!o._default||o._default.call(e,a)===!1)&&!n&&!(l&&l.nodeName&&d.noData[l.nodeName.toLowerCase()])){try{l[m]&&(k=l["on"+m],k&&(l["on"+m]=null),d.event.triggered=!0,l[m]())}catch(q){}k&&(l["on"+m]=k),d.event.triggered=!1}}},handle:function(c){var e,f,g,h,i,j=[],k=d.makeArray(arguments);c=k[0]=d.event.fix(c||a.event),c.currentTarget=this,e=c.type.indexOf(".")<0&&!c.exclusive,e||(g=c.type.split("."),c.type=g.shift(),j=g.slice(0).sort(),h=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)")),c.namespace=c.namespace||j.join("."),i=d._data(this,"events"),f=(i||{})[c.type];if(i&&f){f=f.slice(0);for(var l=0,m=f.length;l-1?d.map(a.options,function(a){return a.selected}).join("-"):"":a.nodeName.toLowerCase()==="select"&&(c=a.selectedIndex);return c},B=function B(a){var c=a.target,e,f;if(q.test(c.nodeName)&&!c.readOnly){e=d._data(c,"_change_data"),f=A(c),(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f)a.type="change",a.liveFired=b,d.event.trigger(a,arguments[1],c)}};d.event.special.change={filters:{focusout:B,beforedeactivate:B,click:function(a){var b=a.target,c=b.type;(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")&&B.call(this,a)},keydown:function(a){var b=a.target,c=b.type;(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&B.call(this,a)},beforeactivate:function(a){var b=a.target;d._data(b,"_change_data",A(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in z)d.event.add(this,c+".specialChange",z[c]);return q.test(this.nodeName)},teardown:function(a){d.event.remove(this,".specialChange");return q.test(this.nodeName)}},z=d.event.special.change.filters,z.focus=z.beforeactivate}c.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function c(a){a=d.event.fix(a),a.type=b;return d.event.handle.call(this,a)}d.event.special[b]={setup:function(){this.addEventListener(a,c,!0)},teardown:function(){this.removeEventListener(a,c,!0)}}}),d.each(["bind","one"],function(a,c){d.fn[c]=function(a,e,f){if(typeof a==="object"){for(var g in a)this[c](g,e,a[g],f);return this}if(d.isFunction(e)||e===!1)f=e,e=b;var h=c==="one"?d.proxy(f,function(a){d(this).unbind(a,h);return f.apply(this,arguments)}):f;if(a==="unload"&&c!=="one")this.one(a,e,f);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},d.attrFn&&(d.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,e,g){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return e;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(f.call(n)==="[object Array]")if(u)if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&e.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&e.push(j[t]);else e.push.apply(e,n);else p(n,e);o&&(k(o,h,e,g),k.uniqueSort(e));return e};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.getAttribute("type")},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!=="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector,d=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(e){d=!0}b&&(k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(d||!l.match.PSEUDO.test(c)&&!/!=/.test(c))return b.call(a,c)}catch(e){}return k(c,null,null,[a]).length>0})}(),function(){var a=c.createElement("div");a.innerHTML="";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(var g=c;g0},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(e=0,f=a.length;e-1:d(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=L.test(a)?d(a,b||this.context):null;for(e=0,f=this.length;e-1:d.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b)break}}c=c.length>1?d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a),e=d.merge(this.get(),c);return this.pushStack(N(c[0])||N(e[0])?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}}),d.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c),g=K.call(arguments);G.test(a)||(e=c),e&&typeof e==="string"&&(f=d.filter(e,f)),f=this.length>1&&!M[a]?d.unique(f):f,(this.length>1||I.test(e))&&H.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}}),d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,c,e){var f=[],g=a[c];while(g&&g.nodeType!==9&&(e===b||g.nodeType!==1||!d(g).is(e)))g.nodeType===1&&f.push(g),g=g[c];return f},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var P=/ jQuery\d+="(?:\d+|null)"/g,Q=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,S=/<([\w:]+)/,T=/",""],legend:[1,""],thead:[1,""],tr:[2,""],td:[3,""],col:[2,""],area:[1,""],_default:[0,"",""]};X.optgroup=X.option,X.tbody=X.tfoot=X.colgroup=X.caption=X.thead,X.th=X.td,d.support.htmlSerialize||(X._default=[1,"div","
"]),d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))});if(typeof a!=="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||d.filter(a,[e]).length)!b&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(P,""):null;if(typeof a!=="string"||V.test(a)||!d.support.leadingWhitespace&&Q.test(a)||X[(S.exec(a)||["",""])[1].toLowerCase()])d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);else{a=a.replace(R,"<$1>$2>");try{for(var c=0,e=this.length;c1&&l0?this.clone(!0):this).get();d(f[h])[b](j),e=e.concat(j)}return this.pushStack(e,a,f.selector)}}),d.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,g,h;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){$(a,e),f=_(a),g=_(e);for(h=0;f[h];++h)$(f[h],g[h])}if(b){Z(a,e);if(c){f=_(a),g=_(e);for(h=0;f[h];++h)Z(f[h],g[h])}}return e},clean:function(a,b,e,f){b=b||c,typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var g=[];for(var h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i+="");if(!i)continue;if(typeof i!=="string"||U.test(i)){if(typeof i==="string"){i=i.replace(R,"<$1>$2>");var j=(S.exec(i)||["",""])[1].toLowerCase(),k=X[j]||X._default,l=k[0],m=b.createElement("div");m.innerHTML=k[1]+i+k[2];while(l--)m=m.lastChild;if(!d.support.tbody){var n=T.test(i),o=j==="table"&&!n?m.firstChild&&m.firstChild.childNodes:k[1]===""&&!n?m.childNodes:[];for(var p=o.length-1;p>=0;--p)d.nodeName(o[p],"tbody")&&!o[p].childNodes.length&&o[p].parentNode.removeChild(o[p])}!d.support.leadingWhitespace&&Q.test(i)&&m.insertBefore(b.createTextNode(Q.exec(i)[0]),m.firstChild),i=m.childNodes}}else i=b.createTextNode(i);i.nodeType?g.push(i):g=d.merge(g,i)}if(e)for(h=0;g[h];h++)!f||!d.nodeName(g[h],"script")||g[h].type&&g[h].type.toLowerCase()!=="text/javascript"?(g[h].nodeType===1&&g.splice.apply(g,[h+1,0].concat(d.makeArray(g[h].getElementsByTagName("script")))),e.appendChild(g[h])):f.push(g[h].parentNode?g[h].parentNode.removeChild(g[h]):g[h]);return g},cleanData:function(a){var b,c,e=d.cache,f=d.expando,g=d.event.special,h=d.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&d.noData[j.nodeName.toLowerCase()])continue;c=j[d.expando];if(c){b=e[c]&&e[c][f];if(b&&b.events){for(var k in b.events)g[k]?d.event.remove(j,k):d.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[d.expando]:j.removeAttribute&&j.removeAttribute(d.expando),delete e[c]}}}});var bb=/alpha\([^)]*\)/i,bc=/opacity=([^)]*)/,bd=/-([a-z])/ig,be=/([A-Z])/g,bf=/^-?\d+(?:px)?$/i,bg=/^-?\d/,bh={position:"absolute",visibility:"hidden",display:"block"},bi=["Left","Right"],bj=["Top","Bottom"],bk,bl,bm,bn=function(a,b){return b.toUpperCase()};d.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return d.access(this,a,c,!0,function(a,c,e){return e!==b?d.style(a,c,e):d.css(a,c)})},d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bk(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var g,h=d.camelCase(c),i=a.style,j=d.cssHooks[h];c=d.cssProps[h]||h;if(e===b){if(j&&"get"in j&&(g=j.get(a,!1,f))!==b)return g;return i[c]}if(typeof e==="number"&&isNaN(e)||e==null)return;typeof e==="number"&&!d.cssNumber[h]&&(e+="px");if(!j||!("set"in j)||(e=j.set(a,e))!==b)try{i[c]=e}catch(k){}}},css:function(a,c,e){var f,g=d.camelCase(c),h=d.cssHooks[g];c=d.cssProps[g]||g;if(h&&"get"in h&&(f=h.get(a,!0,e))!==b)return f;if(bk)return bk(a,c,g)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]},camelCase:function(a){return a.replace(bd,bn)}}),d.curCSS=d.css,d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,c,e){var f;if(c){a.offsetWidth!==0?f=bo(a,b,e):d.swap(a,bh,function(){f=bo(a,b,e)});if(f<=0){f=bk(a,b,b),f==="0px"&&bm&&(f=bm(a,b,b));if(f!=null)return f===""||f==="auto"?"0px":f}if(f<0||f==null){f=a.style[b];return f===""||f==="auto"?"0px":f}return typeof f==="string"?f:f+"px"}},set:function(a,b){if(!bf.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return bc.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style;c.zoom=1;var e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=c.filter||"";c.filter=bb.test(f)?f.replace(bb,e):c.filter+" "+e}}),c.defaultView&&c.defaultView.getComputedStyle&&(bl=function(a,c,e){var f,g,h;e=e.replace(be,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return b;if(h=g.getComputedStyle(a,null))f=h.getPropertyValue(e),f===""&&!d.contains(a.ownerDocument.documentElement,a)&&(f=d.style(a,e));return f}),c.documentElement.currentStyle&&(bm=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bf.test(d)&&bg.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bk=bl||bm,d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var bp=/%20/g,bq=/\[\]$/,br=/\r?\n/g,bs=/#.*$/,bt=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bu=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bv=/(?:^file|^widget|\-extension):$/,bw=/^(?:GET|HEAD)$/,bx=/^\/\//,by=/\?/,bz=/
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Todos
-
-
-
-
-
-
- Press Enter to save this task
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-