UNPKG

angularjs-nouislider

Version:

An AngularJS wrapper for the noUiSlider range slider with minimal overhead.

1 lines 679 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{130:function(module,exports,__webpack_require__){var t;t=function(){return function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(i(1));t.default=angular.module("angular-jsoneditor",[]).directive("angularJsoneditor",n.default),e.exports=t.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(i(2));i(75),i(78),t.default=function(){return{restrict:"E",require:"ngModel",scope:{options:"="},link:function(e,t,i,r){var o=void 0,s=function(i){var s=angular.extend({},{},i);return s.onChange=function(){var t=!1;try{r.$setViewValue(o.get()),t=!0}catch(e){throw e}finally{r.$setValidity("json",t),r.$setTouched(),e.$apply(),i.onChange&&"function"==typeof i.onChange&&i.onChange()}},t.html(""),new n.default(t[0],s)};o=s(e.options),e.$watch("options",(function(t,i){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];if(t[n]!==i[n])if("mode"===n)o.setMode(r);else{if("name"!==n)return o=s(t),void e.updateJsonEditor();o.setName(r)}}}),!0),e.$on("$destroy",(function(){o=null})),e.updateJsonEditor=function(){o.set(r.$viewValue||{})},r.$render=e.updateJsonEditor,e.$watch((function(){return r.$modelValue}),(function(t){angular.equals(t,o.get())||e.updateJsonEditor()}),!0)}}},e.exports=t.default},function(e,t,i){e.exports=i(3)},function(e,t,i){"use strict";function n(e,t,i){if(!(this instanceof n))throw new Error('JSONEditor constructor called without "new".');var r=a.getInternetExplorerVersion();if(-1!=r&&r<9)throw new Error("Unsupported browser, IE9 or newer required. Please install the newest version of your browser.");if(t&&(t.error&&(console.warn('Option "error" has been renamed to "onError"'),t.onError=t.error,delete t.error),t.change&&(console.warn('Option "change" has been renamed to "onChange"'),t.onChange=t.change,delete t.change),t.editable&&(console.warn('Option "editable" has been renamed to "onEditable"'),t.onEditable=t.editable,delete t.editable),t)){var o=["ace","theme","ajv","schema","onChange","onEditable","onError","onModeChange","escapeUnicode","history","search","mode","modes","name","indentation","sortObjectKeys"];Object.keys(t).forEach((function(e){-1===o.indexOf(e)&&console.warn('Unknown option "'+e+'". This option will be ignored')}))}arguments.length&&this._create(e,t,i)}var r;try{r=i(4)}catch(e){}var o=i(55),s=i(66),a=i(58);n.modes={},n.prototype.DEBOUNCE_INTERVAL=150,n.prototype._create=function(e,t,i){this.container=e,this.options=t||{},this.json=i||{};var n=this.options.mode||"tree";this.setMode(n)},n.prototype.destroy=function(){},n.prototype.set=function(e){this.json=e},n.prototype.get=function(){return this.json},n.prototype.setText=function(e){this.json=a.parse(e)},n.prototype.getText=function(){return JSON.stringify(this.json)},n.prototype.setName=function(e){this.options||(this.options={}),this.options.name=e},n.prototype.getName=function(){return this.options&&this.options.name},n.prototype.setMode=function(e){var t,i,r=this.container,o=a.extend({},this.options),s=o.mode;o.mode=e;var l=n.modes[e];if(!l)throw new Error('Unknown mode "'+o.mode+'"');try{var c="text"==l.data;if(i=this.getName(),t=this[c?"getText":"get"](),this.destroy(),a.clear(this),a.extend(this,l.mixin),this.create(r,o),this.setName(i),this[c?"setText":"set"](t),"function"==typeof l.load)try{l.load.call(this)}catch(e){console.error(e)}if("function"==typeof o.onModeChange&&e!==s)try{o.onModeChange(e,s)}catch(e){console.error(e)}}catch(e){this._onError(e)}},n.prototype.getMode=function(){return this.options.mode},n.prototype._onError=function(e){if(!this.options||"function"!=typeof this.options.onError)throw e;this.options.onError(e)},n.prototype.setSchema=function(e){if(e){var t;try{t=this.options.ajv||r({allErrors:!0,verbose:!0})}catch(e){console.warn("Failed to create an instance of Ajv, JSON Schema validation is not available. Please use a JSONEditor bundle including Ajv, or pass an instance of Ajv as via the configuration option `ajv`.")}t&&(this.validateSchema=t.compile(e),this.options.schema=e,this.validate()),this.refresh()}else this.validateSchema=null,this.options.schema=null,this.validate(),this.refresh()},n.prototype.validate=function(){},n.prototype.refresh=function(){},n.registerMode=function(e){var t,i;if(a.isArray(e))for(t=0;t<e.length;t++)n.registerMode(e[t]);else{if(!("mode"in e))throw new Error('Property "mode" missing');if(!("mixin"in e))throw new Error('Property "mixin" missing');if(!("data"in e))throw new Error('Property "data" missing');var r=e.mode;if(r in n.modes)throw new Error('Mode "'+r+'" already registered');if("function"!=typeof e.mixin.create)throw new Error('Required function "create" missing on mixin');var o=["setMode","registerMode","modes"];for(t=0;t<o.length;t++)if((i=o[t])in e.mixin)throw new Error('Reserved property "'+i+'" not allowed in mixin');n.modes[r]=e}},n.registerMode(o),n.registerMode(s),e.exports=n},function(e,t,i){"use strict";function n(e){return v.test(e)}function r(e){function t(e,t){var i;if("string"==typeof e){if(!(i=C(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=F(e);i=n.validate||k(n)}var r=i(t);return i.async?"*"==B._opts.async?m(r):r:(B.errors=i.errors,r)}function w(e,t,i,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)w(e[r],void 0,i,n);else D(t=s.normalizeId(t||e.id)),(B._schemas[t]=F(e,i,!0)).meta=n}function b(e,t,i){w(e,t,i,!0)}function A(e,i){var r=e.$schema||B._opts.defaultMeta||function(){var e=B._opts.meta;return B._opts.defaultMeta="object"==typeof e?e.id||e:B._opts.v5?u.META_SCHEMA_ID:g,B._opts.defaultMeta}(),o=B._formats.uri;B._formats.uri="function"==typeof o?n:v;var s=t(r,e);if(B._formats.uri=o,!s&&i){var a="schema is invalid:"+S();if("log"!=B._opts.validateSchema)throw new Error(a);console.error(a)}return s}function C(e){var t=E(e);switch(typeof t){case"object":return t.validate||k(t);case"string":return C(t)}}function E(e){return e=s.normalizeId(e),B._schemas[e]||B._refs[e]}function x(e,t){for(var i in e){var n=e[i];n.meta||t&&!t.test(i)||(B._cache.del(n.jsonStr),delete e[i])}}function F(e,t,i){if("object"!=typeof e)throw new Error("schema should be object");var n=c(e),r=B._cache.get(n);if(r)return r;i=i||!1!==B._opts.addUsedSchema;var o=s.normalizeId(e.id);o&&i&&D(o),!1===B._opts.validateSchema||t||A(e,!0);var a=s.ids.call(B,e),h=new l({id:o,schema:e,localRefs:a,jsonStr:n});return"#"!=o[0]&&i&&(B._refs[o]=h),B._cache.put(n,h),h}function k(e,t){function i(){var t=e.validate,n=t.apply(null,arguments);return i.errors=t.errors,n}if(e.compiling)return e.validate=i,i.schema=e.schema,i.errors=null,i.root=t||i,!0===e.schema.$async&&(i.async=!0),i;var n,r;e.compiling=!0,e.meta&&(n=B._opts,B._opts=B._metaOpts);try{r=o.call(B,e.schema,t,e.localRefs)}finally{e.compiling=!1,e.meta&&(B._opts=n)}return e.validate=r,e.refs=r.refs,e.refVal=r.refVal,e.root=r.root,r}function S(e,t){if(!(e=e||B.errors))return"No errors";for(var i=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,r="",o=0;o<e.length;o++){var s=e[o];s&&(r+=n+s.dataPath+" "+s.message+i)}return r.slice(0,-i.length)}function $(e,t){"string"==typeof t&&(t=new RegExp(t)),B._formats[e]=t}function D(e){if(B._schemas[e]||B._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}if(!(this instanceof r))return new r(e);var B=this;e=this._opts=f.copy(e)||{},this._schemas={},this._refs={},this._formats=h(e.format),this._cache=e.cache||new a,this._loadingSchemas={},this.RULES=d(),this.validate=t,this.compile=function(e){var t=F(e);return t.validate||k(t)},this.addSchema=w,this.addMetaSchema=b,this.validateSchema=A,this.getSchema=C,this.removeSchema=function(e){switch(typeof e){case"undefined":return x(B._schemas),x(B._refs),void B._cache.clear();case"string":var t=E(e);return t&&B._cache.del(t.jsonStr),delete B._schemas[e],void delete B._refs[e];case"object":if(e instanceof RegExp)return x(B._schemas,e),void x(B._refs,e);var i=c(e);B._cache.del(i);var n=e.id;n&&(n=s.normalizeId(n),delete B._schemas[n],delete B._refs[n])}},this.addFormat=$,this.errorsText=S,this._addSchema=F,this._compile=k,e.loopRequired=e.loopRequired||1/0,(e.async||e.transpile)&&p.setup(e),!0===e.beautify&&(e.beautify={indent_size:2}),"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),this._metaOpts=function(){for(var e=f.copy(B._opts),t=0;t<y.length;t++)delete e[y[t]];return e}(),function(){!1!==B._opts.meta&&(b(i(54),g,!0),B._refs["http://json-schema.org/schema"]=g);var e=B._opts.schemas;if(e)if(Array.isArray(e))w(e);else for(var t in e)w(e[t],t)}(),e.formats&&function(){for(var e in B._opts.formats)$(e,B._opts.formats[e])}(),e.v5&&u.enable(this),"object"==typeof e.meta&&b(e.meta)}var o=i(5),s=i(6),a=i(25),l=i(20),c=i(16),h=i(26),d=i(27),u=i(47),f=i(15),p=i(21),m=i(23);e.exports=r,r.prototype.compileAsync=p.compile,r.prototype.addKeyword=i(53),r.ValidationError=i(24);var g="http://json-schema.org/draft-04/schema",v=/^(?:(?:[a-z][a-z0-9+-.]*:)?\/\/)?[^\s]*$/i,y=["removeAdditional","useDefaults","coerceTypes"]},function(module,exports,__webpack_require__){"use strict";function compile(schema,root,localRefs,baseId){function localCompile(_schema,_root,localRefs,baseId){var isRoot=!_root||_root&&_root.schema==_schema;if(_root.schema!=root.schema)return compile.call(self,_schema,_root,localRefs,baseId);var $async=!0===_schema.$async;$async&&!opts.transpile&&async.setup(opts);var sourceCode=validateGenerator({isTop:!0,schema:_schema,isRoot:isRoot,baseId:baseId,root:_root,schemaPath:"",errSchemaPath:"#",errorPath:'""',RULES:RULES,validate:validateGenerator,util:util,resolve:resolve,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:opts,formats:formats,self:self});sourceCode=vars(refVal,refValCode)+vars(patterns,patternCode)+vars(defaults,defaultCode)+vars(customRules,customRuleCode)+sourceCode,opts.beautify&&(beautify?sourceCode=beautify(sourceCode,opts.beautify):console.error('"npm install js-beautify" to use beautify option'));var validate,validateCode,transpile=opts._transpileFunc;try{validateCode=$async&&transpile?transpile(sourceCode):sourceCode,eval(validateCode),refVal[0]=validate}catch(e){throw console.error("Error compiling schema, function code:",validateCode),e}return validate.schema=_schema,validate.errors=null,validate.refs=refs,validate.refVal=refVal,validate.root=isRoot?validate:_root,$async&&(validate.async=!0),validate.sourceCode=sourceCode,validate}function resolveRef(e,t,i){t=resolve.url(e,t);var n,r,o=refs[t];if(void 0!==o)return resolvedRef(n=refVal[o],r="refVal["+o+"]");if(!i){var s=root.refs[t];if(void 0!==s)return resolvedRef(n=root.refVal[s],r=addLocalRef(t,n))}r=addLocalRef(t);var a=resolve.call(self,localCompile,root,t);if(!a){var l=localRefs&&localRefs[t];l&&(a=resolve.inlineRef(l,opts.inlineRefs)?l:compile.call(self,l,root,localRefs,e))}return a?(replaceLocalRef(t,a),resolvedRef(a,r)):void 0}function addLocalRef(e,t){var i=refVal.length;return refVal[i]=t,refs[e]=i,"refVal"+i}function replaceLocalRef(e,t){var i=refs[e];refVal[i]=t}function resolvedRef(e,t){return"object"==typeof e?{code:t,schema:e,inline:!0}:{code:t,async:e&&e.async}}function usePattern(e){var t=patternsHash[e];return void 0===t&&(t=patternsHash[e]=patterns.length,patterns[t]=e),"pattern"+t}function useDefault(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return util.toQuotedString(e);case"object":if(null===e)return"null";var t=stableStringify(e),i=defaultsHash[t];return void 0===i&&(i=defaultsHash[t]=defaults.length,defaults[i]=e),"default"+i}}function useCustomRule(e,t,i,n){var r,o=e.definition.compile,s=e.definition.inline,a=e.definition.macro;o?r=o.call(self,t,i):a?(r=a.call(self,t,i),!1!==opts.validateSchema&&self.validateSchema(r,!0)):r=s?s.call(self,n,e.keyword,t,i):e.definition.validate;var l=customRules.length;return customRules[l]=r,{code:"customRule"+l,validate:r}}var self=this,opts=this._opts,refVal=[void 0],refs={},patterns=[],patternsHash={},defaults=[],defaultsHash={},customRules=[];root=root||{schema:schema,refVal:refVal,refs:refs};var formats=this._formats,RULES=this.RULES;return localCompile(schema,root,localRefs,baseId)}function patternCode(e,t){return"var pattern"+e+" = new RegExp("+util.toQuotedString(t[e])+");"}function defaultCode(e){return"var default"+e+" = defaults["+e+"];"}function refValCode(e,t){return t[e]?"var refVal"+e+" = refVal["+e+"];":""}function customRuleCode(e){return"var customRule"+e+" = customRules["+e+"];"}function vars(e,t){if(!e.length)return"";for(var i="",n=0;n<e.length;n++)i+=t(n,e);return i}var resolve=__webpack_require__(6),util=__webpack_require__(15),stableStringify=__webpack_require__(16),async=__webpack_require__(21),beautify=function(){try{return __webpack_require__(!function(){var e=new Error('Cannot find module "js-beautify"');throw e.code="MODULE_NOT_FOUND",e}()).js_beautify}catch(e){}}(),validateGenerator=__webpack_require__(22);module.exports=compile;var co=__webpack_require__(23),ucs2length=util.ucs2length,equal=__webpack_require__(14),ValidationError=__webpack_require__(24)},function(e,t,i){"use strict";function n(e,t,i){var o=this._refs[i];if("string"==typeof o){if(!this._refs[o])return n.call(this,e,t,o);o=this._refs[o]}if((o=o||this._schemas[i])instanceof v)return a(o.schema,this._opts.inlineRefs)?o.schema:o.validate||this._compile(o);var s,l,c,h=r.call(this,t,i);return h&&(s=h.schema,t=h.root,c=h.baseId),s instanceof v?l=s.validate||e.call(this,s.schema,t,void 0,c):s&&(l=a(s,this._opts.inlineRefs)?s:e.call(this,s,t,void 0,c)),l}function r(e,t){var i=p.parse(t,!1,!0),n=d(i),r=h(e.schema.id);if(n!==r){var a=u(n),l=this._refs[a];if("string"==typeof l)return o.call(this,e,l,i);if(l instanceof v)l.validate||this._compile(l),e=l;else if((l=this._schemas[a])instanceof v){if(l.validate||this._compile(l),a==u(t))return{schema:l,root:e,baseId:r};e=l}if(!e.schema)return;r=h(e.schema.id)}return s.call(this,i,r,e.schema,e)}function o(e,t,i){var n=r.call(this,e,t);if(n){var o=n.schema,a=n.baseId;return e=n.root,o.id&&(a=f(a,o.id)),s.call(this,i,a,o,e)}}function s(e,t,i,n){if(e.hash=e.hash||"","#/"==e.hash.slice(0,2)){for(var o=e.hash.split("/"),s=1;s<o.length;s++){var a=o[s];if(a){if(!(i=i[a=g.unescapeFragment(a)]))break;if(i.id&&!y[a]&&(t=f(t,i.id)),i.$ref){var l=f(t,i.$ref),c=r.call(this,n,l);c&&(i=c.schema,n=c.root,t=c.baseId)}}}return i&&i!=n.schema?{schema:i,root:n,baseId:t}:void 0}}function a(e,t){return!1!==t&&(void 0===t||!0===t?l(e):t?c(e)<=t:void 0)}function l(e){var t;if(Array.isArray(e)){for(var i=0;i<e.length;i++)if("object"==typeof(t=e[i])&&!l(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!l(t))return!1}return!0}function c(e){var t,i=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(i+=c(t)),i==1/0)return 1/0}else for(var r in e){if("$ref"==r)return 1/0;if(w[r])i++;else if("object"==typeof(t=e[r])&&(i+=c(t)+1),i==1/0)return 1/0}return i}function h(e,t){return!1!==t&&(e=u(e)),d(p.parse(e,!1,!0))}function d(e){return(e.protocol||"")+(e.protocol?"//":"")+(e.host||"")+(e.path||"")+"#"}function u(e){return e?e.replace(b,""):""}function f(e,t){return t=u(t),p.resolve(e,t)}var p=i(7),m=i(14),g=i(15),v=i(20);e.exports=n,n.normalizeId=u,n.fullPath=h,n.url=f,n.ids=function(e){var t=u(e.id),i={};return function e(t,n,r){if(Array.isArray(t))for(var o=0;o<t.length;o++)e.call(this,t[o],n+"/"+o,r);else if(t&&"object"==typeof t){if("string"==typeof t.id){var s=r=r?p.resolve(r,t.id):t.id;s=u(s);var a=this._refs[s];if("string"==typeof a&&(a=this._refs[a]),a&&a.schema){if(!m(t,a.schema))throw new Error('id "'+s+'" resolves to more than one schema')}else if(s!=u(n))if("#"==s[0]){if(i[s]&&!m(t,i[s]))throw new Error('id "'+s+'" resolves to more than one schema');i[s]=t}else this._refs[s]=n}for(var l in t)e.call(this,t[l],n+"/"+g.escapeFragment(l),r)}}.call(this,e,h(t,!1),t),i},n.inlineRef=a;var y=g.toHash(["properties","patternProperties","enum","dependencies","definitions"]),w=g.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]),b=/#\/?$/},function(e,t,i){"use strict";function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function r(e,t,i){if(e&&s.isObject(e)&&e instanceof n)return e;var r=new n;return r.parse(e,t,i),r}var o=i(8),s=i(10);t.parse=r,t.resolve=function(e,t){return r(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?r(e,!1,!0).resolveObject(t):t},t.format=function(e){return s.isString(e)&&(e=r(e)),e instanceof n?e.format():n.prototype.format.call(e)},t.Url=n;var a=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),d=["'"].concat(h),u=["%","/","?",";","#"].concat(d),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w=i(11);n.prototype.parse=function(e,t,i){if(!s.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),r=-1!==n&&n<e.indexOf("#")?"?":"#",l=e.split(r);l[0]=l[0].replace(/\\/g,"/");var h=e=l.join(r);if(h=h.trim(),!i&&1===e.split("#").length){var b=c.exec(h);if(b)return this.path=h,this.href=h,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?w.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var A=a.exec(h);if(A){var C=(A=A[0]).toLowerCase();this.protocol=C,h=h.substr(A.length)}if(i||A||h.match(/^\/\/[^@\/]+@[^@\/]+/)){var E="//"===h.substr(0,2);!E||A&&v[A]||(h=h.substr(2),this.slashes=!0)}if(!v[A]&&(E||A&&!y[A])){for(var x=-1,F=0;F<f.length;F++)-1!==($=h.indexOf(f[F]))&&(-1===x||$<x)&&(x=$);var k,S;for(-1!==(S=-1===x?h.lastIndexOf("@"):h.lastIndexOf("@",x))&&(k=h.slice(0,S),h=h.slice(S+1),this.auth=decodeURIComponent(k)),x=-1,F=0;F<u.length;F++){var $;-1!==($=h.indexOf(u[F]))&&(-1===x||$<x)&&(x=$)}-1===x&&(x=h.length),this.host=h.slice(0,x),h=h.slice(x),this.parseHost(),this.hostname=this.hostname||"";var D="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!D)for(var B=this.hostname.split(/\./),_=(F=0,B.length);F<_;F++){var L=B[F];if(L&&!L.match(p)){for(var R="",j=0,T=L.length;j<T;j++)R+=L.charCodeAt(j)>127?"x":L[j];if(!R.match(p)){var P=B.slice(0,F),M=B.slice(F+1),O=L.match(m);O&&(P.push(O[1]),M.unshift(O[2])),M.length&&(h="/"+M.join(".")+h),this.hostname=P.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),D||(this.hostname=o.toASCII(this.hostname));var N=this.port?":"+this.port:"",I=this.hostname||"";this.host=I+N,this.href+=this.host,D&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==h[0]&&(h="/"+h))}if(!g[C])for(F=0,_=d.length;F<_;F++){var W=d[F];if(-1!==h.indexOf(W)){var H=encodeURIComponent(W);H===W&&(H=escape(W)),h=h.split(W).join(H)}}var z=h.indexOf("#");-1!==z&&(this.hash=h.substr(z),h=h.slice(0,z));var V=h.indexOf("?");if(-1!==V?(this.search=h.substr(V),this.query=h.substr(V+1),t&&(this.query=w.parse(this.query)),h=h.slice(0,V)):t&&(this.search="",this.query={}),h&&(this.pathname=h),y[C]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){N=this.pathname||"";var U=this.search||"";this.path=N+U}return this.href=this.format(),this},n.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",i=this.pathname||"",n=this.hash||"",r=!1,o="";this.host?r=e+this.host:this.hostname&&(r=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(r+=":"+this.port)),this.query&&s.isObject(this.query)&&Object.keys(this.query).length&&(o=w.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==r?(r="//"+(r||""),i&&"/"!==i.charAt(0)&&(i="/"+i)):r||(r=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+r+(i=i.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+n},n.prototype.resolve=function(e){return this.resolveObject(r(e,!1,!0)).format()},n.prototype.resolveObject=function(e){if(s.isString(e)){var t=new n;t.parse(e,!1,!0),e=t}for(var i=new n,r=Object.keys(this),o=0;o<r.length;o++){var a=r[o];i[a]=this[a]}if(i.hash=e.hash,""===e.href)return i.href=i.format(),i;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),c=0;c<l.length;c++){var h=l[c];"protocol"!==h&&(i[h]=e[h])}return y[i.protocol]&&i.hostname&&!i.pathname&&(i.path=i.pathname="/"),i.href=i.format(),i}if(e.protocol&&e.protocol!==i.protocol){if(!y[e.protocol]){for(var d=Object.keys(e),u=0;u<d.length;u++){var f=d[u];i[f]=e[f]}return i.href=i.format(),i}if(i.protocol=e.protocol,e.host||v[e.protocol])i.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),i.pathname=p.join("/")}if(i.search=e.search,i.query=e.query,i.host=e.host||"",i.auth=e.auth,i.hostname=e.hostname||e.host,i.port=e.port,i.pathname||i.search){var m=i.pathname||"",g=i.search||"";i.path=m+g}return i.slashes=i.slashes||e.slashes,i.href=i.format(),i}var w=i.pathname&&"/"===i.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),A=b||w||i.host&&e.pathname,C=A,E=i.pathname&&i.pathname.split("/")||[],x=(p=e.pathname&&e.pathname.split("/")||[],i.protocol&&!y[i.protocol]);if(x&&(i.hostname="",i.port=null,i.host&&(""===E[0]?E[0]=i.host:E.unshift(i.host)),i.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),A=A&&(""===p[0]||""===E[0])),b)i.host=e.host||""===e.host?e.host:i.host,i.hostname=e.hostname||""===e.hostname?e.hostname:i.hostname,i.search=e.search,i.query=e.query,E=p;else if(p.length)E||(E=[]),E.pop(),E=E.concat(p),i.search=e.search,i.query=e.query;else if(!s.isNullOrUndefined(e.search))return x&&(i.hostname=i.host=E.shift(),(D=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@"))&&(i.auth=D.shift(),i.host=i.hostname=D.shift())),i.search=e.search,i.query=e.query,s.isNull(i.pathname)&&s.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.href=i.format(),i;if(!E.length)return i.pathname=null,i.search?i.path="/"+i.search:i.path=null,i.href=i.format(),i;for(var F=E.slice(-1)[0],k=(i.host||e.host||E.length>1)&&("."===F||".."===F)||""===F,S=0,$=E.length;$>=0;$--)"."===(F=E[$])?E.splice($,1):".."===F?(E.splice($,1),S++):S&&(E.splice($,1),S--);if(!A&&!C)for(;S--;S)E.unshift("..");!A||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),k&&"/"!==E.join("/").substr(-1)&&E.push("");var D,B=""===E[0]||E[0]&&"/"===E[0].charAt(0);return x&&(i.hostname=i.host=B?"":E.length?E.shift():"",(D=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@"))&&(i.auth=D.shift(),i.host=i.hostname=D.shift())),(A=A||i.host&&E.length)&&!B&&E.unshift(""),E.length?i.pathname=E.join("/"):(i.pathname=null,i.path=null),s.isNull(i.pathname)&&s.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.auth=e.auth||i.auth,i.slashes=i.slashes||e.slashes,i.href=i.format(),i},n.prototype.parseHost=function(){var e=this.host,t=l.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,i){var n;(function(e,r){!function(o){function s(e){throw RangeError(B[e])}function a(e,t){for(var i=e.length,n=[];i--;)n[i]=t(e[i]);return n}function l(e,t){var i=e.split("@"),n="";return i.length>1&&(n=i[0]+"@",e=i[1]),n+a((e=e.replace(D,".")).split("."),t).join(".")}function c(e){for(var t,i,n=[],r=0,o=e.length;r<o;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<o?56320==(64512&(i=e.charCodeAt(r++)))?n.push(((1023&t)<<10)+(1023&i)+65536):(n.push(t),r--):n.push(t);return n}function h(e){return a(e,(function(e){var t="";return e>65535&&(t+=R((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+R(e)})).join("")}function d(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:w}function u(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function f(e,t,i){var n=0;for(e=i?L(e/E):e>>1,e+=L(e/t);e>_*A>>1;n+=w)e=L(e/_);return L(n+(_+1)*e/(e+C))}function p(e){var t,i,n,r,o,a,l,c,u,p,m=[],g=e.length,v=0,C=F,E=x;for((i=e.lastIndexOf(k))<0&&(i=0),n=0;n<i;++n)e.charCodeAt(n)>=128&&s("not-basic"),m.push(e.charCodeAt(n));for(r=i>0?i+1:0;r<g;){for(o=v,a=1,l=w;r>=g&&s("invalid-input"),((c=d(e.charCodeAt(r++)))>=w||c>L((y-v)/a))&&s("overflow"),v+=c*a,!(c<(u=l<=E?b:l>=E+A?A:l-E));l+=w)a>L(y/(p=w-u))&&s("overflow"),a*=p;E=f(v-o,t=m.length+1,0==o),L(v/t)>y-C&&s("overflow"),C+=L(v/t),v%=t,m.splice(v++,0,C)}return h(m)}function m(e){var t,i,n,r,o,a,l,h,d,p,m,g,v,C,E,S=[];for(g=(e=c(e)).length,t=F,i=0,o=x,a=0;a<g;++a)(m=e[a])<128&&S.push(R(m));for(n=r=S.length,r&&S.push(k);n<g;){for(l=y,a=0;a<g;++a)(m=e[a])>=t&&m<l&&(l=m);for(l-t>L((y-i)/(v=n+1))&&s("overflow"),i+=(l-t)*v,t=l,a=0;a<g;++a)if((m=e[a])<t&&++i>y&&s("overflow"),m==t){for(h=i,d=w;!(h<(p=d<=o?b:d>=o+A?A:d-o));d+=w)E=h-p,C=w-p,S.push(R(u(p+E%C,0))),h=L(E/C);S.push(R(u(h,0))),o=f(i,v,n==r),i=0,++n}++i,++t}return S.join("")}var g=("object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType,"object"==typeof r&&r);g.global!==g&&g.window!==g&&g.self;var v,y=2147483647,w=36,b=1,A=26,C=38,E=700,x=72,F=128,k="-",S=/^xn--/,$=/[^\x20-\x7E]/,D=/[\x2E\u3002\uFF0E\uFF61]/g,B={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=w-b,L=Math.floor,R=String.fromCharCode;v={version:"1.3.2",ucs2:{decode:c,encode:h},decode:p,encode:m,toASCII:function(e){return l(e,(function(e){return $.test(e)?"xn--"+m(e):e}))},toUnicode:function(e){return l(e,(function(e){return S.test(e)?p(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return v}.call(t,i,t,e))||(e.exports=n)}()}).call(t,i(9)(e),function(){return this}())},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,i){"use strict";t.decode=t.parse=i(12),t.encode=t.stringify=i(13)},function(e,t){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var s=/\+/g;e=e.split(t);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var l=e.length;a>0&&l>a&&(l=a);for(var c=0;c<l;++c){var h,d,u,f,p=e[c].replace(s,"%20"),m=p.indexOf(n);m>=0?(h=p.substr(0,m),d=p.substr(m+1)):(h=p,d=""),u=decodeURIComponent(h),f=decodeURIComponent(d),i(o,u)?Array.isArray(o[u])?o[u].push(f):o[u]=[o[u],f]:o[u]=f}return o}},function(e,t){"use strict";var i=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var o=encodeURIComponent(i(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(i(e))})).join(t):o+encodeURIComponent(i(e[r]))})).join(t):r?encodeURIComponent(i(r))+n+encodeURIComponent(i(e)):""}},function(e,t){"use strict";e.exports=function e(t,i){if(t===i)return!0;var n,r=Array.isArray(t),o=Array.isArray(i);if(r&&o){if(t.length!=i.length)return!1;for(n=0;n<t.length;n++)if(!e(t[n],i[n]))return!1;return!0}if(r!=o)return!1;if(t&&i&&"object"==typeof t&&"object"==typeof i){var s=Object.keys(t);if(s.length!==Object.keys(i).length)return!1;for(n=0;n<s.length;n++)if(void 0===i[s[n]])return!1;for(n=0;n<s.length;n++)if(!e(t[s[n]],i[s[n]]))return!1;return!0}return!1}},function(e,t,i){"use strict";function n(e,t,i){var n=i?" !== ":" === ",r=i?" || ":" && ",o=i?"!":"",s=i?"":"!";switch(e){case"null":return t+n+"null";case"array":return o+"Array.isArray("+t+")";case"object":return"("+o+t+r+"typeof "+t+n+'"object"'+r+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+n+'"number"'+r+s+"("+t+" % 1))";default:return"typeof "+t+n+'"'+e+'"'}}function r(e){for(var t={},i=0;i<e.length;i++)t[e[i]]=!0;return t}function o(e){return"number"==typeof e?"["+e+"]":u.test(e)?"."+e:"['"+e.replace(f,"\\$&")+"']"}function s(e){return e.replace(f,"\\$&")}function a(e){return"'"+s(e)+"'"}function l(e,t){return'""'==e?t:(e+" + "+t).replace(/' \+ '/g,"")}function c(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function h(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}e.exports={copy:function(e,t){for(var i in t=t||{},e)t[i]=e[i];return t},checkDataType:n,checkDataTypes:function(e,t){switch(e.length){case 1:return n(e[0],t,!0);default:var i="",o=r(e);for(var s in o.array&&o.object&&(i=o.null?"(":"(!"+t+" || ",i+="typeof "+t+' !== "object")',delete o.null,delete o.array,delete o.object),o.number&&delete o.integer,o)i+=(i?" && ":"")+n(s,t,!0);return i}},coerceToTypes:function(e){if(Array.isArray(e)){for(var t=[],i=0;i<e.length;i++){var n=e[i];d[n]&&(t[t.length]=n)}if(t.length)return t}else if(d[e])return[e]},toHash:r,getProperty:o,escapeQuotes:s,ucs2length:function(e){for(var t,i=0,n=e.length,r=0;r<n;)i++,(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<n&&56320==(64512&(t=e.charCodeAt(r)))&&r++;return i},varOccurences:function(e,t){t+="[^0-9]";var i=e.match(new RegExp(t,"g"));return i?i.length:0},varReplace:function(e,t,i){return t+="([^0-9])",i=i.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),i+"$1")},cleanUpCode:function(e){return e.replace(p,"").replace(m,"").replace(g,"if (!($1))")},cleanUpVarErrors:function(e,t){var i=e.match(v);return i&&2===i.length?t?e.replace(w,"").replace(C,E):e.replace(y,"").replace(b,A):e},schemaHasRules:function(e,t){for(var i in e)if(t[i])return!0},stableStringify:i(16),toQuotedString:a,getPathExpr:function(e,t,i,n){return l(e,i?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,i){return l(e,a(i?"/"+c(t):o(t)))},getData:function(e,t,i){var n=e.match(x);if(!n)throw new Error("Invalid relative JSON-pointer: "+e);var r=+n[1],s=n[2];if("#"==s){if(r>=t)throw new Error("Cannot access property/index "+r+" levels up, current level is "+t);return i[t-r]}if(r>t)throw new Error("Cannot access data "+r+" levels up, current level is "+t);var a="data"+(t-r||"");if(!s)return a;for(var l=a,c=s.split("/"),d=0;d<c.length;d++){var u=c[d];u&&(l+=" && "+(a+=o(h(u))))}return l},unescapeFragment:function(e){return h(decodeURIComponent(e))},escapeFragment:function(e){return encodeURIComponent(c(e))},escapeJsonPointer:c};var d=r(["string","number","integer","boolean","null"]),u=/^[a-z$_][a-z$_0-9]*$/i,f=/'|\\/g,p=/else\s*{\s*}/g,m=/if\s*\([^)]+\)\s*\{\s*\}(?!\s*else)/g,g=/if\s*\(([^)]+)\)\s*\{\s*\}\s*else(?!\s*if)/g,v=/[^v\.]errors/g,y=/var errors = 0;|var vErrors = null;|validate.errors = vErrors;/g,w=/var errors = 0;|var vErrors = null;/g,b="return errors === 0;",A="validate.errors = null; return true;",C=/if \(errors === 0\) return true;\s*else throw new ValidationError\(vErrors\);/,E="return true;",x=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/},function(e,t,i){var n="undefined"!=typeof JSON?JSON:i(17);e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var i=t.space||"";"number"==typeof i&&(i=Array(i+1).join(" "));var s="boolean"==typeof t.cycles&&t.cycles,a=t.replacer||function(e,t){return t},l=t.cmp&&function(e){return function(t){return function(i,n){var r={key:i,value:t[i]},o={key:n,value:t[n]};return e(r,o)}}}(t.cmp),c=[];return function e(t,h,d,u){var f=i?"\n"+new Array(u+1).join(i):"",p=i?": ":":";if(d&&d.toJSON&&"function"==typeof d.toJSON&&(d=d.toJSON()),void 0!==(d=a.call(t,h,d))){if("object"!=typeof d||null===d)return n.stringify(d);if(r(d)){for(var m=[],g=0;g<d.length;g++){var v=e(d,g,d[g],u+1)||n.stringify(null);m.push(f+i+v)}return"["+m.join(",")+f+"]"}if(-1!==c.indexOf(d)){if(s)return n.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}c.push(d);var y=o(d).sort(l&&l(d));for(m=[],g=0;g<y.length;g++){var w=e(d,h=y[g],d[h],u+1);if(w){var b=n.stringify(h)+p+w;m.push(f+i+b)}}return c.splice(c.indexOf(d),1),"{"+m.join(",")+f+"}"}}({"":e},"",e,0)};var r=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},o=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},i=[];for(var n in e)t.call(e,n)&&i.push(n);return i}},function(e,t,i){t.parse=i(18),t.stringify=i(19)},function(e,t){var i,n,r,o,s={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},a=function(e){throw{name:"SyntaxError",message:e,at:i,text:r}},l=function(e){return e&&e!==n&&a("Expected '"+e+"' instead of '"+n+"'"),n=r.charAt(i),i+=1,n},c=function(){var e,t="";for("-"===n&&(t="-",l("-"));n>="0"&&n<="9";)t+=n,l();if("."===n)for(t+=".";l()&&n>="0"&&n<="9";)t+=n;if("e"===n||"E"===n)for(t+=n,l(),"-"!==n&&"+"!==n||(t+=n,l());n>="0"&&n<="9";)t+=n,l();return e=+t,isFinite(e)?e:void a("Bad number")},h=function(){var e,t,i,r="";if('"'===n)for(;l();){if('"'===n)return l(),r;if("\\"===n)if(l(),"u"===n){for(i=0,t=0;t<4&&(e=parseInt(l(),16),isFinite(e));t+=1)i=16*i+e;r+=String.fromCharCode(i)}else{if("string"!=typeof s[n])break;r+=s[n]}else r+=n}a("Bad string")},d=function(){for(;n&&n<=" ";)l()};o=function(){switch(d(),n){case"{":return function(){var e,t={};if("{"===n){if(l("{"),d(),"}"===n)return l("}"),t;for(;n;){if(e=h(),d(),l(":"),Object.hasOwnProperty.call(t,e)&&a('Duplicate key "'+e+'"'),t[e]=o(),d(),"}"===n)return l("}"),t;l(","),d()}}a("Bad object")}();case"[":return function(){var e=[];if("["===n){if(l("["),d(),"]"===n)return l("]"),e;for(;n;){if(e.push(o()),d(),"]"===n)return l("]"),e;l(","),d()}}a("Bad array")}();case'"':return h();case"-":return c();default:return n>="0"&&n<="9"?c():function(){switch(n){case"t":return l("t"),l("r"),l("u"),l("e"),!0;case"f":return l("f"),l("a"),l("l"),l("s"),l("e"),!1;case"n":return l("n"),l("u"),l("l"),l("l"),null}a("Unexpected '"+n+"'")}()}},e.exports=function(e,t){var s;return r=e,i=0,n=" ",s=o(),d(),n&&a("Syntax error"),"function"==typeof t?function e(i,n){var r,o,s=i[n];if(s&&"object"==typeof s)for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(void 0!==(o=e(s,r))?s[r]=o:delete s[r]);return t.call(i,n,s)}({"":s},""):s}},function(e,t){function i(e){return a.lastIndex=0,a.test(e)?'"'+e.replace(a,(function(e){var t=l[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function n(e,t){var a,l,c,h,d,u=r,f=t[e];switch(f&&"object"==typeof f&&"function"==typeof f.toJSON&&(f=f.toJSON(e)),"function"==typeof s&&(f=s.call(t,e,f)),typeof f){case"string":return i(f);case"number":return isFinite(f)?String(f):"null";case"boolean":case"null":return String(f);case"object":if(!f)return"null";if(r+=o,d=[],"[object Array]"===Object.prototype.toString.apply(f)){for(h=f.length,a=0;a<h;a+=1)d[a]=n(a,f)||"null";return c=0===d.length?"[]":r?"[\n"+r+d.join(",\n"+r)+"\n"+u+"]":"["+d.join(",")+"]",r=u,c}if(s&&"object"==typeof s)for(h=s.length,a=0;a<h;a+=1)"string"==typeof(l=s[a])&&(c=n(l,f))&&d.push(i(l)+(r?": ":":")+c);else for(l in f)Object.prototype.hasOwnProperty.call(f,l)&&(c=n(l,f))&&d.push(i(l)+(r?": ":":")+c);return c=0===d.length?"{}":r?"{\n"+r+d.join(",\n"+r)+"\n"+u+"}":"{"+d.join(",")+"}",r=u,c}}var r,o,s,a=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,l={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};e.exports=function(e,t,i){var a;if(r="",o="","number"==typeof i)for(a=0;a<i;a+=1)o+=" ";else"string"==typeof i&&(o=i);if(s=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return n("",{"":e})}},function(e,t,i){"use strict";var n=i(15);e.exports=function(e){n.copy(e,this)}},function(module,exports,__webpack_require__){"use strict";function setupAsync(e,t){!1!==t&&(t=!0);var i,n=e.async,r=e.transpile;switch(typeof r){case"string":var o=TRANSPILE[r];if(!o)throw new Error("bad transpiler: "+r);return e._transpileFunc=o(e,t);case"undefined":case"boolean":if("string"==typeof n){if(!(i=ASYNC[n]))throw new Error("bad async mode: "+n);return e.transpile=i(e,t)}for(var s=0;s<MODES.length;s++){var a=MODES[s];if(setupAsync(a,!1))return util.copy(a,e),e.transpile}throw new Error("generators, nodent and regenerator are not available");case"function":return e._transpileFunc=e.transpile;default:throw new Error("bad transpiler: "+r)}}function checkGenerators(opts,required){try{return eval("(function*(){})()"),!0}catch(e){if(required)throw new Error("generators not supported")}}function checkAsyncFunction(opts,required){try{return eval("(async function(){})()"),!0}catch(e){if(required)throw new Error("es7 async functions not supported")}}function getRegenerator(e,t){try{return regenerator||(regenerator=__webpack_require__(!function(){var e=new Error('Cannot find module "regenerator"');throw e.code="MODULE_NOT_FOUND",e}())).runtime(),e.async&&!0!==e.async||(e.async="es7"),regeneratorTranspile}catch(e){if(t)throw new Error("regenerator not available")}}function regeneratorTranspile(e){return regenerator.compile(e).code}function getNodent(e,t){try{return nodent||(nodent=__webpack_require__(!function(){var e=new Error('Cannot find module "nodent"');throw e.code="MODULE_NOT_FOUND",e}())({log:!1,dontInstallRequireHook:!0})),"es7"!=e.async&&(e.async&&!0!==e.async&&console.warn("nodent transpiles only es7 async functions"),e.async="es7"),nodentTranspile}catch(e){if(t)throw new Error("nodent not available")}}function nodentTranspile(e){return nodent.compile(e,"",{promises:!0,sourcemap:!1}).code}function compileAsync(e,t){var i,n=this;try{i=this._addSchema(e)}catch(e){return void setTimeout((function(){t(e)}))}if(i.validate)setTimeout((function(){t(null,i.validate)}));else{if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");!function e(t,i,r){function o(r){function o(r,o){if(r)return i(r);if(!n._refs[s]&&!n._schemas[s])try{n.addSchema(o,s)}catch(e){return void i(e)}e(t,i)}var s=r.missingSchema;if(n._refs[s]||n._schemas[s])return i(new Error("Schema "+s+" is loaded but"+r.missingRef+"cannot be resolved"));var a=n._loadingSchemas[s];a?"function"==typeof a?n._loadingSchemas[s]=[a,o]:a[a.length]=o:(n._loadingSchemas[s]=o,n._opts.loadSchema(s,(function(e,t){var i=n._loadingSchemas[s];if(delete n._loadingSchemas[s],"function"==typeof i)i(e,t);else for(var r=0;r<i.length;r++)i[r](e,t)})))}function s(e,t){return r?void setTimeout((function(){i(e,t)})):i(e,t)}var a;try{a=n.compile(t)}catch(t){return void(t.missingSchema?o(t):s(t))}s(null,a)}(e,t,!0)}}module.exports={setup:setupAsync,compile:compileAsync};var util=__webpack_require__(15),ASYNC={"*":checkGenerators,"co*":checkGenerators,es7:checkAsyncFunction},TRANSPILE={nodent:getNodent,regenerator:getRegenerator},MODES=[{async:"co*"},{async:"es7",transpile:"nodent"},{async:"co*",transpile:"regenerator"}],regenerator,nodent},function(e,t){"use strict";e.exports=function(e,t){function i(e){for(var t=0;t<e.rules.length;t++)if(n(e.rules[t]))return!0}function n(t){return void 0!==e.schema[t.keyword]||"properties"==t.keyword&&(!1===e.schema.additionalProperties||"object"==typeof e.schema.additionalProperties||e.schema.patternProperties&&Object.keys(e.schema.patternProperties).length||e.opts.v5&&e.schema.patternGroups&&Object.keys(e.schema.patternGroups).length)}var r="",o=!0===e.schema.$async;if(e.isTop){var s=e.isTop,a=e.level=0,l=e.dataLevel=0,c="data";if(e.rootId=e.resolve.fullPath(e.root.schema.id),e.baseId=e.baseId||e.rootId,o){e.async=!0;var h="es7"==e.opts.async;e.yieldAwait=h?"await":"yield"}delete e.isTop,e.dataPathArr=[void 0],r+=" validate = ",o?h?r+=" (async function ":("co*"==e.opts.async&&(r+="co.wrap"),r+="(function* "):r+=" (function ",r+=" (data, dataPath, parentData, parentDataProperty) { 'use strict'; var vErrors = null; ",r+=" var errors = 0; "}else{if(a=e.level,c="data"+((l=e.dataLevel)||""),e.schema.id&&(e.baseId=e.resolve.url(e.baseId,e.schema.id)),o&&!e.async)throw new Error("async schema in sync schema");r+=" var errs_"+a+" = errors;"}var d,u="valid"+a,f=!e.opts.allErrors,p="",m="",g=e.schema.type,v=Array.isArray(g);if(g&&e.opts.coerceTypes){var y=e.util.coerceToTypes(g);if(y){var w=e.schemaPath+".type",b=e.errSchemaPath+"/type",A=v?"checkDataTypes":"checkDataType";r+=" if ("+e.util[A](g,c,!0)+") { ";var C="dataType"+a,E="coerced"+a;r+=" var "+C+" = typeof "+c+"; var "+E+" = undefined; ";var x="",F=y;if(F)for(var k,S=-1,$=F.length-1;S<$;)k=F[S+=1],S&&(r+=" if ("+E+" === undefined) { ",x+="}"),"string"==k?r+=" if ("+C+" == 'number' || "+C+" == 'boolean') "+E+" = '' + "+c+"; else if ("+c+" === null) "+E+" = ''; ":"number"==k||"integer"==k?(r+=" if ("+C+" == 'boolean' || "+c+" === null || ("+C+" == 'string' && "+c+" && "+c+" == +"+c+" ","integer"==k&&(r+=" && !("+c+" % 1)"),r+=")) "+E+" = +"+c+"; "):"boolean"==k?r+=" if ("+c+" === 'false' || "+c+" === 0 || "+c+" === null) "+E+" = false; else if ("+c+" === 'true' || "+c+" === 1) "+E+" = true; ":"null"==k&&(r+=" if ("+c+" === '' || "+c+" === 0 || "+c+" === false) "+E+" = null; ");r+=" "+x+" if ("+E+" === undefined) { ",(B=B||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: '"+(d||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+b+"\" , params: { type: '",r+=v?""+g.join(","):""+g,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=v?""+g.join(","):""+g,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var D=r;r=B.pop(),r+=!e.compositeRule&&f?e.async?" throw new ValidationError(["+D+"]); ":" validate.errors = ["+D+"]; return false; ":" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { ",r+=l?" "+c+" = data"+(l-1||"")+"["+e.dataPathArr[l]+"] = "+E+"; ":" data = "+E+"; if (parentData !== undefined) parentData[parentDataProperty] = "+E+"; ",r+=" } } "}}var B,_=e.RULES;if(_)for(var L,R=-1,j=_.length-1;R<j;)if(i(L=_[R+=1])){if(L.type&&(r+=" if ("+e.util.checkDataType(L.type,c)+") { "),e.opts.useDefaults&&!e.compositeRule)if("object"==L.type&&e.schema.properties){var T=e.schema.properties,P=Object.keys(T);if(P)for(var M,O=-1,N=P.length-1;O<N;)void 0!==(W=T[M=P[O+=1]]).default&&(r+=" if ("+(z=c+e.util.getProperty(M))+" === undefined) "+z+" = ",r+="clone"==e.opts.useDefaults?" "+JSON.stringify(W.default)+" ":" "+e.useDefault(W.default)+" ",r+="; ")}else if("array"==L.type&&Array.isArray(e.schema.items)){var I=e.schema.items;if(I){S=-1;for(var W,H=I.length-1;S<H;)if(void 0!==(W=I[S+=1]).default){var z;r+=" if ("+(z=c+"["+S+"]")+" === undefined) "+z+" = ",r+="clone"==e.opts.useDefaults?" "+JSON.stringify(W.default)+" ":" "+e.useDefault(W.default)+" ",r+="; "}}}var V=L.rules;if(V)for(var U,K=-1,q=V.length-1;K<q;)if(n(U=V[K+=1])){if(U.custom){T=e.schema[U.keyword];var G=e.useCustomRule(U,T,e.schema,e),J=G.code+".errors",Y=(w=e.schemaPath+"."+U.keyword,b=e.errSchemaPath+"/"+U.keyword,"errs"+a),Q=(S="i"+a,"ruleErr"+a),X=U.definition,Z=X.async,ee=X.inline,te=X.macro;if(Z&&!e.async)throw new Error("async keyword in sync schema");if(ee||te||(r+=J+" = null;"),r+="var "+Y+" = errors;var valid"+a+";",ee&&X.statements)r+=" "+G.validate;else if(te){var ie=e.util.copy(e);ie.level++,ie.schema=G.validate,ie.schemaPath="";var ne=e.compositeRule;e.compositeRule=ie.compositeRule=!0;var re=e.validate(ie).replace(/validate\.schema/g,G.code);e.compositeRule=ie.compositeRule=ne,r+=" "+re}else if(X.compile||X.validate){(B=B||[]).push(r),r="",r+=" "+G.code+".call( ",r+=e.opts.passContext?"this":"self",G.validate.length,r+=X.compile||!1===X.schema?" , "+c+" ":" , validate.schema"+w+" , "+c+" , validate.schema"+e.schemaPath+" ",r+=" , (dataPath || '')",'""'!=e.errorPath&&(r+=" + "+e.errorPath),r+=l?" , data"+(l-1||"")+" , "+e.dataPathArr[l]+" ":" , parentData , parentDataProperty ";var oe=r+=" ) ";r=B.pop(),!1!==X.errors&&(r+=Z?" var "+(J="customErrors"+a)+" = null; try { valid"+a+" = "+e.yieldAwait+oe+"; } catch (e) { valid"+a+" = false; if (e instanceof ValidationError) "+J+" = e.errors; else throw e; } ":" "+G.code+".errors = null; ")}r+="if (! ",r+=ee?X.statements?" valid"+a+" ":" ("+G.validate+") ":te?" valid"+ie.level+" ":Z?!1===X.errors?" ("+e.yieldAwait+oe+") ":" valid"+a+" ":" "+oe+" ",r+=") { ",d=U.keyword,(B=B||[]).push(r),r="",(B=B||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: '"+(d||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+b+"\" , params: { keyword: '"+U.keyword+"' } ",!1!==e.opts.messages&&(r+=" , message: 'should pass \""+U.keyword+"\" keyword validation' "),e.opts.verbose&&(r+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",D=r,r=B.pop();var se=r+=!e.compositeRule&&f?e.async?" throw new ValidationError(["+D+"]); ":" validate.errors = ["+D+"]; return false; ":" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";r=B.pop(),ee?X.errors?"full"!=X.errors&&(r+=" for (var "+S+"="+Y+"; "+S+"<errors; "+S+"++) { var "+Q+" = vErrors["+S+"]; if ("+Q+".dataPath === undefined) { "+Q+".dataPath = (dataPath || '') + "+e.errorPath+"; } if ("+Q+".schemaPath === undefined) { "+Q+'.schemaPath = "'+b+'"; } ',e.opts.verbose&&(r+=" "+Q+".schema = validate.schema"+w+"; "+Q+".data = "+c+"; "),r+=" } "):!1===X.errors?r+=" "+se+" ":(r+=" if ("+Y+" == errors) { "+se+" } else { for (var "+S+"="+Y+"; "+S+"<errors; "+S+"++) { var "+Q+" = vErrors["+S+"]; if ("+Q+".dataPath === undefined) { "+Q+".dataPath = (dataPath || '') + "+e.errorPath+"; } if ("+Q+".schemaPath === undefined) { "+Q+'.schemaPath = "'+b+'"; } ',e.opts.verbose&&(r+=" "+Q+".schema = validate.schema"+w+"; "+Q+".data = "+c+"; "),r+=" } } "):te?(r+=" var err = ",!1!==e.createErrors?(r+=" { keyword: '"+(d||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+b+"\" , params: { keyword: '"+U.keyword+"' } ",!1!==e.opts.messages&&(r+=" , message: 'should pass \""+U.keyword+"\" keyword validation' "),e.opts.verbose&&(r+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(r+=e.async?" throw new ValidationError(vErrors); ":" validate.errors = vErrors; return false ")):!1===X.errors?r+=" "+se+" ":(r+=" if (Array.isArray("+J+")) { if (vErrors === null) vErrors = "+J+"; else vErrors.concat("+J+"); errors = vErrors.length; for (var "+S+"="+Y+"; "+S+"<errors; "+S+"++) { var "+Q+" = vErrors["+S+"]; "+Q+".dataPath = (dataPath || '') + "+e.errorPath+"; "+Q+'.schemaPath = "'+b+'"; ',e.opts.verbose&&(r+=" "+Q+".schema = validate.schema"+w+"; "+Q+".data = "+c+"; "),r+=" } } else { "+se+" } "),d=void 0,r+=" } ",f&&(r+=" else { ")}else r+=" "+U.code(e,U.keyword)+" ";f&&(p+="}")}if(f&&(r+=" "+p+" ",p=""),L.type&&(r+=" } ",g&&g===L.type)){var ae=!0;r+=" else { ",w=e.schemaPath+".type",b=e.errSchemaPath+"/type",(B=B||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: '"+(d||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+b+"\" , params: { type: '",r+=v?""+g.join(","):""+g,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=v?""+g.join(","):""+g,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",D=r,r=B.pop(),r+=!e.compositeRule&&f?e.async?" throw new ValidationError(["+D+"]); ":" validate.errors = ["+D+"]; return false; ":" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "}f&&(r+=" if (errors === ",r+=s?"0":"errs_"+a,r+=") { ",m+="}")}!g||ae||e.opts.coerceTypes&&y||(w=e.schemaPath+".type",b=e.errSchemaPath+"/type",A=v?"checkDataTypes":"checkDataType",r+=" if ("+e.util[A](g,c,!0)+") { ",(B=B||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: '"+(d||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+b+"\" , params: { type: '",r+=v?""+g.join(","):""+g,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=v?""+g.join(","):""+g,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ",D=r,r=B.pop(),r+=!e.compositeRule&&f?e.async?" throw new ValidationError(["+D+"]); ":" validate.errors = ["+D+"]; return false; ":" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }");return f&&(r+=" "+m+" "),s?(o?(r+=" if (errors === 0) return true; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" });"):r+=" var "+u+" = errors === errs_"+a+";",r=e.util.cleanUpCode(r),s&&f&&(r=e.util.cleanUpVarErrors(r,o)),r}},function(e,t){function i(e){var t=this,i=c.call(arguments,1);return new Promise((function(r,o){function s(t){var i;try{i=e.next(t)}cat