react-jsonschema-form-pagination
Advanced tools
Comparing version 0.1.11 to 0.1.12
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.JSONSchemaForm=e(require("react")):t.JSONSchemaForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=8)}([function(t,e,r){"use strict";function n(){return!1}function o(t){return!t||!t.properties||0===Object.keys(t.properties).length}function i(t,e){return e&&e[t]&&e[t][d]?e[t][d][0]:y}function u(t,e){var r=Object.keys(t.properties).map(function(t){return i(t,e)}),n=Object.keys(e).map(function(t){return i(t,e)}),o=r.concat(n).concat([y]);return Array.from(new Set(o))}function a(t){Object.keys(t).forEach(function(e){t[e]&&t[e][d]&&!Array.isArray(t[e][d])&&(t[e][d]=[t[e][d]])})}function f(t){t[g]||(t[g]={}),Object.keys(t[g]).forEach(function(e){var r=t[g][e];Array.isArray(r)||(t[g][e]=[r])})}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,p.default)(t);return a(e),f(e),e}function c(t){t.required||(t.required=[])}function l(t){var e=(0,p.default)(t);return c(e),e}Object.defineProperty(e,"__esModule",{value:!0}),e.toError=e.UI_TAB_ALIAS=e.UI_TAB_ID=e.GENERIC_TAB=void 0,e.isDevelopment=n,e.isEmptySchema=o,e.findLayer=i,e.listLayers=u,e.normalizeUiSchema=s,e.normalizeSchema=l;var h=r(2),p=function(t){return t&&t.__esModule?t:{default:t}}(h),y=e.GENERIC_TAB="default",d=e.UI_TAB_ID="ui:tabID",g=e.UI_TAB_ALIAS="ui:tabAlias";e.toError=function(t){console.error(t)}},function(e,r){e.exports=t},function(t,e,r){"use strict";t.exports=r(17)},function(t,e,r){"use strict";"function"==typeof Symbol&&Symbol.iterator;t.exports=r(10)()},function(t,e,r){"use strict";function n(t){return null===t||void 0===t}function o(t){return!(!t||"object"!==(void 0===t?"undefined":u(t))||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}function i(t,e,r){var i,l;if(n(t)||n(e))return!1;if(t.prototype!==e.prototype)return!1;if(s(t))return!!s(e)&&(t=a.call(t),e=a.call(e),c(t,e,r));if(o(t)){if(!o(e))return!1;if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}try{var h=f(t),p=f(e)}catch(t){return!1}if(h.length!=p.length)return!1;for(h.sort(),p.sort(),i=h.length-1;i>=0;i--)if(h[i]!=p[i])return!1;for(i=h.length-1;i>=0;i--)if(l=h[i],!c(t[l],e[l],r))return!1;return(void 0===t?"undefined":u(t))===(void 0===e?"undefined":u(e))}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=Array.prototype.slice,f=r(14),s=r(15),c=t.exports=function(t,e,r){return r||(r={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=(void 0===t?"undefined":u(t))&&"object"!=(void 0===e?"undefined":u(e))?r.strict?t===e:t==e:i(t,e,r))}},function(t,e,r){"use strict";(function(t){function n(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=i.prototype):(null===t&&(t=new i(e)),t.length=e),t}function i(t,e,r){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return s(this,t)}return u(this,t,e,r)}function u(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?h(t,e,r,n):"string"==typeof e?c(t,e,r):p(t,e)}function a(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e,r,n){return a(e),e<=0?o(t,e):void 0!==r?"string"==typeof n?o(t,e).fill(r,n):o(t,e).fill(r):o(t,e)}function s(t,e){if(a(e),t=o(t,e<0?0:0|y(e)),!i.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function c(t,e,r){if("string"==typeof r&&""!==r||(r="utf8"),!i.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|g(e,r);t=o(t,n);var u=t.write(e,r);return u!==n&&(t=t.slice(0,u)),t}function l(t,e){var r=e.length<0?0:0|y(e.length);t=o(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function h(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),i.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=i.prototype):t=l(t,e),t}function p(t,e){if(i.isBuffer(e)){var r=0|y(e.length);return t=o(t,r),0===t.length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||X(e.length)?o(t,0):l(t,e);if("Buffer"===e.type&&$(e.data))return l(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function d(t){return+t!=t&&(t=0),i.alloc(+t)}function g(t,e){if(i.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(t).length;default:if(n)return G(t).length;e=(""+e).toLowerCase(),n=!0}}function v(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,r);case"utf8":case"utf-8":return P(this,e,r);case"ascii":return B(this,e,r);case"latin1":case"binary":return j(this,e,r);case"base64":return R(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=i.from(e,n)),i.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,o);if("number"==typeof e)return e&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):w(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function w(t,e,r,n,o){function i(t,e){return 1===u?t[e]:t.readUInt16BE(e*u)}var u=1,a=t.length,f=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;u=2,a/=2,f/=2,r/=2}var s;if(o){var c=-1;for(s=r;s<a;s++)if(i(t,s)===i(e,-1===c?0:s-c)){if(-1===c&&(c=s),s-c+1===f)return c*u}else-1!==c&&(s-=s-c),c=-1}else for(r+f>a&&(r=a-f),s=r;s>=0;s--){for(var l=!0,h=0;h<f;h++)if(i(t,s+h)!==i(e,h)){l=!1;break}if(l)return s}return-1}function _(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var u=0;u<n;++u){var a=parseInt(e.substr(2*u,2),16);if(isNaN(a))return u;t[r+u]=a}return u}function E(t,e,r,n){return K(G(e,t.length-r),t,r,n)}function A(t,e,r,n){return K(V(e),t,r,n)}function T(t,e,r,n){return A(t,e,r,n)}function S(t,e,r,n){return K(W(e),t,r,n)}function O(t,e,r,n){return K(J(e,t.length-r),t,r,n)}function R(t,e,r){return 0===e&&r===t.length?H.fromByteArray(t):H.fromByteArray(t.slice(e,r))}function P(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],u=null,a=i>239?4:i>223?3:i>191?2:1;if(o+a<=r){var f,s,c,l;switch(a){case 1:i<128&&(u=i);break;case 2:f=t[o+1],128==(192&f)&&(l=(31&i)<<6|63&f)>127&&(u=l);break;case 3:f=t[o+1],s=t[o+2],128==(192&f)&&128==(192&s)&&(l=(15&i)<<12|(63&f)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:f=t[o+1],s=t[o+2],c=t[o+3],128==(192&f)&&128==(192&s)&&128==(192&c)&&(l=(15&i)<<18|(63&f)<<12|(63&s)<<6|63&c)>65535&&l<1114112&&(u=l)}}null===u?(u=65533,a=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=a}return D(n)}function D(t){var e=t.length;if(e<=Q)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Q));return r}function B(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function j(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function I(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=q(t[i]);return o}function C(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function U(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,r,n,o,u){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<u)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function x(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function L(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function Y(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function k(t,e,r,n,o){return o||Y(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(t,e,r,n,23,4),r+4}function N(t,e,r,n,o){return o||Y(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(t,e,r,n,52,8),r+8}function F(t){if(t=z(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function q(t){return t<16?"0"+t.toString(16):t.toString(16)}function G(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],u=0;u<n;++u){if((r=t.charCodeAt(u))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(u+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function V(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function J(t,e){for(var r,n,o,i=[],u=0;u<t.length&&!((e-=2)<0);++u)r=t.charCodeAt(u),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function W(t){return H.toByteArray(F(t))}function K(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function X(t){return t!==t}/*! | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.JSONSchemaForm=e(require("react")):t.JSONSchemaForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=8)}([function(t,e,r){"use strict";function n(){return!1}function o(t){return!t||!t.properties||0===Object.keys(t.properties).length}function i(t,e){return e&&e[t]&&e[t][g]?e[t][g][0]:d}function u(t,e){var r=Object.keys(t.properties).map(function(t){return i(t,e)}),n=Object.keys(e).map(function(t){return i(t,e)}),o=r.concat(n).concat([d]);return Array.from(new Set(o))}function a(t){Object.keys(t).forEach(function(e){t[e]&&t[e][g]&&!Array.isArray(t[e][g])&&(t[e][g]=[t[e][g]])})}function f(t){t[v]||(t[v]={}),Object.keys(t[v]).forEach(function(e){var r=t[v][e];Array.isArray(r)||(t[v][e]=[r])})}function s(t){t[b]||(t[b]=[])}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,y.default)(t);return a(e),f(e),s(e),e}function l(t){t.required||(t.required=[])}function h(t){var e=(0,y.default)(t);return l(e),e}Object.defineProperty(e,"__esModule",{value:!0}),e.toError=e.UI_TAB_ORDER=e.UI_TAB_ALIAS=e.UI_TAB_ID=e.GENERIC_TAB=void 0,e.isDevelopment=n,e.isEmptySchema=o,e.findLayer=i,e.listLayers=u,e.normalizeUiSchema=c,e.normalizeSchema=h;var p=r(2),y=function(t){return t&&t.__esModule?t:{default:t}}(p),d=e.GENERIC_TAB="default",g=e.UI_TAB_ID="ui:tabID",v=e.UI_TAB_ALIAS="ui:tabAlias",b=e.UI_TAB_ORDER="ui:tabOrder";e.toError=function(t){console.error(t)}},function(e,r){e.exports=t},function(t,e,r){"use strict";t.exports=r(17)},function(t,e,r){"use strict";"function"==typeof Symbol&&Symbol.iterator;t.exports=r(10)()},function(t,e,r){"use strict";function n(t){return null===t||void 0===t}function o(t){return!(!t||"object"!==(void 0===t?"undefined":u(t))||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}function i(t,e,r){var i,l;if(n(t)||n(e))return!1;if(t.prototype!==e.prototype)return!1;if(s(t))return!!s(e)&&(t=a.call(t),e=a.call(e),c(t,e,r));if(o(t)){if(!o(e))return!1;if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}try{var h=f(t),p=f(e)}catch(t){return!1}if(h.length!=p.length)return!1;for(h.sort(),p.sort(),i=h.length-1;i>=0;i--)if(h[i]!=p[i])return!1;for(i=h.length-1;i>=0;i--)if(l=h[i],!c(t[l],e[l],r))return!1;return(void 0===t?"undefined":u(t))===(void 0===e?"undefined":u(e))}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=Array.prototype.slice,f=r(14),s=r(15),c=t.exports=function(t,e,r){return r||(r={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=(void 0===t?"undefined":u(t))&&"object"!=(void 0===e?"undefined":u(e))?r.strict?t===e:t==e:i(t,e,r))}},function(t,e,r){"use strict";(function(t){function n(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=i.prototype):(null===t&&(t=new i(e)),t.length=e),t}function i(t,e,r){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return s(this,t)}return u(this,t,e,r)}function u(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?h(t,e,r,n):"string"==typeof e?c(t,e,r):p(t,e)}function a(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e,r,n){return a(e),e<=0?o(t,e):void 0!==r?"string"==typeof n?o(t,e).fill(r,n):o(t,e).fill(r):o(t,e)}function s(t,e){if(a(e),t=o(t,e<0?0:0|y(e)),!i.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function c(t,e,r){if("string"==typeof r&&""!==r||(r="utf8"),!i.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|g(e,r);t=o(t,n);var u=t.write(e,r);return u!==n&&(t=t.slice(0,u)),t}function l(t,e){var r=e.length<0?0:0|y(e.length);t=o(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function h(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),i.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=i.prototype):t=l(t,e),t}function p(t,e){if(i.isBuffer(e)){var r=0|y(e.length);return t=o(t,r),0===t.length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||X(e.length)?o(t,0):l(t,e);if("Buffer"===e.type&&$(e.data))return l(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function d(t){return+t!=t&&(t=0),i.alloc(+t)}function g(t,e){if(i.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(t).length;default:if(n)return G(t).length;e=(""+e).toLowerCase(),n=!0}}function v(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return j(this,e,r);case"utf8":case"utf-8":return P(this,e,r);case"ascii":return B(this,e,r);case"latin1":case"binary":return I(this,e,r);case"base64":return R(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=i.from(e,n)),i.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,o);if("number"==typeof e)return e&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):w(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function w(t,e,r,n,o){function i(t,e){return 1===u?t[e]:t.readUInt16BE(e*u)}var u=1,a=t.length,f=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;u=2,a/=2,f/=2,r/=2}var s;if(o){var c=-1;for(s=r;s<a;s++)if(i(t,s)===i(e,-1===c?0:s-c)){if(-1===c&&(c=s),s-c+1===f)return c*u}else-1!==c&&(s-=s-c),c=-1}else for(r+f>a&&(r=a-f),s=r;s>=0;s--){for(var l=!0,h=0;h<f;h++)if(i(t,s+h)!==i(e,h)){l=!1;break}if(l)return s}return-1}function _(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var u=0;u<n;++u){var a=parseInt(e.substr(2*u,2),16);if(isNaN(a))return u;t[r+u]=a}return u}function E(t,e,r,n){return K(G(e,t.length-r),t,r,n)}function A(t,e,r,n){return K(V(e),t,r,n)}function T(t,e,r,n){return A(t,e,r,n)}function S(t,e,r,n){return K(W(e),t,r,n)}function O(t,e,r,n){return K(J(e,t.length-r),t,r,n)}function R(t,e,r){return 0===e&&r===t.length?H.fromByteArray(t):H.fromByteArray(t.slice(e,r))}function P(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],u=null,a=i>239?4:i>223?3:i>191?2:1;if(o+a<=r){var f,s,c,l;switch(a){case 1:i<128&&(u=i);break;case 2:f=t[o+1],128==(192&f)&&(l=(31&i)<<6|63&f)>127&&(u=l);break;case 3:f=t[o+1],s=t[o+2],128==(192&f)&&128==(192&s)&&(l=(15&i)<<12|(63&f)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:f=t[o+1],s=t[o+2],c=t[o+3],128==(192&f)&&128==(192&s)&&128==(192&c)&&(l=(15&i)<<18|(63&f)<<12|(63&s)<<6|63&c)>65535&&l<1114112&&(u=l)}}null===u?(u=65533,a=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=a}return D(n)}function D(t){var e=t.length;if(e<=Q)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Q));return r}function B(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function I(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function j(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=q(t[i]);return o}function C(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function U(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,r,n,o,u){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<u)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function x(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function L(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function Y(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function k(t,e,r,n,o){return o||Y(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(t,e,r,n,23,4),r+4}function N(t,e,r,n,o){return o||Y(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(t,e,r,n,52,8),r+8}function F(t){if(t=z(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function q(t){return t<16?"0"+t.toString(16):t.toString(16)}function G(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],u=0;u<n;++u){if((r=t.charCodeAt(u))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(u+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function V(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function J(t,e){for(var r,n,o,i=[],u=0;u<t.length&&!((e-=2)<0);++u)r=t.charCodeAt(u),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function W(t){return H.toByteArray(F(t))}function K(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function X(t){return t!==t}/*! | ||
* The buffer module from node.js, for the browser. | ||
@@ -7,3 +7,3 @@ * | ||
*/ | ||
var H=r(20),Z=r(21),$=r(22);e.Buffer=i,e.SlowBuffer=d,e.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n(),i.poolSize=8192,i._augment=function(t){return t.__proto__=i.prototype,t},i.from=function(t,e,r){return u(null,t,e,r)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(t,e,r){return f(null,t,e,r)},i.allocUnsafe=function(t){return s(null,t)},i.allocUnsafeSlow=function(t){return s(null,t)},i.isBuffer=function(t){return!(null==t||!t._isBuffer)},i.compare=function(t,e){if(!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,u=Math.min(r,n);o<u;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},i.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(t,e){if(!$(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return i.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=i.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var u=t[r];if(!i.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(n,o),o+=u.length}return n},i.byteLength=g,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},i.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},i.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},i.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?P(this,0,t):v.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===i.compare(this,t)},i.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},i.prototype.compare=function(t,e,r,n,o){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var u=o-n,a=r-e,f=Math.min(u,a),s=this.slice(n,o),c=t.slice(e,r),l=0;l<f;++l)if(s[l]!==c[l]){u=s[l],a=c[l];break}return u<a?-1:a<u?1:0},i.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},i.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},i.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},i.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return _(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":return A(this,t,e,r);case"latin1":case"binary":return T(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;i.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n;if(i.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=i.prototype;else{var o=e-t;n=new i(o,void 0);for(var u=0;u<o;++u)n[u]=this[u+t]}return n},i.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||U(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},i.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||U(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},i.prototype.readUInt8=function(t,e){return e||U(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,e){return e||U(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,e){return e||U(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,e){return e||U(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,e){return e||U(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||U(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},i.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||U(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},i.prototype.readInt8=function(t,e){return e||U(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){e||U(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(t,e){e||U(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(t,e){return e||U(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return e||U(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return e||U(t,4,this.length),Z.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return e||U(t,4,this.length),Z.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return e||U(t,8,this.length),Z.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return e||U(t,8,this.length),Z.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){M(this,t,e,r,Math.pow(2,8*r)-1,0)}var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},i.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){M(this,t,e,r,Math.pow(2,8*r)-1,0)}var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},i.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,1,255,0),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},i.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):x(this,t,e,!0),e+2},i.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):x(this,t,e,!1),e+2},i.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):L(this,t,e,!0),e+4},i.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},i.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=0,u=1,a=0;for(this[e]=255&t;++i<r&&(u*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/u>>0)-a&255;return e+r},i.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=r-1,u=1,a=0;for(this[e+i]=255&t;--i>=0&&(u*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/u>>0)-a&255;return e+r},i.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,1,127,-128),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):x(this,t,e,!0),e+2},i.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):x(this,t,e,!1),e+2},i.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):L(this,t,e,!0),e+4},i.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},i.prototype.writeFloatLE=function(t,e,r){return k(this,t,e,!0,r)},i.prototype.writeFloatBE=function(t,e,r){return k(this,t,e,!1,r)},i.prototype.writeDoubleLE=function(t,e,r){return N(this,t,e,!0,r)},i.prototype.writeDoubleBE=function(t,e,r){return N(this,t,e,!1,r)},i.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o,u=n-r;if(this===t&&r<e&&e<n)for(o=u-1;o>=0;--o)t[o+e]=this[o+r];else if(u<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o<u;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+u),e);return u},i.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var u;if("number"==typeof t)for(u=e;u<r;++u)this[u]=t;else{var a=i.isBuffer(t)?t:G(new i(t,n).toString()),f=a.length;for(u=0;u<r-e;++u)this[u+e]=a[u%f]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,r(19))},function(t,e,r){"use strict";(function(t){function r(t,e){if("[object Array]"!==o.call(t))throw new TypeError("array must be an Array");var r=void 0,n=void 0,i=void 0;for(r=0,n=t.length;r<n;++r)if((i=t[r])===e||i!==i&&e!==e)return r;return-1}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.__esModule=!0;var o=Object.prototype.toString,i=void 0!==t?function(e){return t.isBuffer(e)}:function(){return!1},u="function"==typeof Object.keys?function(t){return Object.keys(t)}:function(t){var e=void 0===t?"undefined":n(t);if(null===t||"function"!==e&&"object"!==e)throw new TypeError("obj must be an Object");var r=[],o=void 0;for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.push(o);return r},a="function"==typeof Symbol?function(t){return Object.getOwnPropertySymbols(t)}:function(){return[]};e.getKeys=u,e.getSymbols=a,e.indexOf=r,e.isBuffer=i}).call(e,r(5).Buffer)},function(t,e,r){"use strict";function n(t){var e=t.handleClick,r=t.isActive,n=t.name;return u.default.createElement("li",{onClick:e,className:r?"active":null},u.default.createElement("a",null,n))}function o(t){var e=t.activeTab,r=t.tabs,o=t.onTabChange,i=r.filter(function(t){return t.tabID!==a.GENERIC_TAB});return i.length>0?u.default.createElement("fieldset",null,u.default.createElement("div",{className:"form-group col-md-12"},u.default.createElement("ul",{className:"nav nav-pills"},i.map(function(t,r){var i=t.tabID,a=t.name;return u.default.createElement(n,{key:r,name:a||i,isActive:e===i,handleClick:function(){return o(i)}})})))):u.default.createElement("div",null)}Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),u=function(t){return t&&t.__esModule?t:{default:t}}(i),a=r(0);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(9),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=o.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E.default,r=(0,v.default)(t,e),n=function(t){function e(t){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));a.call(r);var n=r.props,u=n.formData,f=n.tabData,s=n.schema,c=n.uiSchema;r.layers=(0,w.default)(s,c,f);var l=r.layers.updateActiveTabs([],0);return r.state={formData:u,activeTabs:l},r}return u(e,t),s(e,[{key:"componentWillReceiveProps",value:function(t){if(!this.sameLayers(t)){var e=t.schema,r=t.uiSchema,n=t.tabData;this.layers=(0,w.default)(e,r,n)}this.sameData(t.formData)||(this.formData=t.formData,this.setState({formData:t.formData}))}},{key:"shouldComponentUpdate",value:function(t,e){if(!(0,d.default)(e.activeTabs,this.state.activeTabs))return!0;var r=(0,d.default)(Object.assign({},this.props,{formData:{}}),Object.assign({},t,{formData:{}}));if(!r)return!0;var n=(0,d.default)(Object.assign({},this.state,{formData:this.formData}),e);if(!n)return!0;var o=this.sameData(t.formData);return!r||!n||!o}},{key:"render",value:function(){var t=this,e=this.layers.toSubForms(this.state.activeTabs);return l.default.createElement("div",null,e.map(function(e,n){var o=Object.assign({},t.props,e,{formData:t.formData});return l.default.createElement(r,f({key:n},o,{onChange:t.handleOnChange,onTabChange:t.handleTabChange(n)}))}),this.props.children)}}]),e}(c.Component),a=function(){var t=this;this.sameData=function(e){return(0,d.default)(t.props.formData,e)||(0,d.default)(t.formData,e)},this.sameLayers=function(e){var r=function(t){return{tabData:t.tabData,schema:t.schema,uiSchema:t.uiSchema}};return(0,d.default)(r(e),r(t.props))},this.handleTabChange=function(e){return function(r){var n=t.state.activeTabs.slice(0,e+1);n[e]=r,t.layers.updateActiveTabs(n),t.props.onTabChange&&t.props.onTabChange(n,t.state.activeTabs),t.setState({activeTabs:n})}},this.handleOnChange=function(e){t.formData=e.formData,t.setState({formData:e.formData}),t.props.onChange&&t.props.onChange(e)}};return(0,b.isDevelopment)()&&(n.propTypes={tabData:p.default.array.isRequired}),n}Object.defineProperty(e,"__esModule",{value:!0});var f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();e.default=a;var c=r(1),l=n(c),h=r(3),p=n(h),y=r(4),d=n(y),g=r(16),v=n(g),b=r(0),m=r(23),w=n(m),_=r(7),E=n(_)},function(t,e,r){"use strict";var n=r(11),o=r(12),i=r(13);t.exports=function(){function t(t,e,r,n,u,a){a!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var r={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e};return r.checkPropTypes=n,r.PropTypes=r,r}},function(t,e,r){"use strict";function n(t){return function(){return t}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,r){"use strict";function n(t,e,r,n,i,u,a,f){if(o(e),!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,u,a,f],l=0;s=new Error(e.replace(/%s/g,function(){return c[l++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var o=function(t){};t.exports=n},function(t,e,r){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,r){"use strict";function n(t){var e=[];for(var r in t)e.push(r);return e}e=t.exports="function"==typeof Object.keys?Object.keys:n,e.shim=n},function(t,e,r){"use strict";function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function o(t){return t&&"object"==(void 0===t?"undefined":i(t))&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=u?n:o,e.supported=n,e.unsupported=o},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),f=r(1),s=n(f),c=r(4),l=n(c),h=r(3),p=n(h),y=r(0),d=r(7),g=n(d),v=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default,r=function(t){function e(t){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));n.call(r);var u=r.props.formData;return r.state={formData:u},r}return u(e,t),a(e,[{key:"componentWillReceiveProps",value:function(t){var e=t.formData;this.sameData(e)||(this.formData=e,this.setState({formData:e}))}},{key:"shouldComponentUpdate",value:function(t,e){var r=(0,l.default)(Object.assign({},this.props,{formData:{}}),Object.assign({},t,{formData:{}})),n=(0,l.default)(Object.assign({},this.state,{formData:this.formData}),e),o=this.sameData(t.formData);return!r||!n||!o}},{key:"render",value:function(){return s.default.createElement("div",null,this.renderForm(),this.renderTabs())}}]),e}(f.Component),n=function(){var r=this;this.sameData=function(t){return(0,l.default)(r.props.formData,t)||(0,l.default)(r.formData,t)},this.handleOnChange=function(t){r.formData=t.formData,r.setState({formData:t.formData}),r.props.onChange&&r.props.onChange(t)},this.renderForm=function(){if(r.props.schema){var e=r.state.formData,n=Object.assign({},r.props,{formData:e,onChange:r.handleOnChange});return s.default.createElement(t,n,s.default.createElement("div",null))}return s.default.createElement("div",null)},this.renderTabs=function(){var t=r.props,n=t.tabs,o=t.activeTab,i=t.onTabChange;return s.default.createElement(e,{tabs:n,activeTab:o,onTabChange:i})}};return(0,y.isDevelopment)()&&(r.propTypes={tabs:p.default.array}),r};e.default=v},function(t,e,r){"use strict";function n(t){}function o(t){var e=arguments.length<=1||void 0===arguments[1]?n:arguments[1];if(null===t)return null;var r=(0,a.copyValue)(t);if(null!==r)return r;var o=(0,a.copyCollection)(t,e),u=null!==o?o:t;return i(t,e,u,[t],[u])}function i(t,e,r,n,o){if(null===t)return null;var s=(0,a.copyValue)(t);if(null!==s)return s;var c=(0,f.getKeys)(t).concat((0,f.getSymbols)(t)),l=void 0,h=void 0,p=void 0,y=void 0,d=void 0,g=void 0,v=void 0,b=void 0;for(l=0,h=c.length;l<h;++l)p=c[l],y=t[p],d=(0,f.indexOf)(n,y),g=void 0,v=void 0,b=void 0,-1===d?(g=(0,a.copy)(y,e),v=null!==g?g:y,null!==y&&/^(?:function|object)$/.test(void 0===y?"undefined":u(y))&&(n.push(y),o.push(v))):b=o[d],r[p]=b||i(y,e,v,n,o);return r}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.__esModule=!0;var a=r(18),f=r(6);e.default=o,t.exports=e.default},function(t,e,r){"use strict";(function(t){function n(t,e){var r=i(t);return null!==r?r:o(t,e)}function o(e,r){if("function"!=typeof r)throw new TypeError("customizer is must be a Function");if("function"==typeof e){var n=String(e);return/^\s*function\s*\S*\([^\)]*\)\s*{\s*\[native code\]\s*}/.test(n)?e:new Function("return "+String(n))()}var o=f.call(e);if("[object Array]"===o)return[];if("[object Object]"===o&&e.constructor===Object)return{};if("[object Date]"===o)return new Date(e.getTime());if("[object RegExp]"===o){var i=String(e),u=i.lastIndexOf("/");return new RegExp(i.slice(1,u),i.slice(u+1))}if((0,a.isBuffer)(e)){var s=new t(e.length);return e.copy(s),s}var c=r(e);return void 0!==c?c:null}function i(t){var e=void 0===t?"undefined":u(t);return null!==t&&"object"!==e&&"function"!==e?t:null}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.__esModule=!0,e.copyValue=e.copyCollection=e.copy=void 0;var a=r(6),f=Object.prototype.toString;e.copy=n,e.copyCollection=o,e.copyValue=i}).call(e,r(5).Buffer)},function(t,e,r){"use strict";var n,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":o(window))&&(n=window)}t.exports=n},function(t,e,r){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function o(t){return 3*t.length/4-n(t)}function i(t){var e,r,o,i,u,a=t.length;i=n(t),u=new l(3*a/4-i),r=i>0?a-4:a;var f=0;for(e=0;e<r;e+=4)o=c[t.charCodeAt(e)]<<18|c[t.charCodeAt(e+1)]<<12|c[t.charCodeAt(e+2)]<<6|c[t.charCodeAt(e+3)],u[f++]=o>>16&255,u[f++]=o>>8&255,u[f++]=255&o;return 2===i?(o=c[t.charCodeAt(e)]<<2|c[t.charCodeAt(e+1)]>>4,u[f++]=255&o):1===i&&(o=c[t.charCodeAt(e)]<<10|c[t.charCodeAt(e+1)]<<4|c[t.charCodeAt(e+2)]>>2,u[f++]=o>>8&255,u[f++]=255&o),u}function u(t){return s[t>>18&63]+s[t>>12&63]+s[t>>6&63]+s[63&t]}function a(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16)+(t[i+1]<<8)+t[i+2],o.push(u(n));return o.join("")}function f(t){for(var e,r=t.length,n=r%3,o="",i=[],u=0,f=r-n;u<f;u+=16383)i.push(a(t,u,u+16383>f?f:u+16383));return 1===n?(e=t[r-1],o+=s[e>>2],o+=s[e<<4&63],o+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],o+=s[e>>10],o+=s[e>>4&63],o+=s[e<<2&63],o+="="),i.push(o),i.join("")}e.byteLength=o,e.toByteArray=i,e.fromByteArray=f;for(var s=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,y=h.length;p<y;++p)s[p]=h[p],c[h.charCodeAt(p)]=p;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},function(t,e,r){"use strict";e.read=function(t,e,r,n,o){var i,u,a=8*o-n-1,f=(1<<a)-1,s=f>>1,c=-7,l=r?o-1:0,h=r?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-c)-1,p>>=-c,c+=a;c>0;i=256*i+t[e+l],l+=h,c-=8);for(u=i&(1<<-c)-1,i>>=-c,c+=n;c>0;u=256*u+t[e+l],l+=h,c-=8);if(0===i)i=1-s;else{if(i===f)return u?NaN:1/0*(p?-1:1);u+=Math.pow(2,n),i-=s}return(p?-1:1)*u*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var u,a,f,s=8*i-o-1,c=(1<<s)-1,l=c>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,y=n?1:-1,d=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,u=c):(u=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-u))<1&&(u--,f*=2),e+=u+l>=1?h/f:h*Math.pow(2,1-l),e*f>=2&&(u++,f/=2),u+l>=c?(a=0,u=c):u+l>=1?(a=(e*f-1)*Math.pow(2,o),u+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),u=0));o>=8;t[r+p]=255&a,p+=y,a/=256,o-=8);for(u=u<<o|a,s+=o;s>0;t[r+p]=255&u,p+=y,u/=256,s-=8);t[r+p-y]|=128*d}},function(t,e,r){"use strict";var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e,r){var n=(0,u.listLayers)(t,e),i=n.filter(function(t){return t!==u.GENERIC_TAB}).reduce(function(n,i){var a=(0,c.default)(i,t,e),s=(0,f.default)(i,e);return(0,u.isEmptySchema)(a)||(n[i]=o(a,s,r)),n},{}),a=(0,c.default)(u.GENERIC_TAB,t,e),s=(0,f.default)(u.GENERIC_TAB,e),l=(0,h.default)(i,r),p={schema:a,uiSchema:s,tabs:l};return new y.default(p,i)}function i(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return o((0,u.normalizeSchema)(t),(0,u.normalizeUiSchema)(e),r)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var u=r(0),a=r(24),f=n(a),s=r(25),c=n(s),l=r(26),h=n(l),p=r(27),y=n(p)},function(t,e,r){"use strict";function n(t){Object.keys(t).forEach(function(e){var r=t[e][s.UI_TAB_ID];r&&r.length>1?r.shift():delete t[e][s.UI_TAB_ID]})}function o(t,e){return Object.keys(e[s.UI_TAB_ALIAS]).reduce(function(r,n){var o=e[s.UI_TAB_ALIAS][n].filter(function(r){return(0,s.findLayer)(r,e)===t});return 1==o.length?r.push({field:n,alias:o[0]}):0!==o.length&&(0,s.toError)(n+" has too many aliases "+o+" for the "+t),r},[])}function i(t,e){o(t,e).forEach(function(t){var r=t.field,n=t.alias;e[r]=e[n]})}function u(t,e){var r=(0,f.default)(e);return i(t,r),n(r),r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var a=r(2),f=function(t){return t&&t.__esModule?t:{default:t}}(a),s=r(0)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),o=function(t){return t&&t.__esModule?t:{default:t}}(n),i=r(0),u=function(t,e,r){return e[i.UI_TAB_ALIAS][t]&&e[i.UI_TAB_ALIAS][t].some(function(t){return(0,i.findLayer)(t,e)===r})},a=function(t,e){return function(r){return(0,i.findLayer)(r,t)===e||u(r,t,e)}},f=function(t,e){return function(r){e.required.includes(r)&&t.required.push(r),t.properties[r]=e.properties[r]}},s=function(t,e,r){var n=Object.assign({},(0,o.default)(e),{required:[],properties:{}});return Object.keys(e.properties).filter(a(r,t)).forEach(f(n,e)),n};e.default=s},function(t,e,r){"use strict";function n(t,e){var r=e.find(function(e){return e.tabID===t});return r||{tabID:t}}function o(t,e){return Object.keys(t).map(function(t){return n(t,e)})}Object.defineProperty(e,"__esModule",{value:!0}),e.findTab=n,e.default=o},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),i=function t(e,r){n(this,t),u.call(this),this.conf=e,this.tabs=r,this.activeTab=e.tabs.length>0?e.tabs[0].tabID:o.GENERIC_TAB},u=function(){var t=this;this.updateActiveTabs=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return r===e.length?t.activeTab!==o.GENERIC_TAB&&(e.push(t.activeTab),t.tabs[t.activeTab].updateActiveTabs(e,r+1)):(t.activeTab=e[r],t.tabs[e[r]].updateActiveTabs(e,r+1)),e},this.toSubForms=function(e){var r=[],n=e[0]?e[0]:o.GENERIC_TAB;if(r.push(Object.assign({},t.conf,{activeTab:n})),n===o.GENERIC_TAB)return r;var i=t.tabs[n],u=e.slice(1);return i.toSubForms(u).forEach(function(t){return r.push(t)}),r}};e.default=i}])}); | ||
var H=r(20),Z=r(21),$=r(22);e.Buffer=i,e.SlowBuffer=d,e.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n(),i.poolSize=8192,i._augment=function(t){return t.__proto__=i.prototype,t},i.from=function(t,e,r){return u(null,t,e,r)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(t,e,r){return f(null,t,e,r)},i.allocUnsafe=function(t){return s(null,t)},i.allocUnsafeSlow=function(t){return s(null,t)},i.isBuffer=function(t){return!(null==t||!t._isBuffer)},i.compare=function(t,e){if(!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,u=Math.min(r,n);o<u;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},i.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(t,e){if(!$(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return i.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=i.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var u=t[r];if(!i.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(n,o),o+=u.length}return n},i.byteLength=g,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},i.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},i.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},i.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?P(this,0,t):v.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===i.compare(this,t)},i.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},i.prototype.compare=function(t,e,r,n,o){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var u=o-n,a=r-e,f=Math.min(u,a),s=this.slice(n,o),c=t.slice(e,r),l=0;l<f;++l)if(s[l]!==c[l]){u=s[l],a=c[l];break}return u<a?-1:a<u?1:0},i.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},i.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},i.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},i.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return _(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":return A(this,t,e,r);case"latin1":case"binary":return T(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;i.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n;if(i.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=i.prototype;else{var o=e-t;n=new i(o,void 0);for(var u=0;u<o;++u)n[u]=this[u+t]}return n},i.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||U(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},i.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||U(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},i.prototype.readUInt8=function(t,e){return e||U(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,e){return e||U(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,e){return e||U(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,e){return e||U(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,e){return e||U(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||U(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},i.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||U(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},i.prototype.readInt8=function(t,e){return e||U(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){e||U(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(t,e){e||U(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(t,e){return e||U(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return e||U(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return e||U(t,4,this.length),Z.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return e||U(t,4,this.length),Z.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return e||U(t,8,this.length),Z.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return e||U(t,8,this.length),Z.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){M(this,t,e,r,Math.pow(2,8*r)-1,0)}var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},i.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){M(this,t,e,r,Math.pow(2,8*r)-1,0)}var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},i.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,1,255,0),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},i.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):x(this,t,e,!0),e+2},i.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):x(this,t,e,!1),e+2},i.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):L(this,t,e,!0),e+4},i.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},i.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=0,u=1,a=0;for(this[e]=255&t;++i<r&&(u*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/u>>0)-a&255;return e+r},i.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=r-1,u=1,a=0;for(this[e+i]=255&t;--i>=0&&(u*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/u>>0)-a&255;return e+r},i.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,1,127,-128),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):x(this,t,e,!0),e+2},i.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):x(this,t,e,!1),e+2},i.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):L(this,t,e,!0),e+4},i.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},i.prototype.writeFloatLE=function(t,e,r){return k(this,t,e,!0,r)},i.prototype.writeFloatBE=function(t,e,r){return k(this,t,e,!1,r)},i.prototype.writeDoubleLE=function(t,e,r){return N(this,t,e,!0,r)},i.prototype.writeDoubleBE=function(t,e,r){return N(this,t,e,!1,r)},i.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o,u=n-r;if(this===t&&r<e&&e<n)for(o=u-1;o>=0;--o)t[o+e]=this[o+r];else if(u<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o<u;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+u),e);return u},i.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var u;if("number"==typeof t)for(u=e;u<r;++u)this[u]=t;else{var a=i.isBuffer(t)?t:G(new i(t,n).toString()),f=a.length;for(u=0;u<r-e;++u)this[u+e]=a[u%f]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,r(19))},function(t,e,r){"use strict";(function(t){function r(t,e){if("[object Array]"!==o.call(t))throw new TypeError("array must be an Array");var r=void 0,n=void 0,i=void 0;for(r=0,n=t.length;r<n;++r)if((i=t[r])===e||i!==i&&e!==e)return r;return-1}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.__esModule=!0;var o=Object.prototype.toString,i=void 0!==t?function(e){return t.isBuffer(e)}:function(){return!1},u="function"==typeof Object.keys?function(t){return Object.keys(t)}:function(t){var e=void 0===t?"undefined":n(t);if(null===t||"function"!==e&&"object"!==e)throw new TypeError("obj must be an Object");var r=[],o=void 0;for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.push(o);return r},a="function"==typeof Symbol?function(t){return Object.getOwnPropertySymbols(t)}:function(){return[]};e.getKeys=u,e.getSymbols=a,e.indexOf=r,e.isBuffer=i}).call(e,r(5).Buffer)},function(t,e,r){"use strict";function n(t){var e=t.handleClick,r=t.isActive,n=t.name;return u.default.createElement("li",{onClick:e,className:r?"active":null},u.default.createElement("a",null,n))}function o(t){var e=t.activeTab,r=t.tabs,o=t.onTabChange,i=r.filter(function(t){return t.tabID!==a.GENERIC_TAB});return i.length>0?u.default.createElement("fieldset",null,u.default.createElement("div",{className:"form-group col-md-12"},u.default.createElement("ul",{className:"nav nav-pills"},i.map(function(t,r){var i=t.tabID,a=t.name;return u.default.createElement(n,{key:r,name:a||i,isActive:e===i,handleClick:function(){return o(i)}})})))):u.default.createElement("div",null)}Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),u=function(t){return t&&t.__esModule?t:{default:t}}(i),a=r(0);e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(9),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=o.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E.default,r=(0,v.default)(t,e),n=function(t){function e(t){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));a.call(r);var n=r.props,u=n.formData,f=n.tabData,s=n.schema,c=n.uiSchema;r.layers=(0,w.default)(s,c,f);var l=r.layers.updateActiveTabs([],0);return r.state={formData:u,activeTabs:l},r}return u(e,t),s(e,[{key:"componentWillReceiveProps",value:function(t){if(!this.sameLayers(t)){var e=t.schema,r=t.uiSchema,n=t.tabData;this.layers=(0,w.default)(e,r,n)}this.sameData(t.formData)||(this.formData=t.formData,this.setState({formData:t.formData}))}},{key:"shouldComponentUpdate",value:function(t,e){if(!(0,d.default)(e.activeTabs,this.state.activeTabs))return!0;var r=(0,d.default)(Object.assign({},this.props,{formData:{}}),Object.assign({},t,{formData:{}}));if(!r)return!0;var n=(0,d.default)(Object.assign({},this.state,{formData:this.formData}),e);if(!n)return!0;var o=this.sameData(t.formData);return!r||!n||!o}},{key:"render",value:function(){var t=this,e=this.layers.toSubForms(this.state.activeTabs);return l.default.createElement("div",null,e.map(function(e,n){var o=Object.assign({},t.props,e,{formData:t.formData});return l.default.createElement(r,f({key:n},o,{onChange:t.handleOnChange,onTabChange:t.handleTabChange(n)}))}),this.props.children)}}]),e}(c.Component),a=function(){var t=this;this.sameData=function(e){return(0,d.default)(t.props.formData,e)||(0,d.default)(t.formData,e)},this.sameLayers=function(e){var r=function(t){return{tabData:t.tabData,schema:t.schema,uiSchema:t.uiSchema}};return(0,d.default)(r(e),r(t.props))},this.handleTabChange=function(e){return function(r){var n=t.state.activeTabs.slice(0,e+1);n[e]=r,t.layers.updateActiveTabs(n),t.props.onTabChange&&t.props.onTabChange(n,t.state.activeTabs),t.setState({activeTabs:n})}},this.handleOnChange=function(e){t.formData=e.formData,t.setState({formData:e.formData}),t.props.onChange&&t.props.onChange(e)}};return(0,b.isDevelopment)()&&(n.propTypes={tabData:p.default.array.isRequired}),n}Object.defineProperty(e,"__esModule",{value:!0});var f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();e.default=a;var c=r(1),l=n(c),h=r(3),p=n(h),y=r(4),d=n(y),g=r(16),v=n(g),b=r(0),m=r(23),w=n(m),_=r(7),E=n(_)},function(t,e,r){"use strict";var n=r(11),o=r(12),i=r(13);t.exports=function(){function t(t,e,r,n,u,a){a!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var r={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e};return r.checkPropTypes=n,r.PropTypes=r,r}},function(t,e,r){"use strict";function n(t){return function(){return t}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,r){"use strict";function n(t,e,r,n,i,u,a,f){if(o(e),!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,u,a,f],l=0;s=new Error(e.replace(/%s/g,function(){return c[l++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var o=function(t){};t.exports=n},function(t,e,r){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,r){"use strict";function n(t){var e=[];for(var r in t)e.push(r);return e}e=t.exports="function"==typeof Object.keys?Object.keys:n,e.shim=n},function(t,e,r){"use strict";function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function o(t){return t&&"object"==(void 0===t?"undefined":i(t))&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=u?n:o,e.supported=n,e.unsupported=o},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),f=r(1),s=n(f),c=r(4),l=n(c),h=r(3),p=n(h),y=r(0),d=r(7),g=n(d),v=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default,r=function(t){function e(t){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));n.call(r);var u=r.props.formData;return r.state={formData:u},r}return u(e,t),a(e,[{key:"componentWillReceiveProps",value:function(t){var e=t.formData;this.sameData(e)||(this.formData=e,this.setState({formData:e}))}},{key:"shouldComponentUpdate",value:function(t,e){var r=(0,l.default)(Object.assign({},this.props,{formData:{}}),Object.assign({},t,{formData:{}})),n=(0,l.default)(Object.assign({},this.state,{formData:this.formData}),e),o=this.sameData(t.formData);return!r||!n||!o}},{key:"render",value:function(){return s.default.createElement("div",null,this.renderForm(),this.renderTabs())}}]),e}(f.Component),n=function(){var r=this;this.sameData=function(t){return(0,l.default)(r.props.formData,t)||(0,l.default)(r.formData,t)},this.handleOnChange=function(t){r.formData=t.formData,r.setState({formData:t.formData}),r.props.onChange&&r.props.onChange(t)},this.renderForm=function(){if(r.props.schema){var e=r.state.formData,n=Object.assign({},r.props,{formData:e,onChange:r.handleOnChange});return s.default.createElement(t,n,s.default.createElement("div",null))}return s.default.createElement("div",null)},this.renderTabs=function(){var t=r.props,n=t.tabs,o=t.activeTab,i=t.onTabChange;return s.default.createElement(e,{tabs:n,activeTab:o,onTabChange:i})}};return(0,y.isDevelopment)()&&(r.propTypes={tabs:p.default.array}),r};e.default=v},function(t,e,r){"use strict";function n(t){}function o(t){var e=arguments.length<=1||void 0===arguments[1]?n:arguments[1];if(null===t)return null;var r=(0,a.copyValue)(t);if(null!==r)return r;var o=(0,a.copyCollection)(t,e),u=null!==o?o:t;return i(t,e,u,[t],[u])}function i(t,e,r,n,o){if(null===t)return null;var s=(0,a.copyValue)(t);if(null!==s)return s;var c=(0,f.getKeys)(t).concat((0,f.getSymbols)(t)),l=void 0,h=void 0,p=void 0,y=void 0,d=void 0,g=void 0,v=void 0,b=void 0;for(l=0,h=c.length;l<h;++l)p=c[l],y=t[p],d=(0,f.indexOf)(n,y),g=void 0,v=void 0,b=void 0,-1===d?(g=(0,a.copy)(y,e),v=null!==g?g:y,null!==y&&/^(?:function|object)$/.test(void 0===y?"undefined":u(y))&&(n.push(y),o.push(v))):b=o[d],r[p]=b||i(y,e,v,n,o);return r}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.__esModule=!0;var a=r(18),f=r(6);e.default=o,t.exports=e.default},function(t,e,r){"use strict";(function(t){function n(t,e){var r=i(t);return null!==r?r:o(t,e)}function o(e,r){if("function"!=typeof r)throw new TypeError("customizer is must be a Function");if("function"==typeof e){var n=String(e);return/^\s*function\s*\S*\([^\)]*\)\s*{\s*\[native code\]\s*}/.test(n)?e:new Function("return "+String(n))()}var o=f.call(e);if("[object Array]"===o)return[];if("[object Object]"===o&&e.constructor===Object)return{};if("[object Date]"===o)return new Date(e.getTime());if("[object RegExp]"===o){var i=String(e),u=i.lastIndexOf("/");return new RegExp(i.slice(1,u),i.slice(u+1))}if((0,a.isBuffer)(e)){var s=new t(e.length);return e.copy(s),s}var c=r(e);return void 0!==c?c:null}function i(t){var e=void 0===t?"undefined":u(t);return null!==t&&"object"!==e&&"function"!==e?t:null}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.__esModule=!0,e.copyValue=e.copyCollection=e.copy=void 0;var a=r(6),f=Object.prototype.toString;e.copy=n,e.copyCollection=o,e.copyValue=i}).call(e,r(5).Buffer)},function(t,e,r){"use strict";var n,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":o(window))&&(n=window)}t.exports=n},function(t,e,r){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function o(t){return 3*t.length/4-n(t)}function i(t){var e,r,o,i,u,a=t.length;i=n(t),u=new l(3*a/4-i),r=i>0?a-4:a;var f=0;for(e=0;e<r;e+=4)o=c[t.charCodeAt(e)]<<18|c[t.charCodeAt(e+1)]<<12|c[t.charCodeAt(e+2)]<<6|c[t.charCodeAt(e+3)],u[f++]=o>>16&255,u[f++]=o>>8&255,u[f++]=255&o;return 2===i?(o=c[t.charCodeAt(e)]<<2|c[t.charCodeAt(e+1)]>>4,u[f++]=255&o):1===i&&(o=c[t.charCodeAt(e)]<<10|c[t.charCodeAt(e+1)]<<4|c[t.charCodeAt(e+2)]>>2,u[f++]=o>>8&255,u[f++]=255&o),u}function u(t){return s[t>>18&63]+s[t>>12&63]+s[t>>6&63]+s[63&t]}function a(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16)+(t[i+1]<<8)+t[i+2],o.push(u(n));return o.join("")}function f(t){for(var e,r=t.length,n=r%3,o="",i=[],u=0,f=r-n;u<f;u+=16383)i.push(a(t,u,u+16383>f?f:u+16383));return 1===n?(e=t[r-1],o+=s[e>>2],o+=s[e<<4&63],o+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],o+=s[e>>10],o+=s[e>>4&63],o+=s[e<<2&63],o+="="),i.push(o),i.join("")}e.byteLength=o,e.toByteArray=i,e.fromByteArray=f;for(var s=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,y=h.length;p<y;++p)s[p]=h[p],c[h.charCodeAt(p)]=p;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},function(t,e,r){"use strict";e.read=function(t,e,r,n,o){var i,u,a=8*o-n-1,f=(1<<a)-1,s=f>>1,c=-7,l=r?o-1:0,h=r?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-c)-1,p>>=-c,c+=a;c>0;i=256*i+t[e+l],l+=h,c-=8);for(u=i&(1<<-c)-1,i>>=-c,c+=n;c>0;u=256*u+t[e+l],l+=h,c-=8);if(0===i)i=1-s;else{if(i===f)return u?NaN:1/0*(p?-1:1);u+=Math.pow(2,n),i-=s}return(p?-1:1)*u*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var u,a,f,s=8*i-o-1,c=(1<<s)-1,l=c>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,y=n?1:-1,d=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,u=c):(u=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-u))<1&&(u--,f*=2),e+=u+l>=1?h/f:h*Math.pow(2,1-l),e*f>=2&&(u++,f/=2),u+l>=c?(a=0,u=c):u+l>=1?(a=(e*f-1)*Math.pow(2,o),u+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),u=0));o>=8;t[r+p]=255&a,p+=y,a/=256,o-=8);for(u=u<<o|a,s+=o;s>0;t[r+p]=255&u,p+=y,u/=256,s-=8);t[r+p-y]|=128*d}},function(t,e,r){"use strict";var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e,r){var n=(0,u.listLayers)(t,e),i=n.filter(function(t){return t!==u.GENERIC_TAB}).reduce(function(n,i){var a=(0,c.default)(i,t,e),s=(0,f.default)(i,e);return(0,u.isEmptySchema)(a)||(n[i]=o(a,s,r)),n},{}),a=(0,c.default)(u.GENERIC_TAB,t,e),s=(0,f.default)(u.GENERIC_TAB,e),l=(0,h.default)(i,e,r),p={schema:a,uiSchema:s,tabs:l};return new y.default(p,i)}function i(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return o((0,u.normalizeSchema)(t),(0,u.normalizeUiSchema)(e),r)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var u=r(0),a=r(24),f=n(a),s=r(25),c=n(s),l=r(26),h=n(l),p=r(27),y=n(p)},function(t,e,r){"use strict";function n(t){Object.keys(t).forEach(function(e){var r=t[e][s.UI_TAB_ID];r&&r.length>1?r.shift():delete t[e][s.UI_TAB_ID]})}function o(t,e){return Object.keys(e[s.UI_TAB_ALIAS]).reduce(function(r,n){var o=e[s.UI_TAB_ALIAS][n].filter(function(r){return(0,s.findLayer)(r,e)===t});return 1==o.length?r.push({field:n,alias:o[0]}):0!==o.length&&(0,s.toError)(n+" has too many aliases "+o+" for the "+t),r},[])}function i(t,e){o(t,e).forEach(function(t){var r=t.field,n=t.alias;e[r]=e[n]})}function u(t,e){var r=(0,f.default)(e);return i(t,r),n(r),r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var a=r(2),f=function(t){return t&&t.__esModule?t:{default:t}}(a),s=r(0)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),o=function(t){return t&&t.__esModule?t:{default:t}}(n),i=r(0),u=function(t,e,r){return e[i.UI_TAB_ALIAS][t]&&e[i.UI_TAB_ALIAS][t].some(function(t){return(0,i.findLayer)(t,e)===r})},a=function(t,e){return function(r){return(0,i.findLayer)(r,t)===e||u(r,t,e)}},f=function(t,e){return function(r){e.required.includes(r)&&t.required.push(r),t.properties[r]=e.properties[r]}},s=function(t,e,r){var n=Object.assign({},(0,o.default)(e),{required:[],properties:{}});return Object.keys(e.properties).filter(a(r,t)).forEach(f(n,e)),n};e.default=s},function(t,e,r){"use strict";function n(t,e){if(0===e.length)return t;var r=e.map(function(e){return t.find(function(t){return t.tabID===e})}).filter(function(t){return void 0!==t});if(0===r.length)return t;var n=t.filter(function(t){return!r.includes(t)});return r.concat(n)}function o(t,e){var r=e.find(function(e){return e.tabID===t});return r||{tabID:t}}function i(t,e,r){return n(Object.keys(t).map(function(t){return o(t,r)}),e[u.UI_TAB_ORDER])}Object.defineProperty(e,"__esModule",{value:!0}),e.order=n,e.findTab=o,e.default=i;var u=r(0)},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),i=function t(e,r){n(this,t),u.call(this),this.conf=e,this.tabs=r,this.activeTab=e.tabs.length>0?e.tabs[0].tabID:o.GENERIC_TAB},u=function(){var t=this;this.updateActiveTabs=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return r===e.length?t.activeTab!==o.GENERIC_TAB&&(e.push(t.activeTab),t.tabs[t.activeTab].updateActiveTabs(e,r+1)):(t.activeTab=e[r],t.tabs[e[r]].updateActiveTabs(e,r+1)),e},this.toSubForms=function(e){var r=[],n=e[0]?e[0]:o.GENERIC_TAB;if(r.push(Object.assign({},t.conf,{activeTab:n})),n===o.GENERIC_TAB)return r;var i=t.tabs[n],u=e.slice(1);return i.toSubForms(u).forEach(function(t){return r.push(t)}),r}};e.default=i}])}); | ||
//# sourceMappingURL=form-with-pagination.js.map |
@@ -6,7 +6,32 @@ "use strict"; | ||
}); | ||
exports.order = order; | ||
exports.findTab = findTab; | ||
exports.default = extractTabsForLayer; | ||
var _utils = require("../utils"); | ||
function order(tabs, ordering) { | ||
if (ordering.length === 0) { | ||
return tabs; | ||
} | ||
var orderedTabs = ordering.map(function (orderedTab) { | ||
return tabs.find(function (_ref) { | ||
var tabID = _ref.tabID; | ||
return tabID === orderedTab; | ||
}); | ||
}).filter(function (tab) { | ||
return tab !== undefined; | ||
}); | ||
if (orderedTabs.length === 0) { | ||
return tabs; | ||
} | ||
var rest = tabs.filter(function (tab) { | ||
return !orderedTabs.includes(tab); | ||
}); | ||
return orderedTabs.concat(rest); | ||
} | ||
function findTab(layer, tabData) { | ||
var tab = tabData.find(function (_ref) { | ||
var tabID = _ref.tabID; | ||
var tab = tabData.find(function (_ref2) { | ||
var tabID = _ref2.tabID; | ||
return tabID === layer; | ||
@@ -17,7 +42,8 @@ }); | ||
function extractTabsForLayer(conf, tabData) { | ||
function extractTabsForLayer(conf, uiSchema, tabData) { | ||
var tabs = Object.keys(conf).map(function (layer) { | ||
return findTab(layer, tabData); | ||
}); | ||
return tabs; | ||
var orderedTabs = order(tabs, uiSchema[_utils.UI_TAB_ORDER]); | ||
return orderedTabs; | ||
} |
@@ -44,3 +44,3 @@ "use strict"; | ||
var uiSchema = (0, _extractUiSchemaForLayer2.default)(_utils.GENERIC_TAB, origUiSchema); | ||
var tabs = (0, _extractTabsForLayer2.default)(layers, tabData); | ||
var tabs = (0, _extractTabsForLayer2.default)(layers, origUiSchema, tabData); | ||
@@ -47,0 +47,0 @@ var conf = { schema: schema, uiSchema: uiSchema, tabs: tabs }; |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.toError = exports.UI_TAB_ALIAS = exports.UI_TAB_ID = exports.GENERIC_TAB = undefined; | ||
exports.toError = exports.UI_TAB_ORDER = exports.UI_TAB_ALIAS = exports.UI_TAB_ID = exports.GENERIC_TAB = undefined; | ||
exports.isDevelopment = isDevelopment; | ||
@@ -24,2 +24,3 @@ exports.isEmptySchema = isEmptySchema; | ||
var UI_TAB_ALIAS = exports.UI_TAB_ALIAS = "ui:tabAlias"; | ||
var UI_TAB_ORDER = exports.UI_TAB_ORDER = "ui:tabOrder"; | ||
@@ -79,2 +80,8 @@ function isDevelopment() { | ||
function normalizeOrdering(uiSchema) { | ||
if (!uiSchema[UI_TAB_ORDER]) { | ||
uiSchema[UI_TAB_ORDER] = []; | ||
} | ||
} | ||
function normalizeUiSchema() { | ||
@@ -86,2 +93,3 @@ var uiSchema = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
normalizeAliases(normUiSchema); | ||
normalizeOrdering(normUiSchema); | ||
return normUiSchema; | ||
@@ -88,0 +96,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
"author": "zboldyga@gmail.com", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"scripts": { | ||
@@ -9,0 +9,0 @@ "build:lib": "rimraf lib && cross-env NODE_ENV=production babel -d lib/ src/", |
@@ -232,2 +232,33 @@ # react-jsonschema-form-pagination | ||
## Tab ordering | ||
By default all tabs rendered in order they appear in uiSchema, since it's a primary source of layer reference, | ||
however it's not reliable way to do so. You can override natural ordering with `ui:tabOrder` property in `uiSchema`, consisting of ordered array of tabID's. | ||
It works the same way as [`ui:order`](https://github.com/mozilla-services/react-jsonschema-form#object-fields-ordering) in mozilla project. | ||
For example, in order to have | ||
```js | ||
const uiSchema = { | ||
"ui:tabOrder": [ "main", "sub", "other" ] | ||
age: { | ||
"ui:tabID": "sub" | ||
}, | ||
phone: { | ||
"ui:tabID": "main" | ||
}, | ||
firstName: { | ||
"ui:tabID": "main" | ||
}, | ||
lastName: { | ||
"ui:tabID": "main" | ||
}, | ||
nickName: { | ||
"ui:tabID": "other" | ||
}, | ||
}; | ||
``` | ||
In this configuration, although `sub` tab appears first in `uiSchema`, `main` will be the first tab available for selection. | ||
## Contribute | ||
@@ -234,0 +265,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
357182
767
277